From 4b4c6ca07f0e1a10512b2fa80dac991027423748 Mon Sep 17 00:00:00 2001 From: Phil Ma <9565865+phil-ma@users.noreply.github.com> Date: Thu, 5 Dec 2019 14:12:06 -0800 Subject: [PATCH] Update to v3.0.1 (#3) * Update to 3.0.1 * Removing extra spacing from documentation * Upgrade swagger version and use cursor object * Remove extra test files --- README.md | 112 +++---- docs/APIError.md | 14 +- docs/DraftRead.md | 2 +- docs/DraftsApi.md | 14 +- docs/DraftsRead.md | 2 +- docs/TemplateMetaRead.md | 2 +- docs/TemplateRead.md | 2 +- docs/TemplatesApi.md | 4 +- package.json | 7 +- src/ApiClient.js | 17 +- src/dyspatch-client/APIError.js | 66 ++-- src/dyspatch-client/Body.js | 25 +- src/dyspatch-client/CompiledRead.js | 61 ++-- src/dyspatch-client/CreatedAt.js | 23 +- src/dyspatch-client/Cursor.js | 34 +- src/dyspatch-client/DraftDescription.js | 23 +- src/dyspatch-client/DraftId.js | 23 +- src/dyspatch-client/DraftMetaRead.js | 79 ++--- src/dyspatch-client/DraftName.js | 23 +- src/dyspatch-client/DraftRead.js | 88 ++--- src/dyspatch-client/DraftUrl.js | 23 +- src/dyspatch-client/DraftsApi.js | 20 +- src/dyspatch-client/DraftsRead.js | 45 +-- src/dyspatch-client/LanguageId.js | 23 +- src/dyspatch-client/LocalizationId.js | 23 +- src/dyspatch-client/LocalizationKeyRead.js | 34 +- src/dyspatch-client/LocalizationMetaRead.js | 61 ++-- src/dyspatch-client/LocalizationName.js | 23 +- src/dyspatch-client/LocalizationRead.js | 88 ++--- src/dyspatch-client/LocalizationUrl.js | 23 +- src/dyspatch-client/LocalizationsApi.js | 6 +- src/dyspatch-client/TemplateDescription.js | 23 +- src/dyspatch-client/TemplateId.js | 23 +- src/dyspatch-client/TemplateMetaRead.js | 79 ++--- src/dyspatch-client/TemplateName.js | 23 +- src/dyspatch-client/TemplateRead.js | 88 ++--- src/dyspatch-client/TemplateUrl.js | 23 +- src/dyspatch-client/TemplatesApi.js | 8 +- src/dyspatch-client/TemplatesRead.js | 34 +- src/dyspatch-client/UpdatedAt.js | 23 +- src/index.js | 6 +- test/api/DraftsApi.spec.js | 136 -------- test/api/LocalizationsApi.spec.js | 66 ---- test/api/TemplatesApi.spec.js | 76 ----- test/assert-equals.js | 81 +++++ test/dyspatch-client/APIError.spec.js | 65 ++++ test/dyspatch-client/Body.spec.js | 53 +++ test/dyspatch-client/CompiledRead.spec.js | 77 +++++ test/dyspatch-client/CreatedAt.spec.js | 47 +++ test/dyspatch-client/Cursor.spec.js | 59 ++++ test/dyspatch-client/DraftDescription.spec.js | 47 +++ test/dyspatch-client/DraftId.spec.js | 47 +++ test/dyspatch-client/DraftMetaRead.spec.js | 89 +++++ test/dyspatch-client/DraftName.spec.js | 47 +++ test/dyspatch-client/DraftRead.spec.js | 95 ++++++ test/dyspatch-client/DraftUrl.spec.js | 47 +++ test/dyspatch-client/DraftsApi.spec.js | 309 ++++++++++++++++++ test/dyspatch-client/DraftsRead.spec.js | 59 ++++ test/dyspatch-client/LanguageId.spec.js | 47 +++ test/dyspatch-client/LocalizationId.spec.js | 47 +++ .../LocalizationKeyRead.spec.js | 59 ++++ .../LocalizationMetaRead.spec.js | 77 +++++ test/dyspatch-client/LocalizationName.spec.js | 47 +++ test/dyspatch-client/LocalizationRead.spec.js | 95 ++++++ test/dyspatch-client/LocalizationUrl.spec.js | 47 +++ test/dyspatch-client/LocalizationsApi.spec.js | 89 +++++ .../TemplateDescription.spec.js | 47 +++ test/dyspatch-client/TemplateId.spec.js | 47 +++ test/dyspatch-client/TemplateMetaRead.spec.js | 89 +++++ test/dyspatch-client/TemplateName.spec.js | 47 +++ test/dyspatch-client/TemplateRead.spec.js | 95 ++++++ test/dyspatch-client/TemplateUrl.spec.js | 47 +++ test/dyspatch-client/TemplatesApi.spec.js | 173 ++++++++++ test/dyspatch-client/TemplatesRead.spec.js | 59 ++++ test/dyspatch-client/UpdatedAt.spec.js | 47 +++ test/model/APIError.spec.js | 80 ----- test/model/Body.spec.js | 68 ---- test/model/CompiledRead.spec.js | 92 ------ test/model/CreatedAt.spec.js | 62 ---- test/model/Cursor.spec.js | 74 ----- test/model/DraftDescription.spec.js | 62 ---- test/model/DraftId.spec.js | 62 ---- test/model/DraftMetaRead.spec.js | 104 ------ test/model/DraftName.spec.js | 62 ---- test/model/DraftRead.spec.js | 110 ------- test/model/DraftUrl.spec.js | 62 ---- test/model/DraftsRead.spec.js | 74 ----- test/model/LanguageId.spec.js | 62 ---- test/model/LocalizationId.spec.js | 62 ---- test/model/LocalizationKeyRead.spec.js | 74 ----- test/model/LocalizationMetaRead.spec.js | 86 ----- test/model/LocalizationName.spec.js | 62 ---- test/model/LocalizationRead.spec.js | 110 ------- test/model/LocalizationUrl.spec.js | 62 ---- test/model/TemplateDescription.spec.js | 62 ---- test/model/TemplateId.spec.js | 62 ---- test/model/TemplateMetaRead.spec.js | 104 ------ test/model/TemplateName.spec.js | 62 ---- test/model/TemplateRead.spec.js | 110 ------- test/model/TemplateUrl.spec.js | 62 ---- test/model/TemplatesRead.spec.js | 74 ----- test/model/UpdatedAt.spec.js | 62 ---- 102 files changed, 2764 insertions(+), 3143 deletions(-) delete mode 100644 test/api/DraftsApi.spec.js delete mode 100644 test/api/LocalizationsApi.spec.js delete mode 100644 test/api/TemplatesApi.spec.js create mode 100644 test/assert-equals.js create mode 100644 test/dyspatch-client/APIError.spec.js create mode 100644 test/dyspatch-client/Body.spec.js create mode 100644 test/dyspatch-client/CompiledRead.spec.js create mode 100644 test/dyspatch-client/CreatedAt.spec.js create mode 100644 test/dyspatch-client/Cursor.spec.js create mode 100644 test/dyspatch-client/DraftDescription.spec.js create mode 100644 test/dyspatch-client/DraftId.spec.js create mode 100644 test/dyspatch-client/DraftMetaRead.spec.js create mode 100644 test/dyspatch-client/DraftName.spec.js create mode 100644 test/dyspatch-client/DraftRead.spec.js create mode 100644 test/dyspatch-client/DraftUrl.spec.js create mode 100644 test/dyspatch-client/DraftsApi.spec.js create mode 100644 test/dyspatch-client/DraftsRead.spec.js create mode 100644 test/dyspatch-client/LanguageId.spec.js create mode 100644 test/dyspatch-client/LocalizationId.spec.js create mode 100644 test/dyspatch-client/LocalizationKeyRead.spec.js create mode 100644 test/dyspatch-client/LocalizationMetaRead.spec.js create mode 100644 test/dyspatch-client/LocalizationName.spec.js create mode 100644 test/dyspatch-client/LocalizationRead.spec.js create mode 100644 test/dyspatch-client/LocalizationUrl.spec.js create mode 100644 test/dyspatch-client/LocalizationsApi.spec.js create mode 100644 test/dyspatch-client/TemplateDescription.spec.js create mode 100644 test/dyspatch-client/TemplateId.spec.js create mode 100644 test/dyspatch-client/TemplateMetaRead.spec.js create mode 100644 test/dyspatch-client/TemplateName.spec.js create mode 100644 test/dyspatch-client/TemplateRead.spec.js create mode 100644 test/dyspatch-client/TemplateUrl.spec.js create mode 100644 test/dyspatch-client/TemplatesApi.spec.js create mode 100644 test/dyspatch-client/TemplatesRead.spec.js create mode 100644 test/dyspatch-client/UpdatedAt.spec.js delete mode 100644 test/model/APIError.spec.js delete mode 100644 test/model/Body.spec.js delete mode 100644 test/model/CompiledRead.spec.js delete mode 100644 test/model/CreatedAt.spec.js delete mode 100644 test/model/Cursor.spec.js delete mode 100644 test/model/DraftDescription.spec.js delete mode 100644 test/model/DraftId.spec.js delete mode 100644 test/model/DraftMetaRead.spec.js delete mode 100644 test/model/DraftName.spec.js delete mode 100644 test/model/DraftRead.spec.js delete mode 100644 test/model/DraftUrl.spec.js delete mode 100644 test/model/DraftsRead.spec.js delete mode 100644 test/model/LanguageId.spec.js delete mode 100644 test/model/LocalizationId.spec.js delete mode 100644 test/model/LocalizationKeyRead.spec.js delete mode 100644 test/model/LocalizationMetaRead.spec.js delete mode 100644 test/model/LocalizationName.spec.js delete mode 100644 test/model/LocalizationRead.spec.js delete mode 100644 test/model/LocalizationUrl.spec.js delete mode 100644 test/model/TemplateDescription.spec.js delete mode 100644 test/model/TemplateId.spec.js delete mode 100644 test/model/TemplateMetaRead.spec.js delete mode 100644 test/model/TemplateName.spec.js delete mode 100644 test/model/TemplateRead.spec.js delete mode 100644 test/model/TemplateUrl.spec.js delete mode 100644 test/model/TemplatesRead.spec.js delete mode 100644 test/model/UpdatedAt.spec.js diff --git a/README.md b/README.md index e0cbae9..d64deec 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ See our [Implementation Guide](https://docs.dyspatch.io/development/implementing This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 2019.10 -- Package version: 3.0.0 +- Package version: 3.0.1 - Build package: io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit [https://docs.dyspatch.io](https://docs.dyspatch.io) @@ -25,8 +25,7 @@ npm install dyspatch-client --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: +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 @@ -44,8 +43,7 @@ Finally, switch to the directory you want to use your dyspatch-client from, and npm link /path/to/ ``` -You should now be able to `require('dyspatch-client')` in javascript files from the directory you ran the last -command above from. +You should now be able to `require('dyspatch-client')` in javascript files from the directory you ran the last command above from. #### git @@ -61,14 +59,14 @@ then install it via: 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 +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. +Then include *bundle.js* in the HTML pages. ### Webpack Configuration @@ -84,7 +82,7 @@ module: { amd: false } } - ]; + ] } ``` @@ -93,79 +91,83 @@ module: { Please follow the [installation](#installation) instruction and execute the following JS code: ```javascript -var DyspatchClient = require("dyspatch-client"); +var DyspatchClient = require('dyspatch-client'); var defaultClient = DyspatchClient.ApiClient.instance; // Configure API key authorization: Bearer -var Bearer = defaultClient.authentications["Bearer"]; -Bearer.apiKey = "YOUR API KEY"; +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 DyspatchClient.DraftsApi(); +var api = new DyspatchClient.DraftsApi() var draftId = "draftId_example"; // {String} A draft ID var targetLanguage = "targetLanguage_example"; // {String} The type of templating language to compile as. Should only be used for visual templates. + var callback = function(error, data, response) { if (error) { console.error(error); } else { - console.log("API called successfully. Returned data: " + data); + console.log('API called successfully. Returned data: ' + data); } }; api.draftsDraftIdGet(draftId, targetLanguage, callback); + ``` ## Documentation for API Endpoints -All URIs are relative to _https://api.dyspatch.io_ - -| Class | Method | HTTP request | Description | -| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | ------------------------------- | -| _DyspatchClient.DraftsApi_ | [**draftsDraftIdGet**](docs/DraftsApi.md#draftsDraftIdGet) | **GET** /drafts/{draftId} | Get Draft by ID | -| _DyspatchClient.DraftsApi_ | [**draftsDraftIdLocalizationKeysGet**](docs/DraftsApi.md#draftsDraftIdLocalizationKeysGet) | **GET** /drafts/{draftId}/localizationKeys | Get Localization Keys | -| _DyspatchClient.DraftsApi_ | [**draftsDraftIdLocalizationsGet**](docs/DraftsApi.md#draftsDraftIdLocalizationsGet) | **GET** /drafts/{draftId}/localizations | Get Localizations on a Draft | -| _DyspatchClient.DraftsApi_ | [**draftsDraftIdLocalizationsLanguageIdDelete**](docs/DraftsApi.md#draftsDraftIdLocalizationsLanguageIdDelete) | **DELETE** /drafts/{draftId}/localizations/{languageId} | Remove a Localization | -| _DyspatchClient.DraftsApi_ | [**draftsDraftIdLocalizationsLanguageIdPut**](docs/DraftsApi.md#draftsDraftIdLocalizationsLanguageIdPut) | **PUT** /drafts/{draftId}/localizations/{languageId} | Create or Update a Localization | -| _DyspatchClient.DraftsApi_ | [**draftsDraftIdLocalizationsLanguageIdTranslationsPut**](docs/DraftsApi.md#draftsDraftIdLocalizationsLanguageIdTranslationsPut) | **PUT** /drafts/{draftId}/localizations/{languageId}/translations | Set Translations for Language | -| _DyspatchClient.DraftsApi_ | [**draftsDraftIdPublishRequestPost**](docs/DraftsApi.md#draftsDraftIdPublishRequestPost) | **POST** /drafts/{draftId}/publishRequest | Submit the Draft for Approval | -| _DyspatchClient.DraftsApi_ | [**draftsGet**](docs/DraftsApi.md#draftsGet) | **GET** /drafts | List Drafts | -| _DyspatchClient.LocalizationsApi_ | [**localizationsLocalizationIdGet**](docs/LocalizationsApi.md#localizationsLocalizationIdGet) | **GET** /localizations/{localizationId} | Get Localization Object by ID | -| _DyspatchClient.TemplatesApi_ | [**templatesGet**](docs/TemplatesApi.md#templatesGet) | **GET** /templates | List Templates | -| _DyspatchClient.TemplatesApi_ | [**templatesTemplateIdGet**](docs/TemplatesApi.md#templatesTemplateIdGet) | **GET** /templates/{templateId} | Get Template by ID | +All URIs are relative to *https://api.dyspatch.io* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DyspatchClient.DraftsApi* | [**draftsDraftIdGet**](docs/DraftsApi.md#draftsDraftIdGet) | **GET** /drafts/{draftId} | Get Draft by ID +*DyspatchClient.DraftsApi* | [**draftsDraftIdLocalizationKeysGet**](docs/DraftsApi.md#draftsDraftIdLocalizationKeysGet) | **GET** /drafts/{draftId}/localizationKeys | Get Localization Keys +*DyspatchClient.DraftsApi* | [**draftsDraftIdLocalizationsGet**](docs/DraftsApi.md#draftsDraftIdLocalizationsGet) | **GET** /drafts/{draftId}/localizations | Get Localizations on a Draft +*DyspatchClient.DraftsApi* | [**draftsDraftIdLocalizationsLanguageIdDelete**](docs/DraftsApi.md#draftsDraftIdLocalizationsLanguageIdDelete) | **DELETE** /drafts/{draftId}/localizations/{languageId} | Remove a Localization +*DyspatchClient.DraftsApi* | [**draftsDraftIdLocalizationsLanguageIdPut**](docs/DraftsApi.md#draftsDraftIdLocalizationsLanguageIdPut) | **PUT** /drafts/{draftId}/localizations/{languageId} | Create or Update a Localization +*DyspatchClient.DraftsApi* | [**draftsDraftIdLocalizationsLanguageIdTranslationsPut**](docs/DraftsApi.md#draftsDraftIdLocalizationsLanguageIdTranslationsPut) | **PUT** /drafts/{draftId}/localizations/{languageId}/translations | Set Translations for Language +*DyspatchClient.DraftsApi* | [**draftsDraftIdPublishRequestPost**](docs/DraftsApi.md#draftsDraftIdPublishRequestPost) | **POST** /drafts/{draftId}/publishRequest | Submit the Draft for Approval +*DyspatchClient.DraftsApi* | [**draftsGet**](docs/DraftsApi.md#draftsGet) | **GET** /drafts | List Drafts +*DyspatchClient.LocalizationsApi* | [**localizationsLocalizationIdGet**](docs/LocalizationsApi.md#localizationsLocalizationIdGet) | **GET** /localizations/{localizationId} | Get Localization Object by ID +*DyspatchClient.TemplatesApi* | [**templatesGet**](docs/TemplatesApi.md#templatesGet) | **GET** /templates | List Templates +*DyspatchClient.TemplatesApi* | [**templatesTemplateIdGet**](docs/TemplatesApi.md#templatesTemplateIdGet) | **GET** /templates/{templateId} | Get Template by ID + ## Documentation for Models -- [DyspatchClient.APIError](docs/APIError.md) -- [DyspatchClient.Body](docs/Body.md) -- [DyspatchClient.CompiledRead](docs/CompiledRead.md) -- [DyspatchClient.CreatedAt](docs/CreatedAt.md) -- [DyspatchClient.Cursor](docs/Cursor.md) -- [DyspatchClient.DraftDescription](docs/DraftDescription.md) -- [DyspatchClient.DraftId](docs/DraftId.md) -- [DyspatchClient.DraftMetaRead](docs/DraftMetaRead.md) -- [DyspatchClient.DraftName](docs/DraftName.md) -- [DyspatchClient.DraftRead](docs/DraftRead.md) -- [DyspatchClient.DraftUrl](docs/DraftUrl.md) -- [DyspatchClient.DraftsRead](docs/DraftsRead.md) -- [DyspatchClient.LanguageId](docs/LanguageId.md) -- [DyspatchClient.LocalizationId](docs/LocalizationId.md) -- [DyspatchClient.LocalizationKeyRead](docs/LocalizationKeyRead.md) -- [DyspatchClient.LocalizationMetaRead](docs/LocalizationMetaRead.md) -- [DyspatchClient.LocalizationName](docs/LocalizationName.md) -- [DyspatchClient.LocalizationRead](docs/LocalizationRead.md) -- [DyspatchClient.LocalizationUrl](docs/LocalizationUrl.md) -- [DyspatchClient.TemplateDescription](docs/TemplateDescription.md) -- [DyspatchClient.TemplateId](docs/TemplateId.md) -- [DyspatchClient.TemplateMetaRead](docs/TemplateMetaRead.md) -- [DyspatchClient.TemplateName](docs/TemplateName.md) -- [DyspatchClient.TemplateRead](docs/TemplateRead.md) -- [DyspatchClient.TemplateUrl](docs/TemplateUrl.md) -- [DyspatchClient.TemplatesRead](docs/TemplatesRead.md) -- [DyspatchClient.UpdatedAt](docs/UpdatedAt.md) + - [DyspatchClient.APIError](docs/APIError.md) + - [DyspatchClient.Body](docs/Body.md) + - [DyspatchClient.CompiledRead](docs/CompiledRead.md) + - [DyspatchClient.CreatedAt](docs/CreatedAt.md) + - [DyspatchClient.Cursor](docs/Cursor.md) + - [DyspatchClient.DraftDescription](docs/DraftDescription.md) + - [DyspatchClient.DraftId](docs/DraftId.md) + - [DyspatchClient.DraftMetaRead](docs/DraftMetaRead.md) + - [DyspatchClient.DraftName](docs/DraftName.md) + - [DyspatchClient.DraftRead](docs/DraftRead.md) + - [DyspatchClient.DraftUrl](docs/DraftUrl.md) + - [DyspatchClient.DraftsRead](docs/DraftsRead.md) + - [DyspatchClient.LanguageId](docs/LanguageId.md) + - [DyspatchClient.LocalizationId](docs/LocalizationId.md) + - [DyspatchClient.LocalizationKeyRead](docs/LocalizationKeyRead.md) + - [DyspatchClient.LocalizationMetaRead](docs/LocalizationMetaRead.md) + - [DyspatchClient.LocalizationName](docs/LocalizationName.md) + - [DyspatchClient.LocalizationRead](docs/LocalizationRead.md) + - [DyspatchClient.LocalizationUrl](docs/LocalizationUrl.md) + - [DyspatchClient.TemplateDescription](docs/TemplateDescription.md) + - [DyspatchClient.TemplateId](docs/TemplateId.md) + - [DyspatchClient.TemplateMetaRead](docs/TemplateMetaRead.md) + - [DyspatchClient.TemplateName](docs/TemplateName.md) + - [DyspatchClient.TemplateRead](docs/TemplateRead.md) + - [DyspatchClient.TemplateUrl](docs/TemplateUrl.md) + - [DyspatchClient.TemplatesRead](docs/TemplatesRead.md) + - [DyspatchClient.UpdatedAt](docs/UpdatedAt.md) + ## Documentation for Authorization diff --git a/docs/APIError.md b/docs/APIError.md index 9558525..90974ab 100644 --- a/docs/APIError.md +++ b/docs/APIError.md @@ -5,28 +5,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **code** | **String** | Error code: * server_error - Internal server error. * invalid_parameter - Validation error, parameter will contain invalid field and message will contain the reason. * invalid_body - Body could not be parsed, message will contain the reason. * invalid_request - Validation error, the protocol used to make the request was not https. * unauthorized - Credentials were found but permissions were not sufficient. * unauthenticated - Credentials were not found or were not valid. * not_found - The requested resource was not found. * rate_limited - The request was refused because a rate limit was exceeded. There is an account wide rate limit of 3600 requests per-minute, although that is subject to change. The current remaining rate limit can be viewed by checking the X-Ratelimit-Remaining header. | [optional] **message** | **String** | Human readable error message | [optional] -**parameter** | **String** | The invalid parameter, if 'code' is invalid_parameter | [optional] +**parameter** | **String** | The invalid parameter, if 'code' is invalid_parameter | [optional] ## Enum: CodeEnum -* `server_error` (value: `"server_error"`) +* `serverError` (value: `"server_error"`) -* `invalid_parameter` (value: `"invalid_parameter"`) +* `invalidParameter` (value: `"invalid_parameter"`) -* `invalid_body` (value: `"invalid_body"`) +* `invalidBody` (value: `"invalid_body"`) -* `invalid_request` (value: `"invalid_request"`) +* `invalidRequest` (value: `"invalid_request"`) * `unauthorized` (value: `"unauthorized"`) * `unauthenticated` (value: `"unauthenticated"`) -* `not_found` (value: `"not_found"`) +* `notFound` (value: `"not_found"`) -* `rate_limited` (value: `"rate_limited"`) +* `rateLimited` (value: `"rate_limited"`) diff --git a/docs/DraftRead.md b/docs/DraftRead.md index bfca2a1..2eceed0 100644 --- a/docs/DraftRead.md +++ b/docs/DraftRead.md @@ -10,6 +10,6 @@ Name | Type | Description | Notes **compiled** | [**CompiledRead**](CompiledRead.md) | | [optional] **createdAt** | **Date** | The time of initial creation | [optional] **updatedAt** | **Date** | The time of last update | [optional] -**localizations** | [**[LocalizationMetaRead]**](LocalizationMetaRead.md) | A list of the Template's available localizations | [optional] +**localizations** | [**[LocalizationMetaRead]**](LocalizationMetaRead.md) | A list of the Template's available localizations | [optional] diff --git a/docs/DraftsApi.md b/docs/DraftsApi.md index 11dc2ce..8e223bb 100644 --- a/docs/DraftsApi.md +++ b/docs/DraftsApi.md @@ -20,7 +20,7 @@ Method | HTTP request | Description Get Draft by ID -Gets a draft object with the matching ID. The \"compiled\" field will contain the unlocalized default template object. +Gets a draft object with the matching ID. The \"compiled\" field will contain the unlocalized default template object. ### Example ```javascript @@ -76,7 +76,7 @@ Name | Type | Description | Notes Get Localization Keys -Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2019.10+json` to get a JSON object, or `text/vnd.dyspatch.2019.10+x-gettext-translation` to get the POT file. +Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2019.10+json` to get a JSON object, or `text/vnd.dyspatch.2019.10+x-gettext-translation` to get the POT file. ### Example ```javascript @@ -112,7 +112,7 @@ apiInstance.draftsDraftIdLocalizationKeysGet(draftId, , opts, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **draftId** | **String**| A draft ID | - **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\". | [optional] + **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\". | [optional] ### Return type @@ -186,7 +186,7 @@ Name | Type | Description | Notes Remove a Localization -Deletes the localization with the given `languageId` if it exists. +Deletes the localization with the given `languageId` if it exists. ### Example ```javascript @@ -242,7 +242,7 @@ null (empty response body) Create or Update a Localization -Inserts a localization or sets the name on an existing localization that already uses the `languageId`. +Inserts a localization or sets the name on an existing localization that already uses the `languageId`. ### Example ```javascript @@ -301,7 +301,7 @@ null (empty response body) Set Translations for Language -Completely replaces any existing translations for the given language with those provided in request body. Variables embedded in keys or values are expected to be in the format `%(my_variable)s` and will automatically convert to the correct Dyspatch format depending on the type of template. Accepts key/value pairs in JSON format or in gettext PO file format. For JSON set `Content-Type` header to `application/json`. For gettext PO format set `Content-Type` header to `text/x-gettext-translation`. +Completely replaces any existing translations for the given language with those provided in request body. Variables embedded in keys or values are expected to be in the format `%(my_variable)s` and will automatically convert to the correct Dyspatch format depending on the type of template. Accepts key/value pairs in JSON format or in gettext PO file format. For JSON set `Content-Type` header to `application/json`. For gettext PO format set `Content-Type` header to `text/x-gettext-translation`. ### Example ```javascript @@ -429,6 +429,7 @@ Bearer.apiKey = 'YOUR API KEY'; var apiInstance = new DyspatchClient.DraftsApi(); var opts = { + 'cursor': "cursor_example", // String | A cursor value used to retrieve a specific page from a paginated result set. 'status': "status_example" // String | Filter the list of drafts by a particular status }; @@ -446,6 +447,7 @@ apiInstance.draftsGet(opts, callback); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **cursor** | **String**| A cursor value used to retrieve a specific page from a paginated result set. | [optional] **status** | **String**| Filter the list of drafts by a particular status | [optional] ### Return type diff --git a/docs/DraftsRead.md b/docs/DraftsRead.md index 2cac0e4..2dd3532 100644 --- a/docs/DraftsRead.md +++ b/docs/DraftsRead.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cursor** | **Object** | Information about paginated results | [optional] +**cursor** | [**Cursor**](Cursor.md) | | [optional] **data** | [**[DraftMetaRead]**](DraftMetaRead.md) | A list of draft metadata objects | [optional] diff --git a/docs/TemplateMetaRead.md b/docs/TemplateMetaRead.md index 5ab8fcd..4ce1a2e 100644 --- a/docs/TemplateMetaRead.md +++ b/docs/TemplateMetaRead.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **name** | **String** | The name of a template | [optional] **description** | **String** | A description of the template | [optional] **url** | **String** | The API url for a specific template | [optional] -**localizations** | [**[LocalizationMetaRead]**](LocalizationMetaRead.md) | A list of the template's available localization objects | [optional] +**localizations** | [**[LocalizationMetaRead]**](LocalizationMetaRead.md) | A list of the template's available localization objects | [optional] **createdAt** | **Date** | The time of initial creation | [optional] **updatedAt** | **Date** | The time of last update | [optional] diff --git a/docs/TemplateRead.md b/docs/TemplateRead.md index e96a637..69be961 100644 --- a/docs/TemplateRead.md +++ b/docs/TemplateRead.md @@ -10,6 +10,6 @@ Name | Type | Description | Notes **compiled** | [**CompiledRead**](CompiledRead.md) | | [optional] **createdAt** | **Date** | The time of initial creation | [optional] **updatedAt** | **Date** | The time of last update | [optional] -**localizations** | [**[LocalizationMetaRead]**](LocalizationMetaRead.md) | A list of the Template's available localizations | [optional] +**localizations** | [**[LocalizationMetaRead]**](LocalizationMetaRead.md) | A list of the Template's available localizations | [optional] diff --git a/docs/TemplatesApi.md b/docs/TemplatesApi.md index d5b166e..f62c7b3 100644 --- a/docs/TemplatesApi.md +++ b/docs/TemplatesApi.md @@ -30,7 +30,7 @@ Bearer.apiKey = 'YOUR API KEY'; var apiInstance = new DyspatchClient.TemplatesApi(); var opts = { - 'cursor': "cursor_example" // String | A cursor value used to retrieve a specific page from a paginated result set. + 'cursor': "cursor_example", // String | A cursor value used to retrieve a specific page from a paginated result set. }; var callback = function(error, data, response) { @@ -68,7 +68,7 @@ Name | Type | Description | Notes Get Template by ID -Gets a template object with the matching ID. If the template has published content the \"compiled\" field will contain the template . +Gets a template object with the matching ID. If the template has published content the \"compiled\" field will contain the template . ### Example ```javascript diff --git a/package.json b/package.json index 68a8ca9..54a8a34 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,18 @@ { "name": "dyspatch-client", - "version": "3.0.0", + "version": "3.0.1", "description": "The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. For more information, please visit https://docs.dyspatch.io", "license": "Apache-2.0", "main": "src/index.js", "scripts": { - "test": "./node_modules/mocha/bin/mocha --recursive" + "test": "mocha --recursive" }, "browser": { "fs": false }, "dependencies": { - "superagent": "3.5.2" + "superagent": "3.7.0", + "querystring": "0.2.0" }, "devDependencies": { "mocha": "~2.3.4", diff --git a/src/ApiClient.js b/src/ApiClient.js index 4263b6f..2846c47 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -33,7 +33,7 @@ /** * @module ApiClient - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -111,7 +111,7 @@ return ''; } if (param instanceof Date) { - return param.toJSON(); + return param.toISOString(); } return param.toString(); }; @@ -496,12 +496,15 @@ }; /** - * Parses an ISO-8601 string representation of a date value. - * @param {String} str The date value as a string. + * Parses a string representation of a date value. + * @param {String} str The date value as an ISO-8601 full-date or date-time string. * @returns {Date} The parsed date object. */ exports.parseDate = function(str) { - return new Date(str.replace(/T/i, ' ')); + // OpenAPI 2.0 & 3.0 specs state that: + // - date values are serialized as ISO-8601 full-date strings. + // - date-time values are serialized as ISO-8601 date-time strings, in which the timezone offset is mandatory. + return new Date(str); }; /** diff --git a/src/dyspatch-client/APIError.js b/src/dyspatch-client/APIError.js index 17a923f..16aa540 100644 --- a/src/dyspatch-client/APIError.js +++ b/src/dyspatch-client/APIError.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The APIError model module. * @module dyspatch-client/APIError - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,11 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - }; /** @@ -63,16 +55,12 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('parameter')) { - obj['parameter'] = ApiClient.convertToType(data['parameter'], 'String'); - } + if (data.hasOwnProperty('code')) + obj.code = ApiClient.convertToType(data['code'], 'String'); + if (data.hasOwnProperty('message')) + obj.message = ApiClient.convertToType(data['message'], 'String'); + if (data.hasOwnProperty('parameter')) + obj.parameter = ApiClient.convertToType(data['parameter'], 'String'); } return obj; } @@ -81,17 +69,19 @@ * Error code: * server_error - Internal server error. * invalid_parameter - Validation error, parameter will contain invalid field and message will contain the reason. * invalid_body - Body could not be parsed, message will contain the reason. * invalid_request - Validation error, the protocol used to make the request was not https. * unauthorized - Credentials were found but permissions were not sufficient. * unauthenticated - Credentials were not found or were not valid. * not_found - The requested resource was not found. * rate_limited - The request was refused because a rate limit was exceeded. There is an account wide rate limit of 3600 requests per-minute, although that is subject to change. The current remaining rate limit can be viewed by checking the X-Ratelimit-Remaining header. * @member {module:dyspatch-client/APIError.CodeEnum} code */ - exports.prototype['code'] = undefined; + exports.prototype.code = undefined; + /** * Human readable error message * @member {String} message */ - exports.prototype['message'] = undefined; + exports.prototype.message = undefined; + /** * The invalid parameter, if 'code' is invalid_parameter * @member {String} parameter */ - exports.prototype['parameter'] = undefined; + exports.prototype.parameter = undefined; /** @@ -104,45 +94,51 @@ * value: "server_error" * @const */ - "server_error": "server_error", + serverError: "server_error", + /** * value: "invalid_parameter" * @const */ - "invalid_parameter": "invalid_parameter", + invalidParameter: "invalid_parameter", + /** * value: "invalid_body" * @const */ - "invalid_body": "invalid_body", + invalidBody: "invalid_body", + /** * value: "invalid_request" * @const */ - "invalid_request": "invalid_request", + invalidRequest: "invalid_request", + /** * value: "unauthorized" * @const */ - "unauthorized": "unauthorized", + unauthorized: "unauthorized", + /** * value: "unauthenticated" * @const */ - "unauthenticated": "unauthenticated", + unauthenticated: "unauthenticated", + /** * value: "not_found" * @const */ - "not_found": "not_found", + notFound: "not_found", + /** * value: "rate_limited" * @const */ - "rate_limited": "rate_limited" }; - + rateLimited: "rate_limited" + }; return exports; -})); - +})); diff --git a/src/dyspatch-client/Body.js b/src/dyspatch-client/Body.js index d9d7d58..68ce13c 100644 --- a/src/dyspatch-client/Body.js +++ b/src/dyspatch-client/Body.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The Body model module. * @module dyspatch-client/Body - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,9 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - }; /** @@ -61,10 +55,8 @@ 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('name')) + obj.name = ApiClient.convertToType(data['name'], 'String'); } return obj; } @@ -72,11 +64,8 @@ /** * @member {String} name */ - exports.prototype['name'] = undefined; - - + exports.prototype.name = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/CompiledRead.js b/src/dyspatch-client/CompiledRead.js index 3d347b8..973311d 100644 --- a/src/dyspatch-client/CompiledRead.js +++ b/src/dyspatch-client/CompiledRead.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The CompiledRead model module. * @module dyspatch-client/CompiledRead - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,13 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; /** @@ -65,22 +55,16 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('sender')) { - obj['sender'] = ApiClient.convertToType(data['sender'], 'String'); - } - if (data.hasOwnProperty('replyTo')) { - obj['replyTo'] = ApiClient.convertToType(data['replyTo'], 'String'); - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'Blob'); - } - if (data.hasOwnProperty('html')) { - obj['html'] = ApiClient.convertToType(data['html'], 'Blob'); - } - if (data.hasOwnProperty('text')) { - obj['text'] = ApiClient.convertToType(data['text'], 'Blob'); - } + if (data.hasOwnProperty('sender')) + obj.sender = ApiClient.convertToType(data['sender'], 'String'); + if (data.hasOwnProperty('replyTo')) + obj.replyTo = ApiClient.convertToType(data['replyTo'], 'String'); + if (data.hasOwnProperty('subject')) + obj.subject = ApiClient.convertToType(data['subject'], 'Blob'); + if (data.hasOwnProperty('html')) + obj.html = ApiClient.convertToType(data['html'], 'Blob'); + if (data.hasOwnProperty('text')) + obj.text = ApiClient.convertToType(data['text'], 'Blob'); } return obj; } @@ -89,31 +73,32 @@ * Sender address * @member {String} sender */ - exports.prototype['sender'] = undefined; + exports.prototype.sender = undefined; + /** * Reply-To address * @member {String} replyTo */ - exports.prototype['replyTo'] = undefined; + exports.prototype.replyTo = undefined; + /** * Base64 encoded template subject line * @member {Blob} subject */ - exports.prototype['subject'] = undefined; + exports.prototype.subject = undefined; + /** * Base64 encoded template HTML body * @member {Blob} html */ - exports.prototype['html'] = undefined; + exports.prototype.html = undefined; + /** * Base64 encoded template text body * @member {Blob} text */ - exports.prototype['text'] = undefined; - - + exports.prototype.text = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/CreatedAt.js b/src/dyspatch-client/CreatedAt.js index 479931a..adf8680 100644 --- a/src/dyspatch-client/CreatedAt.js +++ b/src/dyspatch-client/CreatedAt.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The CreatedAt model module. * @module dyspatch-client/CreatedAt - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/CreatedAt} The populated CreatedAt instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/Cursor.js b/src/dyspatch-client/Cursor.js index afcc621..9543969 100644 --- a/src/dyspatch-client/Cursor.js +++ b/src/dyspatch-client/Cursor.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The Cursor model module. * @module dyspatch-client/Cursor - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,10 +44,6 @@ * @class */ var exports = function() { - var _this = this; - - - }; /** @@ -63,13 +56,10 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - if (data.hasOwnProperty('hasMore')) { - obj['hasMore'] = ApiClient.convertToType(data['hasMore'], 'Boolean'); - } + if (data.hasOwnProperty('next')) + obj.next = ApiClient.convertToType(data['next'], 'String'); + if (data.hasOwnProperty('hasMore')) + obj.hasMore = ApiClient.convertToType(data['hasMore'], 'Boolean'); } return obj; } @@ -78,16 +68,14 @@ * A cursor to fetch the next page of results * @member {String} next */ - exports.prototype['next'] = undefined; + exports.prototype.next = undefined; + /** * Whether there is a next page of results * @member {Boolean} hasMore */ - exports.prototype['hasMore'] = undefined; - - + exports.prototype.hasMore = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/DraftDescription.js b/src/dyspatch-client/DraftDescription.js index a17cba6..d64fab7 100644 --- a/src/dyspatch-client/DraftDescription.js +++ b/src/dyspatch-client/DraftDescription.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The DraftDescription model module. * @module dyspatch-client/DraftDescription - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/DraftDescription} The populated DraftDescription instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/DraftId.js b/src/dyspatch-client/DraftId.js index 46e1d7c..d15ad30 100644 --- a/src/dyspatch-client/DraftId.js +++ b/src/dyspatch-client/DraftId.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The DraftId model module. * @module dyspatch-client/DraftId - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/DraftId} The populated DraftId instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/DraftMetaRead.js b/src/dyspatch-client/DraftMetaRead.js index af11dc7..81521b2 100644 --- a/src/dyspatch-client/DraftMetaRead.js +++ b/src/dyspatch-client/DraftMetaRead.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The DraftMetaRead model module. * @module dyspatch-client/DraftMetaRead - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,20 @@ 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('templateId')) { - obj['templateId'] = ApiClient.convertToType(data['templateId'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('updatedAt')) { - obj['updatedAt'] = ApiClient.convertToType(data['updatedAt'], 'Date'); - } + if (data.hasOwnProperty('id')) + obj.id = ApiClient.convertToType(data['id'], 'String'); + if (data.hasOwnProperty('templateId')) + obj.templateId = ApiClient.convertToType(data['templateId'], 'String'); + if (data.hasOwnProperty('name')) + obj.name = ApiClient.convertToType(data['name'], 'String'); + if (data.hasOwnProperty('description')) + obj.description = ApiClient.convertToType(data['description'], 'String'); + if (data.hasOwnProperty('url')) + obj.url = ApiClient.convertToType(data['url'], 'String'); + if (data.hasOwnProperty('createdAt')) + obj.createdAt = ApiClient.convertToType(data['createdAt'], 'Date'); + if (data.hasOwnProperty('updatedAt')) + obj.updatedAt = ApiClient.convertToType(data['updatedAt'], 'Date'); } return obj; } @@ -97,41 +77,44 @@ * An opaque, unique identifier for a draft * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype.id = undefined; + /** * An opaque, unique identifier for a template * @member {String} templateId */ - exports.prototype['templateId'] = undefined; + exports.prototype.templateId = undefined; + /** * The name of a draft * @member {String} name */ - exports.prototype['name'] = undefined; + exports.prototype.name = undefined; + /** * A description of the draft * @member {String} description */ - exports.prototype['description'] = undefined; + exports.prototype.description = undefined; + /** * The API url for a specific draft * @member {String} url */ - exports.prototype['url'] = undefined; + exports.prototype.url = undefined; + /** * The time of initial creation * @member {Date} createdAt */ - exports.prototype['createdAt'] = undefined; + exports.prototype.createdAt = undefined; + /** * The time of last update * @member {Date} updatedAt */ - exports.prototype['updatedAt'] = undefined; - - + exports.prototype.updatedAt = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/DraftName.js b/src/dyspatch-client/DraftName.js index ad37416..3618f7f 100644 --- a/src/dyspatch-client/DraftName.js +++ b/src/dyspatch-client/DraftName.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The DraftName model module. * @module dyspatch-client/DraftName - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/DraftName} The populated DraftName instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/DraftRead.js b/src/dyspatch-client/DraftRead.js index 3d69d1a..07fce03 100644 --- a/src/dyspatch-client/DraftRead.js +++ b/src/dyspatch-client/DraftRead.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient, CompiledRead, LocalizationMetaRead) { 'use strict'; - - - /** * The DraftRead model module. * @module dyspatch-client/DraftRead - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,16 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - }; /** @@ -68,31 +55,22 @@ 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('template')) { - obj['template'] = ApiClient.convertToType(data['template'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('compiled')) { - obj['compiled'] = CompiledRead.constructFromObject(data['compiled']); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('updatedAt')) { - obj['updatedAt'] = ApiClient.convertToType(data['updatedAt'], 'Date'); - } - if (data.hasOwnProperty('localizations')) { - obj['localizations'] = ApiClient.convertToType(data['localizations'], [LocalizationMetaRead]); - } + if (data.hasOwnProperty('id')) + obj.id = ApiClient.convertToType(data['id'], 'String'); + if (data.hasOwnProperty('template')) + obj.template = ApiClient.convertToType(data['template'], 'String'); + if (data.hasOwnProperty('name')) + obj.name = ApiClient.convertToType(data['name'], 'String'); + if (data.hasOwnProperty('url')) + obj.url = ApiClient.convertToType(data['url'], 'String'); + if (data.hasOwnProperty('compiled')) + obj.compiled = CompiledRead.constructFromObject(data['compiled']); + if (data.hasOwnProperty('createdAt')) + obj.createdAt = ApiClient.convertToType(data['createdAt'], 'Date'); + if (data.hasOwnProperty('updatedAt')) + obj.updatedAt = ApiClient.convertToType(data['updatedAt'], 'Date'); + if (data.hasOwnProperty('localizations')) + obj.localizations = ApiClient.convertToType(data['localizations'], [LocalizationMetaRead]); } return obj; } @@ -101,45 +79,49 @@ * An opaque, unique identifier for a draft * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype.id = undefined; + /** * An opaque, unique identifier for a template * @member {String} template */ - exports.prototype['template'] = undefined; + exports.prototype.template = undefined; + /** * The name of a draft * @member {String} name */ - exports.prototype['name'] = undefined; + exports.prototype.name = undefined; + /** * The API url for a specific draft * @member {String} url */ - exports.prototype['url'] = undefined; + exports.prototype.url = undefined; + /** * @member {module:dyspatch-client/CompiledRead} compiled */ - exports.prototype['compiled'] = undefined; + exports.prototype.compiled = undefined; + /** * The time of initial creation * @member {Date} createdAt */ - exports.prototype['createdAt'] = undefined; + exports.prototype.createdAt = undefined; + /** * The time of last update * @member {Date} updatedAt */ - exports.prototype['updatedAt'] = undefined; + exports.prototype.updatedAt = undefined; + /** * A list of the Template's available localizations * @member {Array.} localizations */ - exports.prototype['localizations'] = undefined; - - + exports.prototype.localizations = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/DraftUrl.js b/src/dyspatch-client/DraftUrl.js index a55b2e8..e237cd1 100644 --- a/src/dyspatch-client/DraftUrl.js +++ b/src/dyspatch-client/DraftUrl.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The DraftUrl model module. * @module dyspatch-client/DraftUrl - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/DraftUrl} The populated DraftUrl instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/DraftsApi.js b/src/dyspatch-client/DraftsApi.js index 3839384..8b8cdd2 100644 --- a/src/dyspatch-client/DraftsApi.js +++ b/src/dyspatch-client/DraftsApi.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -34,7 +34,7 @@ /** * Drafts service. * @module dyspatch-client/DraftsApi - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -58,7 +58,7 @@ /** * Get Draft by ID - * Gets a draft object with the matching ID. The \"compiled\" field will contain the unlocalized default template object. + * Gets a draft object with the matching ID. The \"compiled\" field will contain the unlocalized default template object. * @param {String} draftId A draft ID * @param {module:dyspatch-client/String} targetLanguage The type of templating language to compile as. Should only be used for visual templates. * @param {module:dyspatch-client/DraftsApi~draftsDraftIdGetCallback} callback The callback function, accepting three arguments: error, data, response @@ -113,10 +113,10 @@ /** * Get Localization Keys - * Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2019.10+json` to get a JSON object, or `text/vnd.dyspatch.2019.10+x-gettext-translation` to get the POT file. + * Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2019.10+json` to get a JSON object, or `text/vnd.dyspatch.2019.10+x-gettext-translation` to get the POT file. * @param {String} draftId A draft ID * @param {Object} opts Optional parameters - * @param {String} opts.accept A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\". + * @param {String} opts.accept A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\". * @param {module:dyspatch-client/DraftsApi~draftsDraftIdLocalizationKeysGetCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.} */ @@ -213,7 +213,7 @@ /** * Remove a Localization - * Deletes the localization with the given `languageId` if it exists. + * Deletes the localization with the given `languageId` if it exists. * @param {String} draftId A draft ID * @param {String} languageId A language ID (eg: en-US) * @param {module:dyspatch-client/DraftsApi~draftsDraftIdLocalizationsLanguageIdDeleteCallback} callback The callback function, accepting three arguments: error, data, response @@ -267,7 +267,7 @@ /** * Create or Update a Localization - * Inserts a localization or sets the name on an existing localization that already uses the `languageId`. + * Inserts a localization or sets the name on an existing localization that already uses the `languageId`. * @param {String} draftId A draft ID * @param {String} languageId A language ID (eg: en-US) * @param {module:dyspatch-client/Body} body @@ -327,7 +327,7 @@ /** * Set Translations for Language - * Completely replaces any existing translations for the given language with those provided in request body. Variables embedded in keys or values are expected to be in the format `%(my_variable)s` and will automatically convert to the correct Dyspatch format depending on the type of template. Accepts key/value pairs in JSON format or in gettext PO file format. For JSON set `Content-Type` header to `application/json`. For gettext PO format set `Content-Type` header to `text/x-gettext-translation`. + * Completely replaces any existing translations for the given language with those provided in request body. Variables embedded in keys or values are expected to be in the format `%(my_variable)s` and will automatically convert to the correct Dyspatch format depending on the type of template. Accepts key/value pairs in JSON format or in gettext PO file format. For JSON set `Content-Type` header to `application/json`. For gettext PO format set `Content-Type` header to `text/x-gettext-translation`. * @param {String} draftId A draft ID * @param {String} languageId A language ID (eg: en-US) * @param {Object} body @@ -436,6 +436,7 @@ * List Drafts * Gets a list of all drafts for your oranization. Up to 25 results returned before results are paginated. * @param {Object} opts Optional parameters + * @param {String} opts.cursor A cursor value used to retrieve a specific page from a paginated result set. * @param {module:dyspatch-client/String} opts.status Filter the list of drafts by a particular status * @param {module:dyspatch-client/DraftsApi~draftsGetCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:dyspatch-client/DraftsRead} @@ -448,6 +449,7 @@ var pathParams = { }; var queryParams = { + 'cursor': opts['cursor'], 'status': opts['status'], }; var collectionQueryParams = { diff --git a/src/dyspatch-client/DraftsRead.js b/src/dyspatch-client/DraftsRead.js index 645fe9f..9bd2ea6 100644 --- a/src/dyspatch-client/DraftsRead.js +++ b/src/dyspatch-client/DraftsRead.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -17,27 +17,24 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'dyspatch-client/DraftMetaRead'], factory); + define(['ApiClient', 'dyspatch-client/Cursor', 'dyspatch-client/DraftMetaRead'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./DraftMetaRead')); + module.exports = factory(require('../ApiClient'), require('./Cursor'), require('./DraftMetaRead')); } else { // Browser globals (root is window) if (!root.DyspatchClient) { root.DyspatchClient = {}; } - root.DyspatchClient.DraftsRead = factory(root.DyspatchClient.ApiClient, root.DyspatchClient.DraftMetaRead); + root.DyspatchClient.DraftsRead = factory(root.DyspatchClient.ApiClient, root.DyspatchClient.Cursor, root.DyspatchClient.DraftMetaRead); } -}(this, function(ApiClient, DraftMetaRead) { +}(this, function(ApiClient, Cursor, DraftMetaRead) { 'use strict'; - - - /** * The DraftsRead model module. * @module dyspatch-client/DraftsRead - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,10 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - }; /** @@ -62,31 +55,25 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('cursor')) { - obj['cursor'] = ApiClient.convertToType(data['cursor'], Object); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [DraftMetaRead]); - } + if (data.hasOwnProperty('cursor')) + obj.cursor = Cursor.constructFromObject(data['cursor']); + if (data.hasOwnProperty('data')) + obj.data = ApiClient.convertToType(data['data'], [DraftMetaRead]); } return obj; } /** - * Information about paginated results - * @member {Object} cursor + * @member {module:dyspatch-client/Cursor} cursor */ - exports.prototype['cursor'] = undefined; + exports.prototype.cursor = undefined; + /** * A list of draft metadata objects * @member {Array.} data */ - exports.prototype['data'] = undefined; - - + exports.prototype.data = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/LanguageId.js b/src/dyspatch-client/LanguageId.js index 0fd0b42..4e64ebf 100644 --- a/src/dyspatch-client/LanguageId.js +++ b/src/dyspatch-client/LanguageId.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The LanguageId model module. * @module dyspatch-client/LanguageId - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/LanguageId} The populated LanguageId instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/LocalizationId.js b/src/dyspatch-client/LocalizationId.js index 95bf00d..bc3b808 100644 --- a/src/dyspatch-client/LocalizationId.js +++ b/src/dyspatch-client/LocalizationId.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The LocalizationId model module. * @module dyspatch-client/LocalizationId - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/LocalizationId} The populated LocalizationId instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/LocalizationKeyRead.js b/src/dyspatch-client/LocalizationKeyRead.js index 6bf07e8..7a79991 100644 --- a/src/dyspatch-client/LocalizationKeyRead.js +++ b/src/dyspatch-client/LocalizationKeyRead.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The LocalizationKeyRead model module. * @module dyspatch-client/LocalizationKeyRead - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,10 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - }; /** @@ -62,13 +55,10 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('comment')) { - obj['comment'] = ApiClient.convertToType(data['comment'], 'String'); - } + if (data.hasOwnProperty('key')) + obj.key = ApiClient.convertToType(data['key'], 'String'); + if (data.hasOwnProperty('comment')) + obj.comment = ApiClient.convertToType(data['comment'], 'String'); } return obj; } @@ -76,15 +66,13 @@ /** * @member {String} key */ - exports.prototype['key'] = undefined; + exports.prototype.key = undefined; + /** * @member {String} comment */ - exports.prototype['comment'] = undefined; - - + exports.prototype.comment = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/LocalizationMetaRead.js b/src/dyspatch-client/LocalizationMetaRead.js index 344896c..886bdf0 100644 --- a/src/dyspatch-client/LocalizationMetaRead.js +++ b/src/dyspatch-client/LocalizationMetaRead.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The LocalizationMetaRead model module. * @module dyspatch-client/LocalizationMetaRead - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,13 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; /** @@ -65,22 +55,16 @@ 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('language')) { - obj['language'] = ApiClient.convertToType(data['language'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('draft')) { - obj['draft'] = ApiClient.convertToType(data['draft'], 'String'); - } + if (data.hasOwnProperty('id')) + obj.id = ApiClient.convertToType(data['id'], 'String'); + if (data.hasOwnProperty('language')) + obj.language = ApiClient.convertToType(data['language'], 'String'); + if (data.hasOwnProperty('name')) + obj.name = ApiClient.convertToType(data['name'], 'String'); + if (data.hasOwnProperty('url')) + obj.url = ApiClient.convertToType(data['url'], 'String'); + if (data.hasOwnProperty('draft')) + obj.draft = ApiClient.convertToType(data['draft'], 'String'); } return obj; } @@ -89,31 +73,32 @@ * An opaque, unique identifier for a localization * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype.id = undefined; + /** * A language identifier comprised of a language and a country identifier. See [supported languages](https://docs.dyspatch.io/localization/supported_languages/). * @member {String} language */ - exports.prototype['language'] = undefined; + exports.prototype.language = undefined; + /** * The user-specified name of a localization * @member {String} name */ - exports.prototype['name'] = undefined; + exports.prototype.name = undefined; + /** * The API url for a specific localization * @member {String} url */ - exports.prototype['url'] = undefined; + exports.prototype.url = undefined; + /** * An opaque, unique identifier for a draft * @member {String} draft */ - exports.prototype['draft'] = undefined; - - + exports.prototype.draft = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/LocalizationName.js b/src/dyspatch-client/LocalizationName.js index 12b6a7e..ef9b4ce 100644 --- a/src/dyspatch-client/LocalizationName.js +++ b/src/dyspatch-client/LocalizationName.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The LocalizationName model module. * @module dyspatch-client/LocalizationName - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/LocalizationName} The populated LocalizationName instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/LocalizationRead.js b/src/dyspatch-client/LocalizationRead.js index 7f33124..97f2621 100644 --- a/src/dyspatch-client/LocalizationRead.js +++ b/src/dyspatch-client/LocalizationRead.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient, CompiledRead) { 'use strict'; - - - /** * The LocalizationRead model module. * @module dyspatch-client/LocalizationRead - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,16 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - }; /** @@ -68,31 +55,22 @@ 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('language')) { - obj['language'] = ApiClient.convertToType(data['language'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('template')) { - obj['template'] = ApiClient.convertToType(data['template'], 'String'); - } - if (data.hasOwnProperty('compiled')) { - obj['compiled'] = CompiledRead.constructFromObject(data['compiled']); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('updatedAt')) { - obj['updatedAt'] = ApiClient.convertToType(data['updatedAt'], 'Date'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } + if (data.hasOwnProperty('id')) + obj.id = ApiClient.convertToType(data['id'], 'String'); + if (data.hasOwnProperty('language')) + obj.language = ApiClient.convertToType(data['language'], 'String'); + if (data.hasOwnProperty('url')) + obj.url = ApiClient.convertToType(data['url'], 'String'); + if (data.hasOwnProperty('template')) + obj.template = ApiClient.convertToType(data['template'], 'String'); + if (data.hasOwnProperty('compiled')) + obj.compiled = CompiledRead.constructFromObject(data['compiled']); + if (data.hasOwnProperty('createdAt')) + obj.createdAt = ApiClient.convertToType(data['createdAt'], 'Date'); + if (data.hasOwnProperty('updatedAt')) + obj.updatedAt = ApiClient.convertToType(data['updatedAt'], 'Date'); + if (data.hasOwnProperty('name')) + obj.name = ApiClient.convertToType(data['name'], 'String'); } return obj; } @@ -101,45 +79,49 @@ * An opaque, unique identifier for a localization * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype.id = undefined; + /** * A language identifier comprised of a language and a country identifier. See [supported languages](https://docs.dyspatch.io/localization/supported_languages/). * @member {String} language */ - exports.prototype['language'] = undefined; + exports.prototype.language = undefined; + /** * The API url for a specific localization * @member {String} url */ - exports.prototype['url'] = undefined; + exports.prototype.url = undefined; + /** * An opaque, unique identifier for a template * @member {String} template */ - exports.prototype['template'] = undefined; + exports.prototype.template = undefined; + /** * @member {module:dyspatch-client/CompiledRead} compiled */ - exports.prototype['compiled'] = undefined; + exports.prototype.compiled = undefined; + /** * The time of initial creation * @member {Date} createdAt */ - exports.prototype['createdAt'] = undefined; + exports.prototype.createdAt = undefined; + /** * The time of last update * @member {Date} updatedAt */ - exports.prototype['updatedAt'] = undefined; + exports.prototype.updatedAt = undefined; + /** * The user-specified name of a localization * @member {String} name */ - exports.prototype['name'] = undefined; - - + exports.prototype.name = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/LocalizationUrl.js b/src/dyspatch-client/LocalizationUrl.js index 3a7e5df..7251e24 100644 --- a/src/dyspatch-client/LocalizationUrl.js +++ b/src/dyspatch-client/LocalizationUrl.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The LocalizationUrl model module. * @module dyspatch-client/LocalizationUrl - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/LocalizationUrl} The populated LocalizationUrl instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/LocalizationsApi.js b/src/dyspatch-client/LocalizationsApi.js index 238a6fc..2be7fbc 100644 --- a/src/dyspatch-client/LocalizationsApi.js +++ b/src/dyspatch-client/LocalizationsApi.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -34,7 +34,7 @@ /** * Localizations service. * @module dyspatch-client/LocalizationsApi - * @version 3.0.0 + * @version 3.0.1 */ /** diff --git a/src/dyspatch-client/TemplateDescription.js b/src/dyspatch-client/TemplateDescription.js index 503396f..987ce05 100644 --- a/src/dyspatch-client/TemplateDescription.js +++ b/src/dyspatch-client/TemplateDescription.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The TemplateDescription model module. * @module dyspatch-client/TemplateDescription - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/TemplateDescription} The populated TemplateDescription instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/TemplateId.js b/src/dyspatch-client/TemplateId.js index b04a9d1..5776983 100644 --- a/src/dyspatch-client/TemplateId.js +++ b/src/dyspatch-client/TemplateId.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The TemplateId model module. * @module dyspatch-client/TemplateId - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/TemplateId} The populated TemplateId instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/TemplateMetaRead.js b/src/dyspatch-client/TemplateMetaRead.js index 698cd34..e78c0a7 100644 --- a/src/dyspatch-client/TemplateMetaRead.js +++ b/src/dyspatch-client/TemplateMetaRead.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient, LocalizationMetaRead) { 'use strict'; - - - /** * The TemplateMetaRead model module. * @module dyspatch-client/TemplateMetaRead - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,15 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; /** @@ -67,28 +55,20 @@ 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('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('localizations')) { - obj['localizations'] = ApiClient.convertToType(data['localizations'], [LocalizationMetaRead]); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('updatedAt')) { - obj['updatedAt'] = ApiClient.convertToType(data['updatedAt'], 'Date'); - } + if (data.hasOwnProperty('id')) + obj.id = ApiClient.convertToType(data['id'], 'String'); + if (data.hasOwnProperty('name')) + obj.name = ApiClient.convertToType(data['name'], 'String'); + if (data.hasOwnProperty('description')) + obj.description = ApiClient.convertToType(data['description'], 'String'); + if (data.hasOwnProperty('url')) + obj.url = ApiClient.convertToType(data['url'], 'String'); + if (data.hasOwnProperty('localizations')) + obj.localizations = ApiClient.convertToType(data['localizations'], [LocalizationMetaRead]); + if (data.hasOwnProperty('createdAt')) + obj.createdAt = ApiClient.convertToType(data['createdAt'], 'Date'); + if (data.hasOwnProperty('updatedAt')) + obj.updatedAt = ApiClient.convertToType(data['updatedAt'], 'Date'); } return obj; } @@ -97,41 +77,44 @@ * An opaque, unique identifier for a template * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype.id = undefined; + /** * The name of a template * @member {String} name */ - exports.prototype['name'] = undefined; + exports.prototype.name = undefined; + /** * A description of the template * @member {String} description */ - exports.prototype['description'] = undefined; + exports.prototype.description = undefined; + /** * The API url for a specific template * @member {String} url */ - exports.prototype['url'] = undefined; + exports.prototype.url = undefined; + /** * A list of the template's available localization objects * @member {Array.} localizations */ - exports.prototype['localizations'] = undefined; + exports.prototype.localizations = undefined; + /** * The time of initial creation * @member {Date} createdAt */ - exports.prototype['createdAt'] = undefined; + exports.prototype.createdAt = undefined; + /** * The time of last update * @member {Date} updatedAt */ - exports.prototype['updatedAt'] = undefined; - - + exports.prototype.updatedAt = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/TemplateName.js b/src/dyspatch-client/TemplateName.js index 7b02171..71ef7fa 100644 --- a/src/dyspatch-client/TemplateName.js +++ b/src/dyspatch-client/TemplateName.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The TemplateName model module. * @module dyspatch-client/TemplateName - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/TemplateName} The populated TemplateName instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/TemplateRead.js b/src/dyspatch-client/TemplateRead.js index 9dd7e53..9cd033d 100644 --- a/src/dyspatch-client/TemplateRead.js +++ b/src/dyspatch-client/TemplateRead.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient, CompiledRead, LocalizationMetaRead) { 'use strict'; - - - /** * The TemplateRead model module. * @module dyspatch-client/TemplateRead - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,16 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - }; /** @@ -68,31 +55,22 @@ 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('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('compiled')) { - obj['compiled'] = CompiledRead.constructFromObject(data['compiled']); - } - if (data.hasOwnProperty('createdAt')) { - obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date'); - } - if (data.hasOwnProperty('updatedAt')) { - obj['updatedAt'] = ApiClient.convertToType(data['updatedAt'], 'Date'); - } - if (data.hasOwnProperty('localizations')) { - obj['localizations'] = ApiClient.convertToType(data['localizations'], [LocalizationMetaRead]); - } + if (data.hasOwnProperty('id')) + obj.id = ApiClient.convertToType(data['id'], 'String'); + if (data.hasOwnProperty('name')) + obj.name = ApiClient.convertToType(data['name'], 'String'); + if (data.hasOwnProperty('description')) + obj.description = ApiClient.convertToType(data['description'], 'String'); + if (data.hasOwnProperty('url')) + obj.url = ApiClient.convertToType(data['url'], 'String'); + if (data.hasOwnProperty('compiled')) + obj.compiled = CompiledRead.constructFromObject(data['compiled']); + if (data.hasOwnProperty('createdAt')) + obj.createdAt = ApiClient.convertToType(data['createdAt'], 'Date'); + if (data.hasOwnProperty('updatedAt')) + obj.updatedAt = ApiClient.convertToType(data['updatedAt'], 'Date'); + if (data.hasOwnProperty('localizations')) + obj.localizations = ApiClient.convertToType(data['localizations'], [LocalizationMetaRead]); } return obj; } @@ -101,45 +79,49 @@ * An opaque, unique identifier for a template * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype.id = undefined; + /** * The name of a template * @member {String} name */ - exports.prototype['name'] = undefined; + exports.prototype.name = undefined; + /** * A description of the template * @member {String} description */ - exports.prototype['description'] = undefined; + exports.prototype.description = undefined; + /** * The API url for a specific template * @member {String} url */ - exports.prototype['url'] = undefined; + exports.prototype.url = undefined; + /** * @member {module:dyspatch-client/CompiledRead} compiled */ - exports.prototype['compiled'] = undefined; + exports.prototype.compiled = undefined; + /** * The time of initial creation * @member {Date} createdAt */ - exports.prototype['createdAt'] = undefined; + exports.prototype.createdAt = undefined; + /** * The time of last update * @member {Date} updatedAt */ - exports.prototype['updatedAt'] = undefined; + exports.prototype.updatedAt = undefined; + /** * A list of the Template's available localizations * @member {Array.} localizations */ - exports.prototype['localizations'] = undefined; - - + exports.prototype.localizations = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/TemplateUrl.js b/src/dyspatch-client/TemplateUrl.js index 885c784..b25ee91 100644 --- a/src/dyspatch-client/TemplateUrl.js +++ b/src/dyspatch-client/TemplateUrl.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The TemplateUrl model module. * @module dyspatch-client/TemplateUrl - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/TemplateUrl} The populated TemplateUrl instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/dyspatch-client/TemplatesApi.js b/src/dyspatch-client/TemplatesApi.js index d8bd604..1b6b1ba 100644 --- a/src/dyspatch-client/TemplatesApi.js +++ b/src/dyspatch-client/TemplatesApi.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -34,7 +34,7 @@ /** * Templates service. * @module dyspatch-client/TemplatesApi - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -103,7 +103,7 @@ /** * Get Template by ID - * Gets a template object with the matching ID. If the template has published content the \"compiled\" field will contain the template . + * Gets a template object with the matching ID. If the template has published content the \"compiled\" field will contain the template . * @param {String} templateId A template ID * @param {module:dyspatch-client/String} targetLanguage The type of templating language to compile as. Should only be used for visual templates. * @param {module:dyspatch-client/TemplatesApi~templatesTemplateIdGetCallback} callback The callback function, accepting three arguments: error, data, response diff --git a/src/dyspatch-client/TemplatesRead.js b/src/dyspatch-client/TemplatesRead.js index 7e5498c..f6bb02d 100644 --- a/src/dyspatch-client/TemplatesRead.js +++ b/src/dyspatch-client/TemplatesRead.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient, Cursor, TemplateMetaRead) { 'use strict'; - - - /** * The TemplatesRead model module. * @module dyspatch-client/TemplatesRead - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -46,10 +43,6 @@ * @class */ var exports = function() { - var _this = this; - - - }; /** @@ -62,13 +55,10 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - - if (data.hasOwnProperty('cursor')) { - obj['cursor'] = Cursor.constructFromObject(data['cursor']); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [TemplateMetaRead]); - } + if (data.hasOwnProperty('cursor')) + obj.cursor = Cursor.constructFromObject(data['cursor']); + if (data.hasOwnProperty('data')) + obj.data = ApiClient.convertToType(data['data'], [TemplateMetaRead]); } return obj; } @@ -76,16 +66,14 @@ /** * @member {module:dyspatch-client/Cursor} cursor */ - exports.prototype['cursor'] = undefined; + exports.prototype.cursor = undefined; + /** * A list of template metadata objects * @member {Array.} data */ - exports.prototype['data'] = undefined; - - + exports.prototype.data = undefined; return exports; -})); - +})); diff --git a/src/dyspatch-client/UpdatedAt.js b/src/dyspatch-client/UpdatedAt.js index e72f881..6d65a20 100644 --- a/src/dyspatch-client/UpdatedAt.js +++ b/src/dyspatch-client/UpdatedAt.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -31,13 +31,10 @@ }(this, function(ApiClient) { 'use strict'; - - - /** * The UpdatedAt model module. * @module dyspatch-client/UpdatedAt - * @version 3.0.0 + * @version 3.0.1 */ /** @@ -47,8 +44,6 @@ * @class */ var exports = function() { - var _this = this; - }; /** @@ -59,17 +54,9 @@ * @return {module:dyspatch-client/UpdatedAt} The populated UpdatedAt instance. */ exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; + return data; } - - - return exports; -})); - +})); diff --git a/src/index.js b/src/index.js index d0daa65..1626387 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -/** +/* * Dyspatch API * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. * @@ -8,7 +8,7 @@ * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * - * Swagger Codegen version: 2.3.1 + * Swagger Codegen version: 2.4.10 * * Do not edit the class manually. * @@ -54,7 +54,7 @@ * *

* @module index - * @version 3.0.0 + * @version 3.0.1 */ var exports = { /** diff --git a/test/api/DraftsApi.spec.js b/test/api/DraftsApi.spec.js deleted file mode 100644 index 84a203f..0000000 --- a/test/api/DraftsApi.spec.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) - * - * OpenAPI spec version: 2019.10 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.DyspatchClient); - } -}(this, function(expect, DyspatchClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new DyspatchClient.DraftsApi(); - }); - - 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('DraftsApi', function() { - describe('draftsDraftIdGet', function() { - it('should call draftsDraftIdGet successfully', function(done) { - //uncomment below and update the code to test draftsDraftIdGet - //instance.draftsDraftIdGet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('draftsDraftIdLocalizationKeysGet', function() { - it('should call draftsDraftIdLocalizationKeysGet successfully', function(done) { - //uncomment below and update the code to test draftsDraftIdLocalizationKeysGet - //instance.draftsDraftIdLocalizationKeysGet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('draftsDraftIdLocalizationsGet', function() { - it('should call draftsDraftIdLocalizationsGet successfully', function(done) { - //uncomment below and update the code to test draftsDraftIdLocalizationsGet - //instance.draftsDraftIdLocalizationsGet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('draftsDraftIdLocalizationsLanguageIdDelete', function() { - it('should call draftsDraftIdLocalizationsLanguageIdDelete successfully', function(done) { - //uncomment below and update the code to test draftsDraftIdLocalizationsLanguageIdDelete - //instance.draftsDraftIdLocalizationsLanguageIdDelete(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('draftsDraftIdLocalizationsLanguageIdPut', function() { - it('should call draftsDraftIdLocalizationsLanguageIdPut successfully', function(done) { - //uncomment below and update the code to test draftsDraftIdLocalizationsLanguageIdPut - //instance.draftsDraftIdLocalizationsLanguageIdPut(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('draftsDraftIdLocalizationsLanguageIdTranslationsPut', function() { - it('should call draftsDraftIdLocalizationsLanguageIdTranslationsPut successfully', function(done) { - //uncomment below and update the code to test draftsDraftIdLocalizationsLanguageIdTranslationsPut - //instance.draftsDraftIdLocalizationsLanguageIdTranslationsPut(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('draftsDraftIdPublishRequestPost', function() { - it('should call draftsDraftIdPublishRequestPost successfully', function(done) { - //uncomment below and update the code to test draftsDraftIdPublishRequestPost - //instance.draftsDraftIdPublishRequestPost(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('draftsGet', function() { - it('should call draftsGet successfully', function(done) { - //uncomment below and update the code to test draftsGet - //instance.draftsGet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/test/api/LocalizationsApi.spec.js b/test/api/LocalizationsApi.spec.js deleted file mode 100644 index 191ba6c..0000000 --- a/test/api/LocalizationsApi.spec.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.LocalizationsApi(); - }); - - 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('LocalizationsApi', function() { - describe('localizationsLocalizationIdGet', function() { - it('should call localizationsLocalizationIdGet successfully', function(done) { - //uncomment below and update the code to test localizationsLocalizationIdGet - //instance.localizationsLocalizationIdGet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/test/api/TemplatesApi.spec.js b/test/api/TemplatesApi.spec.js deleted file mode 100644 index 567efed..0000000 --- a/test/api/TemplatesApi.spec.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.TemplatesApi(); - }); - - 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('TemplatesApi', function() { - describe('templatesGet', function() { - it('should call templatesGet successfully', function(done) { - //uncomment below and update the code to test templatesGet - //instance.templatesGet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('templatesTemplateIdGet', function() { - it('should call templatesTemplateIdGet successfully', function(done) { - //uncomment below and update the code to test templatesTemplateIdGet - //instance.templatesTemplateIdGet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/test/assert-equals.js b/test/assert-equals.js new file mode 100644 index 0000000..b95cd5f --- /dev/null +++ b/test/assert-equals.js @@ -0,0 +1,81 @@ +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(); + } else { + // Browser globals (root is window) + root.assertEquals = factory(); + } +}(this, function() { + 'use strict'; + + var assertEquals = function(expected, actual, ptr) { + if (!ptr) + ptr = ""; + if (actual === expected) + return; + if (expected instanceof Date || actual instanceof Date) { + expected = toISODateString(expected); + actual = toISODateString(actual); + if (actual !== expected) + fail(expected, actual, ptr, "date value incorrect;"); + } + if (!expected || !actual || typeof expected != 'object' && typeof actual != 'object') { + if (typeof actual != typeof expected) + fail(typeof expected, typeof actual, ptr, "value type incorrect;"); + if (actual != expected) + fail(expected, actual, ptr, "value incorrect;"); + } + return checkObject(expected, actual, ptr); + } + + function toISODateString(value) { + if (value instanceof Date) { + // JavaScript's ISO string contains a milliseconds component that must be stripped out. + value = value.toISOString().replace('.000', ''); + } + return value; + } + + function checkObject(expected, actual, ptr) { + if (undefOrNull(expected) || undefOrNull(actual)) + fail(expected, actual, ptr, "missing value;"); + if (typeof expected !== typeof actual) + fail(typeof expected, typeof actual, ptr, "wrong type;"); + if (expected.prototype !== actual.prototype) + fail(expected.prototype, actual.prototype, ptr, "wrong prototype;"); + try { + var expectedKeys = Object.keys(expected); + var actualKeys = Object.keys(actual); + } catch (e) { + fail(expectedKeys, actualKeys, ptr, "wrong keys;"); + } + if (actualKeys.length != expectedKeys.length) + fail(expectedKeys.length, actualKeys.length, ptr, "key count incorrect;"); + expectedKeys.sort(); + actualKeys.sort(); + for (var i = 0; i < expectedKeys.length; i++) { + if (actualKeys[i] != expectedKeys[i]) + fail(expectedKeys, actualKeys, ptr, "wrong keys;"); + } + for (i = 0; i < expectedKeys.length; i++) { + var key = expectedKeys[i]; + assertEquals(expected[key], actual[key], ptr + '/' + key); + } + } + + function undefOrNull(v) { + return v === undefined || v === null; + } + + function fail(expected, actual, ptr, msg) { + var text = ptr + ' ' + msg + " expected: " + expected + ", actual: " + actual; + console.log(text); + throw new Error(text); + } + + return assertEquals; +})); diff --git a/test/dyspatch-client/APIError.spec.js b/test/dyspatch-client/APIError.spec.js new file mode 100644 index 0000000..a0ef563 --- /dev/null +++ b/test/dyspatch-client/APIError.spec.js @@ -0,0 +1,65 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('APIError', function() { + beforeEach(function() { + instance = new DyspatchClient.APIError(); + }); + + it('should create an instance of APIError', function() { + // TODO: update the code to test APIError + expect(instance).to.be.a(DyspatchClient.APIError); + }); + + it('should have the property code (base name: "code")', function() { + // TODO: update the code to test the property code + expect(instance).to.have.property('code'); + // expect(instance.code).to.be(expectedValueLiteral); + }); + + it('should have the property message (base name: "message")', function() { + // TODO: update the code to test the property message + expect(instance).to.have.property('message'); + // expect(instance.message).to.be(expectedValueLiteral); + }); + + it('should have the property parameter (base name: "parameter")', function() { + // TODO: update the code to test the property parameter + expect(instance).to.have.property('parameter'); + // expect(instance.parameter).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/Body.spec.js b/test/dyspatch-client/Body.spec.js new file mode 100644 index 0000000..6d1fdba --- /dev/null +++ b/test/dyspatch-client/Body.spec.js @@ -0,0 +1,53 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('Body', function() { + beforeEach(function() { + instance = new DyspatchClient.Body(); + }); + + it('should create an instance of Body', function() { + // TODO: update the code to test Body + expect(instance).to.be.a(DyspatchClient.Body); + }); + + it('should have the property name (base name: "name")', function() { + // TODO: update the code to test the property name + expect(instance).to.have.property('name'); + // expect(instance.name).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/CompiledRead.spec.js b/test/dyspatch-client/CompiledRead.spec.js new file mode 100644 index 0000000..924424d --- /dev/null +++ b/test/dyspatch-client/CompiledRead.spec.js @@ -0,0 +1,77 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CompiledRead', function() { + beforeEach(function() { + instance = new DyspatchClient.CompiledRead(); + }); + + it('should create an instance of CompiledRead', function() { + // TODO: update the code to test CompiledRead + expect(instance).to.be.a(DyspatchClient.CompiledRead); + }); + + it('should have the property sender (base name: "sender")', function() { + // TODO: update the code to test the property sender + expect(instance).to.have.property('sender'); + // expect(instance.sender).to.be(expectedValueLiteral); + }); + + it('should have the property replyTo (base name: "replyTo")', function() { + // TODO: update the code to test the property replyTo + expect(instance).to.have.property('replyTo'); + // expect(instance.replyTo).to.be(expectedValueLiteral); + }); + + it('should have the property subject (base name: "subject")', function() { + // TODO: update the code to test the property subject + expect(instance).to.have.property('subject'); + // expect(instance.subject).to.be(expectedValueLiteral); + }); + + it('should have the property html (base name: "html")', function() { + // TODO: update the code to test the property html + expect(instance).to.have.property('html'); + // expect(instance.html).to.be(expectedValueLiteral); + }); + + it('should have the property text (base name: "text")', function() { + // TODO: update the code to test the property text + expect(instance).to.have.property('text'); + // expect(instance.text).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/CreatedAt.spec.js b/test/dyspatch-client/CreatedAt.spec.js new file mode 100644 index 0000000..ea6766f --- /dev/null +++ b/test/dyspatch-client/CreatedAt.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('CreatedAt', function() { + beforeEach(function() { + instance = new DyspatchClient.CreatedAt(); + }); + + it('should create an instance of CreatedAt', function() { + // TODO: update the code to test CreatedAt + expect(instance).to.be.a(DyspatchClient.CreatedAt); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/Cursor.spec.js b/test/dyspatch-client/Cursor.spec.js new file mode 100644 index 0000000..3da4b6f --- /dev/null +++ b/test/dyspatch-client/Cursor.spec.js @@ -0,0 +1,59 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('Cursor', function() { + beforeEach(function() { + instance = new DyspatchClient.Cursor(); + }); + + it('should create an instance of Cursor', function() { + // TODO: update the code to test Cursor + expect(instance).to.be.a(DyspatchClient.Cursor); + }); + + it('should have the property next (base name: "next")', function() { + // TODO: update the code to test the property next + expect(instance).to.have.property('next'); + // expect(instance.next).to.be(expectedValueLiteral); + }); + + it('should have the property hasMore (base name: "hasMore")', function() { + // TODO: update the code to test the property hasMore + expect(instance).to.have.property('hasMore'); + // expect(instance.hasMore).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/DraftDescription.spec.js b/test/dyspatch-client/DraftDescription.spec.js new file mode 100644 index 0000000..0b36311 --- /dev/null +++ b/test/dyspatch-client/DraftDescription.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DraftDescription', function() { + beforeEach(function() { + instance = new DyspatchClient.DraftDescription(); + }); + + it('should create an instance of DraftDescription', function() { + // TODO: update the code to test DraftDescription + expect(instance).to.be.a(DyspatchClient.DraftDescription); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/DraftId.spec.js b/test/dyspatch-client/DraftId.spec.js new file mode 100644 index 0000000..bd4645b --- /dev/null +++ b/test/dyspatch-client/DraftId.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DraftId', function() { + beforeEach(function() { + instance = new DyspatchClient.DraftId(); + }); + + it('should create an instance of DraftId', function() { + // TODO: update the code to test DraftId + expect(instance).to.be.a(DyspatchClient.DraftId); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/DraftMetaRead.spec.js b/test/dyspatch-client/DraftMetaRead.spec.js new file mode 100644 index 0000000..4e8e35d --- /dev/null +++ b/test/dyspatch-client/DraftMetaRead.spec.js @@ -0,0 +1,89 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DraftMetaRead', function() { + beforeEach(function() { + instance = new DyspatchClient.DraftMetaRead(); + }); + + it('should create an instance of DraftMetaRead', function() { + // TODO: update the code to test DraftMetaRead + expect(instance).to.be.a(DyspatchClient.DraftMetaRead); + }); + + it('should have the property id (base name: "id")', function() { + // TODO: update the code to test the property id + expect(instance).to.have.property('id'); + // expect(instance.id).to.be(expectedValueLiteral); + }); + + it('should have the property templateId (base name: "templateId")', function() { + // TODO: update the code to test the property templateId + expect(instance).to.have.property('templateId'); + // expect(instance.templateId).to.be(expectedValueLiteral); + }); + + it('should have the property name (base name: "name")', function() { + // TODO: update the code to test the property name + expect(instance).to.have.property('name'); + // expect(instance.name).to.be(expectedValueLiteral); + }); + + it('should have the property description (base name: "description")', function() { + // TODO: update the code to test the property description + expect(instance).to.have.property('description'); + // expect(instance.description).to.be(expectedValueLiteral); + }); + + it('should have the property url (base name: "url")', function() { + // TODO: update the code to test the property url + expect(instance).to.have.property('url'); + // expect(instance.url).to.be(expectedValueLiteral); + }); + + it('should have the property createdAt (base name: "createdAt")', function() { + // TODO: update the code to test the property createdAt + expect(instance).to.have.property('createdAt'); + // expect(instance.createdAt).to.be(expectedValueLiteral); + }); + + it('should have the property updatedAt (base name: "updatedAt")', function() { + // TODO: update the code to test the property updatedAt + expect(instance).to.have.property('updatedAt'); + // expect(instance.updatedAt).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/DraftName.spec.js b/test/dyspatch-client/DraftName.spec.js new file mode 100644 index 0000000..f7de02c --- /dev/null +++ b/test/dyspatch-client/DraftName.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DraftName', function() { + beforeEach(function() { + instance = new DyspatchClient.DraftName(); + }); + + it('should create an instance of DraftName', function() { + // TODO: update the code to test DraftName + expect(instance).to.be.a(DyspatchClient.DraftName); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/DraftRead.spec.js b/test/dyspatch-client/DraftRead.spec.js new file mode 100644 index 0000000..c8fcdc9 --- /dev/null +++ b/test/dyspatch-client/DraftRead.spec.js @@ -0,0 +1,95 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DraftRead', function() { + beforeEach(function() { + instance = new DyspatchClient.DraftRead(); + }); + + it('should create an instance of DraftRead', function() { + // TODO: update the code to test DraftRead + expect(instance).to.be.a(DyspatchClient.DraftRead); + }); + + it('should have the property id (base name: "id")', function() { + // TODO: update the code to test the property id + expect(instance).to.have.property('id'); + // expect(instance.id).to.be(expectedValueLiteral); + }); + + it('should have the property template (base name: "template")', function() { + // TODO: update the code to test the property template + expect(instance).to.have.property('template'); + // expect(instance.template).to.be(expectedValueLiteral); + }); + + it('should have the property name (base name: "name")', function() { + // TODO: update the code to test the property name + expect(instance).to.have.property('name'); + // expect(instance.name).to.be(expectedValueLiteral); + }); + + it('should have the property url (base name: "url")', function() { + // TODO: update the code to test the property url + expect(instance).to.have.property('url'); + // expect(instance.url).to.be(expectedValueLiteral); + }); + + it('should have the property compiled (base name: "compiled")', function() { + // TODO: update the code to test the property compiled + expect(instance).to.have.property('compiled'); + // expect(instance.compiled).to.be(expectedValueLiteral); + }); + + it('should have the property createdAt (base name: "createdAt")', function() { + // TODO: update the code to test the property createdAt + expect(instance).to.have.property('createdAt'); + // expect(instance.createdAt).to.be(expectedValueLiteral); + }); + + it('should have the property updatedAt (base name: "updatedAt")', function() { + // TODO: update the code to test the property updatedAt + expect(instance).to.have.property('updatedAt'); + // expect(instance.updatedAt).to.be(expectedValueLiteral); + }); + + it('should have the property localizations (base name: "localizations")', function() { + // TODO: update the code to test the property localizations + expect(instance).to.have.property('localizations'); + // expect(instance.localizations).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/DraftUrl.spec.js b/test/dyspatch-client/DraftUrl.spec.js new file mode 100644 index 0000000..3f89034 --- /dev/null +++ b/test/dyspatch-client/DraftUrl.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DraftUrl', function() { + beforeEach(function() { + instance = new DyspatchClient.DraftUrl(); + }); + + it('should create an instance of DraftUrl', function() { + // TODO: update the code to test DraftUrl + expect(instance).to.be.a(DyspatchClient.DraftUrl); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/DraftsApi.spec.js b/test/dyspatch-client/DraftsApi.spec.js new file mode 100644 index 0000000..33218fc --- /dev/null +++ b/test/dyspatch-client/DraftsApi.spec.js @@ -0,0 +1,309 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new DyspatchClient.DraftsApi(); + }); + + describe('(package)', function() { + describe('DraftsApi', function() { + describe('draftsDraftIdGet', function() { + it('should call draftsDraftIdGet successfully', function(done) { + // TODO: uncomment, update parameter values for draftsDraftIdGet call and complete the assertions + /* + var draftId = "draftId_example"; + var targetLanguage = "targetLanguage_example"; + + instance.draftsDraftIdGet(draftId, targetLanguage, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(DyspatchClient.DraftRead); + expect(data.id).to.be.a('string'); + expect(data.id).to.be("tdft_g3L7Cw6Hp5wU"); + expect(data.template).to.be.a('string'); + expect(data.template).to.be("tem_g3L7Cw6Hp5wU"); + expect(data.name).to.be.a('string'); + expect(data.name).to.be(""); + expect(data.url).to.be.a('string'); + expect(data.url).to.be("/drafts/tdft_g3L7Cw6Hp5wUaf395LehwK/dft_g3L7Cw6Hp5wU"); + expect(data.compiled).to.be.a(DyspatchClient.CompiledRead); + expect(data.compiled.sender).to.be.a('string'); + expect(data.compiled.sender).to.be("Example "); + expect(data.compiled.replyTo).to.be.a('string'); + expect(data.compiled.replyTo).to.be("Example "); + expect(data.compiled.subject).to.be.a(Blob); + expect(data.compiled.subject).to.be("PGh0bWw+PC9odG1sPgo="); + expect(data.compiled.html).to.be.a(Blob); + expect(data.compiled.html).to.be("PGh0bWw+PC9odG1sPgo="); + expect(data.compiled.text).to.be.a(Blob); + expect(data.compiled.text).to.be("PGh0bWw+PC9odG1sPgo="); + expect(data.createdAt).to.be.a(Date); + expect(data.createdAt).to.be(new Date()); + expect(data.updatedAt).to.be.a(Date); + expect(data.updatedAt).to.be(new Date()); + { + let dataCtr = data.localizations; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(DyspatchClient.LocalizationMetaRead); + expect(data.id).to.be.a('string'); + expect(data.id).to.be("loc_g3L7Cw6Hp5wUaf395LehwK"); + expect(data.language).to.be.a('string'); + expect(data.language).to.be("en-US"); + expect(data.name).to.be.a('string'); + expect(data.name).to.be("English (US)"); + expect(data.url).to.be.a('string'); + expect(data.url).to.be("/localizations/loc_g3L7Cw6Hp5wUaf395LehwK"); + expect(data.draft).to.be.a('string'); + expect(data.draft).to.be("tdft_g3L7Cw6Hp5wU"); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('draftsDraftIdLocalizationKeysGet', function() { + it('should call draftsDraftIdLocalizationKeysGet successfully', function(done) { + // TODO: uncomment, update parameter values for draftsDraftIdLocalizationKeysGet call and complete the assertions + /* + var draftId = "draftId_example"; + var opts = {}; + opts.accept = "accept_example"; + + instance.draftsDraftIdLocalizationKeysGet(draftId, opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + let dataCtr = data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(DyspatchClient.LocalizationKeyRead); + expect(data.key).to.be.a('string'); + expect(data.key).to.be(""); + expect(data.comment).to.be.a('string'); + expect(data.comment).to.be(""); + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('draftsDraftIdLocalizationsGet', function() { + it('should call draftsDraftIdLocalizationsGet successfully', function(done) { + // TODO: uncomment, update parameter values for draftsDraftIdLocalizationsGet call and complete the assertions + /* + var draftId = "draftId_example"; + + instance.draftsDraftIdLocalizationsGet(draftId, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + let dataCtr = data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(DyspatchClient.LocalizationMetaRead); + expect(data.id).to.be.a('string'); + expect(data.id).to.be("loc_g3L7Cw6Hp5wUaf395LehwK"); + expect(data.language).to.be.a('string'); + expect(data.language).to.be("en-US"); + expect(data.name).to.be.a('string'); + expect(data.name).to.be("English (US)"); + expect(data.url).to.be.a('string'); + expect(data.url).to.be("/localizations/loc_g3L7Cw6Hp5wUaf395LehwK"); + expect(data.draft).to.be.a('string'); + expect(data.draft).to.be("tdft_g3L7Cw6Hp5wU"); + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('draftsDraftIdLocalizationsLanguageIdDelete', function() { + it('should call draftsDraftIdLocalizationsLanguageIdDelete successfully', function(done) { + // TODO: uncomment, update parameter values for draftsDraftIdLocalizationsLanguageIdDelete call + /* + var draftId = "draftId_example"; + var languageId = "languageId_example"; + + instance.draftsDraftIdLocalizationsLanguageIdDelete(draftId, languageId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('draftsDraftIdLocalizationsLanguageIdPut', function() { + it('should call draftsDraftIdLocalizationsLanguageIdPut successfully', function(done) { + // TODO: uncomment, update parameter values for draftsDraftIdLocalizationsLanguageIdPut call + /* + var draftId = "draftId_example"; + var languageId = "languageId_example"; + var body = new DyspatchClient.Body(); + body.name = "English (US)"; + + instance.draftsDraftIdLocalizationsLanguageIdPut(draftId, languageId, body, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('draftsDraftIdLocalizationsLanguageIdTranslationsPut', function() { + it('should call draftsDraftIdLocalizationsLanguageIdTranslationsPut successfully', function(done) { + // TODO: uncomment, update parameter values for draftsDraftIdLocalizationsLanguageIdTranslationsPut call + /* + var draftId = "draftId_example"; + var languageId = "languageId_example"; + var body = null; + + instance.draftsDraftIdLocalizationsLanguageIdTranslationsPut(draftId, languageId, body, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('draftsDraftIdPublishRequestPost', function() { + it('should call draftsDraftIdPublishRequestPost successfully', function(done) { + // TODO: uncomment, update parameter values for draftsDraftIdPublishRequestPost call + /* + var draftId = "draftId_example"; + + instance.draftsDraftIdPublishRequestPost(draftId, function(error, data, response) { + if (error) { + done(error); + return; + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('draftsGet', function() { + it('should call draftsGet successfully', function(done) { + // TODO: uncomment, update parameter values for draftsGet call and complete the assertions + /* + var opts = {}; + opts.cursor = "cursor_example"; + opts.status = "status_example"; + + instance.draftsGet(opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(DyspatchClient.DraftsRead); + expect(data.cursor).to.be.a(DyspatchClient.Cursor); + expect(data.cursor.next).to.be.a('string'); + expect(data.cursor.next).to.be(""); + expect(data.cursor.hasMore).to.be.a('boolean'); + expect(data.cursor.hasMore).to.be(false); + { + let dataCtr = data.data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(DyspatchClient.DraftMetaRead); + expect(data.id).to.be.a('string'); + expect(data.id).to.be("tdft_g3L7Cw6Hp5wU"); + expect(data.templateId).to.be.a('string'); + expect(data.templateId).to.be("tem_g3L7Cw6Hp5wU"); + expect(data.name).to.be.a('string'); + expect(data.name).to.be(""); + expect(data.description).to.be.a('string'); + expect(data.description).to.be(""); + expect(data.url).to.be.a('string'); + expect(data.url).to.be("/drafts/tdft_g3L7Cw6Hp5wUaf395LehwK/dft_g3L7Cw6Hp5wU"); + expect(data.createdAt).to.be.a(Date); + expect(data.createdAt).to.be(new Date()); + expect(data.updatedAt).to.be.a(Date); + expect(data.updatedAt).to.be(new Date()); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/dyspatch-client/DraftsRead.spec.js b/test/dyspatch-client/DraftsRead.spec.js new file mode 100644 index 0000000..1818a3c --- /dev/null +++ b/test/dyspatch-client/DraftsRead.spec.js @@ -0,0 +1,59 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('DraftsRead', function() { + beforeEach(function() { + instance = new DyspatchClient.DraftsRead(); + }); + + it('should create an instance of DraftsRead', function() { + // TODO: update the code to test DraftsRead + expect(instance).to.be.a(DyspatchClient.DraftsRead); + }); + + it('should have the property cursor (base name: "cursor")', function() { + // TODO: update the code to test the property cursor + expect(instance).to.have.property('cursor'); + // expect(instance.cursor).to.be(expectedValueLiteral); + }); + + it('should have the property data (base name: "data")', function() { + // TODO: update the code to test the property data + expect(instance).to.have.property('data'); + // expect(instance.data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/LanguageId.spec.js b/test/dyspatch-client/LanguageId.spec.js new file mode 100644 index 0000000..7c758e0 --- /dev/null +++ b/test/dyspatch-client/LanguageId.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LanguageId', function() { + beforeEach(function() { + instance = new DyspatchClient.LanguageId(); + }); + + it('should create an instance of LanguageId', function() { + // TODO: update the code to test LanguageId + expect(instance).to.be.a(DyspatchClient.LanguageId); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/LocalizationId.spec.js b/test/dyspatch-client/LocalizationId.spec.js new file mode 100644 index 0000000..80fc1cb --- /dev/null +++ b/test/dyspatch-client/LocalizationId.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LocalizationId', function() { + beforeEach(function() { + instance = new DyspatchClient.LocalizationId(); + }); + + it('should create an instance of LocalizationId', function() { + // TODO: update the code to test LocalizationId + expect(instance).to.be.a(DyspatchClient.LocalizationId); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/LocalizationKeyRead.spec.js b/test/dyspatch-client/LocalizationKeyRead.spec.js new file mode 100644 index 0000000..74b8c8e --- /dev/null +++ b/test/dyspatch-client/LocalizationKeyRead.spec.js @@ -0,0 +1,59 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LocalizationKeyRead', function() { + beforeEach(function() { + instance = new DyspatchClient.LocalizationKeyRead(); + }); + + it('should create an instance of LocalizationKeyRead', function() { + // TODO: update the code to test LocalizationKeyRead + expect(instance).to.be.a(DyspatchClient.LocalizationKeyRead); + }); + + it('should have the property key (base name: "key")', function() { + // TODO: update the code to test the property key + expect(instance).to.have.property('key'); + // expect(instance.key).to.be(expectedValueLiteral); + }); + + it('should have the property comment (base name: "comment")', function() { + // TODO: update the code to test the property comment + expect(instance).to.have.property('comment'); + // expect(instance.comment).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/LocalizationMetaRead.spec.js b/test/dyspatch-client/LocalizationMetaRead.spec.js new file mode 100644 index 0000000..29b26e3 --- /dev/null +++ b/test/dyspatch-client/LocalizationMetaRead.spec.js @@ -0,0 +1,77 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LocalizationMetaRead', function() { + beforeEach(function() { + instance = new DyspatchClient.LocalizationMetaRead(); + }); + + it('should create an instance of LocalizationMetaRead', function() { + // TODO: update the code to test LocalizationMetaRead + expect(instance).to.be.a(DyspatchClient.LocalizationMetaRead); + }); + + it('should have the property id (base name: "id")', function() { + // TODO: update the code to test the property id + expect(instance).to.have.property('id'); + // expect(instance.id).to.be(expectedValueLiteral); + }); + + it('should have the property language (base name: "language")', function() { + // TODO: update the code to test the property language + expect(instance).to.have.property('language'); + // expect(instance.language).to.be(expectedValueLiteral); + }); + + it('should have the property name (base name: "name")', function() { + // TODO: update the code to test the property name + expect(instance).to.have.property('name'); + // expect(instance.name).to.be(expectedValueLiteral); + }); + + it('should have the property url (base name: "url")', function() { + // TODO: update the code to test the property url + expect(instance).to.have.property('url'); + // expect(instance.url).to.be(expectedValueLiteral); + }); + + it('should have the property draft (base name: "draft")', function() { + // TODO: update the code to test the property draft + expect(instance).to.have.property('draft'); + // expect(instance.draft).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/LocalizationName.spec.js b/test/dyspatch-client/LocalizationName.spec.js new file mode 100644 index 0000000..ab20082 --- /dev/null +++ b/test/dyspatch-client/LocalizationName.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LocalizationName', function() { + beforeEach(function() { + instance = new DyspatchClient.LocalizationName(); + }); + + it('should create an instance of LocalizationName', function() { + // TODO: update the code to test LocalizationName + expect(instance).to.be.a(DyspatchClient.LocalizationName); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/LocalizationRead.spec.js b/test/dyspatch-client/LocalizationRead.spec.js new file mode 100644 index 0000000..0c4903e --- /dev/null +++ b/test/dyspatch-client/LocalizationRead.spec.js @@ -0,0 +1,95 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LocalizationRead', function() { + beforeEach(function() { + instance = new DyspatchClient.LocalizationRead(); + }); + + it('should create an instance of LocalizationRead', function() { + // TODO: update the code to test LocalizationRead + expect(instance).to.be.a(DyspatchClient.LocalizationRead); + }); + + it('should have the property id (base name: "id")', function() { + // TODO: update the code to test the property id + expect(instance).to.have.property('id'); + // expect(instance.id).to.be(expectedValueLiteral); + }); + + it('should have the property language (base name: "language")', function() { + // TODO: update the code to test the property language + expect(instance).to.have.property('language'); + // expect(instance.language).to.be(expectedValueLiteral); + }); + + it('should have the property url (base name: "url")', function() { + // TODO: update the code to test the property url + expect(instance).to.have.property('url'); + // expect(instance.url).to.be(expectedValueLiteral); + }); + + it('should have the property template (base name: "template")', function() { + // TODO: update the code to test the property template + expect(instance).to.have.property('template'); + // expect(instance.template).to.be(expectedValueLiteral); + }); + + it('should have the property compiled (base name: "compiled")', function() { + // TODO: update the code to test the property compiled + expect(instance).to.have.property('compiled'); + // expect(instance.compiled).to.be(expectedValueLiteral); + }); + + it('should have the property createdAt (base name: "createdAt")', function() { + // TODO: update the code to test the property createdAt + expect(instance).to.have.property('createdAt'); + // expect(instance.createdAt).to.be(expectedValueLiteral); + }); + + it('should have the property updatedAt (base name: "updatedAt")', function() { + // TODO: update the code to test the property updatedAt + expect(instance).to.have.property('updatedAt'); + // expect(instance.updatedAt).to.be(expectedValueLiteral); + }); + + it('should have the property name (base name: "name")', function() { + // TODO: update the code to test the property name + expect(instance).to.have.property('name'); + // expect(instance.name).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/LocalizationUrl.spec.js b/test/dyspatch-client/LocalizationUrl.spec.js new file mode 100644 index 0000000..20e5ef5 --- /dev/null +++ b/test/dyspatch-client/LocalizationUrl.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('LocalizationUrl', function() { + beforeEach(function() { + instance = new DyspatchClient.LocalizationUrl(); + }); + + it('should create an instance of LocalizationUrl', function() { + // TODO: update the code to test LocalizationUrl + expect(instance).to.be.a(DyspatchClient.LocalizationUrl); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/LocalizationsApi.spec.js b/test/dyspatch-client/LocalizationsApi.spec.js new file mode 100644 index 0000000..f9e7487 --- /dev/null +++ b/test/dyspatch-client/LocalizationsApi.spec.js @@ -0,0 +1,89 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new DyspatchClient.LocalizationsApi(); + }); + + describe('(package)', function() { + describe('LocalizationsApi', function() { + describe('localizationsLocalizationIdGet', function() { + it('should call localizationsLocalizationIdGet successfully', function(done) { + // TODO: uncomment, update parameter values for localizationsLocalizationIdGet call and complete the assertions + /* + var localizationId = "localizationId_example"; + var targetLanguage = "targetLanguage_example"; + + instance.localizationsLocalizationIdGet(localizationId, targetLanguage, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(DyspatchClient.LocalizationRead); + expect(data.id).to.be.a('string'); + expect(data.id).to.be("loc_g3L7Cw6Hp5wUaf395LehwK"); + expect(data.language).to.be.a('string'); + expect(data.language).to.be("en-US"); + expect(data.url).to.be.a('string'); + expect(data.url).to.be("/localizations/loc_g3L7Cw6Hp5wUaf395LehwK"); + expect(data.template).to.be.a('string'); + expect(data.template).to.be("tem_g3L7Cw6Hp5wU"); + expect(data.compiled).to.be.a(DyspatchClient.CompiledRead); + expect(data.compiled.sender).to.be.a('string'); + expect(data.compiled.sender).to.be("Example "); + expect(data.compiled.replyTo).to.be.a('string'); + expect(data.compiled.replyTo).to.be("Example "); + expect(data.compiled.subject).to.be.a(Blob); + expect(data.compiled.subject).to.be("PGh0bWw+PC9odG1sPgo="); + expect(data.compiled.html).to.be.a(Blob); + expect(data.compiled.html).to.be("PGh0bWw+PC9odG1sPgo="); + expect(data.compiled.text).to.be.a(Blob); + expect(data.compiled.text).to.be("PGh0bWw+PC9odG1sPgo="); + expect(data.createdAt).to.be.a(Date); + expect(data.createdAt).to.be(new Date()); + expect(data.updatedAt).to.be.a(Date); + expect(data.updatedAt).to.be(new Date()); + expect(data.name).to.be.a('string'); + expect(data.name).to.be("English (US)"); + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/dyspatch-client/TemplateDescription.spec.js b/test/dyspatch-client/TemplateDescription.spec.js new file mode 100644 index 0000000..5d80f40 --- /dev/null +++ b/test/dyspatch-client/TemplateDescription.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TemplateDescription', function() { + beforeEach(function() { + instance = new DyspatchClient.TemplateDescription(); + }); + + it('should create an instance of TemplateDescription', function() { + // TODO: update the code to test TemplateDescription + expect(instance).to.be.a(DyspatchClient.TemplateDescription); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/TemplateId.spec.js b/test/dyspatch-client/TemplateId.spec.js new file mode 100644 index 0000000..c89ce4a --- /dev/null +++ b/test/dyspatch-client/TemplateId.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TemplateId', function() { + beforeEach(function() { + instance = new DyspatchClient.TemplateId(); + }); + + it('should create an instance of TemplateId', function() { + // TODO: update the code to test TemplateId + expect(instance).to.be.a(DyspatchClient.TemplateId); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/TemplateMetaRead.spec.js b/test/dyspatch-client/TemplateMetaRead.spec.js new file mode 100644 index 0000000..c432455 --- /dev/null +++ b/test/dyspatch-client/TemplateMetaRead.spec.js @@ -0,0 +1,89 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TemplateMetaRead', function() { + beforeEach(function() { + instance = new DyspatchClient.TemplateMetaRead(); + }); + + it('should create an instance of TemplateMetaRead', function() { + // TODO: update the code to test TemplateMetaRead + expect(instance).to.be.a(DyspatchClient.TemplateMetaRead); + }); + + it('should have the property id (base name: "id")', function() { + // TODO: update the code to test the property id + expect(instance).to.have.property('id'); + // expect(instance.id).to.be(expectedValueLiteral); + }); + + it('should have the property name (base name: "name")', function() { + // TODO: update the code to test the property name + expect(instance).to.have.property('name'); + // expect(instance.name).to.be(expectedValueLiteral); + }); + + it('should have the property description (base name: "description")', function() { + // TODO: update the code to test the property description + expect(instance).to.have.property('description'); + // expect(instance.description).to.be(expectedValueLiteral); + }); + + it('should have the property url (base name: "url")', function() { + // TODO: update the code to test the property url + expect(instance).to.have.property('url'); + // expect(instance.url).to.be(expectedValueLiteral); + }); + + it('should have the property localizations (base name: "localizations")', function() { + // TODO: update the code to test the property localizations + expect(instance).to.have.property('localizations'); + // expect(instance.localizations).to.be(expectedValueLiteral); + }); + + it('should have the property createdAt (base name: "createdAt")', function() { + // TODO: update the code to test the property createdAt + expect(instance).to.have.property('createdAt'); + // expect(instance.createdAt).to.be(expectedValueLiteral); + }); + + it('should have the property updatedAt (base name: "updatedAt")', function() { + // TODO: update the code to test the property updatedAt + expect(instance).to.have.property('updatedAt'); + // expect(instance.updatedAt).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/TemplateName.spec.js b/test/dyspatch-client/TemplateName.spec.js new file mode 100644 index 0000000..7b7da92 --- /dev/null +++ b/test/dyspatch-client/TemplateName.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TemplateName', function() { + beforeEach(function() { + instance = new DyspatchClient.TemplateName(); + }); + + it('should create an instance of TemplateName', function() { + // TODO: update the code to test TemplateName + expect(instance).to.be.a(DyspatchClient.TemplateName); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/TemplateRead.spec.js b/test/dyspatch-client/TemplateRead.spec.js new file mode 100644 index 0000000..1cedd33 --- /dev/null +++ b/test/dyspatch-client/TemplateRead.spec.js @@ -0,0 +1,95 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TemplateRead', function() { + beforeEach(function() { + instance = new DyspatchClient.TemplateRead(); + }); + + it('should create an instance of TemplateRead', function() { + // TODO: update the code to test TemplateRead + expect(instance).to.be.a(DyspatchClient.TemplateRead); + }); + + it('should have the property id (base name: "id")', function() { + // TODO: update the code to test the property id + expect(instance).to.have.property('id'); + // expect(instance.id).to.be(expectedValueLiteral); + }); + + it('should have the property name (base name: "name")', function() { + // TODO: update the code to test the property name + expect(instance).to.have.property('name'); + // expect(instance.name).to.be(expectedValueLiteral); + }); + + it('should have the property description (base name: "description")', function() { + // TODO: update the code to test the property description + expect(instance).to.have.property('description'); + // expect(instance.description).to.be(expectedValueLiteral); + }); + + it('should have the property url (base name: "url")', function() { + // TODO: update the code to test the property url + expect(instance).to.have.property('url'); + // expect(instance.url).to.be(expectedValueLiteral); + }); + + it('should have the property compiled (base name: "compiled")', function() { + // TODO: update the code to test the property compiled + expect(instance).to.have.property('compiled'); + // expect(instance.compiled).to.be(expectedValueLiteral); + }); + + it('should have the property createdAt (base name: "createdAt")', function() { + // TODO: update the code to test the property createdAt + expect(instance).to.have.property('createdAt'); + // expect(instance.createdAt).to.be(expectedValueLiteral); + }); + + it('should have the property updatedAt (base name: "updatedAt")', function() { + // TODO: update the code to test the property updatedAt + expect(instance).to.have.property('updatedAt'); + // expect(instance.updatedAt).to.be(expectedValueLiteral); + }); + + it('should have the property localizations (base name: "localizations")', function() { + // TODO: update the code to test the property localizations + expect(instance).to.have.property('localizations'); + // expect(instance.localizations).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/TemplateUrl.spec.js b/test/dyspatch-client/TemplateUrl.spec.js new file mode 100644 index 0000000..32a2ef7 --- /dev/null +++ b/test/dyspatch-client/TemplateUrl.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TemplateUrl', function() { + beforeEach(function() { + instance = new DyspatchClient.TemplateUrl(); + }); + + it('should create an instance of TemplateUrl', function() { + // TODO: update the code to test TemplateUrl + expect(instance).to.be.a(DyspatchClient.TemplateUrl); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/TemplatesApi.spec.js b/test/dyspatch-client/TemplatesApi.spec.js new file mode 100644 index 0000000..e5b1597 --- /dev/null +++ b/test/dyspatch-client/TemplatesApi.spec.js @@ -0,0 +1,173 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new DyspatchClient.TemplatesApi(); + }); + + describe('(package)', function() { + describe('TemplatesApi', function() { + describe('templatesGet', function() { + it('should call templatesGet successfully', function(done) { + // TODO: uncomment, update parameter values for templatesGet call and complete the assertions + /* + var opts = {}; + opts.cursor = "cursor_example"; + + instance.templatesGet(opts, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(DyspatchClient.TemplatesRead); + expect(data.cursor).to.be.a(DyspatchClient.Cursor); + expect(data.cursor.next).to.be.a('string'); + expect(data.cursor.next).to.be(""); + expect(data.cursor.hasMore).to.be.a('boolean'); + expect(data.cursor.hasMore).to.be(false); + { + let dataCtr = data.data; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(DyspatchClient.TemplateMetaRead); + expect(data.id).to.be.a('string'); + expect(data.id).to.be("tem_g3L7Cw6Hp5wU"); + expect(data.name).to.be.a('string'); + expect(data.name).to.be(""); + expect(data.description).to.be.a('string'); + expect(data.description).to.be(""); + expect(data.url).to.be.a('string'); + expect(data.url).to.be("/templates/tem_g3L7Cw6Hp5wUaf395LehwK"); + { + let dataCtr = data.localizations; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(DyspatchClient.LocalizationMetaRead); + expect(data.id).to.be.a('string'); + expect(data.id).to.be("loc_g3L7Cw6Hp5wUaf395LehwK"); + expect(data.language).to.be.a('string'); + expect(data.language).to.be("en-US"); + expect(data.name).to.be.a('string'); + expect(data.name).to.be("English (US)"); + expect(data.url).to.be.a('string'); + expect(data.url).to.be("/localizations/loc_g3L7Cw6Hp5wUaf395LehwK"); + expect(data.draft).to.be.a('string'); + expect(data.draft).to.be("tdft_g3L7Cw6Hp5wU"); + } + } + expect(data.createdAt).to.be.a(Date); + expect(data.createdAt).to.be(new Date()); + expect(data.updatedAt).to.be.a(Date); + expect(data.updatedAt).to.be(new Date()); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + describe('templatesTemplateIdGet', function() { + it('should call templatesTemplateIdGet successfully', function(done) { + // TODO: uncomment, update parameter values for templatesTemplateIdGet call and complete the assertions + /* + var templateId = "templateId_example"; + var targetLanguage = "targetLanguage_example"; + + instance.templatesTemplateIdGet(templateId, targetLanguage, function(error, data, response) { + if (error) { + done(error); + return; + } + // TODO: update response assertions + expect(data).to.be.a(DyspatchClient.TemplateRead); + expect(data.id).to.be.a('string'); + expect(data.id).to.be("tem_g3L7Cw6Hp5wU"); + expect(data.name).to.be.a('string'); + expect(data.name).to.be(""); + expect(data.description).to.be.a('string'); + expect(data.description).to.be(""); + expect(data.url).to.be.a('string'); + expect(data.url).to.be("/templates/tem_g3L7Cw6Hp5wUaf395LehwK"); + expect(data.compiled).to.be.a(DyspatchClient.CompiledRead); + expect(data.compiled.sender).to.be.a('string'); + expect(data.compiled.sender).to.be("Example "); + expect(data.compiled.replyTo).to.be.a('string'); + expect(data.compiled.replyTo).to.be("Example "); + expect(data.compiled.subject).to.be.a(Blob); + expect(data.compiled.subject).to.be("PGh0bWw+PC9odG1sPgo="); + expect(data.compiled.html).to.be.a(Blob); + expect(data.compiled.html).to.be("PGh0bWw+PC9odG1sPgo="); + expect(data.compiled.text).to.be.a(Blob); + expect(data.compiled.text).to.be("PGh0bWw+PC9odG1sPgo="); + expect(data.createdAt).to.be.a(Date); + expect(data.createdAt).to.be(new Date()); + expect(data.updatedAt).to.be.a(Date); + expect(data.updatedAt).to.be(new Date()); + { + let dataCtr = data.localizations; + expect(dataCtr).to.be.an(Array); + expect(dataCtr).to.not.be.empty(); + for (let p in dataCtr) { + let data = dataCtr[p]; + expect(data).to.be.a(DyspatchClient.LocalizationMetaRead); + expect(data.id).to.be.a('string'); + expect(data.id).to.be("loc_g3L7Cw6Hp5wUaf395LehwK"); + expect(data.language).to.be.a('string'); + expect(data.language).to.be("en-US"); + expect(data.name).to.be.a('string'); + expect(data.name).to.be("English (US)"); + expect(data.url).to.be.a('string'); + expect(data.url).to.be("/localizations/loc_g3L7Cw6Hp5wUaf395LehwK"); + expect(data.draft).to.be.a('string'); + expect(data.draft).to.be("tdft_g3L7Cw6Hp5wU"); + } + } + + done(); + }); + */ + // TODO: uncomment and complete method invocation above, then delete this line and the next: + done(); + }); + }); + }); + }); + +})); diff --git a/test/dyspatch-client/TemplatesRead.spec.js b/test/dyspatch-client/TemplatesRead.spec.js new file mode 100644 index 0000000..62fc2e6 --- /dev/null +++ b/test/dyspatch-client/TemplatesRead.spec.js @@ -0,0 +1,59 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('TemplatesRead', function() { + beforeEach(function() { + instance = new DyspatchClient.TemplatesRead(); + }); + + it('should create an instance of TemplatesRead', function() { + // TODO: update the code to test TemplatesRead + expect(instance).to.be.a(DyspatchClient.TemplatesRead); + }); + + it('should have the property cursor (base name: "cursor")', function() { + // TODO: update the code to test the property cursor + expect(instance).to.have.property('cursor'); + // expect(instance.cursor).to.be(expectedValueLiteral); + }); + + it('should have the property data (base name: "data")', function() { + // TODO: update the code to test the property data + expect(instance).to.have.property('data'); + // expect(instance.data).to.be(expectedValueLiteral); + }); + + }); + }); + +})); diff --git a/test/dyspatch-client/UpdatedAt.spec.js b/test/dyspatch-client/UpdatedAt.spec.js new file mode 100644 index 0000000..055c678 --- /dev/null +++ b/test/dyspatch-client/UpdatedAt.spec.js @@ -0,0 +1,47 @@ +/* + * Dyspatch API + * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. + * + * OpenAPI spec version: 2019.10 + * Contact: support@dyspatch.io + * + * 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.10 + * + * 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.DyspatchClient); + } +}(this, function(expect, DyspatchClient) { + 'use strict'; + + var instance; + + describe('(package)', function() { + describe('UpdatedAt', function() { + beforeEach(function() { + instance = new DyspatchClient.UpdatedAt(); + }); + + it('should create an instance of UpdatedAt', function() { + // TODO: update the code to test UpdatedAt + expect(instance).to.be.a(DyspatchClient.UpdatedAt); + }); + + }); + }); + +})); diff --git a/test/model/APIError.spec.js b/test/model/APIError.spec.js deleted file mode 100644 index 2239a93..0000000 --- a/test/model/APIError.spec.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.APIError(); - }); - - 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('APIError', function() { - it('should create an instance of APIError', function() { - // uncomment below and update the code to test APIError - //var instane = new Dyspatch.APIError(); - //expect(instance).to.be.a(Dyspatch.APIError); - }); - - it('should have the property code (base name: "code")', function() { - // uncomment below and update the code to test the property code - //var instane = new Dyspatch.APIError(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new Dyspatch.APIError(); - //expect(instance).to.be(); - }); - - it('should have the property parameter (base name: "parameter")', function() { - // uncomment below and update the code to test the property parameter - //var instane = new Dyspatch.APIError(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Body.spec.js b/test/model/Body.spec.js deleted file mode 100644 index 5a14f61..0000000 --- a/test/model/Body.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) - * - * OpenAPI spec version: 2019.10 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.DyspatchClient); - } -}(this, function(expect, DyspatchClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new DyspatchClient.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 instane = new DyspatchClient.Body(); - //expect(instance).to.be.a(DyspatchClient.Body); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new DyspatchClient.Body(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CompiledRead.spec.js b/test/model/CompiledRead.spec.js deleted file mode 100644 index 684ee4b..0000000 --- a/test/model/CompiledRead.spec.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.CompiledRead(); - }); - - 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('CompiledRead', function() { - it('should create an instance of CompiledRead', function() { - // uncomment below and update the code to test CompiledRead - //var instane = new Dyspatch.CompiledRead(); - //expect(instance).to.be.a(Dyspatch.CompiledRead); - }); - - it('should have the property sender (base name: "sender")', function() { - // uncomment below and update the code to test the property sender - //var instane = new Dyspatch.CompiledRead(); - //expect(instance).to.be(); - }); - - it('should have the property replyTo (base name: "replyTo")', function() { - // uncomment below and update the code to test the property replyTo - //var instane = new Dyspatch.CompiledRead(); - //expect(instance).to.be(); - }); - - it('should have the property subject (base name: "subject")', function() { - // uncomment below and update the code to test the property subject - //var instane = new Dyspatch.CompiledRead(); - //expect(instance).to.be(); - }); - - it('should have the property html (base name: "html")', function() { - // uncomment below and update the code to test the property html - //var instane = new Dyspatch.CompiledRead(); - //expect(instance).to.be(); - }); - - it('should have the property text (base name: "text")', function() { - // uncomment below and update the code to test the property text - //var instane = new Dyspatch.CompiledRead(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreatedAt.spec.js b/test/model/CreatedAt.spec.js deleted file mode 100644 index 792eb34..0000000 --- a/test/model/CreatedAt.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.CreatedAt(); - }); - - 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('CreatedAt', function() { - it('should create an instance of CreatedAt', function() { - // uncomment below and update the code to test CreatedAt - //var instane = new Dyspatch.CreatedAt(); - //expect(instance).to.be.a(Dyspatch.CreatedAt); - }); - - }); - -})); diff --git a/test/model/Cursor.spec.js b/test/model/Cursor.spec.js deleted file mode 100644 index 4de8f66..0000000 --- a/test/model/Cursor.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.Cursor(); - }); - - 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('Cursor', function() { - it('should create an instance of Cursor', function() { - // uncomment below and update the code to test Cursor - //var instane = new Dyspatch.Cursor(); - //expect(instance).to.be.a(Dyspatch.Cursor); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instane = new Dyspatch.Cursor(); - //expect(instance).to.be(); - }); - - it('should have the property hasMore (base name: "hasMore")', function() { - // uncomment below and update the code to test the property hasMore - //var instane = new Dyspatch.Cursor(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DraftDescription.spec.js b/test/model/DraftDescription.spec.js deleted file mode 100644 index aeea8d0..0000000 --- a/test/model/DraftDescription.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) - * - * OpenAPI spec version: 2019.10 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.DyspatchClient); - } -}(this, function(expect, DyspatchClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new DyspatchClient.DraftDescription(); - }); - - 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('DraftDescription', function() { - it('should create an instance of DraftDescription', function() { - // uncomment below and update the code to test DraftDescription - //var instane = new DyspatchClient.DraftDescription(); - //expect(instance).to.be.a(DyspatchClient.DraftDescription); - }); - - }); - -})); diff --git a/test/model/DraftId.spec.js b/test/model/DraftId.spec.js deleted file mode 100644 index 30844b4..0000000 --- a/test/model/DraftId.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) - * - * OpenAPI spec version: 2019.10 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.DyspatchClient); - } -}(this, function(expect, DyspatchClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new DyspatchClient.DraftId(); - }); - - 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('DraftId', function() { - it('should create an instance of DraftId', function() { - // uncomment below and update the code to test DraftId - //var instane = new DyspatchClient.DraftId(); - //expect(instance).to.be.a(DyspatchClient.DraftId); - }); - - }); - -})); diff --git a/test/model/DraftMetaRead.spec.js b/test/model/DraftMetaRead.spec.js deleted file mode 100644 index b4dcd84..0000000 --- a/test/model/DraftMetaRead.spec.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) - * - * OpenAPI spec version: 2019.10 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.DyspatchClient); - } -}(this, function(expect, DyspatchClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new DyspatchClient.DraftMetaRead(); - }); - - 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('DraftMetaRead', function() { - it('should create an instance of DraftMetaRead', function() { - // uncomment below and update the code to test DraftMetaRead - //var instane = new DyspatchClient.DraftMetaRead(); - //expect(instance).to.be.a(DyspatchClient.DraftMetaRead); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new DyspatchClient.DraftMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property templateId (base name: "templateId")', function() { - // uncomment below and update the code to test the property templateId - //var instane = new DyspatchClient.DraftMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new DyspatchClient.DraftMetaRead(); - //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 instane = new DyspatchClient.DraftMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instane = new DyspatchClient.DraftMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "createdAt")', function() { - // uncomment below and update the code to test the property createdAt - //var instane = new DyspatchClient.DraftMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updatedAt")', function() { - // uncomment below and update the code to test the property updatedAt - //var instane = new DyspatchClient.DraftMetaRead(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DraftName.spec.js b/test/model/DraftName.spec.js deleted file mode 100644 index d3e6054..0000000 --- a/test/model/DraftName.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) - * - * OpenAPI spec version: 2019.10 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.DyspatchClient); - } -}(this, function(expect, DyspatchClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new DyspatchClient.DraftName(); - }); - - 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('DraftName', function() { - it('should create an instance of DraftName', function() { - // uncomment below and update the code to test DraftName - //var instane = new DyspatchClient.DraftName(); - //expect(instance).to.be.a(DyspatchClient.DraftName); - }); - - }); - -})); diff --git a/test/model/DraftRead.spec.js b/test/model/DraftRead.spec.js deleted file mode 100644 index d06eadc..0000000 --- a/test/model/DraftRead.spec.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) - * - * OpenAPI spec version: 2019.10 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.DyspatchClient); - } -}(this, function(expect, DyspatchClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new DyspatchClient.DraftRead(); - }); - - 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('DraftRead', function() { - it('should create an instance of DraftRead', function() { - // uncomment below and update the code to test DraftRead - //var instane = new DyspatchClient.DraftRead(); - //expect(instance).to.be.a(DyspatchClient.DraftRead); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new DyspatchClient.DraftRead(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instane = new DyspatchClient.DraftRead(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new DyspatchClient.DraftRead(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instane = new DyspatchClient.DraftRead(); - //expect(instance).to.be(); - }); - - it('should have the property compiled (base name: "compiled")', function() { - // uncomment below and update the code to test the property compiled - //var instane = new DyspatchClient.DraftRead(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "createdAt")', function() { - // uncomment below and update the code to test the property createdAt - //var instane = new DyspatchClient.DraftRead(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updatedAt")', function() { - // uncomment below and update the code to test the property updatedAt - //var instane = new DyspatchClient.DraftRead(); - //expect(instance).to.be(); - }); - - it('should have the property localizations (base name: "localizations")', function() { - // uncomment below and update the code to test the property localizations - //var instane = new DyspatchClient.DraftRead(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DraftUrl.spec.js b/test/model/DraftUrl.spec.js deleted file mode 100644 index ff83214..0000000 --- a/test/model/DraftUrl.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) - * - * OpenAPI spec version: 2019.10 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.DyspatchClient); - } -}(this, function(expect, DyspatchClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new DyspatchClient.DraftUrl(); - }); - - 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('DraftUrl', function() { - it('should create an instance of DraftUrl', function() { - // uncomment below and update the code to test DraftUrl - //var instane = new DyspatchClient.DraftUrl(); - //expect(instance).to.be.a(DyspatchClient.DraftUrl); - }); - - }); - -})); diff --git a/test/model/DraftsRead.spec.js b/test/model/DraftsRead.spec.js deleted file mode 100644 index 1c11dcd..0000000 --- a/test/model/DraftsRead.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) - * - * OpenAPI spec version: 2019.10 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.DyspatchClient); - } -}(this, function(expect, DyspatchClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new DyspatchClient.DraftsRead(); - }); - - 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('DraftsRead', function() { - it('should create an instance of DraftsRead', function() { - // uncomment below and update the code to test DraftsRead - //var instane = new DyspatchClient.DraftsRead(); - //expect(instance).to.be.a(DyspatchClient.DraftsRead); - }); - - it('should have the property cursor (base name: "cursor")', function() { - // uncomment below and update the code to test the property cursor - //var instane = new DyspatchClient.DraftsRead(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instane = new DyspatchClient.DraftsRead(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/LanguageId.spec.js b/test/model/LanguageId.spec.js deleted file mode 100644 index 9990b99..0000000 --- a/test/model/LanguageId.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.LanguageId(); - }); - - 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('LanguageId', function() { - it('should create an instance of LanguageId', function() { - // uncomment below and update the code to test LanguageId - //var instane = new Dyspatch.LanguageId(); - //expect(instance).to.be.a(Dyspatch.LanguageId); - }); - - }); - -})); diff --git a/test/model/LocalizationId.spec.js b/test/model/LocalizationId.spec.js deleted file mode 100644 index 0d34486..0000000 --- a/test/model/LocalizationId.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.LocalizationId(); - }); - - 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('LocalizationId', function() { - it('should create an instance of LocalizationId', function() { - // uncomment below and update the code to test LocalizationId - //var instane = new Dyspatch.LocalizationId(); - //expect(instance).to.be.a(Dyspatch.LocalizationId); - }); - - }); - -})); diff --git a/test/model/LocalizationKeyRead.spec.js b/test/model/LocalizationKeyRead.spec.js deleted file mode 100644 index 68ae099..0000000 --- a/test/model/LocalizationKeyRead.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) - * - * OpenAPI spec version: 2019.10 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.DyspatchClient); - } -}(this, function(expect, DyspatchClient) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new DyspatchClient.LocalizationKeyRead(); - }); - - 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('LocalizationKeyRead', function() { - it('should create an instance of LocalizationKeyRead', function() { - // uncomment below and update the code to test LocalizationKeyRead - //var instane = new DyspatchClient.LocalizationKeyRead(); - //expect(instance).to.be.a(DyspatchClient.LocalizationKeyRead); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instane = new DyspatchClient.LocalizationKeyRead(); - //expect(instance).to.be(); - }); - - it('should have the property comment (base name: "comment")', function() { - // uncomment below and update the code to test the property comment - //var instane = new DyspatchClient.LocalizationKeyRead(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/LocalizationMetaRead.spec.js b/test/model/LocalizationMetaRead.spec.js deleted file mode 100644 index 047f9fd..0000000 --- a/test/model/LocalizationMetaRead.spec.js +++ /dev/null @@ -1,86 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.LocalizationMetaRead(); - }); - - 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('LocalizationMetaRead', function() { - it('should create an instance of LocalizationMetaRead', function() { - // uncomment below and update the code to test LocalizationMetaRead - //var instane = new Dyspatch.LocalizationMetaRead(); - //expect(instance).to.be.a(Dyspatch.LocalizationMetaRead); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new Dyspatch.LocalizationMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property language (base name: "language")', function() { - // uncomment below and update the code to test the property language - //var instane = new Dyspatch.LocalizationMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instane = new Dyspatch.LocalizationMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Dyspatch.LocalizationMetaRead(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/LocalizationName.spec.js b/test/model/LocalizationName.spec.js deleted file mode 100644 index 36a65a0..0000000 --- a/test/model/LocalizationName.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.LocalizationName(); - }); - - 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('LocalizationName', function() { - it('should create an instance of LocalizationName', function() { - // uncomment below and update the code to test LocalizationName - //var instane = new Dyspatch.LocalizationName(); - //expect(instance).to.be.a(Dyspatch.LocalizationName); - }); - - }); - -})); diff --git a/test/model/LocalizationRead.spec.js b/test/model/LocalizationRead.spec.js deleted file mode 100644 index 83145cf..0000000 --- a/test/model/LocalizationRead.spec.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.LocalizationRead(); - }); - - 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('LocalizationRead', function() { - it('should create an instance of LocalizationRead', function() { - // uncomment below and update the code to test LocalizationRead - //var instane = new Dyspatch.LocalizationRead(); - //expect(instance).to.be.a(Dyspatch.LocalizationRead); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new Dyspatch.LocalizationRead(); - //expect(instance).to.be(); - }); - - it('should have the property language (base name: "language")', function() { - // uncomment below and update the code to test the property language - //var instane = new Dyspatch.LocalizationRead(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instane = new Dyspatch.LocalizationRead(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instane = new Dyspatch.LocalizationRead(); - //expect(instance).to.be(); - }); - - it('should have the property compiled (base name: "compiled")', function() { - // uncomment below and update the code to test the property compiled - //var instane = new Dyspatch.LocalizationRead(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "createdAt")', function() { - // uncomment below and update the code to test the property createdAt - //var instane = new Dyspatch.LocalizationRead(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updatedAt")', function() { - // uncomment below and update the code to test the property updatedAt - //var instane = new Dyspatch.LocalizationRead(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Dyspatch.LocalizationRead(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/LocalizationUrl.spec.js b/test/model/LocalizationUrl.spec.js deleted file mode 100644 index 7cf444a..0000000 --- a/test/model/LocalizationUrl.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.LocalizationUrl(); - }); - - 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('LocalizationUrl', function() { - it('should create an instance of LocalizationUrl', function() { - // uncomment below and update the code to test LocalizationUrl - //var instane = new Dyspatch.LocalizationUrl(); - //expect(instance).to.be.a(Dyspatch.LocalizationUrl); - }); - - }); - -})); diff --git a/test/model/TemplateDescription.spec.js b/test/model/TemplateDescription.spec.js deleted file mode 100644 index 1d93ec9..0000000 --- a/test/model/TemplateDescription.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.TemplateDescription(); - }); - - 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('TemplateDescription', function() { - it('should create an instance of TemplateDescription', function() { - // uncomment below and update the code to test TemplateDescription - //var instane = new Dyspatch.TemplateDescription(); - //expect(instance).to.be.a(Dyspatch.TemplateDescription); - }); - - }); - -})); diff --git a/test/model/TemplateId.spec.js b/test/model/TemplateId.spec.js deleted file mode 100644 index 257c3fa..0000000 --- a/test/model/TemplateId.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.TemplateId(); - }); - - 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('TemplateId', function() { - it('should create an instance of TemplateId', function() { - // uncomment below and update the code to test TemplateId - //var instane = new Dyspatch.TemplateId(); - //expect(instance).to.be.a(Dyspatch.TemplateId); - }); - - }); - -})); diff --git a/test/model/TemplateMetaRead.spec.js b/test/model/TemplateMetaRead.spec.js deleted file mode 100644 index cb69bc5..0000000 --- a/test/model/TemplateMetaRead.spec.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.TemplateMetaRead(); - }); - - 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('TemplateMetaRead', function() { - it('should create an instance of TemplateMetaRead', function() { - // uncomment below and update the code to test TemplateMetaRead - //var instane = new Dyspatch.TemplateMetaRead(); - //expect(instance).to.be.a(Dyspatch.TemplateMetaRead); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new Dyspatch.TemplateMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Dyspatch.TemplateMetaRead(); - //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 instane = new Dyspatch.TemplateMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instane = new Dyspatch.TemplateMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property localizations (base name: "localizations")', function() { - // uncomment below and update the code to test the property localizations - //var instane = new Dyspatch.TemplateMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "createdAt")', function() { - // uncomment below and update the code to test the property createdAt - //var instane = new Dyspatch.TemplateMetaRead(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updatedAt")', function() { - // uncomment below and update the code to test the property updatedAt - //var instane = new Dyspatch.TemplateMetaRead(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/TemplateName.spec.js b/test/model/TemplateName.spec.js deleted file mode 100644 index 8cfab00..0000000 --- a/test/model/TemplateName.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.TemplateName(); - }); - - 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('TemplateName', function() { - it('should create an instance of TemplateName', function() { - // uncomment below and update the code to test TemplateName - //var instane = new Dyspatch.TemplateName(); - //expect(instance).to.be.a(Dyspatch.TemplateName); - }); - - }); - -})); diff --git a/test/model/TemplateRead.spec.js b/test/model/TemplateRead.spec.js deleted file mode 100644 index 47f9091..0000000 --- a/test/model/TemplateRead.spec.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.TemplateRead(); - }); - - 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('TemplateRead', function() { - it('should create an instance of TemplateRead', function() { - // uncomment below and update the code to test TemplateRead - //var instane = new Dyspatch.TemplateRead(); - //expect(instance).to.be.a(Dyspatch.TemplateRead); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new Dyspatch.TemplateRead(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instane = new Dyspatch.TemplateRead(); - //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 instane = new Dyspatch.TemplateRead(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instane = new Dyspatch.TemplateRead(); - //expect(instance).to.be(); - }); - - it('should have the property localizations (base name: "localizations")', function() { - // uncomment below and update the code to test the property localizations - //var instane = new Dyspatch.TemplateRead(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "createdAt")', function() { - // uncomment below and update the code to test the property createdAt - //var instane = new Dyspatch.TemplateRead(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updatedAt")', function() { - // uncomment below and update the code to test the property updatedAt - //var instane = new Dyspatch.TemplateRead(); - //expect(instance).to.be(); - }); - - it('should have the property compiled (base name: "compiled")', function() { - // uncomment below and update the code to test the property compiled - //var instane = new Dyspatch.TemplateRead(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/TemplateUrl.spec.js b/test/model/TemplateUrl.spec.js deleted file mode 100644 index 66e1c49..0000000 --- a/test/model/TemplateUrl.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.TemplateUrl(); - }); - - 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('TemplateUrl', function() { - it('should create an instance of TemplateUrl', function() { - // uncomment below and update the code to test TemplateUrl - //var instane = new Dyspatch.TemplateUrl(); - //expect(instance).to.be.a(Dyspatch.TemplateUrl); - }); - - }); - -})); diff --git a/test/model/TemplatesRead.spec.js b/test/model/TemplatesRead.spec.js deleted file mode 100644 index aa6f31d..0000000 --- a/test/model/TemplatesRead.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.TemplatesRead(); - }); - - 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('TemplatesRead', function() { - it('should create an instance of TemplatesRead', function() { - // uncomment below and update the code to test TemplatesRead - //var instane = new Dyspatch.TemplatesRead(); - //expect(instance).to.be.a(Dyspatch.TemplatesRead); - }); - - it('should have the property cursor (base name: "cursor")', function() { - // uncomment below and update the code to test the property cursor - //var instane = new Dyspatch.TemplatesRead(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instane = new Dyspatch.TemplatesRead(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdatedAt.spec.js b/test/model/UpdatedAt.spec.js deleted file mode 100644 index d7d3359..0000000 --- a/test/model/UpdatedAt.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Dyspatch API - * # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. - * - * OpenAPI spec version: 2018.08 - * Contact: support@dyspatch.io - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.3.1 - * - * 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.Dyspatch); - } -}(this, function(expect, Dyspatch) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new Dyspatch.UpdatedAt(); - }); - - 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('UpdatedAt', function() { - it('should create an instance of UpdatedAt', function() { - // uncomment below and update the code to test UpdatedAt - //var instane = new Dyspatch.UpdatedAt(); - //expect(instance).to.be.a(Dyspatch.UpdatedAt); - }); - - }); - -}));