From dfed1f6e886d17889938ab62940ed60ea3e26a36 Mon Sep 17 00:00:00 2001
From: Sharathkumar Anbu
Date: Sun, 23 Sep 2018 00:18:55 +0530
Subject: [PATCH 1/2] Creating wrapper
---
.swagger-codegen-ignore | 23 -
.swagger-codegen/VERSION | 1 -
.travis.yml | 7 -
README.md | 227 ++----
docs/Accepted.md | 7 -
docs/BadRequest.md | 8 -
docs/Body.md | 13 -
docs/Body1.md | 11 -
docs/Conflict.md | 8 -
docs/EventPayload.md | 12 -
docs/EventsApi.md | 62 --
docs/ExtendedService.md | 8 -
docs/Forbidden.md | 8 -
docs/HealthCheckStatus.md | 8 -
docs/HealthchecksApi.md | 90 ---
docs/NoContent.md | 7 -
docs/NotFound.md | 8 -
docs/NotModified.md | 8 -
docs/Payload.md | 11 -
docs/PlaceholdersApi.md | 56 --
docs/ServerError.md | 8 -
docs/Service.md | 13 -
docs/ServiceApi.md | 920 -----------------------
docs/TopicsApi.md | 104 ---
docs/Unauthorized.md | 8 -
git_push.sh | 52 --
index.js | 108 +++
mocha.opts | 1 -
package-lock.json | 1008 +++++++++++++++++++++-----
package.json | 28 +-
src/ApiClient.js | 598 ---------------
src/EventsApi.js | 32 +
src/HealthChecksApi.js | 28 +
src/PlaceholdersApi.js | 18 +
src/ServiceApi.js | 192 +++++
src/TopicsApi.js | 28 +
src/api/EventsApi.js | 99 ---
src/api/HealthchecksApi.js | 134 ----
src/api/PlaceholdersApi.js | 93 ---
src/api/ServiceApi.js | 888 -----------------------
src/api/TopicsApi.js | 134 ----
src/common/helper.js | 67 ++
src/index.js | 173 -----
src/model/Accepted.js | 75 --
src/model/BadRequest.js | 84 ---
src/model/Body.js | 128 ----
src/model/Body1.js | 111 ---
src/model/Conflict.js | 85 ---
src/model/EventPayload.js | 125 ----
src/model/ExtendedService.js | 130 ----
src/model/Forbidden.js | 84 ---
src/model/HealthCheckStatus.js | 86 ---
src/model/NoContent.js | 75 --
src/model/NotFound.js | 84 ---
src/model/NotModified.js | 84 ---
src/model/Payload.js | 114 ---
src/model/ServerError.js | 84 ---
src/model/Service.js | 135 ----
src/model/Unauthorized.js | 84 ---
test/api/EventsApi.spec.js | 66 --
test/api/HealthchecksApi.spec.js | 76 --
test/api/PlaceholdersApi.spec.js | 66 --
test/api/ServiceApi.spec.js | 216 ------
test/api/TopicsApi.spec.js | 76 --
test/model/Accepted.spec.js | 62 --
test/model/BadRequest.spec.js | 68 --
test/model/Body.spec.js | 98 ---
test/model/Body1.spec.js | 86 ---
test/model/Conflict.spec.js | 68 --
test/model/EventPayload.spec.js | 92 ---
test/model/ExtendedService.spec.js | 68 --
test/model/Forbidden.spec.js | 68 --
test/model/HealthCheckStatus.spec.js | 68 --
test/model/NoContent.spec.js | 62 --
test/model/NotFound.spec.js | 68 --
test/model/NotModified.spec.js | 68 --
test/model/Payload.spec.js | 86 ---
test/model/ServerError.spec.js | 68 --
test/model/Service.spec.js | 98 ---
test/model/Unauthorized.spec.js | 68 --
80 files changed, 1360 insertions(+), 7221 deletions(-)
delete mode 100644 .swagger-codegen-ignore
delete mode 100644 .swagger-codegen/VERSION
delete mode 100644 .travis.yml
delete mode 100644 docs/Accepted.md
delete mode 100644 docs/BadRequest.md
delete mode 100644 docs/Body.md
delete mode 100644 docs/Body1.md
delete mode 100644 docs/Conflict.md
delete mode 100644 docs/EventPayload.md
delete mode 100644 docs/EventsApi.md
delete mode 100644 docs/ExtendedService.md
delete mode 100644 docs/Forbidden.md
delete mode 100644 docs/HealthCheckStatus.md
delete mode 100644 docs/HealthchecksApi.md
delete mode 100644 docs/NoContent.md
delete mode 100644 docs/NotFound.md
delete mode 100644 docs/NotModified.md
delete mode 100644 docs/Payload.md
delete mode 100644 docs/PlaceholdersApi.md
delete mode 100644 docs/ServerError.md
delete mode 100644 docs/Service.md
delete mode 100644 docs/ServiceApi.md
delete mode 100644 docs/TopicsApi.md
delete mode 100644 docs/Unauthorized.md
delete mode 100644 git_push.sh
create mode 100644 index.js
delete mode 100644 mocha.opts
delete mode 100644 src/ApiClient.js
create mode 100644 src/EventsApi.js
create mode 100644 src/HealthChecksApi.js
create mode 100644 src/PlaceholdersApi.js
create mode 100644 src/ServiceApi.js
create mode 100644 src/TopicsApi.js
delete mode 100644 src/api/EventsApi.js
delete mode 100644 src/api/HealthchecksApi.js
delete mode 100644 src/api/PlaceholdersApi.js
delete mode 100644 src/api/ServiceApi.js
delete mode 100644 src/api/TopicsApi.js
create mode 100644 src/common/helper.js
delete mode 100644 src/index.js
delete mode 100644 src/model/Accepted.js
delete mode 100644 src/model/BadRequest.js
delete mode 100644 src/model/Body.js
delete mode 100644 src/model/Body1.js
delete mode 100644 src/model/Conflict.js
delete mode 100644 src/model/EventPayload.js
delete mode 100644 src/model/ExtendedService.js
delete mode 100644 src/model/Forbidden.js
delete mode 100644 src/model/HealthCheckStatus.js
delete mode 100644 src/model/NoContent.js
delete mode 100644 src/model/NotFound.js
delete mode 100644 src/model/NotModified.js
delete mode 100644 src/model/Payload.js
delete mode 100644 src/model/ServerError.js
delete mode 100644 src/model/Service.js
delete mode 100644 src/model/Unauthorized.js
delete mode 100644 test/api/EventsApi.spec.js
delete mode 100644 test/api/HealthchecksApi.spec.js
delete mode 100644 test/api/PlaceholdersApi.spec.js
delete mode 100644 test/api/ServiceApi.spec.js
delete mode 100644 test/api/TopicsApi.spec.js
delete mode 100644 test/model/Accepted.spec.js
delete mode 100644 test/model/BadRequest.spec.js
delete mode 100644 test/model/Body.spec.js
delete mode 100644 test/model/Body1.spec.js
delete mode 100644 test/model/Conflict.spec.js
delete mode 100644 test/model/EventPayload.spec.js
delete mode 100644 test/model/ExtendedService.spec.js
delete mode 100644 test/model/Forbidden.spec.js
delete mode 100644 test/model/HealthCheckStatus.spec.js
delete mode 100644 test/model/NoContent.spec.js
delete mode 100644 test/model/NotFound.spec.js
delete mode 100644 test/model/NotModified.spec.js
delete mode 100644 test/model/Payload.spec.js
delete mode 100644 test/model/ServerError.spec.js
delete mode 100644 test/model/Service.spec.js
delete mode 100644 test/model/Unauthorized.spec.js
diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore
deleted file mode 100644
index c5fa491..0000000
--- a/.swagger-codegen-ignore
+++ /dev/null
@@ -1,23 +0,0 @@
-# Swagger Codegen Ignore
-# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
-
-# Use this file to prevent files from being overwritten by the generator.
-# The patterns follow closely to .gitignore or .dockerignore.
-
-# As an example, the C# client generator defines ApiClient.cs.
-# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
-#ApiClient.cs
-
-# You can match any string of characters against a directory, file or extension with a single asterisk (*):
-#foo/*/qux
-# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
-
-# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
-#foo/**/qux
-# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
-
-# You can also negate patterns with an exclamation (!).
-# For example, you can ignore all files in a docs folder with the file extension .md:
-#docs/*.md
-# Then explicitly reverse the ignore rule for a single file:
-#!docs/README.md
diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION
deleted file mode 100644
index 855ff95..0000000
--- a/.swagger-codegen/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-2.4.0-SNAPSHOT
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index e49f469..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: node_js
-node_js:
- - "6"
- - "6.1"
- - "5"
- - "5.11"
-
diff --git a/README.md b/README.md
index 9d73525..e95a305 100644
--- a/README.md
+++ b/README.md
@@ -1,181 +1,46 @@
-# topcoder_meta_services_rest_api
-
-TopcoderMetaServicesRestApi - JavaScript client for topcoder_meta_services_rest_api
-REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
-This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
-
-- API version: 5.0.0
-- Package version: 5.0.0
-- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
-For more information, please visit [http://www.topcoder.com/support](http://www.topcoder.com/support)
-
-## Installation
-
-### For [Node.js](https://nodejs.org/)
-
-#### npm
-
-To publish the library as a [npm](https://www.npmjs.com/),
-please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).
-
-Then install it via:
-
-```shell
-npm install topcoder_meta_services_rest_api --save
-```
-
-##### Local development
-
-To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
-into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:
-
-```shell
-npm install
-```
-
-Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:
-
-```shell
-npm link
-```
-
-Finally, switch to the directory you want to use your topcoder_meta_services_rest_api from, and run:
-
-```shell
-npm link /path/to/
-```
-
-You should now be able to `require('topcoder_meta_services_rest_api')` in javascript files from the directory you ran the last
-command above from.
-
-#### git
-#
-If the library is hosted at a git repository, e.g.
-https://github.com/GIT_USER_ID/GIT_REPO_ID
-then install it via:
-
-```shell
- npm install GIT_USER_ID/GIT_REPO_ID --save
-```
-
-### For browser
-
-The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
-the above steps with Node.js and installing browserify with `npm install -g browserify`,
-perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually
-use this library):
-
-```shell
-browserify main.js > bundle.js
-```
-
-Then include *bundle.js* in the HTML pages.
-
-### Webpack Configuration
-
-Using Webpack you may encounter the following error: "Module not found: Error:
-Cannot resolve module", most certainly you should disable AMD loader. Add/merge
-the following section to your webpack config:
-
-```javascript
-module: {
- rules: [
- {
- parser: {
- amd: false
- }
- }
- ]
-}
-```
-
-## Getting Started
-
-Please follow the [installation](#installation) instruction and execute the following JS code:
-
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix['Authorization'] = "Token"
-
-var api = new TopcoderMetaServicesRestApi.EventsApi()
-
-var body = new TopcoderMetaServicesRestApi.EventPayload(); // {EventPayload}
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-api.postEvent(body, callback);
-
-```
-
-## Documentation for API Endpoints
-
-All URIs are relative to *https://api.topcoder.com/v5*
-
-Class | Method | HTTP request | Description
------------- | ------------- | ------------- | -------------
-*TopcoderMetaServicesRestApi.EventsApi* | [**postEvent**](docs/EventsApi.md#postEvent) | **POST** /bus/events | Post event to the message bus.
-*TopcoderMetaServicesRestApi.HealthchecksApi* | [**getHealth**](docs/HealthchecksApi.md#getHealth) | **GET** /bus/health | Check API is healthy.
-*TopcoderMetaServicesRestApi.HealthchecksApi* | [**headHealth**](docs/HealthchecksApi.md#headHealth) | **HEAD** /bus/health | Get only response status and headers information but no response body for the endpoint.
-*TopcoderMetaServicesRestApi.PlaceholdersApi* | [**clearPlaceholdersCache**](docs/PlaceholdersApi.md#clearPlaceholdersCache) | **DELETE** /bus/placeholders | Clear placeholders cache.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**createService**](docs/ServiceApi.md#createService) | **POST** /bus/services | Create a service.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**createServicePayload**](docs/ServiceApi.md#createServicePayload) | **POST** /bus/services/{serviceName}/payloads | Create the service payload.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**deleteService**](docs/ServiceApi.md#deleteService) | **DELETE** /bus/services/{serviceName} | Delete the service.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**deleteServicePayload**](docs/ServiceApi.md#deleteServicePayload) | **DELETE** /bus/services/{serviceName}/payloads/{payloadName} | Delete the service payload.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**getService**](docs/ServiceApi.md#getService) | **GET** /bus/services/{serviceName} | Get the service.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**getServicePayload**](docs/ServiceApi.md#getServicePayload) | **GET** /bus/services/{serviceName}/payloads/{payloadName} | Get the service payload.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**getServicePayloads**](docs/ServiceApi.md#getServicePayloads) | **GET** /bus/services/{serviceName}/payloads | Search the service payloads.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**getServices**](docs/ServiceApi.md#getServices) | **GET** /bus/services | Get all services.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**headService**](docs/ServiceApi.md#headService) | **HEAD** /bus/services/{serviceName} | Get only response status and headers information but no response body for the endpoint.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**headServicePayload**](docs/ServiceApi.md#headServicePayload) | **HEAD** /bus/services/{serviceName}/payloads/{payloadName} | Get only response status and headers information but no response body for the endpoint.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**headServicePayloads**](docs/ServiceApi.md#headServicePayloads) | **HEAD** /bus/services/{serviceName}/payloads | Get only response status and headers information but no response body for the endpoint.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**headServices**](docs/ServiceApi.md#headServices) | **HEAD** /bus/services | Get only response status and headers information but no response body for the endpoint.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**patchService**](docs/ServiceApi.md#patchService) | **PATCH** /bus/services/{serviceName} | Partially update the service.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**patchServicePayload**](docs/ServiceApi.md#patchServicePayload) | **PATCH** /bus/services/{serviceName}/payloads/{payloadName} | Partially update the payload.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**updateService**](docs/ServiceApi.md#updateService) | **PUT** /bus/services/{serviceName} | Update the service.
-*TopcoderMetaServicesRestApi.ServiceApi* | [**updateServicePayload**](docs/ServiceApi.md#updateServicePayload) | **PUT** /bus/services/{serviceName}/payloads/{payloadName} | Update the service payload.
-*TopcoderMetaServicesRestApi.TopicsApi* | [**getTopics**](docs/TopicsApi.md#getTopics) | **GET** /bus/topics | Get topics.
-*TopcoderMetaServicesRestApi.TopicsApi* | [**headTopics**](docs/TopicsApi.md#headTopics) | **HEAD** /bus/topics | Get only response status and headers information but no response body for the endpoint.
-
-
-## Documentation for Models
-
- - [TopcoderMetaServicesRestApi.Accepted](docs/Accepted.md)
- - [TopcoderMetaServicesRestApi.BadRequest](docs/BadRequest.md)
- - [TopcoderMetaServicesRestApi.Body](docs/Body.md)
- - [TopcoderMetaServicesRestApi.Body1](docs/Body1.md)
- - [TopcoderMetaServicesRestApi.Conflict](docs/Conflict.md)
- - [TopcoderMetaServicesRestApi.EventPayload](docs/EventPayload.md)
- - [TopcoderMetaServicesRestApi.Forbidden](docs/Forbidden.md)
- - [TopcoderMetaServicesRestApi.HealthCheckStatus](docs/HealthCheckStatus.md)
- - [TopcoderMetaServicesRestApi.NoContent](docs/NoContent.md)
- - [TopcoderMetaServicesRestApi.NotFound](docs/NotFound.md)
- - [TopcoderMetaServicesRestApi.NotModified](docs/NotModified.md)
- - [TopcoderMetaServicesRestApi.Payload](docs/Payload.md)
- - [TopcoderMetaServicesRestApi.ServerError](docs/ServerError.md)
- - [TopcoderMetaServicesRestApi.Service](docs/Service.md)
- - [TopcoderMetaServicesRestApi.Unauthorized](docs/Unauthorized.md)
- - [TopcoderMetaServicesRestApi.ExtendedService](docs/ExtendedService.md)
-
-
-## Documentation for Authorization
-
-
-### Bearer
-
-- **Type**: API key
-- **API key parameter name**: Authorization
-- **Location**: HTTP header
-
+# tc-bus-api-wrapper
+
+Wrapper library for Topcoder Bus API
+
+## How to use this Wrapper
+
+1. Include the wrapper in package.json as follows
+
+```
+"tc-bus-api-wrapper": "topcoder-platform/tc-bus-api-wrapper.git"
+```
+
+2. Create an instance of this wrapper with the configuration variables listed below
+
+
+```
+const busApi = require('tc-bus-api-wrapper')
+busApi(_.pick(config,
+ ['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME',
+ 'AUTH0_CLIENT_ID', 'AUTH0_CLIENT_SECRET', 'BUSAPI_URL',
+ 'KAFKA_ERROR_TOPIC']))
+```
+
+**Configuration / Environment variables:**
+
+*Auth0 related variables:*
+ - AUTH0_URL
+ - AUTH0_AUDIENCE
+ - TOKEN_CACHE_TIME (optional)
+ - AUTH0_CLIENT_ID
+
+- BUSAPI_URL - Bus API URL. E.g. `https://api.topcoder-dev.com/v5`
+
+- KAFKA_ERROR_TOPIC - Error topic in Kafka to which error message need to be posted
+
+3. Every function in this wrapper will return a promise, Handling promises is at the caller end. Call the functions with appropriate arguments
+
+E.g.
+
+```
+const result = yield busApiClient.getTopics()
+
+yield busApiClient.postEvent(reqBody)
+```
+
+Refer `index.js` for the list of available wrapper functions
\ No newline at end of file
diff --git a/docs/Accepted.md b/docs/Accepted.md
deleted file mode 100644
index db34036..0000000
--- a/docs/Accepted.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# TopcoderMetaServicesRestApi.Accepted
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
-
diff --git a/docs/BadRequest.md b/docs/BadRequest.md
deleted file mode 100644
index 3a610bd..0000000
--- a/docs/BadRequest.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# TopcoderMetaServicesRestApi.BadRequest
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **String** | The bad request error message. | [optional]
-
-
diff --git a/docs/Body.md b/docs/Body.md
deleted file mode 100644
index 457e78f..0000000
--- a/docs/Body.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# TopcoderMetaServicesRestApi.Body
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **String** | The service name. | [optional]
-**version** | **String** | The service version. | [optional]
-**commitHash** | **String** | The service commit hash. | [optional]
-**description** | **String** | The service description. | [optional]
-**baseURL** | **String** | The service base URL. | [optional]
-**payloads** | [**[Payload]**](Payload.md) | The service payloads | [optional]
-
-
diff --git a/docs/Body1.md b/docs/Body1.md
deleted file mode 100644
index ad6f380..0000000
--- a/docs/Body1.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# TopcoderMetaServicesRestApi.Body1
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **String** | The payload name. | [optional]
-**topics** | **[String]** | The list of topics for a payload. | [optional]
-**payloadMimeType** | **String** | The payload mime type. | [optional]
-**payloadFormat** | **Object** | The payload format. | [optional]
-
-
diff --git a/docs/Conflict.md b/docs/Conflict.md
deleted file mode 100644
index b3935c5..0000000
--- a/docs/Conflict.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# TopcoderMetaServicesRestApi.Conflict
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **String** | The conflict error message. |
-
-
diff --git a/docs/EventPayload.md b/docs/EventPayload.md
deleted file mode 100644
index a7ffbab..0000000
--- a/docs/EventPayload.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# TopcoderMetaServicesRestApi.EventPayload
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**topic** | **String** | Topic name should be a dot separated fully qualified name i.e. domain.type.operation. |
-**originator** | **String** | Service repository name, from where message is published. |
-**timestamp** | **Date** | Timestamp at which message is published. The date-time notation as defined by RFC 3339, section 5.6, for example, 2018-04-13T00:00:00Z |
-**mimeType** | **String** | Mime-type for 'payload'. |
-**payload** | **Object** | Actual payload depending on mime-type for consumer. |
-
-
diff --git a/docs/EventsApi.md b/docs/EventsApi.md
deleted file mode 100644
index c2be0ab..0000000
--- a/docs/EventsApi.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# TopcoderMetaServicesRestApi.EventsApi
-
-All URIs are relative to *https://api.topcoder.com/v5*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**postEvent**](EventsApi.md#postEvent) | **POST** /bus/events | Post event to the message bus.
-
-
-
-# **postEvent**
-> postEvent(body)
-
-Post event to the message bus.
-
-Post an event to the message bus.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.EventsApi();
-
-var body = new TopcoderMetaServicesRestApi.EventPayload(); // EventPayload |
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-apiInstance.postEvent(body, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**EventPayload**](EventPayload.md)| |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
diff --git a/docs/ExtendedService.md b/docs/ExtendedService.md
deleted file mode 100644
index 8d74946..0000000
--- a/docs/ExtendedService.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# TopcoderMetaServicesRestApi.ExtendedService
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**serviceId** | **String** | The service id. | [optional]
-
-
diff --git a/docs/Forbidden.md b/docs/Forbidden.md
deleted file mode 100644
index 10bf423..0000000
--- a/docs/Forbidden.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# TopcoderMetaServicesRestApi.Forbidden
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **String** | The forbidden error message. | [optional]
-
-
diff --git a/docs/HealthCheckStatus.md b/docs/HealthCheckStatus.md
deleted file mode 100644
index cd8d590..0000000
--- a/docs/HealthCheckStatus.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# TopcoderMetaServicesRestApi.HealthCheckStatus
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**health** | **String** | Health check status. | [default to 'ok']
-
-
diff --git a/docs/HealthchecksApi.md b/docs/HealthchecksApi.md
deleted file mode 100644
index e60e4ba..0000000
--- a/docs/HealthchecksApi.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# TopcoderMetaServicesRestApi.HealthchecksApi
-
-All URIs are relative to *https://api.topcoder.com/v5*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**getHealth**](HealthchecksApi.md#getHealth) | **GET** /bus/health | Check API is healthy.
-[**headHealth**](HealthchecksApi.md#headHealth) | **HEAD** /bus/health | Get only response status and headers information but no response body for the endpoint.
-
-
-
-# **getHealth**
-> HealthCheckStatus getHealth()
-
-Check API is healthy.
-
-Check API is healthy.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-
-var apiInstance = new TopcoderMetaServicesRestApi.HealthchecksApi();
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-apiInstance.getHealth(callback);
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-[**HealthCheckStatus**](HealthCheckStatus.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **headHealth**
-> headHealth()
-
-Get only response status and headers information but no response body for the endpoint.
-
-Get response status and headers information for the endpoint. It does not contain response body.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-
-var apiInstance = new TopcoderMetaServicesRestApi.HealthchecksApi();
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-apiInstance.headHealth(callback);
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
diff --git a/docs/NoContent.md b/docs/NoContent.md
deleted file mode 100644
index 7da6e95..0000000
--- a/docs/NoContent.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# TopcoderMetaServicesRestApi.NoContent
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
-
diff --git a/docs/NotFound.md b/docs/NotFound.md
deleted file mode 100644
index 82e0e0a..0000000
--- a/docs/NotFound.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# TopcoderMetaServicesRestApi.NotFound
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **String** | The not found error message. | [optional]
-
-
diff --git a/docs/NotModified.md b/docs/NotModified.md
deleted file mode 100644
index 3ad8a91..0000000
--- a/docs/NotModified.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# TopcoderMetaServicesRestApi.NotModified
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **String** | The not modified error message. | [optional]
-
-
diff --git a/docs/Payload.md b/docs/Payload.md
deleted file mode 100644
index 671ba91..0000000
--- a/docs/Payload.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# TopcoderMetaServicesRestApi.Payload
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **String** | The payload name. | [optional]
-**topics** | **[String]** | The list of topics for a payload. |
-**payloadMimeType** | **String** | The payload mime type. |
-**payloadFormat** | **Object** | The payload format. |
-
-
diff --git a/docs/PlaceholdersApi.md b/docs/PlaceholdersApi.md
deleted file mode 100644
index 14bea47..0000000
--- a/docs/PlaceholdersApi.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# TopcoderMetaServicesRestApi.PlaceholdersApi
-
-All URIs are relative to *https://api.topcoder.com/v5*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**clearPlaceholdersCache**](PlaceholdersApi.md#clearPlaceholdersCache) | **DELETE** /bus/placeholders | Clear placeholders cache.
-
-
-
-# **clearPlaceholdersCache**
-> clearPlaceholdersCache()
-
-Clear placeholders cache.
-
-Clear the cache for placeholder validation of email topics.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.PlaceholdersApi();
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-apiInstance.clearPlaceholdersCache(callback);
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
diff --git a/docs/ServerError.md b/docs/ServerError.md
deleted file mode 100644
index b1abb2d..0000000
--- a/docs/ServerError.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# TopcoderMetaServicesRestApi.ServerError
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **String** | The server error message. | [optional]
-
-
diff --git a/docs/Service.md b/docs/Service.md
deleted file mode 100644
index 13b7892..0000000
--- a/docs/Service.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# TopcoderMetaServicesRestApi.Service
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **String** | The service name. |
-**version** | **String** | The service version. |
-**commitHash** | **String** | The service commit hash. |
-**description** | **String** | The service description. |
-**baseURL** | **String** | The service base URL. |
-**payloads** | [**[Payload]**](Payload.md) | The service payloads |
-
-
diff --git a/docs/ServiceApi.md b/docs/ServiceApi.md
deleted file mode 100644
index 2e9ce9e..0000000
--- a/docs/ServiceApi.md
+++ /dev/null
@@ -1,920 +0,0 @@
-# TopcoderMetaServicesRestApi.ServiceApi
-
-All URIs are relative to *https://api.topcoder.com/v5*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**createService**](ServiceApi.md#createService) | **POST** /bus/services | Create a service.
-[**createServicePayload**](ServiceApi.md#createServicePayload) | **POST** /bus/services/{serviceName}/payloads | Create the service payload.
-[**deleteService**](ServiceApi.md#deleteService) | **DELETE** /bus/services/{serviceName} | Delete the service.
-[**deleteServicePayload**](ServiceApi.md#deleteServicePayload) | **DELETE** /bus/services/{serviceName}/payloads/{payloadName} | Delete the service payload.
-[**getService**](ServiceApi.md#getService) | **GET** /bus/services/{serviceName} | Get the service.
-[**getServicePayload**](ServiceApi.md#getServicePayload) | **GET** /bus/services/{serviceName}/payloads/{payloadName} | Get the service payload.
-[**getServicePayloads**](ServiceApi.md#getServicePayloads) | **GET** /bus/services/{serviceName}/payloads | Search the service payloads.
-[**getServices**](ServiceApi.md#getServices) | **GET** /bus/services | Get all services.
-[**headService**](ServiceApi.md#headService) | **HEAD** /bus/services/{serviceName} | Get only response status and headers information but no response body for the endpoint.
-[**headServicePayload**](ServiceApi.md#headServicePayload) | **HEAD** /bus/services/{serviceName}/payloads/{payloadName} | Get only response status and headers information but no response body for the endpoint.
-[**headServicePayloads**](ServiceApi.md#headServicePayloads) | **HEAD** /bus/services/{serviceName}/payloads | Get only response status and headers information but no response body for the endpoint.
-[**headServices**](ServiceApi.md#headServices) | **HEAD** /bus/services | Get only response status and headers information but no response body for the endpoint.
-[**patchService**](ServiceApi.md#patchService) | **PATCH** /bus/services/{serviceName} | Partially update the service.
-[**patchServicePayload**](ServiceApi.md#patchServicePayload) | **PATCH** /bus/services/{serviceName}/payloads/{payloadName} | Partially update the payload.
-[**updateService**](ServiceApi.md#updateService) | **PUT** /bus/services/{serviceName} | Update the service.
-[**updateServicePayload**](ServiceApi.md#updateServicePayload) | **PUT** /bus/services/{serviceName}/payloads/{payloadName} | Update the service payload.
-
-
-
-# **createService**
-> createService(body)
-
-Create a service.
-
-Create a new service.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var body = new TopcoderMetaServicesRestApi.Service(); // Service |
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-apiInstance.createService(body, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**Service**](Service.md)| |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **createServicePayload**
-> Payload createServicePayload(serviceName, body)
-
-Create the service payload.
-
-Create the payload for the given service.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-var body = new TopcoderMetaServicesRestApi.Payload(); // Payload |
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-apiInstance.createServicePayload(serviceName, body, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
- **body** | [**Payload**](Payload.md)| |
-
-### Return type
-
-[**Payload**](Payload.md)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **deleteService**
-> deleteService(serviceName)
-
-Delete the service.
-
-Delete the service.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-apiInstance.deleteService(serviceName, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **deleteServicePayload**
-> deleteServicePayload(serviceName, payloadName)
-
-Delete the service payload.
-
-Delete the payload for the given service.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-var payloadName = "payloadName_example"; // String | The payload name.
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-apiInstance.deleteServicePayload(serviceName, payloadName, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
- **payloadName** | **String**| The payload name. |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **getService**
-> ExtendedService getService(serviceName)
-
-Get the service.
-
-Get the service by service name.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-apiInstance.getService(serviceName, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
-
-### Return type
-
-[**ExtendedService**](ExtendedService.md)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **getServicePayload**
-> Payload getServicePayload(serviceName, payloadName)
-
-Get the service payload.
-
-Get the payload for the given service.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-var payloadName = "payloadName_example"; // String | The payload name.
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-apiInstance.getServicePayload(serviceName, payloadName, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
- **payloadName** | **String**| The payload name. |
-
-### Return type
-
-[**Payload**](Payload.md)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **getServicePayloads**
-> [Payload] getServicePayloads(serviceName, opts)
-
-Search the service payloads.
-
-Search payloads for the service.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-var opts = {
- 'page': 1, // Number | The page number.
- 'perPage': 20 // Number | The number of items to list per page.
-};
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-apiInstance.getServicePayloads(serviceName, opts, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
- **page** | **Number**| The page number. | [optional] [default to 1]
- **perPage** | **Number**| The number of items to list per page. | [optional] [default to 20]
-
-### Return type
-
-[**[Payload]**](Payload.md)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **getServices**
-> [ExtendedService] getServices(opts)
-
-Get all services.
-
-Get all services. Link headers are sent back and they have rel set to prev, next, first, last and contain the relevant URL.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var opts = {
- 'page': 1, // Number | The page number.
- 'perPage': 20 // Number | The number of items to list per page.
-};
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-apiInstance.getServices(opts, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **page** | **Number**| The page number. | [optional] [default to 1]
- **perPage** | **Number**| The number of items to list per page. | [optional] [default to 20]
-
-### Return type
-
-[**[ExtendedService]**](ExtendedService.md)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **headService**
-> headService(serviceName)
-
-Get only response status and headers information but no response body for the endpoint.
-
-Get response status and headers information for the endpoint. It does not contain response body.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-apiInstance.headService(serviceName, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **headServicePayload**
-> headServicePayload(serviceName, payloadName)
-
-Get only response status and headers information but no response body for the endpoint.
-
-Get response status and headers information for the endpoint. It does not contain response body.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-var payloadName = "payloadName_example"; // String | The payload name.
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-apiInstance.headServicePayload(serviceName, payloadName, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
- **payloadName** | **String**| The payload name. |
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **headServicePayloads**
-> headServicePayloads(serviceName, opts)
-
-Get only response status and headers information but no response body for the endpoint.
-
-Get response status and headers information for the endpoint. The Link header is provided in the header and they have rel set to prev, next, first, last and contain the relevant URL. It does not contain response body.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-var opts = {
- 'page': 1, // Number | The page number.
- 'perPage': 20 // Number | The number of items to list per page.
-};
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-apiInstance.headServicePayloads(serviceName, opts, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
- **page** | **Number**| The page number. | [optional] [default to 1]
- **perPage** | **Number**| The number of items to list per page. | [optional] [default to 20]
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **headServices**
-> headServices(opts)
-
-Get only response status and headers information but no response body for the endpoint.
-
-Get response status and headers information for the endpoint. The Link header is provided in the header and they have rel set to prev, next, first, last and contain the relevant URL. It does not contain response body.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var opts = {
- 'page': 1, // Number | The page number.
- 'perPage': 20 // Number | The number of items to list per page.
-};
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-apiInstance.headServices(opts, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **page** | **Number**| The page number. | [optional] [default to 1]
- **perPage** | **Number**| The number of items to list per page. | [optional] [default to 20]
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **patchService**
-> ExtendedService patchService(serviceName, body)
-
-Partially update the service.
-
-Allows to partially modify the service with the provided request parameters.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-var body = new TopcoderMetaServicesRestApi.Body(); // Body | The Service entity.
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-apiInstance.patchService(serviceName, body, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
- **body** | [**Body**](Body.md)| The Service entity. |
-
-### Return type
-
-[**ExtendedService**](ExtendedService.md)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **patchServicePayload**
-> Payload patchServicePayload(serviceName, payloadName, body)
-
-Partially update the payload.
-
-Allows to partially modify the payload with the provided request parameters.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-var payloadName = "payloadName_example"; // String | The payload name.
-
-var body = new TopcoderMetaServicesRestApi.Body1(); // Body1 |
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-apiInstance.patchServicePayload(serviceName, payloadName, body, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
- **payloadName** | **String**| The payload name. |
- **body** | [**Body1**](Body1.md)| |
-
-### Return type
-
-[**Payload**](Payload.md)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **updateService**
-> ExtendedService updateService(serviceName, body)
-
-Update the service.
-
-Update the service by service name.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-var body = new TopcoderMetaServicesRestApi.ExtendedService(); // ExtendedService |
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-apiInstance.updateService(serviceName, body, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
- **body** | [**ExtendedService**](ExtendedService.md)| |
-
-### Return type
-
-[**ExtendedService**](ExtendedService.md)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **updateServicePayload**
-> Payload updateServicePayload(serviceName, payloadName, body)
-
-Update the service payload.
-
-Update the payload for the given service.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.ServiceApi();
-
-var serviceName = "serviceName_example"; // String | The service name.
-
-var payloadName = "payloadName_example"; // String | The payload name.
-
-var body = new TopcoderMetaServicesRestApi.Payload(); // Payload |
-
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-apiInstance.updateServicePayload(serviceName, payloadName, body, callback);
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **serviceName** | **String**| The service name. |
- **payloadName** | **String**| The payload name. |
- **body** | [**Payload**](Payload.md)| |
-
-### Return type
-
-[**Payload**](Payload.md)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
diff --git a/docs/TopicsApi.md b/docs/TopicsApi.md
deleted file mode 100644
index f8194d1..0000000
--- a/docs/TopicsApi.md
+++ /dev/null
@@ -1,104 +0,0 @@
-# TopcoderMetaServicesRestApi.TopicsApi
-
-All URIs are relative to *https://api.topcoder.com/v5*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**getTopics**](TopicsApi.md#getTopics) | **GET** /bus/topics | Get topics.
-[**headTopics**](TopicsApi.md#headTopics) | **HEAD** /bus/topics | Get only response status and headers information but no response body for the endpoint.
-
-
-
-# **getTopics**
-> ['String'] getTopics()
-
-Get topics.
-
-Get all topic names.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.TopicsApi();
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-apiInstance.getTopics(callback);
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-**['String']**
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-# **headTopics**
-> headTopics()
-
-Get only response status and headers information but no response body for the endpoint.
-
-Get response status and headers information for the endpoint. It does not contain response body.
-
-### Example
-```javascript
-var TopcoderMetaServicesRestApi = require('topcoder_meta_services_rest_api');
-var defaultClient = TopcoderMetaServicesRestApi.ApiClient.instance;
-
-// Configure API key authorization: Bearer
-var Bearer = defaultClient.authentications['Bearer'];
-Bearer.apiKey = 'YOUR API KEY';
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//Bearer.apiKeyPrefix = 'Token';
-
-var apiInstance = new TopcoderMetaServicesRestApi.TopicsApi();
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
-};
-apiInstance.headTopics(callback);
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-null (empty response body)
-
-### Authorization
-
-[Bearer](../README.md#Bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
diff --git a/docs/Unauthorized.md b/docs/Unauthorized.md
deleted file mode 100644
index 4b63f46..0000000
--- a/docs/Unauthorized.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# TopcoderMetaServicesRestApi.Unauthorized
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **String** | The unauthorized error message. | [optional]
-
-
diff --git a/git_push.sh b/git_push.sh
deleted file mode 100644
index 0d041ad..0000000
--- a/git_push.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
-#
-# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
-
-git_user_id=$1
-git_repo_id=$2
-release_note=$3
-
-if [ "$git_user_id" = "" ]; then
- git_user_id="GIT_USER_ID"
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
-fi
-
-if [ "$git_repo_id" = "" ]; then
- git_repo_id="GIT_REPO_ID"
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
-fi
-
-if [ "$release_note" = "" ]; then
- release_note="Minor update"
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
-fi
-
-# Initialize the local directory as a Git repository
-git init
-
-# Adds the files in the local repository and stages them for commit.
-git add .
-
-# Commits the tracked changes and prepares them to be pushed to a remote repository.
-git commit -m "$release_note"
-
-# Sets the new remote
-git_remote=`git remote`
-if [ "$git_remote" = "" ]; then # git remote not defined
-
- if [ "$GIT_TOKEN" = "" ]; then
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the Git credential in your environment."
- git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
- else
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
- fi
-
-fi
-
-git pull origin master
-
-# Pushes (Forces) the changes in the local repository up to the remote repository
-echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
-git push origin master 2>&1 | grep -v 'To https'
-
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..377d7c7
--- /dev/null
+++ b/index.js
@@ -0,0 +1,108 @@
+/*
+ * Index file
+ */
+
+const joi = require('joi')
+
+module.exports = (config) => {
+ const schema = joi.object().keys({
+ AUTH0_URL: joi.string().uri().trim().required(),
+ AUTH0_AUDIENCE: joi.string().uri().trim().required(),
+ TOKEN_CACHE_TIME: joi.number().integer().min(0),
+ AUTH0_CLIENT_ID: joi.string().required(),
+ AUTH0_CLIENT_SECRET: joi.string().required(),
+ BUSAPI_URL: joi.string().uri().trim().required(),
+ KAFKA_ERROR_TOPIC: joi.string().required()
+ })
+
+ // Validate the arguments
+ const result = joi.validate(config, schema)
+
+ if (result.error) {
+ throw new Error(result.error.details[0].message)
+ }
+
+ // Export functions
+ return {
+ // Event API functions
+ postEvent: (reqBody) => {
+ return require('./src/EventsApi').postEvent(config, reqBody)
+ },
+ postError: (reqBody) => {
+ return require('./src/EventsApi').postError(config, reqBody)
+ },
+
+ // Topics API functions
+ getTopics: () => {
+ return require('./src/TopicsApi').getTopics(config)
+ },
+ headTopics: () => {
+ return require('./src/TopicsApi').headTopics(config)
+ },
+
+ // Health checks API functions
+ getHealth: () => {
+ return require('./src/HealthChecksApi').getHealth(config)
+ },
+ headHealth: () => {
+ return require('./src/HealthChecksApi').headHealth(config)
+ },
+
+ // Placeholder API functions
+ clearPlaceholdersCache: () => {
+ return require('./src/PlaceholdersApi').clearPlaceholdersCache(config)
+ },
+
+ // Service API functions
+ getServices: () => {
+ return require('./src/ServiceApi').getServices(config)
+ },
+ headServices: () => {
+ return require('./src/ServiceApi').headServices(config)
+ },
+ createService: (reqBody) => {
+ return require('./src/ServiceApi').createService(config, reqBody)
+ },
+ getService: (serviceName) => {
+ return require('./src/ServiceApi').getService(config, serviceName)
+ },
+ headService: (serviceName) => {
+ return require('./src/ServiceApi').headService(config, serviceName)
+ },
+ updateService: (serviceName, reqBody) => {
+ return require('./src/ServiceApi').updateService(config, serviceName, reqBody)
+ },
+ patchService: (serviceName, reqBody) => {
+ return require('./src/ServiceApi').patchService(config, serviceName, reqBody)
+ },
+ deleteService: (serviceName) => {
+ return require('./src/ServiceApi').deleteService(config, serviceName)
+ },
+
+ getServicePayloads: (serviceName) => {
+ return require('./src/ServiceApi').getServicePayloads(config, serviceName)
+ },
+ headServicePayloads: (serviceName) => {
+ return require('./src/ServiceApi').headServicePayloads(config, serviceName)
+ },
+ createServicePayload: (serviceName, reqBody) => {
+ return require('./src/ServiceApi').createServicePayload(config, serviceName, reqBody)
+ },
+ getServicePayload: (serviceName, payloadName) => {
+ return require('./src/ServiceApi').getServicePayload(config, serviceName, payloadName)
+ },
+ headServicePayload: (serviceName, payloadName) => {
+ return require('./src/ServiceApi').headServicePayload(config, serviceName, payloadName)
+ },
+ updateServicePayload: (serviceName, payloadName, reqBody) => {
+ return require('./src/ServiceApi').updateServicePayload(config, serviceName, payloadName, reqBody)
+ },
+ patchServicePayload: (serviceName, payloadName, reqBody) => {
+ return require('./src/ServiceApi').patchServicePayload(config, serviceName, payloadName, reqBody)
+ },
+ deleteServicePayload: (serviceName, payloadName) => {
+ return require('./src/ServiceApi').deleteServicePayload(config, serviceName, payloadName)
+ }
+
+ }
+}
diff --git a/mocha.opts b/mocha.opts
deleted file mode 100644
index 9070118..0000000
--- a/mocha.opts
+++ /dev/null
@@ -1 +0,0 @@
---timeout 10000
diff --git a/package-lock.json b/package-lock.json
index 607807d..f35d0f3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,14 +1,240 @@
{
- "name": "topcoder_meta_services_rest_api",
- "version": "5.0.0",
+ "name": "tc-bus-api-wrapper",
+ "version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+ "@types/body-parser": {
+ "version": "1.17.0",
+ "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.17.0.tgz",
+ "integrity": "sha512-a2+YeUjPkztKJu5aIF2yArYFQQp8d51wZ7DavSHjFuY1mqVgidGyzEQ41JIVNy82fXj8yPgy2vJmfIywgESW6w==",
+ "requires": {
+ "@types/connect": "*",
+ "@types/node": "*"
+ }
+ },
+ "@types/connect": {
+ "version": "3.4.32",
+ "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.32.tgz",
+ "integrity": "sha512-4r8qa0quOvh7lGD0pre62CAb1oni1OO6ecJLGCezTmhQ8Fz50Arx9RUszryR8KlgK6avuSXvviL6yWyViQABOg==",
+ "requires": {
+ "@types/node": "*"
+ }
+ },
+ "@types/events": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@types/events/-/events-1.2.0.tgz",
+ "integrity": "sha512-KEIlhXnIutzKwRbQkGWb/I4HFqBuUykAdHgDED6xqwXJfONCjF5VoE0cXEiurh3XauygxzeDzgtXUqvLkxFzzA=="
+ },
+ "@types/express": {
+ "version": "4.16.0",
+ "resolved": "https://registry.npmjs.org/@types/express/-/express-4.16.0.tgz",
+ "integrity": "sha512-TtPEYumsmSTtTetAPXlJVf3kEqb6wZK0bZojpJQrnD/djV4q1oB6QQ8aKvKqwNPACoe02GNiy5zDzcYivR5Z2w==",
+ "requires": {
+ "@types/body-parser": "*",
+ "@types/express-serve-static-core": "*",
+ "@types/serve-static": "*"
+ }
+ },
+ "@types/express-jwt": {
+ "version": "0.0.34",
+ "resolved": "https://registry.npmjs.org/@types/express-jwt/-/express-jwt-0.0.34.tgz",
+ "integrity": "sha1-/b7kxq9cCiRu8qkz9VGZc8dxfwI=",
+ "requires": {
+ "@types/express": "*",
+ "@types/express-unless": "*"
+ }
+ },
+ "@types/express-serve-static-core": {
+ "version": "4.16.0",
+ "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.16.0.tgz",
+ "integrity": "sha512-lTeoCu5NxJU4OD9moCgm0ESZzweAx0YqsAcab6OB0EB3+As1OaHtKnaGJvcngQxYsi9UNv0abn4/DRavrRxt4w==",
+ "requires": {
+ "@types/events": "*",
+ "@types/node": "*",
+ "@types/range-parser": "*"
+ }
+ },
+ "@types/express-unless": {
+ "version": "0.0.32",
+ "resolved": "https://registry.npmjs.org/@types/express-unless/-/express-unless-0.0.32.tgz",
+ "integrity": "sha512-6YpJyFNlDDnPnRjMOvJCoDYlSDDmG/OEEUsPk7yhNkL4G9hUYtgab6vi1CcWsGSSSM0CsvNlWTG+ywAGnvF03g==",
+ "requires": {
+ "@types/express": "*"
+ }
+ },
+ "@types/mime": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@types/mime/-/mime-2.0.0.tgz",
+ "integrity": "sha512-A2TAGbTFdBw9azHbpVd+/FkdW2T6msN1uct1O9bH3vTerEHKZhTXJUQXy+hNq1B0RagfU8U+KBdqiZpxjhOUQA=="
+ },
+ "@types/node": {
+ "version": "10.10.1",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-10.10.1.tgz",
+ "integrity": "sha512-nzsx28VwfaIykfzMAG9TB3jxF5Nn+1/WMKnmVZc8TsB+LMIVvwUscVn7PAq+LFaY5ng5u4jp5mRROSswo76PPA=="
+ },
+ "@types/range-parser": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.2.tgz",
+ "integrity": "sha512-HtKGu+qG1NPvYe1z7ezLsyIaXYyi8SoAVqWDZgDQ8dLrsZvSzUNCwZyfX33uhWxL/SU0ZDQZ3nwZ0nimt507Kw=="
+ },
+ "@types/serve-static": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.2.tgz",
+ "integrity": "sha512-/BZ4QRLpH/bNYgZgwhKEh+5AsboDBcUdlBYgzoLX0fpj3Y2gp6EApyOlM3bK53wQS/OE1SrdSYBAbux2D1528Q==",
+ "requires": {
+ "@types/express-serve-static-core": "*",
+ "@types/mime": "*"
+ }
+ },
+ "ajv": {
+ "version": "5.5.2",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz",
+ "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=",
+ "requires": {
+ "co": "^4.6.0",
+ "fast-deep-equal": "^1.0.0",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.3.0"
+ }
+ },
+ "asn1": {
+ "version": "0.2.4",
+ "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
+ "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
+ "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="
+ },
"asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
},
+ "auth0-js": {
+ "version": "9.7.3",
+ "resolved": "https://registry.npmjs.org/auth0-js/-/auth0-js-9.7.3.tgz",
+ "integrity": "sha512-iZAqoN4EbsNCS/3VkFPNb4glTyj8hq57T7gcUF+XH8Rua7hBTUzpb101K9zqcdUIBilIdF9XBLCTJ4JGgZ/oFA==",
+ "requires": {
+ "base64-js": "^1.2.0",
+ "idtoken-verifier": "^1.2.0",
+ "js-cookie": "^2.2.0",
+ "qs": "^6.4.0",
+ "superagent": "^3.8.2",
+ "url-join": "^1.1.0",
+ "winchan": "^0.2.0"
+ }
+ },
+ "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="
+ },
+ "aws4": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
+ "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ=="
+ },
+ "axios": {
+ "version": "0.12.0",
+ "resolved": "http://registry.npmjs.org/axios/-/axios-0.12.0.tgz",
+ "integrity": "sha1-uQewIhzDTsHJ+sGOx/B935V4W6Q=",
+ "requires": {
+ "follow-redirects": "0.0.7"
+ }
+ },
+ "babel-runtime": {
+ "version": "6.6.1",
+ "resolved": "http://registry.npmjs.org/babel-runtime/-/babel-runtime-6.6.1.tgz",
+ "integrity": "sha1-eIuUtvY04luRvWxd9y1GdFevsAA=",
+ "requires": {
+ "core-js": "^2.1.0"
+ }
+ },
+ "backoff": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/backoff/-/backoff-2.5.0.tgz",
+ "integrity": "sha1-9hbtqdPktmuMp/ynn2lXIsX44m8=",
+ "requires": {
+ "precond": "0.2"
+ }
+ },
+ "balanced-match": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
+ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
+ "optional": true
+ },
+ "base64-js": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz",
+ "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw=="
+ },
+ "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",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "optional": true,
+ "requires": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "buffer-equal-constant-time": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
+ "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk="
+ },
+ "bunyan": {
+ "version": "1.8.12",
+ "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.12.tgz",
+ "integrity": "sha1-8VDw9nSKvdcq6uhPBEA74u8RN5c=",
+ "requires": {
+ "dtrace-provider": "~0.8",
+ "moment": "^2.10.6",
+ "mv": "~2",
+ "safe-json-stringify": "~1"
+ }
+ },
+ "caseless": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
+ "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
+ },
+ "co": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
+ "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ="
+ },
+ "codependency": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/codependency/-/codependency-0.1.4.tgz",
+ "integrity": "sha1-0XY6tyZL1wyR2WJumIYtN5K/jUo=",
+ "requires": {
+ "semver": "5.0.1"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.0.1.tgz",
+ "integrity": "sha1-n7P0AE+QDYPEeWj+QvdYPgWDLMk="
+ }
+ }
+ },
"combined-stream": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz",
@@ -17,33 +243,51 @@
"delayed-stream": "~1.0.0"
}
},
- "commander": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.3.0.tgz",
- "integrity": "sha1-/UMOiJgy7DU7ms0d4hfBHLPu+HM=",
- "dev": true
- },
"component-emitter": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz",
"integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY="
},
+ "concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
+ "optional": true
+ },
"cookiejar": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz",
"integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA=="
},
+ "core-js": {
+ "version": "2.5.7",
+ "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz",
+ "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw=="
+ },
"core-util-is": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
+ "crypto-js": {
+ "version": "3.1.9-1",
+ "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.1.9-1.tgz",
+ "integrity": "sha1-/aGedh/Ad+Af+/3G6f38WeiAbNg="
+ },
+ "dashdash": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
+ "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
+ "requires": {
+ "assert-plus": "^1.0.0"
+ }
+ },
"debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "version": "3.2.5",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.5.tgz",
+ "integrity": "sha512-D61LaDQPQkxJ5AUM2mbSJRbPkNs/TmdmOeLAi1hgDkpDfIfetSrjmWhccwtuResSwMbACjx/xXQofvM9CE/aeg==",
"requires": {
- "ms": "2.0.0"
+ "ms": "^2.1.1"
}
},
"delayed-stream": {
@@ -51,29 +295,82 @@
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
},
- "diff": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/diff/-/diff-1.4.0.tgz",
- "integrity": "sha1-fyjS657nsVqX79ic5j3P2qPMur8=",
- "dev": true
+ "dtrace-provider": {
+ "version": "0.8.7",
+ "resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.7.tgz",
+ "integrity": "sha1-3JObTT4GIM/gwc2APQ0tftBP/QQ=",
+ "optional": true,
+ "requires": {
+ "nan": "^2.10.0"
+ }
},
- "escape-string-regexp": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.2.tgz",
- "integrity": "sha1-Tbwv5nTnGUnK8/smlc5/LcHZqNE=",
- "dev": true
+ "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"
+ }
},
- "expect.js": {
- "version": "0.3.1",
- "resolved": "https://registry.npmjs.org/expect.js/-/expect.js-0.3.1.tgz",
- "integrity": "sha1-sKWaDS7/VDdUTr8M6qYBWEHQm1s=",
- "dev": true
+ "ecdsa-sig-formatter": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.10.tgz",
+ "integrity": "sha1-HFlQAPBKiJffuFAAiSoPTDOvhsM=",
+ "requires": {
+ "safe-buffer": "^5.0.1"
+ }
},
"extend": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
},
+ "extsprintf": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
+ "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
+ },
+ "fast-deep-equal": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz",
+ "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ="
+ },
+ "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="
+ },
+ "follow-redirects": {
+ "version": "0.0.7",
+ "resolved": "http://registry.npmjs.org/follow-redirects/-/follow-redirects-0.0.7.tgz",
+ "integrity": "sha1-NLkLqyqRGqNHVx2pDyK9NuzYqRk=",
+ "requires": {
+ "debug": "^2.2.0",
+ "stream-consume": "^0.1.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
+ }
+ }
+ },
+ "forever-agent": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
+ "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
+ },
"form-data": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz",
@@ -84,181 +381,410 @@
"mime-types": "^2.1.12"
}
},
- "formatio": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.1.1.tgz",
- "integrity": "sha1-XtPM1jZVEJc4NGXZlhmRAOhhYek=",
- "dev": true,
- "requires": {
- "samsam": "~1.1"
- }
- },
"formidable": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.1.tgz",
"integrity": "sha512-Fs9VRguL0gqGHkXS5GQiMCr1VhZBxz0JnJs4JmMp/2jL18Fmbzvv7vOFRU+U8TBkHEE/CX1qDXzJplVULgsLeg=="
},
+ "getpass": {
+ "version": "0.1.7",
+ "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
+ "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
+ "requires": {
+ "assert-plus": "^1.0.0"
+ }
+ },
"glob": {
- "version": "3.2.3",
- "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.3.tgz",
- "integrity": "sha1-4xPusknHr/qlxHUoaw4RW1mDlGc=",
- "dev": true,
+ "version": "6.0.4",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz",
+ "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=",
+ "optional": true,
"requires": {
- "graceful-fs": "~2.0.0",
+ "inflight": "^1.0.4",
"inherits": "2",
- "minimatch": "~0.2.11"
+ "minimatch": "2 || 3",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
}
},
- "graceful-fs": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-2.0.3.tgz",
- "integrity": "sha1-fNLNsiiko/Nule+mzBQt59GhNtA=",
- "dev": true
+ "har-schema": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
+ "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
+ },
+ "har-validator": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.0.tgz",
+ "integrity": "sha512-+qnmNjI4OfH2ipQ9VQOw23bBd/ibtfbVdK2fYbY4acTDqKTW/YDp9McimZdDbG8iV9fZizUqQMD5xvriB146TA==",
+ "requires": {
+ "ajv": "^5.3.0",
+ "har-schema": "^2.0.0"
+ }
+ },
+ "hoek": {
+ "version": "2.16.3",
+ "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz",
+ "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0="
+ },
+ "http-signature": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
+ "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
+ "requires": {
+ "assert-plus": "^1.0.0",
+ "jsprim": "^1.2.2",
+ "sshpk": "^1.7.0"
+ }
},
- "growl": {
- "version": "1.8.1",
- "resolved": "https://registry.npmjs.org/growl/-/growl-1.8.1.tgz",
- "integrity": "sha1-Sy3sjZB+k9szZiTc7AGDUC+MlCg=",
- "dev": true
+ "idtoken-verifier": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/idtoken-verifier/-/idtoken-verifier-1.2.0.tgz",
+ "integrity": "sha512-8jmmFHwdPz8L73zGNAXHHOV9yXNC+Z0TUBN5rafpoaFaLFltlIFr1JkQa3FYAETP23eSsulVw0sBiwrE8jqbUg==",
+ "requires": {
+ "base64-js": "^1.2.0",
+ "crypto-js": "^3.1.9-1",
+ "jsbn": "^0.1.0",
+ "superagent": "^3.8.2",
+ "url-join": "^1.1.0"
+ }
+ },
+ "inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
+ "optional": true,
+ "requires": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
},
"inherits": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
},
+ "is-typedarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
+ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
+ },
"isarray": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
},
- "jade": {
- "version": "0.26.3",
- "resolved": "https://registry.npmjs.org/jade/-/jade-0.26.3.tgz",
- "integrity": "sha1-jxDXl32NefL2/4YqgbBRPMslaGw=",
- "dev": true,
+ "isemail": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/isemail/-/isemail-1.2.0.tgz",
+ "integrity": "sha1-vgPfjMPineTSxd9lASY/H6RZXpo="
+ },
+ "isstream": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
+ "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
+ },
+ "joi": {
+ "version": "6.10.1",
+ "resolved": "http://registry.npmjs.org/joi/-/joi-6.10.1.tgz",
+ "integrity": "sha1-TVDDGAeRIgAP5fFq8f+OGRe3fgY=",
+ "requires": {
+ "hoek": "2.x.x",
+ "isemail": "1.x.x",
+ "moment": "2.x.x",
+ "topo": "1.x.x"
+ }
+ },
+ "js-cookie": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.0.tgz",
+ "integrity": "sha1-Gywnmm7s44ChIWi5JIUmWzWx7/s="
+ },
+ "jsbn": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
+ "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
+ },
+ "json-schema": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
+ "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
+ },
+ "json-schema-traverse": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz",
+ "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A="
+ },
+ "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="
+ },
+ "jsonwebtoken": {
+ "version": "7.4.3",
+ "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-7.4.3.tgz",
+ "integrity": "sha1-d/UCHeBYtgWheD+hKD6ZgS5kVjg=",
+ "requires": {
+ "joi": "^6.10.1",
+ "jws": "^3.1.4",
+ "lodash.once": "^4.0.0",
+ "ms": "^2.0.0",
+ "xtend": "^4.0.1"
+ }
+ },
+ "jsprim": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
+ "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
+ "requires": {
+ "assert-plus": "1.0.0",
+ "extsprintf": "1.3.0",
+ "json-schema": "0.2.3",
+ "verror": "1.10.0"
+ }
+ },
+ "jwa": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.1.6.tgz",
+ "integrity": "sha512-tBO/cf++BUsJkYql/kBbJroKOgHWEigTKBAjjBEmrMGYd1QMBC74Hr4Wo2zCZw6ZrVhlJPvoMrkcOnlWR/DJfw==",
+ "requires": {
+ "buffer-equal-constant-time": "1.0.1",
+ "ecdsa-sig-formatter": "1.0.10",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "jwks-rsa": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/jwks-rsa/-/jwks-rsa-1.3.0.tgz",
+ "integrity": "sha512-9q+d5VffK/FvFAjuXoddrq7zQybFSINV4mcwJJExGKXGyjWWpTt3vsn/aX33aB0heY02LK0qSyicdtRK0gVTig==",
"requires": {
- "commander": "0.6.1",
- "mkdirp": "0.3.0"
+ "@types/express-jwt": "0.0.34",
+ "debug": "^2.2.0",
+ "limiter": "^1.1.0",
+ "lru-memoizer": "^1.6.0",
+ "ms": "^2.0.0",
+ "request": "^2.73.0"
},
"dependencies": {
- "commander": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/commander/-/commander-0.6.1.tgz",
- "integrity": "sha1-+mihT2qUXVTbvlDYzbMyDp47GgY=",
- "dev": true
- },
- "mkdirp": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz",
- "integrity": "sha1-G79asbqCevI1dRQ0kEJkVfSB/h4=",
- "dev": true
+ "debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "requires": {
+ "ms": "2.0.0"
+ },
+ "dependencies": {
+ "ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
+ }
+ }
}
}
},
- "lolex": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.3.2.tgz",
- "integrity": "sha1-fD2mL/yzDw9agKJWbKJORdigHzE=",
- "dev": true
+ "jws": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/jws/-/jws-3.1.5.tgz",
+ "integrity": "sha512-GsCSexFADNQUr8T5HPJvayTjvPIfoyJPtLQBwn5a4WZQchcrPMPMAWcC1AzJVRDKyD6ZPROPAxgv6rfHViO4uQ==",
+ "requires": {
+ "jwa": "^1.1.5",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "le_node": {
+ "version": "1.7.1",
+ "resolved": "https://registry.npmjs.org/le_node/-/le_node-1.7.1.tgz",
+ "integrity": "sha1-gxZAna2oK58pZXykBgZj+PEVUdE=",
+ "requires": {
+ "babel-runtime": "6.6.1",
+ "codependency": "0.1.4",
+ "json-stringify-safe": "5.0.1",
+ "lodash": "3.9.3",
+ "reconnect-core": "1.3.0",
+ "semver": "5.1.0"
+ },
+ "dependencies": {
+ "lodash": {
+ "version": "3.9.3",
+ "resolved": "http://registry.npmjs.org/lodash/-/lodash-3.9.3.tgz",
+ "integrity": "sha1-AVnoaDL+/8bWHYUrEqlTuZSWvTI="
+ }
+ }
+ },
+ "limiter": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/limiter/-/limiter-1.1.3.tgz",
+ "integrity": "sha512-zrycnIMsLw/3ZxTbW7HCez56rcFGecWTx5OZNplzcXUUmJLmoYArC6qdJzmAN5BWiNXGcpjhF9RQ1HSv5zebEw=="
+ },
+ "lock": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/lock/-/lock-0.1.4.tgz",
+ "integrity": "sha1-/sfervF+fDoKVeHaBCgD4l2RdF0="
+ },
+ "lodash": {
+ "version": "4.17.11",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
+ "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
+ },
+ "lodash.once": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
+ "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w="
},
"lru-cache": {
- "version": "2.7.3",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz",
- "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=",
- "dev": true
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.2.tgz",
+ "integrity": "sha1-HRdnnAac2l0ECZGgnbwsDbN35V4=",
+ "requires": {
+ "pseudomap": "^1.0.1",
+ "yallist": "^2.0.0"
+ }
+ },
+ "lru-memoizer": {
+ "version": "1.12.0",
+ "resolved": "https://registry.npmjs.org/lru-memoizer/-/lru-memoizer-1.12.0.tgz",
+ "integrity": "sha1-7+ZXBsyKnMZT+A8NWm6jitlQ41I=",
+ "requires": {
+ "lock": "~0.1.2",
+ "lodash": "^4.17.4",
+ "lru-cache": "~4.0.0",
+ "very-fast-args": "^1.1.0"
+ }
},
"methods": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
},
+ "millisecond": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/millisecond/-/millisecond-0.1.2.tgz",
+ "integrity": "sha1-bMWtOGJByrjniv+WT4cCjuyS2sU="
+ },
"mime": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
},
"mime-db": {
- "version": "1.35.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz",
- "integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg=="
+ "version": "1.36.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz",
+ "integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw=="
},
"mime-types": {
- "version": "2.1.19",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz",
- "integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==",
+ "version": "2.1.20",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz",
+ "integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==",
"requires": {
- "mime-db": "~1.35.0"
+ "mime-db": "~1.36.0"
}
},
"minimatch": {
- "version": "0.2.14",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz",
- "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=",
- "dev": true,
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
+ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
+ "optional": true,
"requires": {
- "lru-cache": "2",
- "sigmund": "~1.0.0"
+ "brace-expansion": "^1.1.7"
}
},
"minimist": {
"version": "0.0.8",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
- "dev": true
+ "optional": true
},
"mkdirp": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.0.tgz",
- "integrity": "sha1-HXMHam35hs2TROFecfzAWkyavxI=",
- "dev": true,
+ "version": "0.5.1",
+ "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
+ "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
+ "optional": true,
"requires": {
"minimist": "0.0.8"
}
},
- "mocha": {
- "version": "2.3.4",
- "resolved": "https://registry.npmjs.org/mocha/-/mocha-2.3.4.tgz",
- "integrity": "sha1-himm+wRPLSJapLgaKuLQAWmesmY=",
- "dev": true,
- "requires": {
- "commander": "2.3.0",
- "debug": "2.2.0",
- "diff": "1.4.0",
- "escape-string-regexp": "1.0.2",
- "glob": "3.2.3",
- "growl": "1.8.1",
- "jade": "0.26.3",
- "mkdirp": "0.5.0",
- "supports-color": "1.2.0"
- },
- "dependencies": {
- "debug": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz",
- "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=",
- "dev": true,
- "requires": {
- "ms": "0.7.1"
- }
- },
- "ms": {
- "version": "0.7.1",
- "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz",
- "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=",
- "dev": true
- }
- }
+ "moment": {
+ "version": "2.22.2",
+ "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz",
+ "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y="
},
"ms": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
+ "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
+ },
+ "mv": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz",
+ "integrity": "sha1-rmzg1vbV4KT32JN5jQPB6pVZtqI=",
+ "optional": true,
+ "requires": {
+ "mkdirp": "~0.5.1",
+ "ncp": "~2.0.0",
+ "rimraf": "~2.4.0"
+ }
+ },
+ "nan": {
+ "version": "2.11.0",
+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.0.tgz",
+ "integrity": "sha512-F4miItu2rGnV2ySkXOQoA8FKz/SR2Q2sWP0sbTxNxz/tuokeC8WxOhPMcwi0qIyGtVn/rrSeLbvVkznqCdwYnw==",
+ "optional": true
+ },
+ "ncp": {
"version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
+ "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz",
+ "integrity": "sha1-GVoh1sRuNh0vsSgbo4uR6d9727M=",
+ "optional": true
+ },
+ "oauth-sign": {
+ "version": "0.9.0",
+ "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
+ "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
+ },
+ "once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
+ "requires": {
+ "wrappy": "1"
+ }
+ },
+ "path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
+ "optional": true
+ },
+ "performance-now": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
+ "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
+ },
+ "precond": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/precond/-/precond-0.2.3.tgz",
+ "integrity": "sha1-qpWRvKokkj8eD0hJ0kD0fvwQdaw="
},
"process-nextick-args": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
"integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw=="
},
+ "pseudomap": {
+ "version": "1.0.2",
+ "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=="
+ },
+ "punycode": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
+ "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4="
+ },
"qs": {
"version": "6.5.2",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
@@ -266,7 +792,7 @@
},
"readable-stream": {
"version": "2.3.6",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
"integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
"requires": {
"core-util-is": "~1.0.0",
@@ -278,35 +804,92 @@
"util-deprecate": "~1.0.1"
}
},
+ "reconnect-core": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/reconnect-core/-/reconnect-core-1.3.0.tgz",
+ "integrity": "sha1-+65SkZp4d9hE4yRtAaLyZwHIM8g=",
+ "requires": {
+ "backoff": "~2.5.0"
+ }
+ },
+ "request": {
+ "version": "2.88.0",
+ "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
+ "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
+ "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"
+ }
+ },
+ "rimraf": {
+ "version": "2.4.5",
+ "resolved": "http://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz",
+ "integrity": "sha1-7nEM5dk6j9uFb7Xqj/Di11k0sto=",
+ "optional": true,
+ "requires": {
+ "glob": "^6.0.1"
+ }
+ },
"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=="
},
- "samsam": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.1.2.tgz",
- "integrity": "sha1-vsEf3IOp/aBjQBIQ5AF2wwJNFWc=",
- "dev": true
- },
- "sigmund": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz",
- "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=",
- "dev": true
+ "safe-json-stringify": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.2.0.tgz",
+ "integrity": "sha512-gH8eh2nZudPQO6TytOvbxnuhYBOvDBBLW52tz5q6X58lJcd/tkmqFR+5Z9adS8aJtURSXWThWy/xJtJwixErvg==",
+ "optional": true
},
- "sinon": {
- "version": "1.17.3",
- "resolved": "https://registry.npmjs.org/sinon/-/sinon-1.17.3.tgz",
- "integrity": "sha1-RNZLx0jQI4gARsFUPO/Oo0xH0X4=",
- "dev": true,
+ "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.1.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.1.0.tgz",
+ "integrity": "sha1-hfLPhVBGXE3wAM99hvawVBBqueU="
+ },
+ "sshpk": {
+ "version": "1.14.2",
+ "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz",
+ "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=",
"requires": {
- "formatio": "1.1.1",
- "lolex": "1.3.2",
- "samsam": "1.1.2",
- "util": ">=0.10.3 <1"
+ "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"
}
},
+ "stream-consume": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.1.tgz",
+ "integrity": "sha512-tNa3hzgkjEP7XbCkbRXe1jpg+ievoa0O4SCFlMOYEscGSS4JJsckGL8swUyAa/ApGU3Ae4t6Honor4HhL+tRyg=="
+ },
"string_decoder": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
@@ -316,41 +899,116 @@
}
},
"superagent": {
- "version": "3.5.2",
- "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.5.2.tgz",
- "integrity": "sha1-M2GjlxVnUEw1EGOr6q4PqiPb8/g=",
+ "version": "3.8.3",
+ "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.3.tgz",
+ "integrity": "sha512-GLQtLMCoEIK4eDv6OGtkOoSMt3D+oq0y3dsxMuYuDvaNUvuT8eFBuLmfR0iYYzHC1e8hpzC6ZsxbuP6DIalMFA==",
"requires": {
"component-emitter": "^1.2.0",
- "cookiejar": "^2.0.6",
- "debug": "^2.2.0",
+ "cookiejar": "^2.1.0",
+ "debug": "^3.1.0",
"extend": "^3.0.0",
- "form-data": "^2.1.1",
- "formidable": "^1.1.1",
+ "form-data": "^2.3.1",
+ "formidable": "^1.2.0",
"methods": "^1.1.1",
- "mime": "^1.3.4",
- "qs": "^6.1.0",
- "readable-stream": "^2.0.5"
+ "mime": "^1.4.1",
+ "qs": "^6.5.1",
+ "readable-stream": "^2.3.5"
}
},
- "supports-color": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-1.2.0.tgz",
- "integrity": "sha1-/x7R5hFp0Gs88tWI4YixjYhH4X4=",
- "dev": true
+ "tc-core-library-js": {
+ "version": "github:appirio-tech/tc-core-library-js#10668ab7884c3b7578054e4862fb2e1bf3d2453b",
+ "from": "github:appirio-tech/tc-core-library-js#feature/m2mtoken",
+ "requires": {
+ "auth0-js": "^9.4.2",
+ "axios": "^0.12.0",
+ "bunyan": "^1.8.1",
+ "jsonwebtoken": "^7.0.0",
+ "jwks-rsa": "^1.2.1",
+ "le_node": "^1.3.1",
+ "lodash": "^4.13.1",
+ "millisecond": "^0.1.2"
+ }
},
- "util": {
- "version": "0.11.0",
- "resolved": "https://registry.npmjs.org/util/-/util-0.11.0.tgz",
- "integrity": "sha512-5n12uMzKCjvB2HPFHnbQSjaqAa98L5iIXmHrZCLavuZVe0qe/SJGbDGWlpaHk5lnBkWRDO+dRu1/PgmUYKPPTw==",
- "dev": true,
+ "topo": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/topo/-/topo-1.1.0.tgz",
+ "integrity": "sha1-6ddRYV0buH3IZdsYL6HKCl71NtU=",
"requires": {
- "inherits": "2.0.3"
+ "hoek": "2.x.x"
}
},
+ "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==",
+ "requires": {
+ "psl": "^1.1.24",
+ "punycode": "^1.4.1"
+ }
+ },
+ "tunnel-agent": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
+ "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
+ "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=",
+ "optional": true
+ },
+ "url-join": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/url-join/-/url-join-1.1.0.tgz",
+ "integrity": "sha1-dBxsL0WWxIMNZxhGCSDQySIC3Hg="
+ },
"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=="
+ },
+ "verror": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
+ "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
+ "requires": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ }
+ },
+ "very-fast-args": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/very-fast-args/-/very-fast-args-1.1.0.tgz",
+ "integrity": "sha1-4W0dH6+KbllqJGQh/ZCneWPQs5Y="
+ },
+ "winchan": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/winchan/-/winchan-0.2.0.tgz",
+ "integrity": "sha1-OGMCjn+XSw2hQS8oQXukJJcqvZQ="
+ },
+ "wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
+ },
+ "xtend": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz",
+ "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68="
+ },
+ "yallist": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
+ "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI="
}
}
}
diff --git a/package.json b/package.json
index 9767d43..d10198f 100644
--- a/package.json
+++ b/package.json
@@ -1,24 +1,12 @@
{
- "name": "topcoder_meta_services_rest_api",
- "version": "5.0.0",
- "description": "REST_API_for_Topcoder_Meta_Services_This_describes_a_service_that_can_give_information_on_other_services_existing_on_Topcoder_Available_service_links_can_be_listed_by_sending_GET_request__Also_each_service_can_return_links_to_further_services_in_their_responses__Pagination__Requests_that_return_multiple_items_will_be_paginated_to_20_items_by_default__You_can_specify__further_pages_with_the_page_parameter__You_can_also_set_a_custom_page__size_up_to_100_with_the_perPage_parameter___Pagination_response_data_is_included_in_http_headers__By_Default_the_response_header_contains_links_with_next_last_first_prev_resource_links_",
- "license": "Unlicense",
- "main": "src/index.js",
- "scripts": {
- "test": "./node_modules/mocha/bin/mocha --recursive"
- },
- "browser": {
- "fs": false
- },
+ "name": "tc-bus-api-wrapper",
+ "version": "1.0.0",
+ "description": "Wrapper for Topcoder Bus API",
+ "main": "index.js",
"dependencies": {
- "superagent": "3.5.2"
- },
- "devDependencies": {
- "mocha": "~2.3.4",
- "sinon": "1.17.3",
- "expect.js": "~0.3.1"
- },
- "engines": {
- "node": "^8"
+ "joi": "^13.4.0",
+ "lodash": "^4.17.10",
+ "superagent": "^3.8.3",
+ "tc-core-library-js": "appirio-tech/tc-core-library-js.git#feature/m2mtoken"
}
}
diff --git a/src/ApiClient.js b/src/ApiClient.js
deleted file mode 100644
index 8937d26..0000000
--- a/src/ApiClient.js
+++ /dev/null
@@ -1,598 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['superagent', 'querystring'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('superagent'), require('querystring'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.ApiClient = factory(root.superagent, root.querystring);
- }
-}(this, function(superagent, querystring) {
- 'use strict';
-
- /**
- * @module ApiClient
- * @version 5.0.0
- */
-
- /**
- * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
- * application to use this class directly - the *Api and model classes provide the public API for the service. The
- * contents of this file should be regarded as internal but are documented for completeness.
- * @alias module:ApiClient
- * @class
- */
- var exports = function() {
- /**
- * The base URL against which to resolve every API call's (relative) path.
- * @type {String}
- * @default https://api.topcoder.com/v5
- */
- this.basePath = 'https://api.topcoder.com/v5'.replace(/\/+$/, '');
-
- /**
- * The authentication methods to be included for all API calls.
- * @type {Array.}
- */
- this.authentications = {
- 'Bearer': {type: 'apiKey', 'in': 'header', name: 'Authorization'}
- };
- /**
- * The default HTTP headers to be included for all API calls.
- * @type {Array.}
- * @default {}
- */
- this.defaultHeaders = {};
-
- /**
- * The default HTTP timeout for all API calls.
- * @type {Number}
- * @default 60000
- */
- this.timeout = 60000;
-
- /**
- * If set to false an additional timestamp parameter is added to all API GET calls to
- * prevent browser caching
- * @type {Boolean}
- * @default true
- */
- this.cache = true;
-
- /**
- * If set to true, the client will save the cookies from each server
- * response, and return them in the next request.
- * @default false
- */
- this.enableCookies = false;
-
- /*
- * Used to save and return cookies in a node.js (non-browser) setting,
- * if this.enableCookies is set to true.
- */
- if (typeof window === 'undefined') {
- this.agent = new superagent.agent();
- }
-
- /*
- * Allow user to override superagent agent
- */
- this.requestAgent = null;
- };
-
- /**
- * Returns a string representation for an actual parameter.
- * @param param The actual parameter.
- * @returns {String} The string representation of param
.
- */
- exports.prototype.paramToString = function(param) {
- if (param == undefined || param == null) {
- return '';
- }
- if (param instanceof Date) {
- return param.toJSON();
- }
- return param.toString();
- };
-
- /**
- * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
- * NOTE: query parameters are not handled here.
- * @param {String} path The path to append to the base URL.
- * @param {Object} pathParams The parameter values to append.
- * @returns {String} The encoded path with parameter values substituted.
- */
- exports.prototype.buildUrl = function(path, pathParams) {
- if (!path.match(/^\//)) {
- path = '/' + path;
- }
- var url = this.basePath + path;
- var _this = this;
- url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) {
- var value;
- if (pathParams.hasOwnProperty(key)) {
- value = _this.paramToString(pathParams[key]);
- } else {
- value = fullMatch;
- }
- return encodeURIComponent(value);
- });
- return url;
- };
-
- /**
- * Checks whether the given content type represents JSON.
- * JSON content type examples:
- *
- * - application/json
- * - application/json; charset=UTF8
- * - APPLICATION/JSON
- *
- * @param {String} contentType The MIME content type to check.
- * @returns {Boolean} true
if contentType
represents JSON, otherwise false
.
- */
- exports.prototype.isJsonMime = function(contentType) {
- return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i));
- };
-
- /**
- * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
- * @param {Array.} contentTypes
- * @returns {String} The chosen content type, preferring JSON.
- */
- exports.prototype.jsonPreferredMime = function(contentTypes) {
- for (var i = 0; i < contentTypes.length; i++) {
- if (this.isJsonMime(contentTypes[i])) {
- return contentTypes[i];
- }
- }
- return contentTypes[0];
- };
-
- /**
- * Checks whether the given parameter value represents file-like content.
- * @param param The parameter to check.
- * @returns {Boolean} true
if param
represents a file.
- */
- exports.prototype.isFileParam = function(param) {
- // fs.ReadStream in Node.js and Electron (but not in runtime like browserify)
- if (typeof require === 'function') {
- var fs;
- try {
- fs = require('fs');
- } catch (err) {}
- if (fs && fs.ReadStream && param instanceof fs.ReadStream) {
- return true;
- }
- }
- // Buffer in Node.js
- if (typeof Buffer === 'function' && param instanceof Buffer) {
- return true;
- }
- // Blob in browser
- if (typeof Blob === 'function' && param instanceof Blob) {
- return true;
- }
- // File in browser (it seems File object is also instance of Blob, but keep this for safe)
- if (typeof File === 'function' && param instanceof File) {
- return true;
- }
- return false;
- };
-
- /**
- * Normalizes parameter values:
- *
- * - remove nils
- * - keep files and arrays
- * - format to string with `paramToString` for other cases
- *
- * @param {Object.} params The parameters as object properties.
- * @returns {Object.} normalized parameters.
- */
- exports.prototype.normalizeParams = function(params) {
- var newParams = {};
- for (var key in params) {
- if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {
- var value = params[key];
- if (this.isFileParam(value) || Array.isArray(value)) {
- newParams[key] = value;
- } else {
- newParams[key] = this.paramToString(value);
- }
- }
- }
- return newParams;
- };
-
- /**
- * Enumeration of collection format separator strategies.
- * @enum {String}
- * @readonly
- */
- exports.CollectionFormatEnum = {
- /**
- * Comma-separated values. Value: csv
- * @const
- */
- CSV: ',',
- /**
- * Space-separated values. Value: ssv
- * @const
- */
- SSV: ' ',
- /**
- * Tab-separated values. Value: tsv
- * @const
- */
- TSV: '\t',
- /**
- * Pipe(|)-separated values. Value: pipes
- * @const
- */
- PIPES: '|',
- /**
- * Native array. Value: multi
- * @const
- */
- MULTI: 'multi'
- };
-
- /**
- * Builds a string representation of an array-type actual parameter, according to the given collection format.
- * @param {Array} param An array parameter.
- * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.
- * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
- * param
as is if collectionFormat
is multi
.
- */
- exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) {
- if (param == null) {
- return null;
- }
- switch (collectionFormat) {
- case 'csv':
- return param.map(this.paramToString).join(',');
- case 'ssv':
- return param.map(this.paramToString).join(' ');
- case 'tsv':
- return param.map(this.paramToString).join('\t');
- case 'pipes':
- return param.map(this.paramToString).join('|');
- case 'multi':
- // return the array directly as SuperAgent will handle it as expected
- return param.map(this.paramToString);
- default:
- throw new Error('Unknown collection format: ' + collectionFormat);
- }
- };
-
- /**
- * Applies authentication headers to the request.
- * @param {Object} request The request object created by a superagent()
call.
- * @param {Array.} authNames An array of authentication method names.
- */
- exports.prototype.applyAuthToRequest = function(request, authNames) {
- var _this = this;
- authNames.forEach(function(authName) {
- var auth = _this.authentications[authName];
- switch (auth.type) {
- case 'basic':
- if (auth.username || auth.password) {
- request.auth(auth.username || '', auth.password || '');
- }
- break;
- case 'apiKey':
- if (auth.apiKey) {
- var data = {};
- if (auth.apiKeyPrefix) {
- data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;
- } else {
- data[auth.name] = auth.apiKey;
- }
- if (auth['in'] === 'header') {
- request.set(data);
- } else {
- request.query(data);
- }
- }
- break;
- case 'oauth2':
- if (auth.accessToken) {
- request.set({'Authorization': 'Bearer ' + auth.accessToken});
- }
- break;
- default:
- throw new Error('Unknown authentication type: ' + auth.type);
- }
- });
- };
-
- /**
- * Deserializes an HTTP response body into a value of the specified type.
- * @param {Object} response A SuperAgent response object.
- * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types
- * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
- * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
- * all properties on data will be converted to this type.
- * @returns A value of the specified type.
- */
- exports.prototype.deserialize = function deserialize(response, returnType) {
- if (response == null || returnType == null || response.status == 204) {
- return null;
- }
- // Rely on SuperAgent for parsing response body.
- // See http://visionmedia.github.io/superagent/#parsing-response-bodies
- var data = response.body;
- if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) {
- // SuperAgent does not always produce a body; use the unparsed response as a fallback
- data = response.text;
- }
- return exports.convertToType(data, returnType);
- };
-
- /**
- * Callback function to receive the result of the operation.
- * @callback module:ApiClient~callApiCallback
- * @param {String} error Error message, if any.
- * @param data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Invokes the REST service using the supplied settings and parameters.
- * @param {String} path The base URL to invoke.
- * @param {String} httpMethod The HTTP method to use.
- * @param {Object.} pathParams A map of path parameters and their values.
- * @param {Object.} queryParams A map of query parameters and their values.
- * @param {Object.} collectionQueryParams A map of collection query parameters and their values.
- * @param {Object.} headerParams A map of header parameters and their values.
- * @param {Object.} formParams A map of form parameters and their values.
- * @param {Object} bodyParam The value to pass as the request body.
- * @param {Array.} authNames An array of authentication type names.
- * @param {Array.} contentTypes An array of request MIME types.
- * @param {Array.} accepts An array of acceptable response MIME types.
- * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the
- * constructor for a complex type.
- * @param {module:ApiClient~callApiCallback} callback The callback function.
- * @returns {Object} The SuperAgent request object.
- */
- exports.prototype.callApi = function callApi(path, httpMethod, pathParams,
- queryParams, collectionQueryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,
- returnType, callback) {
-
- var _this = this;
- var url = this.buildUrl(path, pathParams);
- var request = superagent(httpMethod, url);
-
- // apply authentications
- this.applyAuthToRequest(request, authNames);
-
- // set collection query parameters
- for (var key in collectionQueryParams) {
- if (collectionQueryParams.hasOwnProperty(key)) {
- var param = collectionQueryParams[key];
- if (param.collectionFormat === 'csv') {
- // SuperAgent normally percent-encodes all reserved characters in a query parameter. However,
- // commas are used as delimiters for the 'csv' collectionFormat so they must not be encoded. We
- // must therefore construct and encode 'csv' collection query parameters manually.
- if (param.value != null) {
- var value = param.value.map(this.paramToString).map(encodeURIComponent).join(',');
- request.query(encodeURIComponent(key) + "=" + value);
- }
- } else {
- // All other collection query parameters should be treated as ordinary query parameters.
- queryParams[key] = this.buildCollectionParam(param.value, param.collectionFormat);
- }
- }
- }
-
- // set query parameters
- if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {
- queryParams['_'] = new Date().getTime();
- }
- request.query(this.normalizeParams(queryParams));
-
- // set header parameters
- request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));
-
-
- // set requestAgent if it is set by user
- if (this.requestAgent) {
- request.agent(this.requestAgent);
- }
-
- // set request timeout
- request.timeout(this.timeout);
-
- var contentType = this.jsonPreferredMime(contentTypes);
- if (contentType) {
- // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746)
- if(contentType != 'multipart/form-data') {
- request.type(contentType);
- }
- } else if (!request.header['Content-Type']) {
- request.type('application/json');
- }
-
- if (contentType === 'application/x-www-form-urlencoded') {
- request.send(querystring.stringify(this.normalizeParams(formParams)));
- } else if (contentType == 'multipart/form-data') {
- var _formParams = this.normalizeParams(formParams);
- for (var key in _formParams) {
- if (_formParams.hasOwnProperty(key)) {
- if (this.isFileParam(_formParams[key])) {
- // file field
- request.attach(key, _formParams[key]);
- } else {
- request.field(key, _formParams[key]);
- }
- }
- }
- } else if (bodyParam) {
- request.send(bodyParam);
- }
-
- var accept = this.jsonPreferredMime(accepts);
- if (accept) {
- request.accept(accept);
- }
-
- if (returnType === 'Blob') {
- request.responseType('blob');
- } else if (returnType === 'String') {
- request.responseType('string');
- }
-
- // Attach previously saved cookies, if enabled
- if (this.enableCookies){
- if (typeof window === 'undefined') {
- this.agent.attachCookies(request);
- }
- else {
- request.withCredentials();
- }
- }
-
-
- request.end(function(error, response) {
- if (callback) {
- var data = null;
- if (!error) {
- try {
- data = _this.deserialize(response, returnType);
- if (_this.enableCookies && typeof window === 'undefined'){
- _this.agent.saveCookies(response);
- }
- } catch (err) {
- error = err;
- }
- }
- callback(error, data, response);
- }
- });
-
- return request;
- };
-
- /**
- * Parses an ISO-8601 string representation of a date value.
- * @param {String} str The date value as a string.
- * @returns {Date} The parsed date object.
- */
- exports.parseDate = function(str) {
- return new Date(str.replace(/T/i, ' '));
- };
-
- /**
- * Converts a value to the specified type.
- * @param {(String|Object)} data The data to convert, as a string or object.
- * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types
- * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
- * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
- * all properties on data will be converted to this type.
- * @returns An instance of the specified type or null or undefined if data is null or undefined.
- */
- exports.convertToType = function(data, type) {
- if (data === null || data === undefined)
- return data
-
- switch (type) {
- case 'Boolean':
- return Boolean(data);
- case 'Integer':
- return parseInt(data, 10);
- case 'Number':
- return parseFloat(data);
- case 'String':
- return String(data);
- case 'Date':
- return this.parseDate(String(data));
- case 'Blob':
- return data;
- default:
- if (type === Object) {
- // generic object, return directly
- return data;
- } else if (typeof type === 'function') {
- // for model type like: User
- return type.constructFromObject(data);
- } else if (Array.isArray(type)) {
- // for array type like: ['String']
- var itemType = type[0];
- return data.map(function(item) {
- return exports.convertToType(item, itemType);
- });
- } else if (typeof type === 'object') {
- // for plain object type like: {'String': 'Integer'}
- var keyType, valueType;
- for (var k in type) {
- if (type.hasOwnProperty(k)) {
- keyType = k;
- valueType = type[k];
- break;
- }
- }
- var result = {};
- for (var k in data) {
- if (data.hasOwnProperty(k)) {
- var key = exports.convertToType(k, keyType);
- var value = exports.convertToType(data[k], valueType);
- result[key] = value;
- }
- }
- return result;
- } else {
- // for unknown type, return the data directly
- return data;
- }
- }
- };
-
- /**
- * Constructs a new map or array model from REST data.
- * @param data {Object|Array} The REST data.
- * @param obj {Object|Array} The target object or array.
- */
- exports.constructFromObject = function(data, obj, itemType) {
- if (Array.isArray(data)) {
- for (var i = 0; i < data.length; i++) {
- if (data.hasOwnProperty(i))
- obj[i] = exports.convertToType(data[i], itemType);
- }
- } else {
- for (var k in data) {
- if (data.hasOwnProperty(k))
- obj[k] = exports.convertToType(data[k], itemType);
- }
- }
- };
-
- /**
- * The default API client implementation.
- * @type {module:ApiClient}
- */
- exports.instance = new exports();
-
- return exports;
-}));
diff --git a/src/EventsApi.js b/src/EventsApi.js
new file mode 100644
index 0000000..8b7ea92
--- /dev/null
+++ b/src/EventsApi.js
@@ -0,0 +1,32 @@
+/*
+ * Wrapper function for Events related end points
+ */
+
+const helper = require('./common/helper')
+
+/**
+ * Function to POST the event to Bus API
+ * @param {Object} config Configuration object
+ * @param {Object} reqBody Body of the request to be Posted
+ * @returns {Promise}
+ */
+function postEvent (config, reqBody) {
+ return helper.reqToBusAPI(config, 'POST', `${config.BUSAPI_URL}/bus/events`, reqBody)
+}
+
+/**
+ * Function to POST the error to Bus API
+ * @param {Object} config Configuration object
+ * @param {Object} reqBody Body of the request to be Posted
+ * @returns {Promise}
+ */
+function postError (config, reqBody) {
+ // Set Error topic from configuration
+ reqBody.topic = config.KAFKA_ERROR_TOPIC
+ return helper.reqToBusAPI(config, 'POST', `${config.BUSAPI_URL}/bus/events`, reqBody)
+}
+
+module.exports = {
+ postEvent,
+ postError
+}
diff --git a/src/HealthChecksApi.js b/src/HealthChecksApi.js
new file mode 100644
index 0000000..91a5950
--- /dev/null
+++ b/src/HealthChecksApi.js
@@ -0,0 +1,28 @@
+/*
+ * Wrapper function for Health check related end points
+ */
+
+const helper = require('./common/helper')
+
+/**
+ * Function to GET the health status from Bus API
+ * @param {Object} config Configuration object
+ * @returns {Promise}
+ */
+function getHealth (config) {
+ return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/health`, null)
+}
+
+/**
+ * Function to HEAD the health status from Bus API
+ * @param {Object} config Configuration object
+ * @returns {Promise}
+ */
+function headHealth (config) {
+ return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/health`, null)
+}
+
+module.exports = {
+ getHealth,
+ headHealth
+}
diff --git a/src/PlaceholdersApi.js b/src/PlaceholdersApi.js
new file mode 100644
index 0000000..81d34e6
--- /dev/null
+++ b/src/PlaceholdersApi.js
@@ -0,0 +1,18 @@
+/*
+ * Wrapper function for Placeholder related end points
+ */
+
+const helper = require('./common/helper')
+
+/**
+ * Function to clear placeholders cache in Bus API
+ * @param {Object} config Configuration object
+ * @returns {Promise}
+ */
+function clearPlaceholdersCache (config) {
+ return helper.reqToBusAPI(config, 'DELETE', `${config.BUSAPI_URL}/bus/placeholders`, null)
+}
+
+module.exports = {
+ clearPlaceholdersCache
+}
diff --git a/src/ServiceApi.js b/src/ServiceApi.js
new file mode 100644
index 0000000..8f58d60
--- /dev/null
+++ b/src/ServiceApi.js
@@ -0,0 +1,192 @@
+/*
+ * Wrapper function for Service related end points
+ */
+
+const helper = require('./common/helper')
+
+/**
+ * Function to GET the list of services from Bus API
+ * @param {Object} config Configuration object
+ * @returns {Promise}
+ */
+function getServices (config) {
+ return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/services`, null)
+}
+
+/**
+ * Function to HEAD the list of services from Bus API
+ * @param {Object} config Configuration object
+ * @returns {Promise}
+ */
+function headServices (config) {
+ return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/services`, null)
+}
+
+/**
+ * Function to create a service using Bus API
+ * @param {Object} config Configuration object
+ * @param {Object} reqBody Body of the request
+ * @returns {Promise}
+ */
+function createService (config, reqBody) {
+ return helper.reqToBusAPI(config, 'POST', `${config.BUSAPI_URL}/bus/services`, reqBody)
+}
+
+/**
+ * Function to GET the service detail from Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @returns {Promise}
+ */
+function getService (config, serviceName) {
+ return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/services/${serviceName}`, null)
+}
+
+/**
+ * Function to HEAD the service detail from Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @returns {Promise}
+ */
+function headService (config, serviceName) {
+ return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/services/${serviceName}`, null)
+}
+
+/**
+ * Function to update a service using Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @param {Object} reqBody Body of the request
+ * @returns {Promise}
+ */
+function updateService (config, serviceName, reqBody) {
+ return helper.reqToBusAPI(config, 'PUT', `${config.BUSAPI_URL}/bus/services/${serviceName}`, reqBody)
+}
+
+/**
+ * Function to patch a service using Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @param {Object} reqBody Body of the request
+ * @returns {Promise}
+ */
+function patchService (config, serviceName, reqBody) {
+ return helper.reqToBusAPI(config, 'PATCH', `${config.BUSAPI_URL}/bus/services/${serviceName}`, reqBody)
+}
+
+/**
+ * Function to delete a service using Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @returns {Promise}
+ */
+function deleteService (config, serviceName) {
+ return helper.reqToBusAPI(config, 'DELETE', `${config.BUSAPI_URL}/bus/services/${serviceName}`, null)
+}
+
+/**
+ * Function to GET service payloads from Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @returns {Promise}
+ */
+function getServicePayloads (config, serviceName) {
+ return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads`, null)
+}
+
+/**
+ * Function to HEAD service payloads from Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @returns {Promise}
+ */
+function headServicePayloads (config, serviceName) {
+ return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads`, null)
+}
+
+/**
+ * Function to create a service payload using Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @param {Object} reqBody Body of the request
+ * @returns {Promise}
+ */
+function createServicePayload (config, serviceName, reqBody) {
+ return helper.reqToBusAPI(config, 'POST', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads`, reqBody)
+}
+
+/**
+ * Function to GET service payload detail from Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @param (String) payloadName Payload name
+ * @returns {Promise}
+ */
+function getServicePayload (config, serviceName, payloadName) {
+ return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads/${payloadName}`, null)
+}
+
+/**
+ * Function to HEAD service payload detail from Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @param (String) payloadName Payload name
+ * @returns {Promise}
+ */
+function headServicePayload (config, serviceName, payloadName) {
+ return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads/${payloadName}`, null)
+}
+
+/**
+ * Function to update service payload using Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @param (String) payloadName Payload name
+ * @param {Object} reqBody Body of the request
+ * @returns {Promise}
+ */
+function updateServicePayload (config, serviceName, payloadName, reqBody) {
+ return helper.reqToBusAPI(config, 'PUT', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads/${payloadName}`, reqBody)
+}
+
+/**
+ * Function to patch service payload using Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @param (String) payloadName Payload name
+ * @param {Object} reqBody Body of the request
+ * @returns {Promise}
+ */
+function patchServicePayload (config, serviceName, payloadName, reqBody) {
+ return helper.reqToBusAPI(config, 'PATCH', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads/${payloadName}`, reqBody)
+}
+
+/**
+ * Function to delete service payload using Bus API
+ * @param {Object} config Configuration object
+ * @param {String} serviceName Service name
+ * @param (String) payloadName Payload name
+ * @returns {Promise}
+ */
+function deleteServicePayload (config, serviceName, payloadName) {
+ return helper.reqToBusAPI(config, 'DELETE', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads/${payloadName}`, null)
+}
+
+module.exports = {
+ getServices,
+ headServices,
+ createService,
+ getService,
+ headService,
+ updateService,
+ patchService,
+ deleteService,
+ getServicePayloads,
+ headServicePayloads,
+ createServicePayload,
+ getServicePayload,
+ headServicePayload,
+ updateServicePayload,
+ patchServicePayload,
+ deleteServicePayload
+}
diff --git a/src/TopicsApi.js b/src/TopicsApi.js
new file mode 100644
index 0000000..32cf69e
--- /dev/null
+++ b/src/TopicsApi.js
@@ -0,0 +1,28 @@
+/*
+ * Wrapper function for Topics related end points
+ */
+
+const helper = require('./common/helper')
+
+/**
+ * Function to GET the list of topics from Bus API
+ * @param {Object} config Configuration object
+ * @returns {Promise}
+ */
+function getTopics (config) {
+ return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/topics`, null)
+}
+
+/**
+ * Function to HEAD the list of topics from Bus API
+ * @param {Object} config Configuration object
+ * @returns {Promise}
+ */
+function headTopics (config) {
+ return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/topics`, null)
+}
+
+module.exports = {
+ getTopics,
+ headTopics
+}
diff --git a/src/api/EventsApi.js b/src/api/EventsApi.js
deleted file mode 100644
index 78db070..0000000
--- a/src/api/EventsApi.js
+++ /dev/null
@@ -1,99 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient', 'model/EventPayload'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'), require('../model/EventPayload'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.EventsApi = factory(root.TopcoderMetaServicesRestApi.ApiClient, root.TopcoderMetaServicesRestApi.EventPayload);
- }
-}(this, function(ApiClient, EventPayload) {
- 'use strict';
-
- /**
- * Events service.
- * @module api/EventsApi
- * @version 5.0.0
- */
-
- /**
- * Constructs a new EventsApi.
- * @alias module:api/EventsApi
- * @class
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
- * default to {@link module:ApiClient#instance} if unspecified.
- */
- var exports = function(apiClient) {
- this.apiClient = apiClient || ApiClient.instance;
-
-
- /**
- * Callback function to receive the result of the postEvent operation.
- * @callback module:api/EventsApi~postEventCallback
- * @param {String} error Error message, if any.
- * @param data This operation does not return a value.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Post event to the message bus.
- * Post an event to the message bus.
- * @param {module:model/EventPayload} body
- * @param {module:api/EventsApi~postEventCallback} callback The callback function, accepting three arguments: error, data, response
- */
- this.postEvent = function(body, callback) {
- var postBody = body;
-
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling postEvent");
- }
-
-
- var pathParams = {
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = null;
-
- return this.apiClient.callApi(
- '/bus/events', 'POST',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
- };
-
- return exports;
-}));
diff --git a/src/api/HealthchecksApi.js b/src/api/HealthchecksApi.js
deleted file mode 100644
index 1434383..0000000
--- a/src/api/HealthchecksApi.js
+++ /dev/null
@@ -1,134 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient', 'model/HealthCheckStatus'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'), require('../model/HealthCheckStatus'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.HealthchecksApi = factory(root.TopcoderMetaServicesRestApi.ApiClient, root.TopcoderMetaServicesRestApi.HealthCheckStatus);
- }
-}(this, function(ApiClient, HealthCheckStatus) {
- 'use strict';
-
- /**
- * Healthchecks service.
- * @module api/HealthchecksApi
- * @version 5.0.0
- */
-
- /**
- * Constructs a new HealthchecksApi.
- * @alias module:api/HealthchecksApi
- * @class
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
- * default to {@link module:ApiClient#instance} if unspecified.
- */
- var exports = function(apiClient) {
- this.apiClient = apiClient || ApiClient.instance;
-
-
- /**
- * Callback function to receive the result of the getHealth operation.
- * @callback module:api/HealthchecksApi~getHealthCallback
- * @param {String} error Error message, if any.
- * @param {module:model/HealthCheckStatus} data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Check API is healthy.
- * Check API is healthy.
- * @param {module:api/HealthchecksApi~getHealthCallback} callback The callback function, accepting three arguments: error, data, response
- * data is of type: {@link module:model/HealthCheckStatus}
- */
- this.getHealth = function(callback) {
- var postBody = null;
-
-
- var pathParams = {
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = [];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = HealthCheckStatus;
-
- return this.apiClient.callApi(
- '/bus/health', 'GET',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the headHealth operation.
- * @callback module:api/HealthchecksApi~headHealthCallback
- * @param {String} error Error message, if any.
- * @param data This operation does not return a value.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Get only response status and headers information but no response body for the endpoint.
- * Get response status and headers information for the endpoint. It does not contain response body.
- * @param {module:api/HealthchecksApi~headHealthCallback} callback The callback function, accepting three arguments: error, data, response
- */
- this.headHealth = function(callback) {
- var postBody = null;
-
-
- var pathParams = {
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = [];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = null;
-
- return this.apiClient.callApi(
- '/bus/health', 'HEAD',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
- };
-
- return exports;
-}));
diff --git a/src/api/PlaceholdersApi.js b/src/api/PlaceholdersApi.js
deleted file mode 100644
index 9620732..0000000
--- a/src/api/PlaceholdersApi.js
+++ /dev/null
@@ -1,93 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.PlaceholdersApi = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
- /**
- * Placeholders service.
- * @module api/PlaceholdersApi
- * @version 5.0.0
- */
-
- /**
- * Constructs a new PlaceholdersApi.
- * @alias module:api/PlaceholdersApi
- * @class
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
- * default to {@link module:ApiClient#instance} if unspecified.
- */
- var exports = function(apiClient) {
- this.apiClient = apiClient || ApiClient.instance;
-
-
- /**
- * Callback function to receive the result of the clearPlaceholdersCache operation.
- * @callback module:api/PlaceholdersApi~clearPlaceholdersCacheCallback
- * @param {String} error Error message, if any.
- * @param data This operation does not return a value.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Clear placeholders cache.
- * Clear the cache for placeholder validation of email topics.
- * @param {module:api/PlaceholdersApi~clearPlaceholdersCacheCallback} callback The callback function, accepting three arguments: error, data, response
- */
- this.clearPlaceholdersCache = function(callback) {
- var postBody = null;
-
-
- var pathParams = {
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = null;
-
- return this.apiClient.callApi(
- '/bus/placeholders', 'DELETE',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
- };
-
- return exports;
-}));
diff --git a/src/api/ServiceApi.js b/src/api/ServiceApi.js
deleted file mode 100644
index 4fe3f11..0000000
--- a/src/api/ServiceApi.js
+++ /dev/null
@@ -1,888 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient', 'model/Body', 'model/Body1', 'model/ExtendedService', 'model/Payload', 'model/Service'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'), require('../model/Body'), require('../model/Body1'), require('../model/ExtendedService'), require('../model/Payload'), require('../model/Service'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.ServiceApi = factory(root.TopcoderMetaServicesRestApi.ApiClient, root.TopcoderMetaServicesRestApi.Body, root.TopcoderMetaServicesRestApi.Body1, root.TopcoderMetaServicesRestApi.ExtendedService, root.TopcoderMetaServicesRestApi.Payload, root.TopcoderMetaServicesRestApi.Service);
- }
-}(this, function(ApiClient, Body, Body1, ExtendedService, Payload, Service) {
- 'use strict';
-
- /**
- * Service service.
- * @module api/ServiceApi
- * @version 5.0.0
- */
-
- /**
- * Constructs a new ServiceApi.
- * @alias module:api/ServiceApi
- * @class
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
- * default to {@link module:ApiClient#instance} if unspecified.
- */
- var exports = function(apiClient) {
- this.apiClient = apiClient || ApiClient.instance;
-
-
- /**
- * Callback function to receive the result of the createService operation.
- * @callback module:api/ServiceApi~createServiceCallback
- * @param {String} error Error message, if any.
- * @param data This operation does not return a value.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Create a service.
- * Create a new service.
- * @param {module:model/Service} body
- * @param {module:api/ServiceApi~createServiceCallback} callback The callback function, accepting three arguments: error, data, response
- */
- this.createService = function(body, callback) {
- var postBody = body;
-
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling createService");
- }
-
-
- var pathParams = {
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = null;
-
- return this.apiClient.callApi(
- '/bus/services', 'POST',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the createServicePayload operation.
- * @callback module:api/ServiceApi~createServicePayloadCallback
- * @param {String} error Error message, if any.
- * @param {module:model/Payload} data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Create the service payload.
- * Create the payload for the given service.
- * @param {String} serviceName The service name.
- * @param {module:model/Payload} body
- * @param {module:api/ServiceApi~createServicePayloadCallback} callback The callback function, accepting three arguments: error, data, response
- * data is of type: {@link module:model/Payload}
- */
- this.createServicePayload = function(serviceName, body, callback) {
- var postBody = body;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling createServicePayload");
- }
-
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling createServicePayload");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = Payload;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}/payloads', 'POST',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the deleteService operation.
- * @callback module:api/ServiceApi~deleteServiceCallback
- * @param {String} error Error message, if any.
- * @param data This operation does not return a value.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Delete the service.
- * Delete the service.
- * @param {String} serviceName The service name.
- * @param {module:api/ServiceApi~deleteServiceCallback} callback The callback function, accepting three arguments: error, data, response
- */
- this.deleteService = function(serviceName, callback) {
- var postBody = null;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling deleteService");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = null;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}', 'DELETE',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the deleteServicePayload operation.
- * @callback module:api/ServiceApi~deleteServicePayloadCallback
- * @param {String} error Error message, if any.
- * @param data This operation does not return a value.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Delete the service payload.
- * Delete the payload for the given service.
- * @param {String} serviceName The service name.
- * @param {String} payloadName The payload name.
- * @param {module:api/ServiceApi~deleteServicePayloadCallback} callback The callback function, accepting three arguments: error, data, response
- */
- this.deleteServicePayload = function(serviceName, payloadName, callback) {
- var postBody = null;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling deleteServicePayload");
- }
-
- // verify the required parameter 'payloadName' is set
- if (payloadName === undefined || payloadName === null) {
- throw new Error("Missing the required parameter 'payloadName' when calling deleteServicePayload");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName,
- 'payloadName': payloadName
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = null;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}/payloads/{payloadName}', 'DELETE',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the getService operation.
- * @callback module:api/ServiceApi~getServiceCallback
- * @param {String} error Error message, if any.
- * @param {module:model/ExtendedService} data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Get the service.
- * Get the service by service name.
- * @param {String} serviceName The service name.
- * @param {module:api/ServiceApi~getServiceCallback} callback The callback function, accepting three arguments: error, data, response
- * data is of type: {@link module:model/ExtendedService}
- */
- this.getService = function(serviceName, callback) {
- var postBody = null;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling getService");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = ExtendedService;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}', 'GET',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the getServicePayload operation.
- * @callback module:api/ServiceApi~getServicePayloadCallback
- * @param {String} error Error message, if any.
- * @param {module:model/Payload} data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Get the service payload.
- * Get the payload for the given service.
- * @param {String} serviceName The service name.
- * @param {String} payloadName The payload name.
- * @param {module:api/ServiceApi~getServicePayloadCallback} callback The callback function, accepting three arguments: error, data, response
- * data is of type: {@link module:model/Payload}
- */
- this.getServicePayload = function(serviceName, payloadName, callback) {
- var postBody = null;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling getServicePayload");
- }
-
- // verify the required parameter 'payloadName' is set
- if (payloadName === undefined || payloadName === null) {
- throw new Error("Missing the required parameter 'payloadName' when calling getServicePayload");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName,
- 'payloadName': payloadName
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = Payload;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}/payloads/{payloadName}', 'GET',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the getServicePayloads operation.
- * @callback module:api/ServiceApi~getServicePayloadsCallback
- * @param {String} error Error message, if any.
- * @param {Array.} data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Search the service payloads.
- * Search payloads for the service.
- * @param {String} serviceName The service name.
- * @param {Object} opts Optional parameters
- * @param {Number} opts.page The page number. (default to 1)
- * @param {Number} opts.perPage The number of items to list per page. (default to 20)
- * @param {module:api/ServiceApi~getServicePayloadsCallback} callback The callback function, accepting three arguments: error, data, response
- * data is of type: {@link Array.}
- */
- this.getServicePayloads = function(serviceName, opts, callback) {
- opts = opts || {};
- var postBody = null;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling getServicePayloads");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName
- };
- var queryParams = {
- 'page': opts['page'],
- 'perPage': opts['perPage'],
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = [Payload];
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}/payloads', 'GET',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the getServices operation.
- * @callback module:api/ServiceApi~getServicesCallback
- * @param {String} error Error message, if any.
- * @param {Array.} data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Get all services.
- * Get all services. Link headers are sent back and they have rel set to prev, next, first, last and contain the relevant URL.
- * @param {Object} opts Optional parameters
- * @param {Number} opts.page The page number. (default to 1)
- * @param {Number} opts.perPage The number of items to list per page. (default to 20)
- * @param {module:api/ServiceApi~getServicesCallback} callback The callback function, accepting three arguments: error, data, response
- * data is of type: {@link Array.}
- */
- this.getServices = function(opts, callback) {
- opts = opts || {};
- var postBody = null;
-
-
- var pathParams = {
- };
- var queryParams = {
- 'page': opts['page'],
- 'perPage': opts['perPage'],
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = [ExtendedService];
-
- return this.apiClient.callApi(
- '/bus/services', 'GET',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the headService operation.
- * @callback module:api/ServiceApi~headServiceCallback
- * @param {String} error Error message, if any.
- * @param data This operation does not return a value.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Get only response status and headers information but no response body for the endpoint.
- * Get response status and headers information for the endpoint. It does not contain response body.
- * @param {String} serviceName The service name.
- * @param {module:api/ServiceApi~headServiceCallback} callback The callback function, accepting three arguments: error, data, response
- */
- this.headService = function(serviceName, callback) {
- var postBody = null;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling headService");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = null;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}', 'HEAD',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the headServicePayload operation.
- * @callback module:api/ServiceApi~headServicePayloadCallback
- * @param {String} error Error message, if any.
- * @param data This operation does not return a value.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Get only response status and headers information but no response body for the endpoint.
- * Get response status and headers information for the endpoint. It does not contain response body.
- * @param {String} serviceName The service name.
- * @param {String} payloadName The payload name.
- * @param {module:api/ServiceApi~headServicePayloadCallback} callback The callback function, accepting three arguments: error, data, response
- */
- this.headServicePayload = function(serviceName, payloadName, callback) {
- var postBody = null;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling headServicePayload");
- }
-
- // verify the required parameter 'payloadName' is set
- if (payloadName === undefined || payloadName === null) {
- throw new Error("Missing the required parameter 'payloadName' when calling headServicePayload");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName,
- 'payloadName': payloadName
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = null;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}/payloads/{payloadName}', 'HEAD',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the headServicePayloads operation.
- * @callback module:api/ServiceApi~headServicePayloadsCallback
- * @param {String} error Error message, if any.
- * @param data This operation does not return a value.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Get only response status and headers information but no response body for the endpoint.
- * Get response status and headers information for the endpoint. The Link header is provided in the header and they have rel set to prev, next, first, last and contain the relevant URL. It does not contain response body.
- * @param {String} serviceName The service name.
- * @param {Object} opts Optional parameters
- * @param {Number} opts.page The page number. (default to 1)
- * @param {Number} opts.perPage The number of items to list per page. (default to 20)
- * @param {module:api/ServiceApi~headServicePayloadsCallback} callback The callback function, accepting three arguments: error, data, response
- */
- this.headServicePayloads = function(serviceName, opts, callback) {
- opts = opts || {};
- var postBody = null;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling headServicePayloads");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName
- };
- var queryParams = {
- 'page': opts['page'],
- 'perPage': opts['perPage'],
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = null;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}/payloads', 'HEAD',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the headServices operation.
- * @callback module:api/ServiceApi~headServicesCallback
- * @param {String} error Error message, if any.
- * @param data This operation does not return a value.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Get only response status and headers information but no response body for the endpoint.
- * Get response status and headers information for the endpoint. The Link header is provided in the header and they have rel set to prev, next, first, last and contain the relevant URL. It does not contain response body.
- * @param {Object} opts Optional parameters
- * @param {Number} opts.page The page number. (default to 1)
- * @param {Number} opts.perPage The number of items to list per page. (default to 20)
- * @param {module:api/ServiceApi~headServicesCallback} callback The callback function, accepting three arguments: error, data, response
- */
- this.headServices = function(opts, callback) {
- opts = opts || {};
- var postBody = null;
-
-
- var pathParams = {
- };
- var queryParams = {
- 'page': opts['page'],
- 'perPage': opts['perPage'],
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = null;
-
- return this.apiClient.callApi(
- '/bus/services', 'HEAD',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the patchService operation.
- * @callback module:api/ServiceApi~patchServiceCallback
- * @param {String} error Error message, if any.
- * @param {module:model/ExtendedService} data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Partially update the service.
- * Allows to partially modify the service with the provided request parameters.
- * @param {String} serviceName The service name.
- * @param {module:model/Body} body The Service entity.
- * @param {module:api/ServiceApi~patchServiceCallback} callback The callback function, accepting three arguments: error, data, response
- * data is of type: {@link module:model/ExtendedService}
- */
- this.patchService = function(serviceName, body, callback) {
- var postBody = body;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling patchService");
- }
-
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling patchService");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = ExtendedService;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}', 'PATCH',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the patchServicePayload operation.
- * @callback module:api/ServiceApi~patchServicePayloadCallback
- * @param {String} error Error message, if any.
- * @param {module:model/Payload} data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Partially update the payload.
- * Allows to partially modify the payload with the provided request parameters.
- * @param {String} serviceName The service name.
- * @param {String} payloadName The payload name.
- * @param {module:model/Body1} body
- * @param {module:api/ServiceApi~patchServicePayloadCallback} callback The callback function, accepting three arguments: error, data, response
- * data is of type: {@link module:model/Payload}
- */
- this.patchServicePayload = function(serviceName, payloadName, body, callback) {
- var postBody = body;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling patchServicePayload");
- }
-
- // verify the required parameter 'payloadName' is set
- if (payloadName === undefined || payloadName === null) {
- throw new Error("Missing the required parameter 'payloadName' when calling patchServicePayload");
- }
-
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling patchServicePayload");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName,
- 'payloadName': payloadName
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = Payload;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}/payloads/{payloadName}', 'PATCH',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the updateService operation.
- * @callback module:api/ServiceApi~updateServiceCallback
- * @param {String} error Error message, if any.
- * @param {module:model/ExtendedService} data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Update the service.
- * Update the service by service name.
- * @param {String} serviceName The service name.
- * @param {module:model/ExtendedService} body
- * @param {module:api/ServiceApi~updateServiceCallback} callback The callback function, accepting three arguments: error, data, response
- * data is of type: {@link module:model/ExtendedService}
- */
- this.updateService = function(serviceName, body, callback) {
- var postBody = body;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling updateService");
- }
-
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling updateService");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = ExtendedService;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}', 'PUT',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the updateServicePayload operation.
- * @callback module:api/ServiceApi~updateServicePayloadCallback
- * @param {String} error Error message, if any.
- * @param {module:model/Payload} data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Update the service payload.
- * Update the payload for the given service.
- * @param {String} serviceName The service name.
- * @param {String} payloadName The payload name.
- * @param {module:model/Payload} body
- * @param {module:api/ServiceApi~updateServicePayloadCallback} callback The callback function, accepting three arguments: error, data, response
- * data is of type: {@link module:model/Payload}
- */
- this.updateServicePayload = function(serviceName, payloadName, body, callback) {
- var postBody = body;
-
- // verify the required parameter 'serviceName' is set
- if (serviceName === undefined || serviceName === null) {
- throw new Error("Missing the required parameter 'serviceName' when calling updateServicePayload");
- }
-
- // verify the required parameter 'payloadName' is set
- if (payloadName === undefined || payloadName === null) {
- throw new Error("Missing the required parameter 'payloadName' when calling updateServicePayload");
- }
-
- // verify the required parameter 'body' is set
- if (body === undefined || body === null) {
- throw new Error("Missing the required parameter 'body' when calling updateServicePayload");
- }
-
-
- var pathParams = {
- 'serviceName': serviceName,
- 'payloadName': payloadName
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = Payload;
-
- return this.apiClient.callApi(
- '/bus/services/{serviceName}/payloads/{payloadName}', 'PUT',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
- };
-
- return exports;
-}));
diff --git a/src/api/TopicsApi.js b/src/api/TopicsApi.js
deleted file mode 100644
index e201a09..0000000
--- a/src/api/TopicsApi.js
+++ /dev/null
@@ -1,134 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.TopicsApi = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
- /**
- * Topics service.
- * @module api/TopicsApi
- * @version 5.0.0
- */
-
- /**
- * Constructs a new TopicsApi.
- * @alias module:api/TopicsApi
- * @class
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
- * default to {@link module:ApiClient#instance} if unspecified.
- */
- var exports = function(apiClient) {
- this.apiClient = apiClient || ApiClient.instance;
-
-
- /**
- * Callback function to receive the result of the getTopics operation.
- * @callback module:api/TopicsApi~getTopicsCallback
- * @param {String} error Error message, if any.
- * @param {Array.<'String'>} data The data returned by the service call.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Get topics.
- * Get all topic names.
- * @param {module:api/TopicsApi~getTopicsCallback} callback The callback function, accepting three arguments: error, data, response
- * data is of type: {@link Array.<'String'>}
- */
- this.getTopics = function(callback) {
- var postBody = null;
-
-
- var pathParams = {
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = ['String'];
-
- return this.apiClient.callApi(
- '/bus/topics', 'GET',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
-
- /**
- * Callback function to receive the result of the headTopics operation.
- * @callback module:api/TopicsApi~headTopicsCallback
- * @param {String} error Error message, if any.
- * @param data This operation does not return a value.
- * @param {String} response The complete HTTP response.
- */
-
- /**
- * Get only response status and headers information but no response body for the endpoint.
- * Get response status and headers information for the endpoint. It does not contain response body.
- * @param {module:api/TopicsApi~headTopicsCallback} callback The callback function, accepting three arguments: error, data, response
- */
- this.headTopics = function(callback) {
- var postBody = null;
-
-
- var pathParams = {
- };
- var queryParams = {
- };
- var collectionQueryParams = {
- };
- var headerParams = {
- };
- var formParams = {
- };
-
- var authNames = ['Bearer'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = null;
-
- return this.apiClient.callApi(
- '/bus/topics', 'HEAD',
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, callback
- );
- }
- };
-
- return exports;
-}));
diff --git a/src/common/helper.js b/src/common/helper.js
new file mode 100644
index 0000000..af4da55
--- /dev/null
+++ b/src/common/helper.js
@@ -0,0 +1,67 @@
+
+const m2mAuth = require('tc-core-library-js').auth.m2m
+const request = require('superagent')
+const _ = require('lodash')
+
+/*
+ * Function to get M2M token
+ * @returns {Promise}
+ */
+function getM2Mtoken (config) {
+ const m2m = m2mAuth(_.pick(config, ['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME']))
+ return m2m.getMachineToken(config.AUTH0_CLIENT_ID, config.AUTH0_CLIENT_SECRET)
+}
+
+/**
+ * Function to send request to Bus API
+ * @param{String} reqType Type of the request POST / PATCH / PUT / GET / DELETE / HEAD
+ * @param(String) path Complete path of the Bus API URL
+ * @param{Object} reqBody Body of the request
+ * @returns {Promise}
+ */
+function * reqToBusAPI (config, reqType, path, reqBody) {
+ return getM2Mtoken(config).then((token) => {
+ // Based on request type perform necessary action
+ switch (reqType) {
+ case 'GET':
+ return request
+ .get(path)
+ .set('Authorization', `Bearer ${token}`)
+ .set('Content-Type', 'application/json')
+ case 'HEAD':
+ return request
+ .head(path)
+ .set('Authorization', `Bearer ${token}`)
+ .set('Content-Type', 'application/json')
+ case 'POST':
+ return request
+ .post(path)
+ .set('Authorization', `Bearer ${token}`)
+ .set('Content-Type', 'application/json')
+ .send(reqBody)
+ case 'PUT':
+ return request
+ .put(path)
+ .set('Authorization', `Bearer ${token}`)
+ .set('Content-Type', 'application/json')
+ .send(reqBody)
+ case 'PATCH':
+ return request
+ .patch(path)
+ .set('Authorization', `Bearer ${token}`)
+ .set('Content-Type', 'application/json')
+ .send(reqBody)
+ case 'DELETE':
+ return request
+ .delete(path)
+ .set('Authorization', `Bearer ${token}`)
+ .set('Content-Type', 'application/json')
+ default:
+ throw new Error('Invalid request type')
+ }
+ })
+}
+
+module.exports = {
+ reqToBusAPI
+}
diff --git a/src/index.js b/src/index.js
deleted file mode 100644
index d3c33cc..0000000
--- a/src/index.js
+++ /dev/null
@@ -1,173 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient', 'model/Accepted', 'model/BadRequest', 'model/Body', 'model/Body1', 'model/Conflict', 'model/EventPayload', 'model/Forbidden', 'model/HealthCheckStatus', 'model/NoContent', 'model/NotFound', 'model/NotModified', 'model/Payload', 'model/ServerError', 'model/Service', 'model/Unauthorized', 'model/ExtendedService', 'api/EventsApi', 'api/HealthchecksApi', 'api/PlaceholdersApi', 'api/ServiceApi', 'api/TopicsApi'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('./ApiClient'), require('./model/Accepted'), require('./model/BadRequest'), require('./model/Body'), require('./model/Body1'), require('./model/Conflict'), require('./model/EventPayload'), require('./model/Forbidden'), require('./model/HealthCheckStatus'), require('./model/NoContent'), require('./model/NotFound'), require('./model/NotModified'), require('./model/Payload'), require('./model/ServerError'), require('./model/Service'), require('./model/Unauthorized'), require('./model/ExtendedService'), require('./api/EventsApi'), require('./api/HealthchecksApi'), require('./api/PlaceholdersApi'), require('./api/ServiceApi'), require('./api/TopicsApi'));
- }
-}(function(ApiClient, Accepted, BadRequest, Body, Body1, Conflict, EventPayload, Forbidden, HealthCheckStatus, NoContent, NotFound, NotModified, Payload, ServerError, Service, Unauthorized, ExtendedService, EventsApi, HealthchecksApi, PlaceholdersApi, ServiceApi, TopicsApi) {
- 'use strict';
-
- /**
- * REST_API_for_Topcoder_Meta_Services_This_describes_a_service_that_can_give_information_on_other_services_existing_on_Topcoder_Available_service_links_can_be_listed_by_sending_GET_request__Also_each_service_can_return_links_to_further_services_in_their_responses__Pagination__Requests_that_return_multiple_items_will_be_paginated_to_20_items_by_default__You_can_specify__further_pages_with_the_page_parameter__You_can_also_set_a_custom_page__size_up_to_100_with_the_perPage_parameter___Pagination_response_data_is_included_in_http_headers__By_Default_the_response_header_contains_links_with_next_last_first_prev_resource_links_.
- * The index
module provides access to constructors for all the classes which comprise the public API.
- *
- * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
- *
- * var TopcoderMetaServicesRestApi = require('index'); // See note below*.
- * var xxxSvc = new TopcoderMetaServicesRestApi.XxxApi(); // Allocate the API class we're going to use.
- * var yyyModel = new TopcoderMetaServicesRestApi.Yyy(); // Construct a model instance.
- * yyyModel.someProperty = 'someValue';
- * ...
- * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
- * ...
- *
- * *NOTE: For a top-level AMD script, use require(['index'], function(){...})
- * and put the application logic within the callback function.
- *
- *
- * A non-AMD browser application (discouraged) might do something like this:
- *
- * var xxxSvc = new TopcoderMetaServicesRestApi.XxxApi(); // Allocate the API class we're going to use.
- * var yyy = new TopcoderMetaServicesRestApi.Yyy(); // Construct a model instance.
- * yyyModel.someProperty = 'someValue';
- * ...
- * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
- * ...
- *
- *
- * @module index
- * @version 5.0.0
- */
- var exports = {
- /**
- * The ApiClient constructor.
- * @property {module:ApiClient}
- */
- ApiClient: ApiClient,
- /**
- * The Accepted model constructor.
- * @property {module:model/Accepted}
- */
- Accepted: Accepted,
- /**
- * The BadRequest model constructor.
- * @property {module:model/BadRequest}
- */
- BadRequest: BadRequest,
- /**
- * The Body model constructor.
- * @property {module:model/Body}
- */
- Body: Body,
- /**
- * The Body1 model constructor.
- * @property {module:model/Body1}
- */
- Body1: Body1,
- /**
- * The Conflict model constructor.
- * @property {module:model/Conflict}
- */
- Conflict: Conflict,
- /**
- * The EventPayload model constructor.
- * @property {module:model/EventPayload}
- */
- EventPayload: EventPayload,
- /**
- * The Forbidden model constructor.
- * @property {module:model/Forbidden}
- */
- Forbidden: Forbidden,
- /**
- * The HealthCheckStatus model constructor.
- * @property {module:model/HealthCheckStatus}
- */
- HealthCheckStatus: HealthCheckStatus,
- /**
- * The NoContent model constructor.
- * @property {module:model/NoContent}
- */
- NoContent: NoContent,
- /**
- * The NotFound model constructor.
- * @property {module:model/NotFound}
- */
- NotFound: NotFound,
- /**
- * The NotModified model constructor.
- * @property {module:model/NotModified}
- */
- NotModified: NotModified,
- /**
- * The Payload model constructor.
- * @property {module:model/Payload}
- */
- Payload: Payload,
- /**
- * The ServerError model constructor.
- * @property {module:model/ServerError}
- */
- ServerError: ServerError,
- /**
- * The Service model constructor.
- * @property {module:model/Service}
- */
- Service: Service,
- /**
- * The Unauthorized model constructor.
- * @property {module:model/Unauthorized}
- */
- Unauthorized: Unauthorized,
- /**
- * The ExtendedService model constructor.
- * @property {module:model/ExtendedService}
- */
- ExtendedService: ExtendedService,
- /**
- * The EventsApi service constructor.
- * @property {module:api/EventsApi}
- */
- EventsApi: EventsApi,
- /**
- * The HealthchecksApi service constructor.
- * @property {module:api/HealthchecksApi}
- */
- HealthchecksApi: HealthchecksApi,
- /**
- * The PlaceholdersApi service constructor.
- * @property {module:api/PlaceholdersApi}
- */
- PlaceholdersApi: PlaceholdersApi,
- /**
- * The ServiceApi service constructor.
- * @property {module:api/ServiceApi}
- */
- ServiceApi: ServiceApi,
- /**
- * The TopicsApi service constructor.
- * @property {module:api/TopicsApi}
- */
- TopicsApi: TopicsApi
- };
-
- return exports;
-}));
diff --git a/src/model/Accepted.js b/src/model/Accepted.js
deleted file mode 100644
index 71bd739..0000000
--- a/src/model/Accepted.js
+++ /dev/null
@@ -1,75 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.Accepted = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The Accepted model module.
- * @module model/Accepted
- * @version 5.0.0
- */
-
- /**
- * Constructs a new Accepted
.
- * Accepted - request has been accepted for processing, but the processing has not been completed.
- * @alias module:model/Accepted
- * @class
- */
- var exports = function() {
- var _this = this;
-
- };
-
- /**
- * Constructs a Accepted
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Accepted} obj Optional instance to populate.
- * @return {module:model/Accepted} The populated Accepted
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- }
- return obj;
- }
-
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/BadRequest.js b/src/model/BadRequest.js
deleted file mode 100644
index ba871e9..0000000
--- a/src/model/BadRequest.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.BadRequest = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The BadRequest model module.
- * @module model/BadRequest
- * @version 5.0.0
- */
-
- /**
- * Constructs a new BadRequest
.
- * The bad request error entity.
- * @alias module:model/BadRequest
- * @class
- */
- var exports = function() {
- var _this = this;
-
-
- };
-
- /**
- * Constructs a BadRequest
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/BadRequest} obj Optional instance to populate.
- * @return {module:model/BadRequest} The populated BadRequest
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * The bad request error message.
- * @member {String} message
- */
- exports.prototype['message'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/Body.js b/src/model/Body.js
deleted file mode 100644
index 98a8a68..0000000
--- a/src/model/Body.js
+++ /dev/null
@@ -1,128 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient', 'model/Payload'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'), require('./Payload'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.Body = factory(root.TopcoderMetaServicesRestApi.ApiClient, root.TopcoderMetaServicesRestApi.Payload);
- }
-}(this, function(ApiClient, Payload) {
- 'use strict';
-
-
-
-
- /**
- * The Body model module.
- * @module model/Body
- * @version 5.0.0
- */
-
- /**
- * Constructs a new Body
.
- * @alias module:model/Body
- * @class
- */
- var exports = function() {
- var _this = this;
-
-
-
-
-
-
-
- };
-
- /**
- * Constructs a Body
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Body} obj Optional instance to populate.
- * @return {module:model/Body} The populated Body
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('version')) {
- obj['version'] = ApiClient.convertToType(data['version'], 'String');
- }
- if (data.hasOwnProperty('commitHash')) {
- obj['commitHash'] = ApiClient.convertToType(data['commitHash'], 'String');
- }
- if (data.hasOwnProperty('description')) {
- obj['description'] = ApiClient.convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('baseURL')) {
- obj['baseURL'] = ApiClient.convertToType(data['baseURL'], 'String');
- }
- if (data.hasOwnProperty('payloads')) {
- obj['payloads'] = ApiClient.convertToType(data['payloads'], [Payload]);
- }
- }
- return obj;
- }
-
- /**
- * The service name.
- * @member {String} name
- */
- exports.prototype['name'] = undefined;
- /**
- * The service version.
- * @member {String} version
- */
- exports.prototype['version'] = undefined;
- /**
- * The service commit hash.
- * @member {String} commitHash
- */
- exports.prototype['commitHash'] = undefined;
- /**
- * The service description.
- * @member {String} description
- */
- exports.prototype['description'] = undefined;
- /**
- * The service base URL.
- * @member {String} baseURL
- */
- exports.prototype['baseURL'] = undefined;
- /**
- * The service payloads
- * @member {Array.} payloads
- */
- exports.prototype['payloads'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/Body1.js b/src/model/Body1.js
deleted file mode 100644
index b5d7402..0000000
--- a/src/model/Body1.js
+++ /dev/null
@@ -1,111 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.Body1 = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The Body1 model module.
- * @module model/Body1
- * @version 5.0.0
- */
-
- /**
- * Constructs a new Body1
.
- * The payload entity.
- * @alias module:model/Body1
- * @class
- */
- var exports = function() {
- var _this = this;
-
-
-
-
-
- };
-
- /**
- * Constructs a Body1
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Body1} obj Optional instance to populate.
- * @return {module:model/Body1} The populated Body1
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'String');
- }
- if (data.hasOwnProperty('topics')) {
- obj['topics'] = ApiClient.convertToType(data['topics'], ['String']);
- }
- if (data.hasOwnProperty('payloadMimeType')) {
- obj['payloadMimeType'] = ApiClient.convertToType(data['payloadMimeType'], 'String');
- }
- if (data.hasOwnProperty('payloadFormat')) {
- obj['payloadFormat'] = ApiClient.convertToType(data['payloadFormat'], Object);
- }
- }
- return obj;
- }
-
- /**
- * The payload name.
- * @member {String} id
- */
- exports.prototype['id'] = undefined;
- /**
- * The list of topics for a payload.
- * @member {Array.} topics
- */
- exports.prototype['topics'] = undefined;
- /**
- * The payload mime type.
- * @member {String} payloadMimeType
- */
- exports.prototype['payloadMimeType'] = undefined;
- /**
- * The payload format.
- * @member {Object} payloadFormat
- */
- exports.prototype['payloadFormat'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/Conflict.js b/src/model/Conflict.js
deleted file mode 100644
index 38a3f80..0000000
--- a/src/model/Conflict.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.Conflict = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The Conflict model module.
- * @module model/Conflict
- * @version 5.0.0
- */
-
- /**
- * Constructs a new Conflict
.
- * The conflict error entity.
- * @alias module:model/Conflict
- * @class
- * @param message {String} The conflict error message.
- */
- var exports = function(message) {
- var _this = this;
-
- _this['message'] = message;
- };
-
- /**
- * Constructs a Conflict
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Conflict} obj Optional instance to populate.
- * @return {module:model/Conflict} The populated Conflict
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * The conflict error message.
- * @member {String} message
- */
- exports.prototype['message'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/EventPayload.js b/src/model/EventPayload.js
deleted file mode 100644
index 4a59e0e..0000000
--- a/src/model/EventPayload.js
+++ /dev/null
@@ -1,125 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.EventPayload = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The EventPayload model module.
- * @module model/EventPayload
- * @version 5.0.0
- */
-
- /**
- * Constructs a new EventPayload
.
- * The event payload entity.
- * @alias module:model/EventPayload
- * @class
- * @param topic {String} Topic name should be a dot separated fully qualified name i.e. domain.type.operation.
- * @param originator {String} Service repository name, from where message is published.
- * @param timestamp {Date} Timestamp at which message is published. The date-time notation as defined by RFC 3339, section 5.6, for example, 2018-04-13T00:00:00Z
- * @param mimeType {String} Mime-type for 'payload'.
- * @param payload {Object} Actual payload depending on mime-type for consumer.
- */
- var exports = function(topic, originator, timestamp, mimeType, payload) {
- var _this = this;
-
- _this['topic'] = topic;
- _this['originator'] = originator;
- _this['timestamp'] = timestamp;
- _this['mime-type'] = mimeType;
- _this['payload'] = payload;
- };
-
- /**
- * Constructs a EventPayload
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/EventPayload} obj Optional instance to populate.
- * @return {module:model/EventPayload} The populated EventPayload
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('topic')) {
- obj['topic'] = ApiClient.convertToType(data['topic'], 'String');
- }
- if (data.hasOwnProperty('originator')) {
- obj['originator'] = ApiClient.convertToType(data['originator'], 'String');
- }
- if (data.hasOwnProperty('timestamp')) {
- obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'Date');
- }
- if (data.hasOwnProperty('mime-type')) {
- obj['mime-type'] = ApiClient.convertToType(data['mime-type'], 'String');
- }
- if (data.hasOwnProperty('payload')) {
- obj['payload'] = ApiClient.convertToType(data['payload'], Object);
- }
- }
- return obj;
- }
-
- /**
- * Topic name should be a dot separated fully qualified name i.e. domain.type.operation.
- * @member {String} topic
- */
- exports.prototype['topic'] = undefined;
- /**
- * Service repository name, from where message is published.
- * @member {String} originator
- */
- exports.prototype['originator'] = undefined;
- /**
- * Timestamp at which message is published. The date-time notation as defined by RFC 3339, section 5.6, for example, 2018-04-13T00:00:00Z
- * @member {Date} timestamp
- */
- exports.prototype['timestamp'] = undefined;
- /**
- * Mime-type for 'payload'.
- * @member {String} mime-type
- */
- exports.prototype['mime-type'] = undefined;
- /**
- * Actual payload depending on mime-type for consumer.
- * @member {Object} payload
- */
- exports.prototype['payload'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/ExtendedService.js b/src/model/ExtendedService.js
deleted file mode 100644
index 8a30fd0..0000000
--- a/src/model/ExtendedService.js
+++ /dev/null
@@ -1,130 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient', 'model/Payload', 'model/Service'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'), require('./Payload'), require('./Service'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.ExtendedService = factory(root.TopcoderMetaServicesRestApi.ApiClient, root.TopcoderMetaServicesRestApi.Payload, root.TopcoderMetaServicesRestApi.Service);
- }
-}(this, function(ApiClient, Payload, Service) {
- 'use strict';
-
-
-
-
- /**
- * The ExtendedService model module.
- * @module model/ExtendedService
- * @version 5.0.0
- */
-
- /**
- * Constructs a new ExtendedService
.
- * The extended service entity.
- * @alias module:model/ExtendedService
- * @class
- * @implements module:model/Service
- * @param name {String} The service name.
- * @param version {String} The service version.
- * @param commitHash {String} The service commit hash.
- * @param description {String} The service description.
- * @param baseURL {String} The service base URL.
- * @param payloads {Array.} The service payloads
- */
- var exports = function(name, version, commitHash, description, baseURL, payloads) {
- var _this = this;
-
- Service.call(_this, name, version, commitHash, description, baseURL, payloads);
-
- };
-
- /**
- * Constructs a ExtendedService
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ExtendedService} obj Optional instance to populate.
- * @return {module:model/ExtendedService} The populated ExtendedService
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- Service.constructFromObject(data, obj);
- if (data.hasOwnProperty('serviceId')) {
- obj['serviceId'] = ApiClient.convertToType(data['serviceId'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * The service id.
- * @member {String} serviceId
- */
- exports.prototype['serviceId'] = undefined;
-
- // Implement Service interface:
- /**
- * The service name.
- * @member {String} name
- */
-exports.prototype['name'] = undefined;
-
- /**
- * The service version.
- * @member {String} version
- */
-exports.prototype['version'] = undefined;
-
- /**
- * The service commit hash.
- * @member {String} commitHash
- */
-exports.prototype['commitHash'] = undefined;
-
- /**
- * The service description.
- * @member {String} description
- */
-exports.prototype['description'] = undefined;
-
- /**
- * The service base URL.
- * @member {String} baseURL
- */
-exports.prototype['baseURL'] = undefined;
-
- /**
- * The service payloads
- * @member {Array.} payloads
- */
-exports.prototype['payloads'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/Forbidden.js b/src/model/Forbidden.js
deleted file mode 100644
index a19dcb7..0000000
--- a/src/model/Forbidden.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.Forbidden = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The Forbidden model module.
- * @module model/Forbidden
- * @version 5.0.0
- */
-
- /**
- * Constructs a new Forbidden
.
- * The permission error entity.
- * @alias module:model/Forbidden
- * @class
- */
- var exports = function() {
- var _this = this;
-
-
- };
-
- /**
- * Constructs a Forbidden
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Forbidden} obj Optional instance to populate.
- * @return {module:model/Forbidden} The populated Forbidden
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * The forbidden error message.
- * @member {String} message
- */
- exports.prototype['message'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/HealthCheckStatus.js b/src/model/HealthCheckStatus.js
deleted file mode 100644
index 8cf63fc..0000000
--- a/src/model/HealthCheckStatus.js
+++ /dev/null
@@ -1,86 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.HealthCheckStatus = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The HealthCheckStatus model module.
- * @module model/HealthCheckStatus
- * @version 5.0.0
- */
-
- /**
- * Constructs a new HealthCheckStatus
.
- * Health check response.
- * @alias module:model/HealthCheckStatus
- * @class
- * @param health {String} Health check status.
- */
- var exports = function(health) {
- var _this = this;
-
- _this['health'] = health;
- };
-
- /**
- * Constructs a HealthCheckStatus
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/HealthCheckStatus} obj Optional instance to populate.
- * @return {module:model/HealthCheckStatus} The populated HealthCheckStatus
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('health')) {
- obj['health'] = ApiClient.convertToType(data['health'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Health check status.
- * @member {String} health
- * @default 'ok'
- */
- exports.prototype['health'] = 'ok';
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/NoContent.js b/src/model/NoContent.js
deleted file mode 100644
index 1575344..0000000
--- a/src/model/NoContent.js
+++ /dev/null
@@ -1,75 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.NoContent = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The NoContent model module.
- * @module model/NoContent
- * @version 5.0.0
- */
-
- /**
- * Constructs a new NoContent
.
- * No Content - The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.
- * @alias module:model/NoContent
- * @class
- */
- var exports = function() {
- var _this = this;
-
- };
-
- /**
- * Constructs a NoContent
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/NoContent} obj Optional instance to populate.
- * @return {module:model/NoContent} The populated NoContent
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- }
- return obj;
- }
-
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/NotFound.js b/src/model/NotFound.js
deleted file mode 100644
index e81fed8..0000000
--- a/src/model/NotFound.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.NotFound = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The NotFound model module.
- * @module model/NotFound
- * @version 5.0.0
- */
-
- /**
- * Constructs a new NotFound
.
- * The not found error entity.
- * @alias module:model/NotFound
- * @class
- */
- var exports = function() {
- var _this = this;
-
-
- };
-
- /**
- * Constructs a NotFound
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/NotFound} obj Optional instance to populate.
- * @return {module:model/NotFound} The populated NotFound
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * The not found error message.
- * @member {String} message
- */
- exports.prototype['message'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/NotModified.js b/src/model/NotModified.js
deleted file mode 100644
index 21ccde4..0000000
--- a/src/model/NotModified.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.NotModified = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The NotModified model module.
- * @module model/NotModified
- * @version 5.0.0
- */
-
- /**
- * Constructs a new NotModified
.
- * The not modified entity.
- * @alias module:model/NotModified
- * @class
- */
- var exports = function() {
- var _this = this;
-
-
- };
-
- /**
- * Constructs a NotModified
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/NotModified} obj Optional instance to populate.
- * @return {module:model/NotModified} The populated NotModified
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * The not modified error message.
- * @member {String} message
- */
- exports.prototype['message'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/Payload.js b/src/model/Payload.js
deleted file mode 100644
index 79f0783..0000000
--- a/src/model/Payload.js
+++ /dev/null
@@ -1,114 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.Payload = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The Payload model module.
- * @module model/Payload
- * @version 5.0.0
- */
-
- /**
- * Constructs a new Payload
.
- * The payload entity.
- * @alias module:model/Payload
- * @class
- * @param topics {Array.} The list of topics for a payload.
- * @param payloadMimeType {String} The payload mime type.
- * @param payloadFormat {Object} The payload format.
- */
- var exports = function(topics, payloadMimeType, payloadFormat) {
- var _this = this;
-
-
- _this['topics'] = topics;
- _this['payloadMimeType'] = payloadMimeType;
- _this['payloadFormat'] = payloadFormat;
- };
-
- /**
- * Constructs a Payload
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Payload} obj Optional instance to populate.
- * @return {module:model/Payload} The populated Payload
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'String');
- }
- if (data.hasOwnProperty('topics')) {
- obj['topics'] = ApiClient.convertToType(data['topics'], ['String']);
- }
- if (data.hasOwnProperty('payloadMimeType')) {
- obj['payloadMimeType'] = ApiClient.convertToType(data['payloadMimeType'], 'String');
- }
- if (data.hasOwnProperty('payloadFormat')) {
- obj['payloadFormat'] = ApiClient.convertToType(data['payloadFormat'], Object);
- }
- }
- return obj;
- }
-
- /**
- * The payload name.
- * @member {String} id
- */
- exports.prototype['id'] = undefined;
- /**
- * The list of topics for a payload.
- * @member {Array.} topics
- */
- exports.prototype['topics'] = undefined;
- /**
- * The payload mime type.
- * @member {String} payloadMimeType
- */
- exports.prototype['payloadMimeType'] = undefined;
- /**
- * The payload format.
- * @member {Object} payloadFormat
- */
- exports.prototype['payloadFormat'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/ServerError.js b/src/model/ServerError.js
deleted file mode 100644
index ac893fc..0000000
--- a/src/model/ServerError.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.ServerError = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The ServerError model module.
- * @module model/ServerError
- * @version 5.0.0
- */
-
- /**
- * Constructs a new ServerError
.
- * The server error entity.
- * @alias module:model/ServerError
- * @class
- */
- var exports = function() {
- var _this = this;
-
-
- };
-
- /**
- * Constructs a ServerError
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ServerError} obj Optional instance to populate.
- * @return {module:model/ServerError} The populated ServerError
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * The server error message.
- * @member {String} message
- */
- exports.prototype['message'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/Service.js b/src/model/Service.js
deleted file mode 100644
index b262756..0000000
--- a/src/model/Service.js
+++ /dev/null
@@ -1,135 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient', 'model/Payload'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'), require('./Payload'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.Service = factory(root.TopcoderMetaServicesRestApi.ApiClient, root.TopcoderMetaServicesRestApi.Payload);
- }
-}(this, function(ApiClient, Payload) {
- 'use strict';
-
-
-
-
- /**
- * The Service model module.
- * @module model/Service
- * @version 5.0.0
- */
-
- /**
- * Constructs a new Service
.
- * The Service entity.
- * @alias module:model/Service
- * @class
- * @param name {String} The service name.
- * @param version {String} The service version.
- * @param commitHash {String} The service commit hash.
- * @param description {String} The service description.
- * @param baseURL {String} The service base URL.
- * @param payloads {Array.} The service payloads
- */
- var exports = function(name, version, commitHash, description, baseURL, payloads) {
- var _this = this;
-
- _this['name'] = name;
- _this['version'] = version;
- _this['commitHash'] = commitHash;
- _this['description'] = description;
- _this['baseURL'] = baseURL;
- _this['payloads'] = payloads;
- };
-
- /**
- * Constructs a Service
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Service} obj Optional instance to populate.
- * @return {module:model/Service} The populated Service
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('version')) {
- obj['version'] = ApiClient.convertToType(data['version'], 'String');
- }
- if (data.hasOwnProperty('commitHash')) {
- obj['commitHash'] = ApiClient.convertToType(data['commitHash'], 'String');
- }
- if (data.hasOwnProperty('description')) {
- obj['description'] = ApiClient.convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('baseURL')) {
- obj['baseURL'] = ApiClient.convertToType(data['baseURL'], 'String');
- }
- if (data.hasOwnProperty('payloads')) {
- obj['payloads'] = ApiClient.convertToType(data['payloads'], [Payload]);
- }
- }
- return obj;
- }
-
- /**
- * The service name.
- * @member {String} name
- */
- exports.prototype['name'] = undefined;
- /**
- * The service version.
- * @member {String} version
- */
- exports.prototype['version'] = undefined;
- /**
- * The service commit hash.
- * @member {String} commitHash
- */
- exports.prototype['commitHash'] = undefined;
- /**
- * The service description.
- * @member {String} description
- */
- exports.prototype['description'] = undefined;
- /**
- * The service base URL.
- * @member {String} baseURL
- */
- exports.prototype['baseURL'] = undefined;
- /**
- * The service payloads
- * @member {Array.} payloads
- */
- exports.prototype['payloads'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/src/model/Unauthorized.js b/src/model/Unauthorized.js
deleted file mode 100644
index 39307f9..0000000
--- a/src/model/Unauthorized.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['ApiClient'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- module.exports = factory(require('../ApiClient'));
- } else {
- // Browser globals (root is window)
- if (!root.TopcoderMetaServicesRestApi) {
- root.TopcoderMetaServicesRestApi = {};
- }
- root.TopcoderMetaServicesRestApi.Unauthorized = factory(root.TopcoderMetaServicesRestApi.ApiClient);
- }
-}(this, function(ApiClient) {
- 'use strict';
-
-
-
-
- /**
- * The Unauthorized model module.
- * @module model/Unauthorized
- * @version 5.0.0
- */
-
- /**
- * Constructs a new Unauthorized
.
- * The unauthorized error entity.
- * @alias module:model/Unauthorized
- * @class
- */
- var exports = function() {
- var _this = this;
-
-
- };
-
- /**
- * Constructs a Unauthorized
from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Unauthorized} obj Optional instance to populate.
- * @return {module:model/Unauthorized} The populated Unauthorized
instance.
- */
- exports.constructFromObject = function(data, obj) {
- if (data) {
- obj = obj || new exports();
-
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * The unauthorized error message.
- * @member {String} message
- */
- exports.prototype['message'] = undefined;
-
-
-
- return exports;
-}));
-
-
diff --git a/test/api/EventsApi.spec.js b/test/api/EventsApi.spec.js
deleted file mode 100644
index 9bc2c68..0000000
--- a/test/api/EventsApi.spec.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.EventsApi();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('EventsApi', function() {
- describe('postEvent', function() {
- it('should call postEvent successfully', function(done) {
- //uncomment below and update the code to test postEvent
- //instance.postEvent(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- });
-
-}));
diff --git a/test/api/HealthchecksApi.spec.js b/test/api/HealthchecksApi.spec.js
deleted file mode 100644
index 0f47000..0000000
--- a/test/api/HealthchecksApi.spec.js
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.HealthchecksApi();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('HealthchecksApi', function() {
- describe('getHealth', function() {
- it('should call getHealth successfully', function(done) {
- //uncomment below and update the code to test getHealth
- //instance.getHealth(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('headHealth', function() {
- it('should call headHealth successfully', function(done) {
- //uncomment below and update the code to test headHealth
- //instance.headHealth(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- });
-
-}));
diff --git a/test/api/PlaceholdersApi.spec.js b/test/api/PlaceholdersApi.spec.js
deleted file mode 100644
index 1c07e43..0000000
--- a/test/api/PlaceholdersApi.spec.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.PlaceholdersApi();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('PlaceholdersApi', function() {
- describe('clearPlaceholdersCache', function() {
- it('should call clearPlaceholdersCache successfully', function(done) {
- //uncomment below and update the code to test clearPlaceholdersCache
- //instance.clearPlaceholdersCache(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- });
-
-}));
diff --git a/test/api/ServiceApi.spec.js b/test/api/ServiceApi.spec.js
deleted file mode 100644
index a91cbbf..0000000
--- a/test/api/ServiceApi.spec.js
+++ /dev/null
@@ -1,216 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.ServiceApi();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('ServiceApi', function() {
- describe('createService', function() {
- it('should call createService successfully', function(done) {
- //uncomment below and update the code to test createService
- //instance.createService(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('createServicePayload', function() {
- it('should call createServicePayload successfully', function(done) {
- //uncomment below and update the code to test createServicePayload
- //instance.createServicePayload(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('deleteService', function() {
- it('should call deleteService successfully', function(done) {
- //uncomment below and update the code to test deleteService
- //instance.deleteService(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('deleteServicePayload', function() {
- it('should call deleteServicePayload successfully', function(done) {
- //uncomment below and update the code to test deleteServicePayload
- //instance.deleteServicePayload(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('getService', function() {
- it('should call getService successfully', function(done) {
- //uncomment below and update the code to test getService
- //instance.getService(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('getServicePayload', function() {
- it('should call getServicePayload successfully', function(done) {
- //uncomment below and update the code to test getServicePayload
- //instance.getServicePayload(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('getServicePayloads', function() {
- it('should call getServicePayloads successfully', function(done) {
- //uncomment below and update the code to test getServicePayloads
- //instance.getServicePayloads(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('getServices', function() {
- it('should call getServices successfully', function(done) {
- //uncomment below and update the code to test getServices
- //instance.getServices(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('headService', function() {
- it('should call headService successfully', function(done) {
- //uncomment below and update the code to test headService
- //instance.headService(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('headServicePayload', function() {
- it('should call headServicePayload successfully', function(done) {
- //uncomment below and update the code to test headServicePayload
- //instance.headServicePayload(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('headServicePayloads', function() {
- it('should call headServicePayloads successfully', function(done) {
- //uncomment below and update the code to test headServicePayloads
- //instance.headServicePayloads(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('headServices', function() {
- it('should call headServices successfully', function(done) {
- //uncomment below and update the code to test headServices
- //instance.headServices(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('patchService', function() {
- it('should call patchService successfully', function(done) {
- //uncomment below and update the code to test patchService
- //instance.patchService(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('patchServicePayload', function() {
- it('should call patchServicePayload successfully', function(done) {
- //uncomment below and update the code to test patchServicePayload
- //instance.patchServicePayload(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('updateService', function() {
- it('should call updateService successfully', function(done) {
- //uncomment below and update the code to test updateService
- //instance.updateService(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('updateServicePayload', function() {
- it('should call updateServicePayload successfully', function(done) {
- //uncomment below and update the code to test updateServicePayload
- //instance.updateServicePayload(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- });
-
-}));
diff --git a/test/api/TopicsApi.spec.js b/test/api/TopicsApi.spec.js
deleted file mode 100644
index bf5e570..0000000
--- a/test/api/TopicsApi.spec.js
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.TopicsApi();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('TopicsApi', function() {
- describe('getTopics', function() {
- it('should call getTopics successfully', function(done) {
- //uncomment below and update the code to test getTopics
- //instance.getTopics(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- describe('headTopics', function() {
- it('should call headTopics successfully', function(done) {
- //uncomment below and update the code to test headTopics
- //instance.headTopics(function(error) {
- // if (error) throw error;
- //expect().to.be();
- //});
- done();
- });
- });
- });
-
-}));
diff --git a/test/model/Accepted.spec.js b/test/model/Accepted.spec.js
deleted file mode 100644
index 1b31ea0..0000000
--- a/test/model/Accepted.spec.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.Accepted();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('Accepted', function() {
- it('should create an instance of Accepted', function() {
- // uncomment below and update the code to test Accepted
- //var instance = new TopcoderMetaServicesRestApi.Accepted();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.Accepted);
- });
-
- });
-
-}));
diff --git a/test/model/BadRequest.spec.js b/test/model/BadRequest.spec.js
deleted file mode 100644
index ae254c7..0000000
--- a/test/model/BadRequest.spec.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.BadRequest();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('BadRequest', function() {
- it('should create an instance of BadRequest', function() {
- // uncomment below and update the code to test BadRequest
- //var instance = new TopcoderMetaServicesRestApi.BadRequest();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.BadRequest);
- });
-
- it('should have the property message (base name: "message")', function() {
- // uncomment below and update the code to test the property message
- //var instance = new TopcoderMetaServicesRestApi.BadRequest();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/Body.spec.js b/test/model/Body.spec.js
deleted file mode 100644
index 12bc55a..0000000
--- a/test/model/Body.spec.js
+++ /dev/null
@@ -1,98 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.Body();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('Body', function() {
- it('should create an instance of Body', function() {
- // uncomment below and update the code to test Body
- //var instance = new TopcoderMetaServicesRestApi.Body();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.Body);
- });
-
- it('should have the property name (base name: "name")', function() {
- // uncomment below and update the code to test the property name
- //var instance = new TopcoderMetaServicesRestApi.Body();
- //expect(instance).to.be();
- });
-
- it('should have the property version (base name: "version")', function() {
- // uncomment below and update the code to test the property version
- //var instance = new TopcoderMetaServicesRestApi.Body();
- //expect(instance).to.be();
- });
-
- it('should have the property commitHash (base name: "commitHash")', function() {
- // uncomment below and update the code to test the property commitHash
- //var instance = new TopcoderMetaServicesRestApi.Body();
- //expect(instance).to.be();
- });
-
- it('should have the property description (base name: "description")', function() {
- // uncomment below and update the code to test the property description
- //var instance = new TopcoderMetaServicesRestApi.Body();
- //expect(instance).to.be();
- });
-
- it('should have the property baseURL (base name: "baseURL")', function() {
- // uncomment below and update the code to test the property baseURL
- //var instance = new TopcoderMetaServicesRestApi.Body();
- //expect(instance).to.be();
- });
-
- it('should have the property payloads (base name: "payloads")', function() {
- // uncomment below and update the code to test the property payloads
- //var instance = new TopcoderMetaServicesRestApi.Body();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/Body1.spec.js b/test/model/Body1.spec.js
deleted file mode 100644
index 6ce960e..0000000
--- a/test/model/Body1.spec.js
+++ /dev/null
@@ -1,86 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.Body1();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('Body1', function() {
- it('should create an instance of Body1', function() {
- // uncomment below and update the code to test Body1
- //var instance = new TopcoderMetaServicesRestApi.Body1();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.Body1);
- });
-
- it('should have the property id (base name: "id")', function() {
- // uncomment below and update the code to test the property id
- //var instance = new TopcoderMetaServicesRestApi.Body1();
- //expect(instance).to.be();
- });
-
- it('should have the property topics (base name: "topics")', function() {
- // uncomment below and update the code to test the property topics
- //var instance = new TopcoderMetaServicesRestApi.Body1();
- //expect(instance).to.be();
- });
-
- it('should have the property payloadMimeType (base name: "payloadMimeType")', function() {
- // uncomment below and update the code to test the property payloadMimeType
- //var instance = new TopcoderMetaServicesRestApi.Body1();
- //expect(instance).to.be();
- });
-
- it('should have the property payloadFormat (base name: "payloadFormat")', function() {
- // uncomment below and update the code to test the property payloadFormat
- //var instance = new TopcoderMetaServicesRestApi.Body1();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/Conflict.spec.js b/test/model/Conflict.spec.js
deleted file mode 100644
index 354655a..0000000
--- a/test/model/Conflict.spec.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.Conflict();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('Conflict', function() {
- it('should create an instance of Conflict', function() {
- // uncomment below and update the code to test Conflict
- //var instance = new TopcoderMetaServicesRestApi.Conflict();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.Conflict);
- });
-
- it('should have the property message (base name: "message")', function() {
- // uncomment below and update the code to test the property message
- //var instance = new TopcoderMetaServicesRestApi.Conflict();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/EventPayload.spec.js b/test/model/EventPayload.spec.js
deleted file mode 100644
index bc21e70..0000000
--- a/test/model/EventPayload.spec.js
+++ /dev/null
@@ -1,92 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.EventPayload();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('EventPayload', function() {
- it('should create an instance of EventPayload', function() {
- // uncomment below and update the code to test EventPayload
- //var instance = new TopcoderMetaServicesRestApi.EventPayload();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.EventPayload);
- });
-
- it('should have the property topic (base name: "topic")', function() {
- // uncomment below and update the code to test the property topic
- //var instance = new TopcoderMetaServicesRestApi.EventPayload();
- //expect(instance).to.be();
- });
-
- it('should have the property originator (base name: "originator")', function() {
- // uncomment below and update the code to test the property originator
- //var instance = new TopcoderMetaServicesRestApi.EventPayload();
- //expect(instance).to.be();
- });
-
- it('should have the property timestamp (base name: "timestamp")', function() {
- // uncomment below and update the code to test the property timestamp
- //var instance = new TopcoderMetaServicesRestApi.EventPayload();
- //expect(instance).to.be();
- });
-
- it('should have the property mimeType (base name: "mime-type")', function() {
- // uncomment below and update the code to test the property mimeType
- //var instance = new TopcoderMetaServicesRestApi.EventPayload();
- //expect(instance).to.be();
- });
-
- it('should have the property payload (base name: "payload")', function() {
- // uncomment below and update the code to test the property payload
- //var instance = new TopcoderMetaServicesRestApi.EventPayload();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/ExtendedService.spec.js b/test/model/ExtendedService.spec.js
deleted file mode 100644
index 03837a2..0000000
--- a/test/model/ExtendedService.spec.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.ExtendedService();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('ExtendedService', function() {
- it('should create an instance of ExtendedService', function() {
- // uncomment below and update the code to test ExtendedService
- //var instance = new TopcoderMetaServicesRestApi.ExtendedService();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.ExtendedService);
- });
-
- it('should have the property serviceId (base name: "serviceId")', function() {
- // uncomment below and update the code to test the property serviceId
- //var instance = new TopcoderMetaServicesRestApi.ExtendedService();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/Forbidden.spec.js b/test/model/Forbidden.spec.js
deleted file mode 100644
index b054d60..0000000
--- a/test/model/Forbidden.spec.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.Forbidden();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('Forbidden', function() {
- it('should create an instance of Forbidden', function() {
- // uncomment below and update the code to test Forbidden
- //var instance = new TopcoderMetaServicesRestApi.Forbidden();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.Forbidden);
- });
-
- it('should have the property message (base name: "message")', function() {
- // uncomment below and update the code to test the property message
- //var instance = new TopcoderMetaServicesRestApi.Forbidden();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/HealthCheckStatus.spec.js b/test/model/HealthCheckStatus.spec.js
deleted file mode 100644
index 49dc05e..0000000
--- a/test/model/HealthCheckStatus.spec.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.HealthCheckStatus();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('HealthCheckStatus', function() {
- it('should create an instance of HealthCheckStatus', function() {
- // uncomment below and update the code to test HealthCheckStatus
- //var instance = new TopcoderMetaServicesRestApi.HealthCheckStatus();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.HealthCheckStatus);
- });
-
- it('should have the property health (base name: "health")', function() {
- // uncomment below and update the code to test the property health
- //var instance = new TopcoderMetaServicesRestApi.HealthCheckStatus();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/NoContent.spec.js b/test/model/NoContent.spec.js
deleted file mode 100644
index 1e4efcc..0000000
--- a/test/model/NoContent.spec.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.NoContent();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('NoContent', function() {
- it('should create an instance of NoContent', function() {
- // uncomment below and update the code to test NoContent
- //var instance = new TopcoderMetaServicesRestApi.NoContent();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.NoContent);
- });
-
- });
-
-}));
diff --git a/test/model/NotFound.spec.js b/test/model/NotFound.spec.js
deleted file mode 100644
index 6f537bc..0000000
--- a/test/model/NotFound.spec.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.NotFound();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('NotFound', function() {
- it('should create an instance of NotFound', function() {
- // uncomment below and update the code to test NotFound
- //var instance = new TopcoderMetaServicesRestApi.NotFound();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.NotFound);
- });
-
- it('should have the property message (base name: "message")', function() {
- // uncomment below and update the code to test the property message
- //var instance = new TopcoderMetaServicesRestApi.NotFound();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/NotModified.spec.js b/test/model/NotModified.spec.js
deleted file mode 100644
index 46ccb05..0000000
--- a/test/model/NotModified.spec.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.NotModified();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('NotModified', function() {
- it('should create an instance of NotModified', function() {
- // uncomment below and update the code to test NotModified
- //var instance = new TopcoderMetaServicesRestApi.NotModified();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.NotModified);
- });
-
- it('should have the property message (base name: "message")', function() {
- // uncomment below and update the code to test the property message
- //var instance = new TopcoderMetaServicesRestApi.NotModified();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/Payload.spec.js b/test/model/Payload.spec.js
deleted file mode 100644
index f80272a..0000000
--- a/test/model/Payload.spec.js
+++ /dev/null
@@ -1,86 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.Payload();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('Payload', function() {
- it('should create an instance of Payload', function() {
- // uncomment below and update the code to test Payload
- //var instance = new TopcoderMetaServicesRestApi.Payload();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.Payload);
- });
-
- it('should have the property id (base name: "id")', function() {
- // uncomment below and update the code to test the property id
- //var instance = new TopcoderMetaServicesRestApi.Payload();
- //expect(instance).to.be();
- });
-
- it('should have the property topics (base name: "topics")', function() {
- // uncomment below and update the code to test the property topics
- //var instance = new TopcoderMetaServicesRestApi.Payload();
- //expect(instance).to.be();
- });
-
- it('should have the property payloadMimeType (base name: "payloadMimeType")', function() {
- // uncomment below and update the code to test the property payloadMimeType
- //var instance = new TopcoderMetaServicesRestApi.Payload();
- //expect(instance).to.be();
- });
-
- it('should have the property payloadFormat (base name: "payloadFormat")', function() {
- // uncomment below and update the code to test the property payloadFormat
- //var instance = new TopcoderMetaServicesRestApi.Payload();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/ServerError.spec.js b/test/model/ServerError.spec.js
deleted file mode 100644
index 9b75069..0000000
--- a/test/model/ServerError.spec.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.ServerError();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('ServerError', function() {
- it('should create an instance of ServerError', function() {
- // uncomment below and update the code to test ServerError
- //var instance = new TopcoderMetaServicesRestApi.ServerError();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.ServerError);
- });
-
- it('should have the property message (base name: "message")', function() {
- // uncomment below and update the code to test the property message
- //var instance = new TopcoderMetaServicesRestApi.ServerError();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/Service.spec.js b/test/model/Service.spec.js
deleted file mode 100644
index e106bb8..0000000
--- a/test/model/Service.spec.js
+++ /dev/null
@@ -1,98 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.Service();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('Service', function() {
- it('should create an instance of Service', function() {
- // uncomment below and update the code to test Service
- //var instance = new TopcoderMetaServicesRestApi.Service();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.Service);
- });
-
- it('should have the property name (base name: "name")', function() {
- // uncomment below and update the code to test the property name
- //var instance = new TopcoderMetaServicesRestApi.Service();
- //expect(instance).to.be();
- });
-
- it('should have the property version (base name: "version")', function() {
- // uncomment below and update the code to test the property version
- //var instance = new TopcoderMetaServicesRestApi.Service();
- //expect(instance).to.be();
- });
-
- it('should have the property commitHash (base name: "commitHash")', function() {
- // uncomment below and update the code to test the property commitHash
- //var instance = new TopcoderMetaServicesRestApi.Service();
- //expect(instance).to.be();
- });
-
- it('should have the property description (base name: "description")', function() {
- // uncomment below and update the code to test the property description
- //var instance = new TopcoderMetaServicesRestApi.Service();
- //expect(instance).to.be();
- });
-
- it('should have the property baseURL (base name: "baseURL")', function() {
- // uncomment below and update the code to test the property baseURL
- //var instance = new TopcoderMetaServicesRestApi.Service();
- //expect(instance).to.be();
- });
-
- it('should have the property payloads (base name: "payloads")', function() {
- // uncomment below and update the code to test the property payloads
- //var instance = new TopcoderMetaServicesRestApi.Service();
- //expect(instance).to.be();
- });
-
- });
-
-}));
diff --git a/test/model/Unauthorized.spec.js b/test/model/Unauthorized.spec.js
deleted file mode 100644
index 1bb4259..0000000
--- a/test/model/Unauthorized.spec.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * Topcoder Meta Services REST API
- * REST API for Topcoder Meta Services. This describes a service that can give information on other services existing on Topcoder. Available service links can be listed by sending GET request. Also, each service can return links to further services in their responses. ### Pagination Requests that return multiple items will be paginated to 20 items by default. You can specify further pages with the ```page``` parameter. You can also set a custom page size up to 100 with the ```perPage``` parameter. Pagination response data is included in http headers. By Default, the response header contains links with ```next```, ```last```, ```first```, ```prev``` resource links.
- *
- * OpenAPI spec version: 5.0.0
- * Contact: support@topcoder.com
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- *
- * Swagger Codegen version: 2.4.0-SNAPSHOT
- *
- * Do not edit the class manually.
- *
- */
-
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD.
- define(['expect.js', '../../src/index'], factory);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- factory(require('expect.js'), require('../../src/index'));
- } else {
- // Browser globals (root is window)
- factory(root.expect, root.TopcoderMetaServicesRestApi);
- }
-}(this, function(expect, TopcoderMetaServicesRestApi) {
- 'use strict';
-
- var instance;
-
- beforeEach(function() {
- instance = new TopcoderMetaServicesRestApi.Unauthorized();
- });
-
- var getProperty = function(object, getter, property) {
- // Use getter method if present; otherwise, get the property directly.
- if (typeof object[getter] === 'function')
- return object[getter]();
- else
- return object[property];
- }
-
- var setProperty = function(object, setter, property, value) {
- // Use setter method if present; otherwise, set the property directly.
- if (typeof object[setter] === 'function')
- object[setter](value);
- else
- object[property] = value;
- }
-
- describe('Unauthorized', function() {
- it('should create an instance of Unauthorized', function() {
- // uncomment below and update the code to test Unauthorized
- //var instance = new TopcoderMetaServicesRestApi.Unauthorized();
- //expect(instance).to.be.a(TopcoderMetaServicesRestApi.Unauthorized);
- });
-
- it('should have the property message (base name: "message")', function() {
- // uncomment below and update the code to test the property message
- //var instance = new TopcoderMetaServicesRestApi.Unauthorized();
- //expect(instance).to.be();
- });
-
- });
-
-}));
From c1e1ae1420e5c8a79d7d46c9f938aa47d0520ec0 Mon Sep 17 00:00:00 2001
From: Sharathkumar Anbu
Date: Thu, 27 Sep 2018 23:47:36 +0530
Subject: [PATCH 2/2] Use async functions everywhere and ES6 arrow functions
---
index.js | 52 +-
package-lock.json | 1762 +++++++++++++++++++++++++++++++++++++++-
package.json | 9 +-
src/EventsApi.js | 4 +-
src/HealthChecksApi.js | 4 +-
src/PlaceholdersApi.js | 2 +-
src/ServiceApi.js | 34 +-
src/TopicsApi.js | 4 +-
src/common/helper.js | 4 +-
9 files changed, 1793 insertions(+), 82 deletions(-)
diff --git a/index.js b/index.js
index 377d7c7..796acfc 100644
--- a/index.js
+++ b/index.js
@@ -4,7 +4,7 @@
const joi = require('joi')
-module.exports = (config) => {
+module.exports = (config) => {
const schema = joi.object().keys({
AUTH0_URL: joi.string().uri().trim().required(),
AUTH0_AUDIENCE: joi.string().uri().trim().required(),
@@ -25,84 +25,84 @@ module.exports = (config) => {
// Export functions
return {
// Event API functions
- postEvent: (reqBody) => {
+ postEvent: async (reqBody) => {
return require('./src/EventsApi').postEvent(config, reqBody)
},
- postError: (reqBody) => {
+ postError: async (reqBody) => {
return require('./src/EventsApi').postError(config, reqBody)
},
// Topics API functions
- getTopics: () => {
+ getTopics: async () => {
return require('./src/TopicsApi').getTopics(config)
},
- headTopics: () => {
+ headTopics: async () => {
return require('./src/TopicsApi').headTopics(config)
},
// Health checks API functions
- getHealth: () => {
+ getHealth: async () => {
return require('./src/HealthChecksApi').getHealth(config)
},
- headHealth: () => {
+ headHealth: async () => {
return require('./src/HealthChecksApi').headHealth(config)
},
// Placeholder API functions
- clearPlaceholdersCache: () => {
+ clearPlaceholdersCache: async () => {
return require('./src/PlaceholdersApi').clearPlaceholdersCache(config)
},
// Service API functions
- getServices: () => {
+ getServices: async () => {
return require('./src/ServiceApi').getServices(config)
},
- headServices: () => {
+ headServices: async () => {
return require('./src/ServiceApi').headServices(config)
},
- createService: (reqBody) => {
+ createService: async (reqBody) => {
return require('./src/ServiceApi').createService(config, reqBody)
},
- getService: (serviceName) => {
+ getService: async (serviceName) => {
return require('./src/ServiceApi').getService(config, serviceName)
},
- headService: (serviceName) => {
+ headService: async (serviceName) => {
return require('./src/ServiceApi').headService(config, serviceName)
},
- updateService: (serviceName, reqBody) => {
+ updateService: async (serviceName, reqBody) => {
return require('./src/ServiceApi').updateService(config, serviceName, reqBody)
},
- patchService: (serviceName, reqBody) => {
+ patchService: async (serviceName, reqBody) => {
return require('./src/ServiceApi').patchService(config, serviceName, reqBody)
},
- deleteService: (serviceName) => {
+ deleteService: async (serviceName) => {
return require('./src/ServiceApi').deleteService(config, serviceName)
},
- getServicePayloads: (serviceName) => {
+ getServicePayloads: async (serviceName) => {
return require('./src/ServiceApi').getServicePayloads(config, serviceName)
},
- headServicePayloads: (serviceName) => {
+ headServicePayloads: async (serviceName) => {
return require('./src/ServiceApi').headServicePayloads(config, serviceName)
},
- createServicePayload: (serviceName, reqBody) => {
+ createServicePayload: async (serviceName, reqBody) => {
return require('./src/ServiceApi').createServicePayload(config, serviceName, reqBody)
},
- getServicePayload: (serviceName, payloadName) => {
+ getServicePayload: async (serviceName, payloadName) => {
return require('./src/ServiceApi').getServicePayload(config, serviceName, payloadName)
},
- headServicePayload: (serviceName, payloadName) => {
+ headServicePayload: async (serviceName, payloadName) => {
return require('./src/ServiceApi').headServicePayload(config, serviceName, payloadName)
},
- updateServicePayload: (serviceName, payloadName, reqBody) => {
+ updateServicePayload: async (serviceName, payloadName, reqBody) => {
return require('./src/ServiceApi').updateServicePayload(config, serviceName, payloadName, reqBody)
},
- patchServicePayload: (serviceName, payloadName, reqBody) => {
+ patchServicePayload: async (serviceName, payloadName, reqBody) => {
return require('./src/ServiceApi').patchServicePayload(config, serviceName, payloadName, reqBody)
},
- deleteServicePayload: (serviceName, payloadName) => {
+ deleteServicePayload: async (serviceName, payloadName) => {
return require('./src/ServiceApi').deleteServicePayload(config, serviceName, payloadName)
}
- }
-}
+ }
+}
diff --git a/package-lock.json b/package-lock.json
index f35d0f3..ef02bde 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -87,6 +87,21 @@
"@types/mime": "*"
}
},
+ "acorn": {
+ "version": "5.7.3",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz",
+ "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==",
+ "dev": true
+ },
+ "acorn-jsx": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-4.1.1.tgz",
+ "integrity": "sha512-JY+iV6r+cO21KtntVvFkD+iqjtdpRUpGqKWgfkCdZq1R+kbreEl8EcdcJR4SmiIgsIQT33s6QzheQ9a275Q8xw==",
+ "dev": true,
+ "requires": {
+ "acorn": "^5.0.3"
+ }
+ },
"ajv": {
"version": "5.5.2",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz",
@@ -98,6 +113,70 @@
"json-schema-traverse": "^0.3.0"
}
},
+ "ajv-keywords": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.2.0.tgz",
+ "integrity": "sha1-6GuBnGAs+IIa1jdBNpjx3sAhhHo=",
+ "dev": true
+ },
+ "ansi-escapes": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz",
+ "integrity": "sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw==",
+ "dev": true
+ },
+ "ansi-regex": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
+ "dev": true
+ },
+ "argparse": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
+ "dev": true,
+ "requires": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
+ "array-includes": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.0.3.tgz",
+ "integrity": "sha1-GEtI9i2S10UrsxsyMWXH+L0CJm0=",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.2",
+ "es-abstract": "^1.7.0"
+ }
+ },
+ "array-union": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz",
+ "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=",
+ "dev": true,
+ "requires": {
+ "array-uniq": "^1.0.1"
+ }
+ },
+ "array-uniq": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz",
+ "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=",
+ "dev": true
+ },
+ "arrify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
+ "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=",
+ "dev": true
+ },
"asn1": {
"version": "0.2.4",
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
@@ -148,6 +227,41 @@
"follow-redirects": "0.0.7"
}
},
+ "babel-code-frame": {
+ "version": "6.26.0",
+ "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz",
+ "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=",
+ "dev": true,
+ "requires": {
+ "chalk": "^1.1.3",
+ "esutils": "^2.0.2",
+ "js-tokens": "^3.0.2"
+ },
+ "dependencies": {
+ "chalk": {
+ "version": "1.1.3",
+ "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
+ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^2.0.0"
+ }
+ }
+ }
+ },
"babel-runtime": {
"version": "6.6.1",
"resolved": "http://registry.npmjs.org/babel-runtime/-/babel-runtime-6.6.1.tgz",
@@ -167,8 +281,7 @@
"balanced-match": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
- "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
- "optional": true
+ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
},
"base64-js": {
"version": "1.3.0",
@@ -188,7 +301,6 @@
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
- "optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@@ -199,6 +311,12 @@
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
"integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk="
},
+ "builtin-modules": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz",
+ "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=",
+ "dev": true
+ },
"bunyan": {
"version": "1.8.12",
"resolved": "https://registry.npmjs.org/bunyan/-/bunyan-1.8.12.tgz",
@@ -210,11 +328,84 @@
"safe-json-stringify": "~1"
}
},
+ "caller-path": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz",
+ "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=",
+ "dev": true,
+ "requires": {
+ "callsites": "^0.2.0"
+ }
+ },
+ "callsites": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz",
+ "integrity": "sha1-r6uWJikQp/M8GaV3WCXGnzTjUMo=",
+ "dev": true
+ },
"caseless": {
"version": "0.12.0",
"resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
},
+ "chalk": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz",
+ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
+ "dev": true,
+ "requires": {
+ "color-convert": "^1.9.0"
+ }
+ },
+ "supports-color": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ }
+ }
+ },
+ "chardet": {
+ "version": "0.4.2",
+ "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.4.2.tgz",
+ "integrity": "sha1-tUc7M9yXxCTl2Y3IfVXU2KKci/I=",
+ "dev": true
+ },
+ "circular-json": {
+ "version": "0.3.3",
+ "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz",
+ "integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A==",
+ "dev": true
+ },
+ "cli-cursor": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz",
+ "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=",
+ "dev": true,
+ "requires": {
+ "restore-cursor": "^2.0.0"
+ }
+ },
+ "cli-width": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz",
+ "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=",
+ "dev": true
+ },
"co": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
@@ -235,6 +426,21 @@
}
}
},
+ "color-convert": {
+ "version": "1.9.3",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
+ "dev": true,
+ "requires": {
+ "color-name": "1.1.3"
+ }
+ },
+ "color-name": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
+ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
+ "dev": true
+ },
"combined-stream": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz",
@@ -251,8 +457,13 @@
"concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
- "optional": true
+ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
+ },
+ "contains-path": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz",
+ "integrity": "sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=",
+ "dev": true
},
"cookiejar": {
"version": "2.1.2",
@@ -269,6 +480,27 @@
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
+ "cross-spawn": {
+ "version": "6.0.5",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
+ "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
+ "dev": true,
+ "requires": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz",
+ "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==",
+ "dev": true
+ }
+ }
+ },
"crypto-js": {
"version": "3.1.9-1",
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.1.9-1.tgz",
@@ -290,11 +522,92 @@
"ms": "^2.1.1"
}
},
+ "debug-log": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/debug-log/-/debug-log-1.0.1.tgz",
+ "integrity": "sha1-IwdjLUwEOCuN+KMvcLiVBG1SdF8=",
+ "dev": true
+ },
+ "deep-is": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz",
+ "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=",
+ "dev": true
+ },
+ "define-properties": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
+ "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",
+ "dev": true,
+ "requires": {
+ "object-keys": "^1.0.12"
+ }
+ },
+ "deglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/deglob/-/deglob-2.1.1.tgz",
+ "integrity": "sha512-2kjwuGGonL7gWE1XU4Fv79+vVzpoQCl0V+boMwWtOQJV2AGDabCwez++nB1Nli/8BabAfZQ/UuHPlp6AymKdWw==",
+ "dev": true,
+ "requires": {
+ "find-root": "^1.0.0",
+ "glob": "^7.0.5",
+ "ignore": "^3.0.9",
+ "pkg-config": "^1.1.0",
+ "run-parallel": "^1.1.2",
+ "uniq": "^1.0.1"
+ },
+ "dependencies": {
+ "glob": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
+ "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ },
+ "ignore": {
+ "version": "3.3.10",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz",
+ "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==",
+ "dev": true
+ }
+ }
+ },
+ "del": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz",
+ "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=",
+ "dev": true,
+ "requires": {
+ "globby": "^5.0.0",
+ "is-path-cwd": "^1.0.0",
+ "is-path-in-cwd": "^1.0.0",
+ "object-assign": "^4.0.1",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0",
+ "rimraf": "^2.2.8"
+ }
+ },
"delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
},
+ "doctrine": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",
+ "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",
+ "dev": true,
+ "requires": {
+ "esutils": "^2.0.2"
+ }
+ },
"dtrace-provider": {
"version": "0.8.7",
"resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.7.tgz",
@@ -322,11 +635,389 @@
"safe-buffer": "^5.0.1"
}
},
+ "error-ex": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
+ "dev": true,
+ "requires": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "es-abstract": {
+ "version": "1.12.0",
+ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz",
+ "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==",
+ "dev": true,
+ "requires": {
+ "es-to-primitive": "^1.1.1",
+ "function-bind": "^1.1.1",
+ "has": "^1.0.1",
+ "is-callable": "^1.1.3",
+ "is-regex": "^1.0.4"
+ }
+ },
+ "es-to-primitive": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz",
+ "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=",
+ "dev": true,
+ "requires": {
+ "is-callable": "^1.1.1",
+ "is-date-object": "^1.0.1",
+ "is-symbol": "^1.0.1"
+ }
+ },
+ "escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
+ "dev": true
+ },
+ "eslint": {
+ "version": "5.4.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.4.0.tgz",
+ "integrity": "sha512-UIpL91XGex3qtL6qwyCQJar2j3osKxK9e3ano3OcGEIRM4oWIpCkDg9x95AXEC2wMs7PnxzOkPZ2gq+tsMS9yg==",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.5.0",
+ "babel-code-frame": "^6.26.0",
+ "chalk": "^2.1.0",
+ "cross-spawn": "^6.0.5",
+ "debug": "^3.1.0",
+ "doctrine": "^2.1.0",
+ "eslint-scope": "^4.0.0",
+ "eslint-utils": "^1.3.1",
+ "eslint-visitor-keys": "^1.0.0",
+ "espree": "^4.0.0",
+ "esquery": "^1.0.1",
+ "esutils": "^2.0.2",
+ "file-entry-cache": "^2.0.0",
+ "functional-red-black-tree": "^1.0.1",
+ "glob": "^7.1.2",
+ "globals": "^11.7.0",
+ "ignore": "^4.0.2",
+ "imurmurhash": "^0.1.4",
+ "inquirer": "^5.2.0",
+ "is-resolvable": "^1.1.0",
+ "js-yaml": "^3.11.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "levn": "^0.3.0",
+ "lodash": "^4.17.5",
+ "minimatch": "^3.0.4",
+ "mkdirp": "^0.5.1",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.8.2",
+ "path-is-inside": "^1.0.2",
+ "pluralize": "^7.0.0",
+ "progress": "^2.0.0",
+ "regexpp": "^2.0.0",
+ "require-uncached": "^1.0.3",
+ "semver": "^5.5.0",
+ "strip-ansi": "^4.0.0",
+ "strip-json-comments": "^2.0.1",
+ "table": "^4.0.3",
+ "text-table": "^0.2.0"
+ },
+ "dependencies": {
+ "ajv": {
+ "version": "6.5.4",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.4.tgz",
+ "integrity": "sha512-4Wyjt8+t6YszqaXnLDfMmG/8AlO5Zbcsy3ATHncCzjW/NoPzAId8AK6749Ybjmdt+kUY1gP60fCu46oDxPv/mg==",
+ "dev": 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"
+ }
+ },
+ "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=",
+ "dev": true
+ },
+ "glob": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
+ "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ },
+ "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==",
+ "dev": true
+ },
+ "semver": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz",
+ "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==",
+ "dev": true
+ }
+ }
+ },
+ "eslint-config-standard": {
+ "version": "12.0.0",
+ "resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-12.0.0.tgz",
+ "integrity": "sha512-COUz8FnXhqFitYj4DTqHzidjIL/t4mumGZto5c7DrBpvWoie+Sn3P4sLEzUGeYhRElWuFEf8K1S1EfvD1vixCQ==",
+ "dev": true
+ },
+ "eslint-config-standard-jsx": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/eslint-config-standard-jsx/-/eslint-config-standard-jsx-6.0.2.tgz",
+ "integrity": "sha512-D+YWAoXw+2GIdbMBRAzWwr1ZtvnSf4n4yL0gKGg7ShUOGXkSOLerI17K4F6LdQMJPNMoWYqepzQD/fKY+tXNSg==",
+ "dev": true
+ },
+ "eslint-import-resolver-node": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz",
+ "integrity": "sha512-sfmTqJfPSizWu4aymbPr4Iidp5yKm8yDkHp+Ir3YiTHiiDfxh69mOUsmiqW6RZ9zRXFaF64GtYmN7e+8GHBv6Q==",
+ "dev": true,
+ "requires": {
+ "debug": "^2.6.9",
+ "resolve": "^1.5.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "dev": true,
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
+ "dev": true
+ }
+ }
+ },
+ "eslint-module-utils": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.2.0.tgz",
+ "integrity": "sha1-snA2LNiLGkitMIl2zn+lTphBF0Y=",
+ "dev": true,
+ "requires": {
+ "debug": "^2.6.8",
+ "pkg-dir": "^1.0.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "dev": true,
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
+ "dev": true
+ }
+ }
+ },
+ "eslint-plugin-es": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-1.3.1.tgz",
+ "integrity": "sha512-9XcVyZiQRVeFjqHw8qHNDAZcQLqaHlOGGpeYqzYh8S4JYCWTCO3yzyen8yVmA5PratfzTRWDwCOFphtDEG+w/w==",
+ "dev": true,
+ "requires": {
+ "eslint-utils": "^1.3.0",
+ "regexpp": "^2.0.0"
+ }
+ },
+ "eslint-plugin-import": {
+ "version": "2.14.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.14.0.tgz",
+ "integrity": "sha512-FpuRtniD/AY6sXByma2Wr0TXvXJ4nA/2/04VPlfpmUDPOpOY264x+ILiwnrk/k4RINgDAyFZByxqPUbSQ5YE7g==",
+ "dev": true,
+ "requires": {
+ "contains-path": "^0.1.0",
+ "debug": "^2.6.8",
+ "doctrine": "1.5.0",
+ "eslint-import-resolver-node": "^0.3.1",
+ "eslint-module-utils": "^2.2.0",
+ "has": "^1.0.1",
+ "lodash": "^4.17.4",
+ "minimatch": "^3.0.3",
+ "read-pkg-up": "^2.0.0",
+ "resolve": "^1.6.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "dev": true,
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
+ "doctrine": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz",
+ "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=",
+ "dev": true,
+ "requires": {
+ "esutils": "^2.0.2",
+ "isarray": "^1.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
+ "dev": true
+ }
+ }
+ },
+ "eslint-plugin-node": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-7.0.1.tgz",
+ "integrity": "sha512-lfVw3TEqThwq0j2Ba/Ckn2ABdwmL5dkOgAux1rvOk6CO7A6yGyPI2+zIxN6FyNkp1X1X/BSvKOceD6mBWSj4Yw==",
+ "dev": true,
+ "requires": {
+ "eslint-plugin-es": "^1.3.1",
+ "eslint-utils": "^1.3.1",
+ "ignore": "^4.0.2",
+ "minimatch": "^3.0.4",
+ "resolve": "^1.8.1",
+ "semver": "^5.5.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz",
+ "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==",
+ "dev": true
+ }
+ }
+ },
+ "eslint-plugin-promise": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-4.0.1.tgz",
+ "integrity": "sha512-Si16O0+Hqz1gDHsys6RtFRrW7cCTB6P7p3OJmKp3Y3dxpQE2qwOA7d3xnV+0mBmrPoi0RBnxlCKvqu70te6wjg==",
+ "dev": true
+ },
+ "eslint-plugin-react": {
+ "version": "7.11.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.11.1.tgz",
+ "integrity": "sha512-cVVyMadRyW7qsIUh3FHp3u6QHNhOgVrLQYdQEB1bPWBsgbNCHdFAeNMquBMCcZJu59eNthX053L70l7gRt4SCw==",
+ "dev": true,
+ "requires": {
+ "array-includes": "^3.0.3",
+ "doctrine": "^2.1.0",
+ "has": "^1.0.3",
+ "jsx-ast-utils": "^2.0.1",
+ "prop-types": "^15.6.2"
+ }
+ },
+ "eslint-plugin-standard": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.0.0.tgz",
+ "integrity": "sha512-OwxJkR6TQiYMmt1EsNRMe5qG3GsbjlcOhbGUBY4LtavF9DsLaTcoR+j2Tdjqi23oUwKNUqX7qcn5fPStafMdlA==",
+ "dev": true
+ },
+ "eslint-scope": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.0.tgz",
+ "integrity": "sha512-1G6UTDi7Jc1ELFwnR58HV4fK9OQK4S6N985f166xqXxpjU6plxFISJa2Ba9KCQuFa8RCnj/lSFJbHo7UFDBnUA==",
+ "dev": true,
+ "requires": {
+ "esrecurse": "^4.1.0",
+ "estraverse": "^4.1.1"
+ }
+ },
+ "eslint-utils": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.3.1.tgz",
+ "integrity": "sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q==",
+ "dev": true
+ },
+ "eslint-visitor-keys": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz",
+ "integrity": "sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ==",
+ "dev": true
+ },
+ "espree": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-4.0.0.tgz",
+ "integrity": "sha512-kapdTCt1bjmspxStVKX6huolXVV5ZfyZguY1lcfhVVZstce3bqxH9mcLzNn3/mlgW6wQ732+0fuG9v7h0ZQoKg==",
+ "dev": true,
+ "requires": {
+ "acorn": "^5.6.0",
+ "acorn-jsx": "^4.1.1"
+ }
+ },
+ "esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
+ "dev": true
+ },
+ "esquery": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz",
+ "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==",
+ "dev": true,
+ "requires": {
+ "estraverse": "^4.0.0"
+ }
+ },
+ "esrecurse": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz",
+ "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==",
+ "dev": true,
+ "requires": {
+ "estraverse": "^4.1.0"
+ }
+ },
+ "estraverse": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz",
+ "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=",
+ "dev": true
+ },
+ "esutils": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz",
+ "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=",
+ "dev": true
+ },
"extend": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
},
+ "external-editor": {
+ "version": "2.2.0",
+ "resolved": "http://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz",
+ "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==",
+ "dev": true,
+ "requires": {
+ "chardet": "^0.4.0",
+ "iconv-lite": "^0.4.17",
+ "tmp": "^0.0.33"
+ }
+ },
"extsprintf": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
@@ -342,6 +1033,59 @@
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
"integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I="
},
+ "fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
+ "dev": true
+ },
+ "figures": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz",
+ "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=",
+ "dev": true,
+ "requires": {
+ "escape-string-regexp": "^1.0.5"
+ }
+ },
+ "file-entry-cache": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-2.0.0.tgz",
+ "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=",
+ "dev": true,
+ "requires": {
+ "flat-cache": "^1.2.1",
+ "object-assign": "^4.0.1"
+ }
+ },
+ "find-root": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",
+ "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==",
+ "dev": true
+ },
+ "find-up": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
+ "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=",
+ "dev": true,
+ "requires": {
+ "path-exists": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ }
+ },
+ "flat-cache": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.0.tgz",
+ "integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=",
+ "dev": true,
+ "requires": {
+ "circular-json": "^0.3.1",
+ "del": "^2.0.2",
+ "graceful-fs": "^4.1.2",
+ "write": "^0.2.1"
+ }
+ },
"follow-redirects": {
"version": "0.0.7",
"resolved": "http://registry.npmjs.org/follow-redirects/-/follow-redirects-0.0.7.tgz",
@@ -386,6 +1130,30 @@
"resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.1.tgz",
"integrity": "sha512-Fs9VRguL0gqGHkXS5GQiMCr1VhZBxz0JnJs4JmMp/2jL18Fmbzvv7vOFRU+U8TBkHEE/CX1qDXzJplVULgsLeg=="
},
+ "fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
+ "dev": true
+ },
+ "function-bind": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
+ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
+ "dev": true
+ },
+ "functional-red-black-tree": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz",
+ "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=",
+ "dev": true
+ },
+ "get-stdin": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz",
+ "integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==",
+ "dev": true
+ },
"getpass": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
@@ -398,7 +1166,6 @@
"version": "6.0.4",
"resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz",
"integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=",
- "optional": true,
"requires": {
"inflight": "^1.0.4",
"inherits": "2",
@@ -407,6 +1174,48 @@
"path-is-absolute": "^1.0.0"
}
},
+ "globals": {
+ "version": "11.7.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-11.7.0.tgz",
+ "integrity": "sha512-K8BNSPySfeShBQXsahYB/AbbWruVOTyVpgoIDnl8odPpeSfP2J5QO2oLFFdl2j7GfDCtZj2bMKar2T49itTPCg==",
+ "dev": true
+ },
+ "globby": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz",
+ "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=",
+ "dev": true,
+ "requires": {
+ "array-union": "^1.0.1",
+ "arrify": "^1.0.0",
+ "glob": "^7.0.3",
+ "object-assign": "^4.0.1",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ },
+ "dependencies": {
+ "glob": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
+ "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ }
+ }
+ },
+ "graceful-fs": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
+ "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
+ "dev": true
+ },
"har-schema": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
@@ -421,11 +1230,47 @@
"har-schema": "^2.0.0"
}
},
+ "has": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
+ "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
+ "dev": true,
+ "requires": {
+ "function-bind": "^1.1.1"
+ }
+ },
+ "has-ansi": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
+ "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^2.0.0"
+ }
+ },
+ "has-flag": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
+ "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
+ "dev": true
+ },
+ "has-symbols": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz",
+ "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=",
+ "dev": true
+ },
"hoek": {
"version": "2.16.3",
"resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz",
"integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0="
},
+ "hosted-git-info": {
+ "version": "2.7.1",
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz",
+ "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==",
+ "dev": true
+ },
"http-signature": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
@@ -436,32 +1281,160 @@
"sshpk": "^1.7.0"
}
},
+ "iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "dev": true,
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ }
+ },
"idtoken-verifier": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/idtoken-verifier/-/idtoken-verifier-1.2.0.tgz",
"integrity": "sha512-8jmmFHwdPz8L73zGNAXHHOV9yXNC+Z0TUBN5rafpoaFaLFltlIFr1JkQa3FYAETP23eSsulVw0sBiwrE8jqbUg==",
"requires": {
- "base64-js": "^1.2.0",
- "crypto-js": "^3.1.9-1",
- "jsbn": "^0.1.0",
- "superagent": "^3.8.2",
- "url-join": "^1.1.0"
+ "base64-js": "^1.2.0",
+ "crypto-js": "^3.1.9-1",
+ "jsbn": "^0.1.0",
+ "superagent": "^3.8.2",
+ "url-join": "^1.1.0"
+ }
+ },
+ "ignore": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",
+ "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
+ "dev": true
+ },
+ "imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",
+ "dev": true
+ },
+ "inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
+ "requires": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "inherits": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
+ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
+ },
+ "inquirer": {
+ "version": "5.2.0",
+ "resolved": "http://registry.npmjs.org/inquirer/-/inquirer-5.2.0.tgz",
+ "integrity": "sha512-E9BmnJbAKLPGonz0HeWHtbKf+EeSP93paWO3ZYoUpq/aowXvYGjjCSuashhXPpzbArIjBbji39THkxTz9ZeEUQ==",
+ "dev": true,
+ "requires": {
+ "ansi-escapes": "^3.0.0",
+ "chalk": "^2.0.0",
+ "cli-cursor": "^2.1.0",
+ "cli-width": "^2.0.0",
+ "external-editor": "^2.1.0",
+ "figures": "^2.0.0",
+ "lodash": "^4.3.0",
+ "mute-stream": "0.0.7",
+ "run-async": "^2.2.0",
+ "rxjs": "^5.5.2",
+ "string-width": "^2.1.0",
+ "strip-ansi": "^4.0.0",
+ "through": "^2.3.6"
+ }
+ },
+ "is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
+ "dev": true
+ },
+ "is-builtin-module": {
+ "version": "1.0.0",
+ "resolved": "http://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz",
+ "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=",
+ "dev": true,
+ "requires": {
+ "builtin-modules": "^1.0.0"
+ }
+ },
+ "is-callable": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz",
+ "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==",
+ "dev": true
+ },
+ "is-date-object": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz",
+ "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
+ "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
+ "dev": true
+ },
+ "is-path-cwd": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz",
+ "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=",
+ "dev": true
+ },
+ "is-path-in-cwd": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz",
+ "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==",
+ "dev": true,
+ "requires": {
+ "is-path-inside": "^1.0.0"
+ }
+ },
+ "is-path-inside": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz",
+ "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=",
+ "dev": true,
+ "requires": {
+ "path-is-inside": "^1.0.1"
}
},
- "inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
- "optional": true,
+ "is-promise": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz",
+ "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=",
+ "dev": true
+ },
+ "is-regex": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz",
+ "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=",
+ "dev": true,
"requires": {
- "once": "^1.3.0",
- "wrappy": "1"
+ "has": "^1.0.1"
}
},
- "inherits": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
- "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
+ "is-resolvable": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz",
+ "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==",
+ "dev": true
+ },
+ "is-symbol": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz",
+ "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==",
+ "dev": true,
+ "requires": {
+ "has-symbols": "^1.0.0"
+ }
},
"is-typedarray": {
"version": "1.0.0",
@@ -478,6 +1451,12 @@
"resolved": "https://registry.npmjs.org/isemail/-/isemail-1.2.0.tgz",
"integrity": "sha1-vgPfjMPineTSxd9lASY/H6RZXpo="
},
+ "isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
+ "dev": true
+ },
"isstream": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
@@ -499,11 +1478,33 @@
"resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.0.tgz",
"integrity": "sha1-Gywnmm7s44ChIWi5JIUmWzWx7/s="
},
+ "js-tokens": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
+ "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
+ "dev": true
+ },
+ "js-yaml": {
+ "version": "3.12.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz",
+ "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==",
+ "dev": true,
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ },
"jsbn": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
},
+ "json-parse-better-errors": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
+ "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==",
+ "dev": true
+ },
"json-schema": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
@@ -514,6 +1515,12 @@
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz",
"integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A="
},
+ "json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",
+ "dev": true
+ },
"json-stringify-safe": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
@@ -542,6 +1549,15 @@
"verror": "1.10.0"
}
},
+ "jsx-ast-utils": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.0.1.tgz",
+ "integrity": "sha1-6AGxs5mF4g//yHtA43SAgOLcrH8=",
+ "dev": true,
+ "requires": {
+ "array-includes": "^3.0.3"
+ }
+ },
"jwa": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/jwa/-/jwa-1.1.6.tgz",
@@ -611,11 +1627,51 @@
}
}
},
+ "levn": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
+ "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
+ "dev": true,
+ "requires": {
+ "prelude-ls": "~1.1.2",
+ "type-check": "~0.3.2"
+ }
+ },
"limiter": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/limiter/-/limiter-1.1.3.tgz",
"integrity": "sha512-zrycnIMsLw/3ZxTbW7HCez56rcFGecWTx5OZNplzcXUUmJLmoYArC6qdJzmAN5BWiNXGcpjhF9RQ1HSv5zebEw=="
},
+ "load-json-file": {
+ "version": "2.0.0",
+ "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz",
+ "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "parse-json": "^2.2.0",
+ "pify": "^2.0.0",
+ "strip-bom": "^3.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
+ "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
+ "dev": true,
+ "requires": {
+ "p-locate": "^2.0.0",
+ "path-exists": "^3.0.0"
+ },
+ "dependencies": {
+ "path-exists": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
+ "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
+ "dev": true
+ }
+ }
+ },
"lock": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/lock/-/lock-0.1.4.tgz",
@@ -631,6 +1687,15 @@
"resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
"integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w="
},
+ "loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "dev": true,
+ "requires": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ }
+ },
"lru-cache": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.2.tgz",
@@ -679,11 +1744,16 @@
"mime-db": "~1.36.0"
}
},
+ "mimic-fn": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz",
+ "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
+ "dev": true
+ },
"minimatch": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
- "optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
@@ -691,14 +1761,12 @@
"minimist": {
"version": "0.0.8",
"resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
- "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
- "optional": true
+ "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
},
"mkdirp": {
"version": "0.5.1",
"resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
- "optional": true,
"requires": {
"minimist": "0.0.8"
}
@@ -713,6 +1781,12 @@
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
},
+ "mute-stream": {
+ "version": "0.0.7",
+ "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz",
+ "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=",
+ "dev": true
+ },
"mv": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz",
@@ -730,17 +1804,53 @@
"integrity": "sha512-F4miItu2rGnV2ySkXOQoA8FKz/SR2Q2sWP0sbTxNxz/tuokeC8WxOhPMcwi0qIyGtVn/rrSeLbvVkznqCdwYnw==",
"optional": true
},
+ "natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
+ "dev": true
+ },
"ncp": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz",
"integrity": "sha1-GVoh1sRuNh0vsSgbo4uR6d9727M=",
"optional": true
},
+ "nice-try": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
+ "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
+ "dev": true
+ },
+ "normalize-package-data": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
+ "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==",
+ "dev": true,
+ "requires": {
+ "hosted-git-info": "^2.1.4",
+ "is-builtin-module": "^1.0.0",
+ "semver": "2 || 3 || 4 || 5",
+ "validate-npm-package-license": "^3.0.1"
+ }
+ },
"oauth-sign": {
"version": "0.9.0",
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
"integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
},
+ "object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
+ "dev": true
+ },
+ "object-keys": {
+ "version": "1.0.12",
+ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz",
+ "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==",
+ "dev": true
+ },
"once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
@@ -749,27 +1859,242 @@
"wrappy": "1"
}
},
+ "onetime": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz",
+ "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=",
+ "dev": true,
+ "requires": {
+ "mimic-fn": "^1.0.0"
+ }
+ },
+ "optionator": {
+ "version": "0.8.2",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz",
+ "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=",
+ "dev": true,
+ "requires": {
+ "deep-is": "~0.1.3",
+ "fast-levenshtein": "~2.0.4",
+ "levn": "~0.3.0",
+ "prelude-ls": "~1.1.2",
+ "type-check": "~0.3.2",
+ "wordwrap": "~1.0.0"
+ }
+ },
+ "os-tmpdir": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
+ "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
+ "dev": true
+ },
+ "p-limit": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
+ "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
+ "dev": true,
+ "requires": {
+ "p-try": "^1.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz",
+ "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
+ "dev": true,
+ "requires": {
+ "p-limit": "^1.1.0"
+ }
+ },
+ "p-try": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
+ "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
+ "dev": true
+ },
+ "parse-json": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
+ "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
+ "dev": true,
+ "requires": {
+ "error-ex": "^1.2.0"
+ }
+ },
+ "path-exists": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz",
+ "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=",
+ "dev": true,
+ "requires": {
+ "pinkie-promise": "^2.0.0"
+ }
+ },
"path-is-absolute": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
- "optional": true
+ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
+ },
+ "path-is-inside": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz",
+ "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=",
+ "dev": true
+ },
+ "path-key": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
+ "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=",
+ "dev": true
+ },
+ "path-parse": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
+ "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
+ "dev": true
+ },
+ "path-type": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz",
+ "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=",
+ "dev": true,
+ "requires": {
+ "pify": "^2.0.0"
+ }
},
"performance-now": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
},
+ "pify": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+ "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
+ "dev": true
+ },
+ "pinkie": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
+ "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=",
+ "dev": true
+ },
+ "pinkie-promise": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
+ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
+ "dev": true,
+ "requires": {
+ "pinkie": "^2.0.0"
+ }
+ },
+ "pkg-conf": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz",
+ "integrity": "sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg=",
+ "dev": true,
+ "requires": {
+ "find-up": "^2.0.0",
+ "load-json-file": "^4.0.0"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
+ "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
+ "dev": true,
+ "requires": {
+ "locate-path": "^2.0.0"
+ }
+ },
+ "load-json-file": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz",
+ "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "parse-json": "^4.0.0",
+ "pify": "^3.0.0",
+ "strip-bom": "^3.0.0"
+ }
+ },
+ "parse-json": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz",
+ "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=",
+ "dev": true,
+ "requires": {
+ "error-ex": "^1.3.1",
+ "json-parse-better-errors": "^1.0.1"
+ }
+ },
+ "pify": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+ "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
+ "dev": true
+ }
+ }
+ },
+ "pkg-config": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/pkg-config/-/pkg-config-1.1.1.tgz",
+ "integrity": "sha1-VX7yLXPaPIg3EHdmxS6tq94pj+Q=",
+ "dev": true,
+ "requires": {
+ "debug-log": "^1.0.0",
+ "find-root": "^1.0.0",
+ "xtend": "^4.0.1"
+ }
+ },
+ "pkg-dir": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-1.0.0.tgz",
+ "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=",
+ "dev": true,
+ "requires": {
+ "find-up": "^1.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==",
+ "dev": true
+ },
"precond": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/precond/-/precond-0.2.3.tgz",
"integrity": "sha1-qpWRvKokkj8eD0hJ0kD0fvwQdaw="
},
+ "prelude-ls": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
+ "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
+ "dev": true
+ },
"process-nextick-args": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
"integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw=="
},
+ "progress": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.0.tgz",
+ "integrity": "sha1-ihvjZr+Pwj2yvSPxDG/pILQ4nR8=",
+ "dev": true
+ },
+ "prop-types": {
+ "version": "15.6.2",
+ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.2.tgz",
+ "integrity": "sha512-3pboPvLiWD7dkI3qf3KbUe6hKFKa52w+AE0VCqECtf+QHAKgOL37tTaNCnuX1nAAQ4ZhyP+kYVKf8rLmJ/feDQ==",
+ "dev": true,
+ "requires": {
+ "loose-envify": "^1.3.1",
+ "object-assign": "^4.1.1"
+ }
+ },
"pseudomap": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
@@ -790,6 +2115,38 @@
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
"integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA=="
},
+ "read-pkg": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz",
+ "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=",
+ "dev": true,
+ "requires": {
+ "load-json-file": "^2.0.0",
+ "normalize-package-data": "^2.3.2",
+ "path-type": "^2.0.0"
+ }
+ },
+ "read-pkg-up": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz",
+ "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=",
+ "dev": true,
+ "requires": {
+ "find-up": "^2.0.0",
+ "read-pkg": "^2.0.0"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
+ "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
+ "dev": true,
+ "requires": {
+ "locate-path": "^2.0.0"
+ }
+ }
+ }
+ },
"readable-stream": {
"version": "2.3.6",
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
@@ -812,6 +2169,12 @@
"backoff": "~2.5.0"
}
},
+ "regexpp": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.0.tgz",
+ "integrity": "sha512-g2FAVtR8Uh8GO1Nv5wpxW7VFVwHcCEr4wyA8/MHiRkO8uHoR5ntAA8Uq3P1vvMTX/BeQiRVSpDGLd+Wn5HNOTA==",
+ "dev": true
+ },
"request": {
"version": "2.88.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
@@ -839,15 +2202,73 @@
"uuid": "^3.3.2"
}
},
+ "require-uncached": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz",
+ "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=",
+ "dev": true,
+ "requires": {
+ "caller-path": "^0.1.0",
+ "resolve-from": "^1.0.0"
+ }
+ },
+ "resolve": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz",
+ "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==",
+ "dev": true,
+ "requires": {
+ "path-parse": "^1.0.5"
+ }
+ },
+ "resolve-from": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz",
+ "integrity": "sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY=",
+ "dev": true
+ },
+ "restore-cursor": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz",
+ "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=",
+ "dev": true,
+ "requires": {
+ "onetime": "^2.0.0",
+ "signal-exit": "^3.0.2"
+ }
+ },
"rimraf": {
"version": "2.4.5",
"resolved": "http://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz",
"integrity": "sha1-7nEM5dk6j9uFb7Xqj/Di11k0sto=",
- "optional": true,
"requires": {
"glob": "^6.0.1"
}
},
+ "run-async": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz",
+ "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=",
+ "dev": true,
+ "requires": {
+ "is-promise": "^2.1.0"
+ }
+ },
+ "run-parallel": {
+ "version": "1.1.9",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz",
+ "integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==",
+ "dev": true
+ },
+ "rxjs": {
+ "version": "5.5.12",
+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.12.tgz",
+ "integrity": "sha512-xx2itnL5sBbqeeiVgNPVuQQ1nC8Jp2WfNJhXWHmElW9YmrpS9UVnNzhP3EH3HFqexO5Tlp8GhYY+WEcqcVMvGw==",
+ "dev": true,
+ "requires": {
+ "symbol-observable": "1.0.1"
+ }
+ },
"safe-buffer": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
@@ -869,6 +2290,74 @@
"resolved": "https://registry.npmjs.org/semver/-/semver-5.1.0.tgz",
"integrity": "sha1-hfLPhVBGXE3wAM99hvawVBBqueU="
},
+ "shebang-command": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
+ "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
+ "dev": true,
+ "requires": {
+ "shebang-regex": "^1.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
+ "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
+ "dev": true
+ },
+ "signal-exit": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
+ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
+ "dev": true
+ },
+ "slice-ansi": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-1.0.0.tgz",
+ "integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==",
+ "dev": true,
+ "requires": {
+ "is-fullwidth-code-point": "^2.0.0"
+ }
+ },
+ "spdx-correct": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.1.tgz",
+ "integrity": "sha512-hxSPZbRZvSDuOvADntOElzJpenIR7wXJkuoUcUtS0erbgt2fgeaoPIYretfKpslMhfFDY4k0MZ2F5CUzhBsSvQ==",
+ "dev": true,
+ "requires": {
+ "spdx-expression-parse": "^3.0.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "spdx-exceptions": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz",
+ "integrity": "sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg==",
+ "dev": true
+ },
+ "spdx-expression-parse": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz",
+ "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==",
+ "dev": true,
+ "requires": {
+ "spdx-exceptions": "^2.1.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "spdx-license-ids": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.1.tgz",
+ "integrity": "sha512-TfOfPcYGBB5sDuPn3deByxPhmfegAhpDYKSOXZQN81Oyrrif8ZCodOLzK3AesELnCx03kikhyDwh0pfvvQvF8w==",
+ "dev": true
+ },
+ "sprintf-js": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
+ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
+ "dev": true
+ },
"sshpk": {
"version": "1.14.2",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz",
@@ -885,11 +2374,58 @@
"tweetnacl": "~0.14.0"
}
},
+ "standard": {
+ "version": "12.0.1",
+ "resolved": "https://registry.npmjs.org/standard/-/standard-12.0.1.tgz",
+ "integrity": "sha512-UqdHjh87OG2gUrNCSM4QRLF5n9h3TFPwrCNyVlkqu31Hej0L/rc8hzKqVvkb2W3x0WMq7PzZdkLfEcBhVOR6lg==",
+ "dev": true,
+ "requires": {
+ "eslint": "~5.4.0",
+ "eslint-config-standard": "12.0.0",
+ "eslint-config-standard-jsx": "6.0.2",
+ "eslint-plugin-import": "~2.14.0",
+ "eslint-plugin-node": "~7.0.1",
+ "eslint-plugin-promise": "~4.0.0",
+ "eslint-plugin-react": "~7.11.1",
+ "eslint-plugin-standard": "~4.0.0",
+ "standard-engine": "~9.0.0"
+ }
+ },
+ "standard-engine": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/standard-engine/-/standard-engine-9.0.0.tgz",
+ "integrity": "sha512-ZfNfCWZ2Xq67VNvKMPiVMKHnMdvxYzvZkf1AH8/cw2NLDBm5LRsxMqvEJpsjLI/dUosZ3Z1d6JlHDp5rAvvk2w==",
+ "dev": true,
+ "requires": {
+ "deglob": "^2.1.0",
+ "get-stdin": "^6.0.0",
+ "minimist": "^1.1.0",
+ "pkg-conf": "^2.0.0"
+ },
+ "dependencies": {
+ "minimist": {
+ "version": "1.2.0",
+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
+ "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
+ "dev": true
+ }
+ }
+ },
"stream-consume": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.1.tgz",
"integrity": "sha512-tNa3hzgkjEP7XbCkbRXe1jpg+ievoa0O4SCFlMOYEscGSS4JJsckGL8swUyAa/ApGU3Ae4t6Honor4HhL+tRyg=="
},
+ "string-width": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
+ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
+ "dev": true,
+ "requires": {
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^4.0.0"
+ }
+ },
"string_decoder": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
@@ -898,6 +2434,35 @@
"safe-buffer": "~5.1.0"
}
},
+ "strip-ansi": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
+ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^3.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz",
+ "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=",
+ "dev": true
+ }
+ }
+ },
+ "strip-bom": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
+ "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
+ "dev": true
+ },
+ "strip-json-comments": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
+ "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
+ "dev": true
+ },
"superagent": {
"version": "3.8.3",
"resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.3.tgz",
@@ -915,6 +2480,58 @@
"readable-stream": "^2.3.5"
}
},
+ "supports-color": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
+ "dev": true
+ },
+ "symbol-observable": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz",
+ "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=",
+ "dev": true
+ },
+ "table": {
+ "version": "4.0.3",
+ "resolved": "http://registry.npmjs.org/table/-/table-4.0.3.tgz",
+ "integrity": "sha512-S7rnFITmBH1EnyKcvxBh1LjYeQMmnZtCXSEbHcH6S0NoKit24ZuFO/T1vDcLdYsLQkM188PVVhQmzKIuThNkKg==",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.0.1",
+ "ajv-keywords": "^3.0.0",
+ "chalk": "^2.1.0",
+ "lodash": "^4.17.4",
+ "slice-ansi": "1.0.0",
+ "string-width": "^2.1.1"
+ },
+ "dependencies": {
+ "ajv": {
+ "version": "6.5.4",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.4.tgz",
+ "integrity": "sha512-4Wyjt8+t6YszqaXnLDfMmG/8AlO5Zbcsy3ATHncCzjW/NoPzAId8AK6749Ybjmdt+kUY1gP60fCu46oDxPv/mg==",
+ "dev": 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"
+ }
+ },
+ "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=",
+ "dev": 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==",
+ "dev": true
+ }
+ }
+ },
"tc-core-library-js": {
"version": "github:appirio-tech/tc-core-library-js#10668ab7884c3b7578054e4862fb2e1bf3d2453b",
"from": "github:appirio-tech/tc-core-library-js#feature/m2mtoken",
@@ -929,6 +2546,27 @@
"millisecond": "^0.1.2"
}
},
+ "text-table": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
+ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
+ "dev": true
+ },
+ "through": {
+ "version": "2.3.8",
+ "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz",
+ "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=",
+ "dev": true
+ },
+ "tmp": {
+ "version": "0.0.33",
+ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
+ "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
+ "dev": true,
+ "requires": {
+ "os-tmpdir": "~1.0.2"
+ }
+ },
"topo": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/topo/-/topo-1.1.0.tgz",
@@ -960,6 +2598,38 @@
"integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
"optional": true
},
+ "type-check": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz",
+ "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=",
+ "dev": true,
+ "requires": {
+ "prelude-ls": "~1.1.2"
+ }
+ },
+ "uniq": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz",
+ "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=",
+ "dev": true
+ },
+ "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==",
+ "dev": true,
+ "requires": {
+ "punycode": "^2.1.0"
+ },
+ "dependencies": {
+ "punycode": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
+ "dev": true
+ }
+ }
+ },
"url-join": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/url-join/-/url-join-1.1.0.tgz",
@@ -975,6 +2645,16 @@
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
"integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA=="
},
+ "validate-npm-package-license": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
+ "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
+ "dev": true,
+ "requires": {
+ "spdx-correct": "^3.0.0",
+ "spdx-expression-parse": "^3.0.0"
+ }
+ },
"verror": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
@@ -990,16 +2670,40 @@
"resolved": "https://registry.npmjs.org/very-fast-args/-/very-fast-args-1.1.0.tgz",
"integrity": "sha1-4W0dH6+KbllqJGQh/ZCneWPQs5Y="
},
+ "which": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
+ "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ },
"winchan": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/winchan/-/winchan-0.2.0.tgz",
"integrity": "sha1-OGMCjn+XSw2hQS8oQXukJJcqvZQ="
},
+ "wordwrap": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
+ "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=",
+ "dev": true
+ },
"wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
},
+ "write": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz",
+ "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=",
+ "dev": true,
+ "requires": {
+ "mkdirp": "^0.5.1"
+ }
+ },
"xtend": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz",
diff --git a/package.json b/package.json
index d10198f..4d842a9 100644
--- a/package.json
+++ b/package.json
@@ -3,10 +3,17 @@
"version": "1.0.0",
"description": "Wrapper for Topcoder Bus API",
"main": "index.js",
+ "scripts": {
+ "lint": "standard",
+ "lint:fix": "standard --fix"
+ },
"dependencies": {
"joi": "^13.4.0",
- "lodash": "^4.17.10",
+ "lodash": "^4.17.10",
"superagent": "^3.8.3",
"tc-core-library-js": "appirio-tech/tc-core-library-js.git#feature/m2mtoken"
+ },
+ "devDependencies": {
+ "standard": "^12.0.1"
}
}
diff --git a/src/EventsApi.js b/src/EventsApi.js
index 8b7ea92..45eeb2e 100644
--- a/src/EventsApi.js
+++ b/src/EventsApi.js
@@ -10,7 +10,7 @@ const helper = require('./common/helper')
* @param {Object} reqBody Body of the request to be Posted
* @returns {Promise}
*/
-function postEvent (config, reqBody) {
+const postEvent = async (config, reqBody) => {
return helper.reqToBusAPI(config, 'POST', `${config.BUSAPI_URL}/bus/events`, reqBody)
}
@@ -20,7 +20,7 @@ function postEvent (config, reqBody) {
* @param {Object} reqBody Body of the request to be Posted
* @returns {Promise}
*/
-function postError (config, reqBody) {
+const postError = async (config, reqBody) => {
// Set Error topic from configuration
reqBody.topic = config.KAFKA_ERROR_TOPIC
return helper.reqToBusAPI(config, 'POST', `${config.BUSAPI_URL}/bus/events`, reqBody)
diff --git a/src/HealthChecksApi.js b/src/HealthChecksApi.js
index 91a5950..9e95a1b 100644
--- a/src/HealthChecksApi.js
+++ b/src/HealthChecksApi.js
@@ -9,7 +9,7 @@ const helper = require('./common/helper')
* @param {Object} config Configuration object
* @returns {Promise}
*/
-function getHealth (config) {
+const getHealth = async (config) => {
return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/health`, null)
}
@@ -18,7 +18,7 @@ function getHealth (config) {
* @param {Object} config Configuration object
* @returns {Promise}
*/
-function headHealth (config) {
+const headHealth = async (config) => {
return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/health`, null)
}
diff --git a/src/PlaceholdersApi.js b/src/PlaceholdersApi.js
index 81d34e6..84eeb7c 100644
--- a/src/PlaceholdersApi.js
+++ b/src/PlaceholdersApi.js
@@ -9,7 +9,7 @@ const helper = require('./common/helper')
* @param {Object} config Configuration object
* @returns {Promise}
*/
-function clearPlaceholdersCache (config) {
+const clearPlaceholdersCache = async (config) => {
return helper.reqToBusAPI(config, 'DELETE', `${config.BUSAPI_URL}/bus/placeholders`, null)
}
diff --git a/src/ServiceApi.js b/src/ServiceApi.js
index 8f58d60..f10cd64 100644
--- a/src/ServiceApi.js
+++ b/src/ServiceApi.js
@@ -1,5 +1,5 @@
/*
- * Wrapper function for Service related end points
+ * Wrapper const for Service related end points
*/
const helper = require('./common/helper')
@@ -9,7 +9,7 @@ const helper = require('./common/helper')
* @param {Object} config Configuration object
* @returns {Promise}
*/
-function getServices (config) {
+const getServices = async (config) => {
return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/services`, null)
}
@@ -18,7 +18,7 @@ function getServices (config) {
* @param {Object} config Configuration object
* @returns {Promise}
*/
-function headServices (config) {
+const headServices = async (config) => {
return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/services`, null)
}
@@ -28,7 +28,7 @@ function headServices (config) {
* @param {Object} reqBody Body of the request
* @returns {Promise}
*/
-function createService (config, reqBody) {
+const createService = async (config, reqBody) => {
return helper.reqToBusAPI(config, 'POST', `${config.BUSAPI_URL}/bus/services`, reqBody)
}
@@ -38,7 +38,7 @@ function createService (config, reqBody) {
* @param {String} serviceName Service name
* @returns {Promise}
*/
-function getService (config, serviceName) {
+const getService = async (config, serviceName) => {
return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/services/${serviceName}`, null)
}
@@ -48,7 +48,7 @@ function getService (config, serviceName) {
* @param {String} serviceName Service name
* @returns {Promise}
*/
-function headService (config, serviceName) {
+const headService = async (config, serviceName) => {
return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/services/${serviceName}`, null)
}
@@ -59,7 +59,7 @@ function headService (config, serviceName) {
* @param {Object} reqBody Body of the request
* @returns {Promise}
*/
-function updateService (config, serviceName, reqBody) {
+const updateService = async (config, serviceName, reqBody) => {
return helper.reqToBusAPI(config, 'PUT', `${config.BUSAPI_URL}/bus/services/${serviceName}`, reqBody)
}
@@ -70,7 +70,7 @@ function updateService (config, serviceName, reqBody) {
* @param {Object} reqBody Body of the request
* @returns {Promise}
*/
-function patchService (config, serviceName, reqBody) {
+const patchService = async (config, serviceName, reqBody) => {
return helper.reqToBusAPI(config, 'PATCH', `${config.BUSAPI_URL}/bus/services/${serviceName}`, reqBody)
}
@@ -80,7 +80,7 @@ function patchService (config, serviceName, reqBody) {
* @param {String} serviceName Service name
* @returns {Promise}
*/
-function deleteService (config, serviceName) {
+const deleteService = async (config, serviceName) => {
return helper.reqToBusAPI(config, 'DELETE', `${config.BUSAPI_URL}/bus/services/${serviceName}`, null)
}
@@ -90,7 +90,7 @@ function deleteService (config, serviceName) {
* @param {String} serviceName Service name
* @returns {Promise}
*/
-function getServicePayloads (config, serviceName) {
+const getServicePayloads = async (config, serviceName) => {
return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads`, null)
}
@@ -100,7 +100,7 @@ function getServicePayloads (config, serviceName) {
* @param {String} serviceName Service name
* @returns {Promise}
*/
-function headServicePayloads (config, serviceName) {
+const headServicePayloads = async (config, serviceName) => {
return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads`, null)
}
@@ -111,7 +111,7 @@ function headServicePayloads (config, serviceName) {
* @param {Object} reqBody Body of the request
* @returns {Promise}
*/
-function createServicePayload (config, serviceName, reqBody) {
+const createServicePayload = async (config, serviceName, reqBody) => {
return helper.reqToBusAPI(config, 'POST', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads`, reqBody)
}
@@ -122,7 +122,7 @@ function createServicePayload (config, serviceName, reqBody) {
* @param (String) payloadName Payload name
* @returns {Promise}
*/
-function getServicePayload (config, serviceName, payloadName) {
+const getServicePayload = async (config, serviceName, payloadName) => {
return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads/${payloadName}`, null)
}
@@ -133,7 +133,7 @@ function getServicePayload (config, serviceName, payloadName) {
* @param (String) payloadName Payload name
* @returns {Promise}
*/
-function headServicePayload (config, serviceName, payloadName) {
+const headServicePayload = async (config, serviceName, payloadName) => {
return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads/${payloadName}`, null)
}
@@ -145,7 +145,7 @@ function headServicePayload (config, serviceName, payloadName) {
* @param {Object} reqBody Body of the request
* @returns {Promise}
*/
-function updateServicePayload (config, serviceName, payloadName, reqBody) {
+const updateServicePayload = async (config, serviceName, payloadName, reqBody) => {
return helper.reqToBusAPI(config, 'PUT', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads/${payloadName}`, reqBody)
}
@@ -157,7 +157,7 @@ function updateServicePayload (config, serviceName, payloadName, reqBody) {
* @param {Object} reqBody Body of the request
* @returns {Promise}
*/
-function patchServicePayload (config, serviceName, payloadName, reqBody) {
+const patchServicePayload = async (config, serviceName, payloadName, reqBody) => {
return helper.reqToBusAPI(config, 'PATCH', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads/${payloadName}`, reqBody)
}
@@ -168,7 +168,7 @@ function patchServicePayload (config, serviceName, payloadName, reqBody) {
* @param (String) payloadName Payload name
* @returns {Promise}
*/
-function deleteServicePayload (config, serviceName, payloadName) {
+const deleteServicePayload = async (config, serviceName, payloadName) => {
return helper.reqToBusAPI(config, 'DELETE', `${config.BUSAPI_URL}/bus/services/${serviceName}/payloads/${payloadName}`, null)
}
diff --git a/src/TopicsApi.js b/src/TopicsApi.js
index 32cf69e..45c96b5 100644
--- a/src/TopicsApi.js
+++ b/src/TopicsApi.js
@@ -9,7 +9,7 @@ const helper = require('./common/helper')
* @param {Object} config Configuration object
* @returns {Promise}
*/
-function getTopics (config) {
+const getTopics = async (config) => {
return helper.reqToBusAPI(config, 'GET', `${config.BUSAPI_URL}/bus/topics`, null)
}
@@ -18,7 +18,7 @@ function getTopics (config) {
* @param {Object} config Configuration object
* @returns {Promise}
*/
-function headTopics (config) {
+const headTopics = async (config) => {
return helper.reqToBusAPI(config, 'HEAD', `${config.BUSAPI_URL}/bus/topics`, null)
}
diff --git a/src/common/helper.js b/src/common/helper.js
index af4da55..89355b0 100644
--- a/src/common/helper.js
+++ b/src/common/helper.js
@@ -7,7 +7,7 @@ const _ = require('lodash')
* Function to get M2M token
* @returns {Promise}
*/
-function getM2Mtoken (config) {
+const getM2Mtoken = async (config) => {
const m2m = m2mAuth(_.pick(config, ['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME']))
return m2m.getMachineToken(config.AUTH0_CLIENT_ID, config.AUTH0_CLIENT_SECRET)
}
@@ -19,7 +19,7 @@ function getM2Mtoken (config) {
* @param{Object} reqBody Body of the request
* @returns {Promise}
*/
-function * reqToBusAPI (config, reqType, path, reqBody) {
+const reqToBusAPI = async (config, reqType, path, reqBody) => {
return getM2Mtoken(config).then((token) => {
// Based on request type perform necessary action
switch (reqType) {