From f163b28092054f2b5b949da4e409e5a47613379c Mon Sep 17 00:00:00 2001 From: ekta-slt Date: Tue, 26 Dec 2017 18:33:39 +0530 Subject: [PATCH] Contact attribute update + date-time desc updates --- docs/ContactsApi.md | 10 +++++----- docs/CreateEmailCampaign.md | 2 +- docs/CreateSmsCampaign.md | 2 +- docs/GetCampaignOverview.md | 2 +- docs/GetContactCampaignStatsOpened.md | 2 +- docs/GetContactDetails.md | 2 +- docs/GetEmailEventReportEvents.md | 2 +- docs/GetExtendedCampaignOverview.md | 4 ++-- docs/GetExtendedContactDetailsStatisticsLinks.md | 2 +- ...tendedContactDetailsStatisticsMessagesSent.md | 2 +- .../GetExtendedContactDetailsStatisticsOpened.md | 2 +- ...atisticsUnsubscriptionsAdminUnsubscription.md | 2 +- ...tatisticsUnsubscriptionsUserUnsubscription.md | 2 +- docs/GetExtendedList.md | 2 +- docs/GetSmsCampaignOverview.md | 6 +++--- docs/GetSmtpTemplateOverview.md | 4 ++-- docs/GetWebhook.md | 4 ++-- docs/ListsApi.md | 4 ++-- docs/SMTPApi.md | 6 +++--- docs/UpdateAttributeEnumeration.md | 4 ++-- docs/UpdateEmailCampaign.md | 2 +- docs/UpdateSmsCampaign.md | 2 +- package-lock.json | 2 +- package.json | 2 +- src/api/ContactsApi.js | 8 ++++---- src/api/ListsApi.js | 4 ++-- src/model/CreateEmailCampaign.js | 2 +- src/model/CreateSmsCampaign.js | 2 +- src/model/GetCampaignOverview.js | 2 +- src/model/GetContactCampaignStatsOpened.js | 4 ++-- src/model/GetContactDetails.js | 4 ++-- src/model/GetEmailCampaign.js | 10 +++++----- src/model/GetEmailEventReportEvents.js | 4 ++-- src/model/GetExtendedCampaignOverview.js | 10 +++++----- src/model/GetExtendedContactDetails.js | 4 ++-- .../GetExtendedContactDetailsStatisticsLinks.js | 4 ++-- ...tendedContactDetailsStatisticsMessagesSent.js | 4 ++-- .../GetExtendedContactDetailsStatisticsOpened.js | 4 ++-- ...atisticsUnsubscriptionsAdminUnsubscription.js | 4 ++-- ...tatisticsUnsubscriptionsUserUnsubscription.js | 4 ++-- src/model/GetExtendedList.js | 4 ++-- src/model/GetSmsCampaign.js | 12 ++++++------ src/model/GetSmsCampaignOverview.js | 12 ++++++------ src/model/GetSmtpTemplateOverview.js | 8 ++++---- src/model/GetWebhook.js | 8 ++++---- src/model/UpdateAttributeEnumeration.js | 16 +++++++++------- src/model/UpdateEmailCampaign.js | 2 +- src/model/UpdateSmsCampaign.js | 2 +- test/model/UpdateAttributeEnumeration.spec.js | 4 ++-- 49 files changed, 109 insertions(+), 107 deletions(-) diff --git a/docs/ContactsApi.md b/docs/ContactsApi.md index 5c6395e1..3daec61c 100644 --- a/docs/ContactsApi.md +++ b/docs/ContactsApi.md @@ -295,7 +295,7 @@ var defaultClient = SibApiV3Sdk.ApiClient.instance; var apiKey = defaultClient.authentications['api-key']; apiKey.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api-key.apiKeyPrefix = 'Token'; +//apiKey.apiKeyPrefix = 'Token'; var apiInstance = new SibApiV3Sdk.ContactsApi(); @@ -587,7 +587,7 @@ var apiInstance = new SibApiV3Sdk.ContactsApi(); var opts = { 'limit': 50, // Number | Number of documents per page 'offset': 0, // Number | Index of the first document of the page - 'modifiedSince': new Date("2013-10-20T19:20:30+01:00") // Date | Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) + 'modifiedSince': new Date("2013-10-20T19:20:30+01:00") // Date | Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) }; apiInstance.getContacts(opts).then(function(data) { console.log('API called successfully. Returned data: ' + data); @@ -603,7 +603,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **limit** | **Number**| Number of documents per page | [optional] [default to 50] **offset** | **Number**| Index of the first document of the page | [optional] [default to 0] - **modifiedSince** | **Date**| Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] + **modifiedSince** | **Date**| Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] ### Return type @@ -640,7 +640,7 @@ var apiInstance = new SibApiV3Sdk.ContactsApi(); var listId = 789; // Number | Id of the list var opts = { - 'modifiedSince': new Date("2013-10-20T19:20:30+01:00"), // Date | Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) + 'modifiedSince': new Date("2013-10-20T19:20:30+01:00"), // Date | Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) 'limit': 50, // Number | Number of documents per page 'offset': 0 // Number | Index of the first document of the page }; @@ -657,7 +657,7 @@ apiInstance.getContactsFromList(listId, opts).then(function(data) { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **listId** | **Number**| Id of the list | - **modifiedSince** | **Date**| Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] + **modifiedSince** | **Date**| Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **limit** | **Number**| Number of documents per page | [optional] [default to 50] **offset** | **Number**| Index of the first document of the page | [optional] [default to 0] diff --git a/docs/CreateEmailCampaign.md b/docs/CreateEmailCampaign.md index a257c9f0..daf2441c 100644 --- a/docs/CreateEmailCampaign.md +++ b/docs/CreateEmailCampaign.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the campaign | **htmlContent** | **String** | Mandatory if htmlUrl is empty. Body of the message (HTML) | [optional] **htmlUrl** | **String** | Mandatory if htmlContent is empty. Url to the message (HTML) | [optional] -**scheduledAt** | **Date** | Sending date and time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] +**scheduledAt** | **Date** | Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **subject** | **String** | Subject of the campaign | **replyTo** | **String** | Email on which the campaign recipients will be able to reply to | [optional] **toField** | **String** | To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, use [FNAME] [LNAME]. These attributes must already exist in your contact database | [optional] diff --git a/docs/CreateSmsCampaign.md b/docs/CreateSmsCampaign.md index ca31324d..739ee94d 100644 --- a/docs/CreateSmsCampaign.md +++ b/docs/CreateSmsCampaign.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes **sender** | **String** | Name of the sender. The number of characters is limited to 11 | **content** | **String** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional] **recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] -**scheduledAt** | **Date** | Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] +**scheduledAt** | **Date** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] diff --git a/docs/GetCampaignOverview.md b/docs/GetCampaignOverview.md index 41551e39..408eadc8 100644 --- a/docs/GetCampaignOverview.md +++ b/docs/GetCampaignOverview.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **String** | Subject of the campaign | **type** | **String** | Type of campaign | **status** | **String** | Status of the campaign | -**scheduledAt** | **Date** | Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] +**scheduledAt** | **Date** | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] diff --git a/docs/GetContactCampaignStatsOpened.md b/docs/GetContactCampaignStatsOpened.md index 37d263e3..e112f810 100644 --- a/docs/GetContactCampaignStatsOpened.md +++ b/docs/GetContactCampaignStatsOpened.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaignId** | **Number** | ID of the campaign which generated the event | **count** | **Number** | Number of openings of the campaign | -**eventTime** | **Date** | Date of the event | +**eventTime** | **Date** | UTC date-time of the event | **ip** | **String** | IP from which the user has opened the campaign | diff --git a/docs/GetContactDetails.md b/docs/GetContactDetails.md index 8e00087b..4c461db2 100644 --- a/docs/GetContactDetails.md +++ b/docs/GetContactDetails.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **Number** | ID of the contact for which you requested the details | **emailBlacklisted** | **Boolean** | Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) | **smsBlacklisted** | **Boolean** | Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) | -**modifiedAt** | **Date** | Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modifiedAt** | **Date** | Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | **listIds** | **[Number]** | | **listUnsubscribed** | **[Number]** | | [optional] **attributes** | **{String: String}** | | diff --git a/docs/GetEmailEventReportEvents.md b/docs/GetEmailEventReportEvents.md index bbaf1d4c..6bac3245 100644 --- a/docs/GetEmailEventReportEvents.md +++ b/docs/GetEmailEventReportEvents.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **String** | Email address which generates the event | -**_date** | **Date** | Date on which the event has been generated | +**_date** | **Date** | UTC date-time on which the event has been generated | **subject** | **String** | Subject of the event | [optional] **messageId** | **String** | Message ID which generated the event | **event** | **String** | Event which occurred | diff --git a/docs/GetExtendedCampaignOverview.md b/docs/GetExtendedCampaignOverview.md index 260df677..bdab89be 100644 --- a/docs/GetExtendedCampaignOverview.md +++ b/docs/GetExtendedCampaignOverview.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **htmlContent** | **String** | HTML content of the campaign | **shareLink** | **String** | Link to share the campaign on social medias | [optional] **tag** | **String** | Tag of the campaign | -**createdAt** | **Date** | Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modifiedAt** | **Date** | Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**createdAt** | **Date** | Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modifiedAt** | **Date** | UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | **inlineImageActivation** | **Boolean** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] **mirrorActive** | **Boolean** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] **recurring** | **Boolean** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] diff --git a/docs/GetExtendedContactDetailsStatisticsLinks.md b/docs/GetExtendedContactDetailsStatisticsLinks.md index a72a7ba0..d2b73384 100644 --- a/docs/GetExtendedContactDetailsStatisticsLinks.md +++ b/docs/GetExtendedContactDetailsStatisticsLinks.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **Number** | Number of clicks on this link for the campaign | -**eventTime** | **Date** | Date of the event | +**eventTime** | **Date** | UTC date-time of the event | **ip** | **String** | IP from which the user has clicked on the link | **url** | **String** | URL of the clicked link | diff --git a/docs/GetExtendedContactDetailsStatisticsMessagesSent.md b/docs/GetExtendedContactDetailsStatisticsMessagesSent.md index d6fb33b9..4e24ca7b 100644 --- a/docs/GetExtendedContactDetailsStatisticsMessagesSent.md +++ b/docs/GetExtendedContactDetailsStatisticsMessagesSent.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaignId** | **Number** | ID of the campaign which generated the event | -**eventTime** | **Date** | Date of the event | +**eventTime** | **Date** | UTC date-time of the event | diff --git a/docs/GetExtendedContactDetailsStatisticsOpened.md b/docs/GetExtendedContactDetailsStatisticsOpened.md index 40e0d2b1..290bfd07 100644 --- a/docs/GetExtendedContactDetailsStatisticsOpened.md +++ b/docs/GetExtendedContactDetailsStatisticsOpened.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaignId** | **Number** | ID of the campaign which generated the event | **count** | **Number** | Number of openings for the campaign | -**eventTime** | **Date** | Date of the event | +**eventTime** | **Date** | UTC date-time of the event | **ip** | **String** | IP from which the user has opened the email | diff --git a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md index 145a03ac..2dbfc1b8 100644 --- a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +++ b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**eventTime** | **Date** | Date of the event | +**eventTime** | **Date** | UTC date-time of the event | **ip** | **String** | IP from which the user has been unsubscribed | diff --git a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md index 7bc8b95e..d9079401 100644 --- a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +++ b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaignId** | **Number** | ID of the campaign which generated the event | -**eventTime** | **Date** | Date of the event | +**eventTime** | **Date** | UTC date-time of the event | **ip** | **String** | IP from which the user has unsubscribed | diff --git a/docs/GetExtendedList.md b/docs/GetExtendedList.md index 6ab096ce..bbb942e2 100644 --- a/docs/GetExtendedList.md +++ b/docs/GetExtendedList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **folderId** | **Number** | ID of the folder | -**createdAt** | **Date** | Creation Date of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**createdAt** | **Date** | Creation UTC date-time of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) | **campaignStats** | [**[GetExtendedListCampaignStats]**](GetExtendedListCampaignStats.md) | | [optional] **dynamicList** | **Boolean** | Status telling if the list is dynamic or not (true=dynamic, false=not dynamic) | [optional] diff --git a/docs/GetSmsCampaignOverview.md b/docs/GetSmsCampaignOverview.md index dab1a458..1187d578 100644 --- a/docs/GetSmsCampaignOverview.md +++ b/docs/GetSmsCampaignOverview.md @@ -7,11 +7,11 @@ Name | Type | Description | Notes **name** | **String** | Name of the SMS Campaign | **status** | **String** | Status of the SMS Campaign | **content** | **String** | Content of the SMS Campaign | -**scheduledAt** | **Date** | Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | +**scheduledAt** | **Date** | UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | **testSent** | **Boolean** | Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) | **sender** | **String** | Sender of the SMS Campaign | -**createdAt** | **Date** | Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modifiedAt** | **Date** | Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**createdAt** | **Date** | Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modifiedAt** | **Date** | UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | diff --git a/docs/GetSmtpTemplateOverview.md b/docs/GetSmtpTemplateOverview.md index 336dff57..f72263b7 100644 --- a/docs/GetSmtpTemplateOverview.md +++ b/docs/GetSmtpTemplateOverview.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **toField** | **String** | Customisation of the \"to\" field for the template | **tag** | **String** | Tag of the template | **htmlContent** | **String** | HTML content of the template | -**createdAt** | **Date** | Creation date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modifiedAt** | **Date** | Last modification date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**createdAt** | **Date** | Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modifiedAt** | **Date** | Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | diff --git a/docs/GetWebhook.md b/docs/GetWebhook.md index d408b1e8..56f8d176 100644 --- a/docs/GetWebhook.md +++ b/docs/GetWebhook.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **description** | **String** | Description of the webhook | **events** | **[String]** | | **type** | **String** | Type of webhook (marketing or transac) | -**createdAt** | **Date** | Creation date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modifiedAt** | **Date** | Last modification date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**createdAt** | **Date** | Creation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modifiedAt** | **Date** | Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) | diff --git a/docs/ListsApi.md b/docs/ListsApi.md index d165182e..fc45f53e 100644 --- a/docs/ListsApi.md +++ b/docs/ListsApi.md @@ -184,7 +184,7 @@ var apiInstance = new SibApiV3Sdk.ListsApi(); var listId = 789; // Number | Id of the list var opts = { - 'modifiedSince': new Date("2013-10-20T19:20:30+01:00"), // Date | Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) + 'modifiedSince': new Date("2013-10-20T19:20:30+01:00"), // Date | Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) 'limit': 50, // Number | Number of documents per page 'offset': 0 // Number | Index of the first document of the page }; @@ -201,7 +201,7 @@ apiInstance.getContactsFromList(listId, opts).then(function(data) { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **listId** | **Number**| Id of the list | - **modifiedSince** | **Date**| Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] + **modifiedSince** | **Date**| Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **limit** | **Number**| Number of documents per page | [optional] [default to 50] **offset** | **Number**| Index of the first document of the page | [optional] [default to 0] diff --git a/docs/SMTPApi.md b/docs/SMTPApi.md index 205631bd..f859cbef 100644 --- a/docs/SMTPApi.md +++ b/docs/SMTPApi.md @@ -129,10 +129,10 @@ var SibApiV3Sdk = require('sib-api-v3-sdk'); var defaultClient = SibApiV3Sdk.ApiClient.instance; // Configure API key authorization: api-key -var api-key = defaultClient.authentications['api-key']; -api-key.apiKey = 'YOUR API KEY'; +var apiKey = defaultClient.authentications['api-key']; +apiKey.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api-key.apiKeyPrefix = 'Token'; +//apiKey.apiKeyPrefix = 'Token'; var apiInstance = new SibApiV3Sdk.SMTPApi(); diff --git a/docs/UpdateAttributeEnumeration.md b/docs/UpdateAttributeEnumeration.md index abe8748e..d603cd49 100644 --- a/docs/UpdateAttributeEnumeration.md +++ b/docs/UpdateAttributeEnumeration.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Number** | Id of the value | [optional] -**label** | **String** | Label of the value | [optional] +**value** | **Number** | Id of the value | +**label** | **String** | Label of the value | diff --git a/docs/UpdateEmailCampaign.md b/docs/UpdateEmailCampaign.md index 7eb4ac46..d2b520be 100644 --- a/docs/UpdateEmailCampaign.md +++ b/docs/UpdateEmailCampaign.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the campaign | [optional] **htmlContent** | **String** | Body of the message (HTML version). REQUIRED if htmlUrl is empty | [optional] **htmlUrl** | **String** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional] -**scheduledAt** | **Date** | Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] +**scheduledAt** | **Date** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **subject** | **String** | Subject of the campaign | [optional] **replyTo** | **String** | Email on which campaign recipients will be able to reply to | [optional] **toField** | **String** | This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account | [optional] diff --git a/docs/UpdateSmsCampaign.md b/docs/UpdateSmsCampaign.md index ba615192..ab47a749 100644 --- a/docs/UpdateSmsCampaign.md +++ b/docs/UpdateSmsCampaign.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes **sender** | **String** | Name of the sender. The number of characters is limited to 11 | [optional] **content** | **String** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional] **recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] -**scheduledAt** | **Date** | Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] +**scheduledAt** | **Date** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] diff --git a/package-lock.json b/package-lock.json index 3ff27373..5e92f99c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "sib-api-v3-sdk", - "version": "3.1.4", + "version": "3.1.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ffdd3e3c..5b657990 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sib-api-v3-sdk", - "version": "3.1.4", + "version": "3.1.5", "description": "Official SendinBlue provided RESTFul API V3 nodejs library", "license": "ISC", "main": "src/index.js", diff --git a/src/api/ContactsApi.js b/src/api/ContactsApi.js index 4c76dc8c..06f4cba9 100644 --- a/src/api/ContactsApi.js +++ b/src/api/ContactsApi.js @@ -612,7 +612,7 @@ * @param {Object} opts Optional parameters * @param {Number} opts.limit Number of documents per page (default to 50) * @param {Number} opts.offset Index of the first document of the page (default to 0) - * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetContacts} and HTTP response */ this.getContactsWithHttpInfo = function(opts) { @@ -649,7 +649,7 @@ * @param {Object} opts Optional parameters * @param {Number} opts.limit Number of documents per page (default to 50) * @param {Number} opts.offset Index of the first document of the page (default to 0) - * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetContacts} */ this.getContacts = function(opts) { @@ -664,7 +664,7 @@ * Get the contacts in a list * @param {Number} listId Id of the list * @param {Object} opts Optional parameters - * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) * @param {Number} opts.limit Number of documents per page (default to 50) * @param {Number} opts.offset Index of the first document of the page (default to 0) * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetContacts} and HTTP response @@ -708,7 +708,7 @@ * Get the contacts in a list * @param {Number} listId Id of the list * @param {Object} opts Optional parameters - * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) * @param {Number} opts.limit Number of documents per page (default to 50) * @param {Number} opts.offset Index of the first document of the page (default to 0) * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetContacts} diff --git a/src/api/ListsApi.js b/src/api/ListsApi.js index e3c5b87a..1479348d 100644 --- a/src/api/ListsApi.js +++ b/src/api/ListsApi.js @@ -206,7 +206,7 @@ * Get the contacts in a list * @param {Number} listId Id of the list * @param {Object} opts Optional parameters - * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) * @param {Number} opts.limit Number of documents per page (default to 50) * @param {Number} opts.offset Index of the first document of the page (default to 0) * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetContacts} and HTTP response @@ -250,7 +250,7 @@ * Get the contacts in a list * @param {Number} listId Id of the list * @param {Object} opts Optional parameters - * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param {Date} opts.modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) * @param {Number} opts.limit Number of documents per page (default to 50) * @param {Number} opts.offset Index of the first document of the page (default to 0) * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetContacts} diff --git a/src/model/CreateEmailCampaign.js b/src/model/CreateEmailCampaign.js index 2fa32f7c..8a72a8cb 100644 --- a/src/model/CreateEmailCampaign.js +++ b/src/model/CreateEmailCampaign.js @@ -165,7 +165,7 @@ */ exports.prototype['htmlUrl'] = undefined; /** - * Sending date and time (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} scheduledAt */ exports.prototype['scheduledAt'] = undefined; diff --git a/src/model/CreateSmsCampaign.js b/src/model/CreateSmsCampaign.js index 147a2e9b..670a2acf 100644 --- a/src/model/CreateSmsCampaign.js +++ b/src/model/CreateSmsCampaign.js @@ -107,7 +107,7 @@ */ exports.prototype['recipients'] = undefined; /** - * Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) + * UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} scheduledAt */ exports.prototype['scheduledAt'] = undefined; diff --git a/src/model/GetCampaignOverview.js b/src/model/GetCampaignOverview.js index bf21f188..bf995a75 100644 --- a/src/model/GetCampaignOverview.js +++ b/src/model/GetCampaignOverview.js @@ -120,7 +120,7 @@ */ exports.prototype['status'] = undefined; /** - * Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) + * UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} scheduledAt */ exports.prototype['scheduledAt'] = undefined; diff --git a/src/model/GetContactCampaignStatsOpened.js b/src/model/GetContactCampaignStatsOpened.js index 3bf80c63..8e806179 100644 --- a/src/model/GetContactCampaignStatsOpened.js +++ b/src/model/GetContactCampaignStatsOpened.js @@ -46,7 +46,7 @@ * @class * @param campaignId {Number} ID of the campaign which generated the event * @param count {Number} Number of openings of the campaign - * @param eventTime {Date} Date of the event + * @param eventTime {Date} UTC date-time of the event * @param ip {String} IP from which the user has opened the campaign */ var exports = function(campaignId, count, eventTime, ip) { @@ -96,7 +96,7 @@ */ exports.prototype['count'] = undefined; /** - * Date of the event + * UTC date-time of the event * @member {Date} eventTime */ exports.prototype['eventTime'] = undefined; diff --git a/src/model/GetContactDetails.js b/src/model/GetContactDetails.js index 06e28e94..2ecd42f6 100644 --- a/src/model/GetContactDetails.js +++ b/src/model/GetContactDetails.js @@ -48,7 +48,7 @@ * @param id {Number} ID of the contact for which you requested the details * @param emailBlacklisted {Boolean} Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) * @param smsBlacklisted {Boolean} Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) - * @param modifiedAt {Date} Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param modifiedAt {Date} Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) * @param listIds {Array.} * @param attributes {Object.} */ @@ -125,7 +125,7 @@ */ exports.prototype['smsBlacklisted'] = undefined; /** - * Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} modifiedAt */ exports.prototype['modifiedAt'] = undefined; diff --git a/src/model/GetEmailCampaign.js b/src/model/GetEmailCampaign.js index ecc42f8b..b014fa7b 100644 --- a/src/model/GetEmailCampaign.js +++ b/src/model/GetEmailCampaign.js @@ -57,8 +57,8 @@ * @param toField {String} Customisation of the \"to\" field of the campaign * @param htmlContent {String} HTML content of the campaign * @param tag {String} Tag of the campaign - * @param createdAt {Date} Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) - * @param modifiedAt {Date} Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param createdAt {Date} Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param modifiedAt {Date} UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) */ var exports = function(id, name, subject, type, status, testSent, header, footer, replyTo, toField, htmlContent, tag, createdAt, modifiedAt) { var _this = this; @@ -115,7 +115,7 @@ exports.prototype['type'] = undefined; exports.prototype['status'] = undefined; /** - * Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) + * UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} scheduledAt */ exports.prototype['scheduledAt'] = undefined; @@ -174,13 +174,13 @@ exports.prototype['shareLink'] = undefined; exports.prototype['tag'] = undefined; /** - * Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} createdAt */ exports.prototype['createdAt'] = undefined; /** - * Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} modifiedAt */ exports.prototype['modifiedAt'] = undefined; diff --git a/src/model/GetEmailEventReportEvents.js b/src/model/GetEmailEventReportEvents.js index 58be9780..bb06bb0a 100644 --- a/src/model/GetEmailEventReportEvents.js +++ b/src/model/GetEmailEventReportEvents.js @@ -45,7 +45,7 @@ * @alias module:model/GetEmailEventReportEvents * @class * @param email {String} Email address which generates the event - * @param _date {Date} Date on which the event has been generated + * @param _date {Date} UTC date-time on which the event has been generated * @param messageId {String} Message ID which generated the event * @param event {module:model/GetEmailEventReportEvents.EventEnum} Event which occurred * @param tag {String} Tag of the email which generated the event @@ -117,7 +117,7 @@ */ exports.prototype['email'] = undefined; /** - * Date on which the event has been generated + * UTC date-time on which the event has been generated * @member {Date} date */ exports.prototype['date'] = undefined; diff --git a/src/model/GetExtendedCampaignOverview.js b/src/model/GetExtendedCampaignOverview.js index 0978c92b..2fea3b95 100644 --- a/src/model/GetExtendedCampaignOverview.js +++ b/src/model/GetExtendedCampaignOverview.js @@ -57,8 +57,8 @@ * @param toField {String} Customisation of the \"to\" field of the campaign * @param htmlContent {String} HTML content of the campaign * @param tag {String} Tag of the campaign - * @param createdAt {Date} Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) - * @param modifiedAt {Date} Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param createdAt {Date} Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param modifiedAt {Date} UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) */ var exports = function(id, name, subject, type, status, testSent, header, footer, replyTo, toField, htmlContent, tag, createdAt, modifiedAt) { var _this = this; @@ -183,12 +183,12 @@ */ exports.prototype['tag'] = undefined; /** - * Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} createdAt */ exports.prototype['createdAt'] = undefined; /** - * Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} modifiedAt */ exports.prototype['modifiedAt'] = undefined; @@ -240,7 +240,7 @@ exports.prototype['type'] = undefined; exports.prototype['status'] = undefined; /** - * Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) + * UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} scheduledAt */ exports.prototype['scheduledAt'] = undefined; diff --git a/src/model/GetExtendedContactDetails.js b/src/model/GetExtendedContactDetails.js index 5f7f192e..e232459a 100644 --- a/src/model/GetExtendedContactDetails.js +++ b/src/model/GetExtendedContactDetails.js @@ -49,7 +49,7 @@ * @param id {Number} ID of the contact for which you requested the details * @param emailBlacklisted {Boolean} Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) * @param smsBlacklisted {Boolean} Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) - * @param modifiedAt {Date} Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param modifiedAt {Date} Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) * @param listIds {Array.} * @param attributes {Object.} */ @@ -110,7 +110,7 @@ exports.prototype['emailBlacklisted'] = undefined; exports.prototype['smsBlacklisted'] = undefined; /** - * Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} modifiedAt */ exports.prototype['modifiedAt'] = undefined; diff --git a/src/model/GetExtendedContactDetailsStatisticsLinks.js b/src/model/GetExtendedContactDetailsStatisticsLinks.js index 0c66d90c..a5c0d7c1 100644 --- a/src/model/GetExtendedContactDetailsStatisticsLinks.js +++ b/src/model/GetExtendedContactDetailsStatisticsLinks.js @@ -45,7 +45,7 @@ * @alias module:model/GetExtendedContactDetailsStatisticsLinks * @class * @param count {Number} Number of clicks on this link for the campaign - * @param eventTime {Date} Date of the event + * @param eventTime {Date} UTC date-time of the event * @param ip {String} IP from which the user has clicked on the link * @param url {String} URL of the clicked link */ @@ -91,7 +91,7 @@ */ exports.prototype['count'] = undefined; /** - * Date of the event + * UTC date-time of the event * @member {Date} eventTime */ exports.prototype['eventTime'] = undefined; diff --git a/src/model/GetExtendedContactDetailsStatisticsMessagesSent.js b/src/model/GetExtendedContactDetailsStatisticsMessagesSent.js index bbf788f4..64ed73ab 100644 --- a/src/model/GetExtendedContactDetailsStatisticsMessagesSent.js +++ b/src/model/GetExtendedContactDetailsStatisticsMessagesSent.js @@ -45,7 +45,7 @@ * @alias module:model/GetExtendedContactDetailsStatisticsMessagesSent * @class * @param campaignId {Number} ID of the campaign which generated the event - * @param eventTime {Date} Date of the event + * @param eventTime {Date} UTC date-time of the event */ var exports = function(campaignId, eventTime) { var _this = this; @@ -81,7 +81,7 @@ */ exports.prototype['campaignId'] = undefined; /** - * Date of the event + * UTC date-time of the event * @member {Date} eventTime */ exports.prototype['eventTime'] = undefined; diff --git a/src/model/GetExtendedContactDetailsStatisticsOpened.js b/src/model/GetExtendedContactDetailsStatisticsOpened.js index 1f426426..74f1f7b3 100644 --- a/src/model/GetExtendedContactDetailsStatisticsOpened.js +++ b/src/model/GetExtendedContactDetailsStatisticsOpened.js @@ -46,7 +46,7 @@ * @class * @param campaignId {Number} ID of the campaign which generated the event * @param count {Number} Number of openings for the campaign - * @param eventTime {Date} Date of the event + * @param eventTime {Date} UTC date-time of the event * @param ip {String} IP from which the user has opened the email */ var exports = function(campaignId, count, eventTime, ip) { @@ -96,7 +96,7 @@ */ exports.prototype['count'] = undefined; /** - * Date of the event + * UTC date-time of the event * @member {Date} eventTime */ exports.prototype['eventTime'] = undefined; diff --git a/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.js b/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.js index a872b9d6..ff1ca375 100644 --- a/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.js +++ b/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.js @@ -44,7 +44,7 @@ * Constructs a new GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. * @alias module:model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription * @class - * @param eventTime {Date} Date of the event + * @param eventTime {Date} UTC date-time of the event * @param ip {String} IP from which the user has been unsubscribed */ var exports = function(eventTime, ip) { @@ -76,7 +76,7 @@ } /** - * Date of the event + * UTC date-time of the event * @member {Date} eventTime */ exports.prototype['eventTime'] = undefined; diff --git a/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.js b/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.js index f0d7a5cc..e60cb845 100644 --- a/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.js +++ b/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.js @@ -45,7 +45,7 @@ * @alias module:model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription * @class * @param campaignId {Number} ID of the campaign which generated the event - * @param eventTime {Date} Date of the event + * @param eventTime {Date} UTC date-time of the event * @param ip {String} IP from which the user has unsubscribed */ var exports = function(campaignId, eventTime, ip) { @@ -86,7 +86,7 @@ */ exports.prototype['campaignId'] = undefined; /** - * Date of the event + * UTC date-time of the event * @member {Date} eventTime */ exports.prototype['eventTime'] = undefined; diff --git a/src/model/GetExtendedList.js b/src/model/GetExtendedList.js index 7e183e68..e080ca4c 100644 --- a/src/model/GetExtendedList.js +++ b/src/model/GetExtendedList.js @@ -50,7 +50,7 @@ * @param totalBlacklisted {Number} Number of blacklisted contacts in the list * @param totalSubscribers {Number} Number of contacts in the list * @param folderId {Number} ID of the folder - * @param createdAt {Date} Creation Date of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param createdAt {Date} Creation UTC date-time of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) */ var exports = function(id, name, totalBlacklisted, totalSubscribers, folderId, createdAt) { var _this = this; @@ -96,7 +96,7 @@ */ exports.prototype['folderId'] = undefined; /** - * Creation Date of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Creation UTC date-time of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} createdAt */ exports.prototype['createdAt'] = undefined; diff --git a/src/model/GetSmsCampaign.js b/src/model/GetSmsCampaign.js index 4129f9bd..c3bf6aab 100644 --- a/src/model/GetSmsCampaign.js +++ b/src/model/GetSmsCampaign.js @@ -49,11 +49,11 @@ * @param name {String} Name of the SMS Campaign * @param status {module:model/GetSmsCampaignOverview.StatusEnum} Status of the SMS Campaign * @param content {String} Content of the SMS Campaign - * @param scheduledAt {Date} Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format + * @param scheduledAt {Date} UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format * @param testSent {Boolean} Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) * @param sender {String} Sender of the SMS Campaign - * @param createdAt {Date} Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) - * @param modifiedAt {Date} Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param createdAt {Date} Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param modifiedAt {Date} UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) */ var exports = function(id, name, status, content, scheduledAt, testSent, sender, createdAt, modifiedAt) { var _this = this; @@ -104,7 +104,7 @@ exports.prototype['status'] = undefined; exports.prototype['content'] = undefined; /** - * Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format + * UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format * @member {Date} scheduledAt */ exports.prototype['scheduledAt'] = undefined; @@ -122,13 +122,13 @@ exports.prototype['testSent'] = undefined; exports.prototype['sender'] = undefined; /** - * Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} createdAt */ exports.prototype['createdAt'] = undefined; /** - * Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} modifiedAt */ exports.prototype['modifiedAt'] = undefined; diff --git a/src/model/GetSmsCampaignOverview.js b/src/model/GetSmsCampaignOverview.js index d38a6e0a..9ebd3a59 100644 --- a/src/model/GetSmsCampaignOverview.js +++ b/src/model/GetSmsCampaignOverview.js @@ -48,11 +48,11 @@ * @param name {String} Name of the SMS Campaign * @param status {module:model/GetSmsCampaignOverview.StatusEnum} Status of the SMS Campaign * @param content {String} Content of the SMS Campaign - * @param scheduledAt {Date} Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format + * @param scheduledAt {Date} UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format * @param testSent {Boolean} Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) * @param sender {String} Sender of the SMS Campaign - * @param createdAt {Date} Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) - * @param modifiedAt {Date} Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param createdAt {Date} Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param modifiedAt {Date} UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) */ var exports = function(id, name, status, content, scheduledAt, testSent, sender, createdAt, modifiedAt) { var _this = this; @@ -131,7 +131,7 @@ */ exports.prototype['content'] = undefined; /** - * Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format + * UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format * @member {Date} scheduledAt */ exports.prototype['scheduledAt'] = undefined; @@ -146,12 +146,12 @@ */ exports.prototype['sender'] = undefined; /** - * Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} createdAt */ exports.prototype['createdAt'] = undefined; /** - * Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) + * UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} modifiedAt */ exports.prototype['modifiedAt'] = undefined; diff --git a/src/model/GetSmtpTemplateOverview.js b/src/model/GetSmtpTemplateOverview.js index 887e56ab..386f1c20 100644 --- a/src/model/GetSmtpTemplateOverview.js +++ b/src/model/GetSmtpTemplateOverview.js @@ -53,8 +53,8 @@ * @param toField {String} Customisation of the \"to\" field for the template * @param tag {String} Tag of the template * @param htmlContent {String} HTML content of the template - * @param createdAt {Date} Creation date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) - * @param modifiedAt {Date} Last modification date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param createdAt {Date} Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param modifiedAt {Date} Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) */ var exports = function(id, name, subject, isActive, testSent, replyTo, toField, tag, htmlContent, createdAt, modifiedAt) { var _this = this; @@ -174,12 +174,12 @@ */ exports.prototype['htmlContent'] = undefined; /** - * Creation date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} createdAt */ exports.prototype['createdAt'] = undefined; /** - * Last modification date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} modifiedAt */ exports.prototype['modifiedAt'] = undefined; diff --git a/src/model/GetWebhook.js b/src/model/GetWebhook.js index d7ddb9cd..439fed3b 100644 --- a/src/model/GetWebhook.js +++ b/src/model/GetWebhook.js @@ -49,8 +49,8 @@ * @param description {String} Description of the webhook * @param events {Array.} * @param type {module:model/GetWebhook.TypeEnum} Type of webhook (marketing or transac) - * @param createdAt {Date} Creation date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) - * @param modifiedAt {Date} Last modification date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param createdAt {Date} Creation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) + * @param modifiedAt {Date} Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) */ var exports = function(url, id, description, events, type, createdAt, modifiedAt) { var _this = this; @@ -125,12 +125,12 @@ */ exports.prototype['type'] = undefined; /** - * Creation date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Creation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} createdAt */ exports.prototype['createdAt'] = undefined; /** - * Last modification date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) + * Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} modifiedAt */ exports.prototype['modifiedAt'] = undefined; diff --git a/src/model/UpdateAttributeEnumeration.js b/src/model/UpdateAttributeEnumeration.js index e37fa95f..358d6ea6 100644 --- a/src/model/UpdateAttributeEnumeration.js +++ b/src/model/UpdateAttributeEnumeration.js @@ -44,12 +44,14 @@ * Constructs a new UpdateAttributeEnumeration. * @alias module:model/UpdateAttributeEnumeration * @class + * @param value {Number} Id of the value + * @param label {String} Label of the value */ - var exports = function() { + var exports = function(value, label) { var _this = this; - - + _this['value'] = value; + _this['label'] = label; }; /** @@ -63,8 +65,8 @@ if (data) { obj = obj || new exports(); - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + if (data.hasOwnProperty('value')) { + obj['value'] = ApiClient.convertToType(data['value'], 'Number'); } if (data.hasOwnProperty('label')) { obj['label'] = ApiClient.convertToType(data['label'], 'String'); @@ -75,9 +77,9 @@ /** * Id of the value - * @member {Number} id + * @member {Number} value */ - exports.prototype['id'] = undefined; + exports.prototype['value'] = undefined; /** * Label of the value * @member {String} label diff --git a/src/model/UpdateEmailCampaign.js b/src/model/UpdateEmailCampaign.js index 33efcdad..45c222d5 100644 --- a/src/model/UpdateEmailCampaign.js +++ b/src/model/UpdateEmailCampaign.js @@ -158,7 +158,7 @@ */ exports.prototype['htmlUrl'] = undefined; /** - * Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) + * UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} scheduledAt */ exports.prototype['scheduledAt'] = undefined; diff --git a/src/model/UpdateSmsCampaign.js b/src/model/UpdateSmsCampaign.js index fd949062..6592ecb9 100644 --- a/src/model/UpdateSmsCampaign.js +++ b/src/model/UpdateSmsCampaign.js @@ -105,7 +105,7 @@ */ exports.prototype['recipients'] = undefined; /** - * Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) + * UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) * @member {Date} scheduledAt */ exports.prototype['scheduledAt'] = undefined; diff --git a/test/model/UpdateAttributeEnumeration.spec.js b/test/model/UpdateAttributeEnumeration.spec.js index a6280a37..e980ae33 100644 --- a/test/model/UpdateAttributeEnumeration.spec.js +++ b/test/model/UpdateAttributeEnumeration.spec.js @@ -57,8 +57,8 @@ //expect(instance).to.be.a(SibApiV3Sdk.UpdateAttributeEnumeration); }); - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id + it('should have the property value (base name: "value")', function() { + // uncomment below and update the code to test the property value //var instane = new SibApiV3Sdk.UpdateAttributeEnumeration(); //expect(instance).to.be(); });