Skip to content

Commit 24709e0

Browse files
authored
Merge pull request #74 from sendinblue/feature_nodejs_wrapper_update
Feature nodejs wrapper update
2 parents 08bbed7 + 6daf732 commit 24709e0

File tree

251 files changed

+4813
-539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+4813
-539
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ISC License
22

3-
Copyright (c) 2019, SendinBlue
3+
Copyright (c) 2020, SendinBlue
44

55
Permission to use, copy, modify, and/or distribute this software for any
66
purpose with or without fee is hereby granted, provided that the above

README.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SendinBlue's API matches the [OpenAPI v2 definition](https://www.openapis.org/).
99
This library is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project and is reviewed and maintained by SendinBlue:
1010

1111
- API version: 3.0.0
12-
- Package version: 7.x.x
12+
- Package version: 7.2.0
1313
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
1414

1515
## Installation
@@ -149,9 +149,11 @@ Class | Method | HTTP request | Description
149149
*SibApiV3Sdk.EmailCampaignsApi* | [**createEmailCampaign**](docs/EmailCampaignsApi.md#createEmailCampaign) | **POST** /emailCampaigns | Create an email campaign
150150
*SibApiV3Sdk.EmailCampaignsApi* | [**deleteEmailCampaign**](docs/EmailCampaignsApi.md#deleteEmailCampaign) | **DELETE** /emailCampaigns/{campaignId} | Delete an email campaign
151151
*SibApiV3Sdk.EmailCampaignsApi* | [**emailExportRecipients**](docs/EmailCampaignsApi.md#emailExportRecipients) | **POST** /emailCampaigns/{campaignId}/exportRecipients | Export the recipients of a campaign
152+
*SibApiV3Sdk.EmailCampaignsApi* | [**getAbTestCampaignResult**](docs/EmailCampaignsApi.md#getAbTestCampaignResult) | **GET** /emailCampaigns/{campaignId}/abTestCampaignResult | Get A/B test email campaign result
152153
*SibApiV3Sdk.EmailCampaignsApi* | [**getEmailCampaign**](docs/EmailCampaignsApi.md#getEmailCampaign) | **GET** /emailCampaigns/{campaignId} | Get campaign informations
153154
*SibApiV3Sdk.EmailCampaignsApi* | [**getEmailCampaigns**](docs/EmailCampaignsApi.md#getEmailCampaigns) | **GET** /emailCampaigns | Return all your created campaigns
154-
*SibApiV3Sdk.EmailCampaignsApi* | [**sendEmailCampaignNow**](docs/EmailCampaignsApi.md#sendEmailCampaignNow) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign id of the campaign immediately
155+
*SibApiV3Sdk.EmailCampaignsApi* | [**getSharedTemplateUrl**](docs/EmailCampaignsApi.md#getSharedTemplateUrl) | **GET** /emailCampaigns/{campaignId}/sharedUrl | Get a shared template url
156+
*SibApiV3Sdk.EmailCampaignsApi* | [**sendEmailCampaignNow**](docs/EmailCampaignsApi.md#sendEmailCampaignNow) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign immediately, based on campaignId
155157
*SibApiV3Sdk.EmailCampaignsApi* | [**sendReport**](docs/EmailCampaignsApi.md#sendReport) | **POST** /emailCampaigns/{campaignId}/sendReport | Send the report of a campaigns
156158
*SibApiV3Sdk.EmailCampaignsApi* | [**sendTestEmail**](docs/EmailCampaignsApi.md#sendTestEmail) | **POST** /emailCampaigns/{campaignId}/sendTest | Send an email campaign to your test list
157159
*SibApiV3Sdk.EmailCampaignsApi* | [**updateCampaignStatus**](docs/EmailCampaignsApi.md#updateCampaignStatus) | **PUT** /emailCampaigns/{campaignId}/status | Update a campaign status
@@ -180,6 +182,7 @@ Class | Method | HTTP request | Description
180182
*SibApiV3Sdk.ResellerApi* | [**deleteChildDomain**](docs/ResellerApi.md#deleteChildDomain) | **DELETE** /reseller/children/{childAuthKey}/domains/{domainName} | Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed
181183
*SibApiV3Sdk.ResellerApi* | [**deleteResellerChild**](docs/ResellerApi.md#deleteResellerChild) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied
182184
*SibApiV3Sdk.ResellerApi* | [**dissociateIpFromChild**](docs/ResellerApi.md#dissociateIpFromChild) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child
185+
*SibApiV3Sdk.ResellerApi* | [**getChildAccountCreationStatus**](docs/ResellerApi.md#getChildAccountCreationStatus) | **GET** /reseller/children/{childAuthKey}/accountCreationStatus | Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied
183186
*SibApiV3Sdk.ResellerApi* | [**getChildDomains**](docs/ResellerApi.md#getChildDomains) | **GET** /reseller/children/{childAuthKey}/domains | Gets all the sender domains of a specific child account
184187
*SibApiV3Sdk.ResellerApi* | [**getChildInfo**](docs/ResellerApi.md#getChildInfo) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
185188
*SibApiV3Sdk.ResellerApi* | [**getResellerChilds**](docs/ResellerApi.md#getResellerChilds) | **GET** /reseller/children | Gets the list of all reseller's children accounts
@@ -198,18 +201,23 @@ Class | Method | HTTP request | Description
198201
*SibApiV3Sdk.SMSCampaignsApi* | [**sendTestSms**](docs/SMSCampaignsApi.md#sendTestSms) | **POST** /smsCampaigns/{campaignId}/sendTest | Send an SMS
199202
*SibApiV3Sdk.SMSCampaignsApi* | [**updateSmsCampaign**](docs/SMSCampaignsApi.md#updateSmsCampaign) | **PUT** /smsCampaigns/{campaignId} | Updates an SMS campaign
200203
*SibApiV3Sdk.SMSCampaignsApi* | [**updateSmsCampaignStatus**](docs/SMSCampaignsApi.md#updateSmsCampaignStatus) | **PUT** /smsCampaigns/{campaignId}/status | Update the campaign status
201-
*SibApiV3Sdk.SMTPApi* | [**createSmtpTemplate**](docs/SMTPApi.md#createSmtpTemplate) | **POST** /smtp/templates | Create an smtp template
204+
*SibApiV3Sdk.SMTPApi* | [**createSmtpTemplate**](docs/SMTPApi.md#createSmtpTemplate) | **POST** /smtp/templates | Create a transactional email template
202205
*SibApiV3Sdk.SMTPApi* | [**deleteHardbounces**](docs/SMTPApi.md#deleteHardbounces) | **POST** /smtp/deleteHardbounces | Delete hardbounces
203-
*SibApiV3Sdk.SMTPApi* | [**deleteSmtpTemplate**](docs/SMTPApi.md#deleteSmtpTemplate) | **DELETE** /smtp/templates/{templateId} | Delete an inactive smtp template
204-
*SibApiV3Sdk.SMTPApi* | [**getAggregatedSmtpReport**](docs/SMTPApi.md#getAggregatedSmtpReport) | **GET** /smtp/statistics/aggregatedReport | Get your SMTP activity aggregated over a period of time
205-
*SibApiV3Sdk.SMTPApi* | [**getEmailEventReport**](docs/SMTPApi.md#getEmailEventReport) | **GET** /smtp/statistics/events | Get all your SMTP activity (unaggregated events)
206-
*SibApiV3Sdk.SMTPApi* | [**getSmtpReport**](docs/SMTPApi.md#getSmtpReport) | **GET** /smtp/statistics/reports | Get your SMTP activity aggregated per day
206+
*SibApiV3Sdk.SMTPApi* | [**deleteSmtpTemplate**](docs/SMTPApi.md#deleteSmtpTemplate) | **DELETE** /smtp/templates/{templateId} | Delete an inactive transactional email template
207+
*SibApiV3Sdk.SMTPApi* | [**getAggregatedSmtpReport**](docs/SMTPApi.md#getAggregatedSmtpReport) | **GET** /smtp/statistics/aggregatedReport | Get your transactional email activity aggregated over a period of time
208+
*SibApiV3Sdk.SMTPApi* | [**getEmailEventReport**](docs/SMTPApi.md#getEmailEventReport) | **GET** /smtp/statistics/events | Get all your transactional email activity (unaggregated events)
209+
*SibApiV3Sdk.SMTPApi* | [**getSmtpReport**](docs/SMTPApi.md#getSmtpReport) | **GET** /smtp/statistics/reports | Get your transactional email activity aggregated per day
207210
*SibApiV3Sdk.SMTPApi* | [**getSmtpTemplate**](docs/SMTPApi.md#getSmtpTemplate) | **GET** /smtp/templates/{templateId} | Returns the template informations
208-
*SibApiV3Sdk.SMTPApi* | [**getSmtpTemplates**](docs/SMTPApi.md#getSmtpTemplates) | **GET** /smtp/templates | Get the list of SMTP templates
211+
*SibApiV3Sdk.SMTPApi* | [**getSmtpTemplates**](docs/SMTPApi.md#getSmtpTemplates) | **GET** /smtp/templates | Get the list of transactional email templates
212+
*SibApiV3Sdk.SMTPApi* | [**getTransacBlockedContacts**](docs/SMTPApi.md#getTransacBlockedContacts) | **GET** /smtp/blockedContacts | Get the list of blocked or unsubscribed transactional contacts
213+
*SibApiV3Sdk.SMTPApi* | [**getTransacEmailContent**](docs/SMTPApi.md#getTransacEmailContent) | **GET** /smtp/emails/{uuid} | Get the personalized content of a sent transactional email
214+
*SibApiV3Sdk.SMTPApi* | [**getTransacEmailsList**](docs/SMTPApi.md#getTransacEmailsList) | **GET** /smtp/emails | Get the list of transactional emails on the basis of allowed filters
209215
*SibApiV3Sdk.SMTPApi* | [**sendTemplate**](docs/SMTPApi.md#sendTemplate) | **POST** /smtp/templates/{templateId}/send | Send a template
210216
*SibApiV3Sdk.SMTPApi* | [**sendTestTemplate**](docs/SMTPApi.md#sendTestTemplate) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list
211217
*SibApiV3Sdk.SMTPApi* | [**sendTransacEmail**](docs/SMTPApi.md#sendTransacEmail) | **POST** /smtp/email | Send a transactional email
212-
*SibApiV3Sdk.SMTPApi* | [**updateSmtpTemplate**](docs/SMTPApi.md#updateSmtpTemplate) | **PUT** /smtp/templates/{templateId} | Updates an smtp templates
218+
*SibApiV3Sdk.SMTPApi* | [**smtpBlockedContactsEmailDelete**](docs/SMTPApi.md#smtpBlockedContactsEmailDelete) | **DELETE** /smtp/blockedContacts/{email} | Unblock or resubscribe a transactional contact
219+
*SibApiV3Sdk.SMTPApi* | [**smtpLogMessageIdDelete**](docs/SMTPApi.md#smtpLogMessageIdDelete) | **DELETE** /smtp/log/{messageId} | Delete an SMTP transactional log
220+
*SibApiV3Sdk.SMTPApi* | [**updateSmtpTemplate**](docs/SMTPApi.md#updateSmtpTemplate) | **PUT** /smtp/templates/{templateId} | Updates a transactional email templates
213221
*SibApiV3Sdk.SendersApi* | [**createSender**](docs/SendersApi.md#createSender) | **POST** /senders | Create a new sender
214222
*SibApiV3Sdk.SendersApi* | [**deleteSender**](docs/SendersApi.md#deleteSender) | **DELETE** /senders/{senderId} | Delete a sender
215223
*SibApiV3Sdk.SendersApi* | [**getIps**](docs/SendersApi.md#getIps) | **GET** /senders/ips | Return all the dedicated IPs for your account
@@ -229,6 +237,7 @@ Class | Method | HTTP request | Description
229237

230238
## Documentation for Models
231239

240+
- [SibApiV3Sdk.AbTestCampaignResult](docs/AbTestCampaignResult.md)
232241
- [SibApiV3Sdk.AddChildDomain](docs/AddChildDomain.md)
233242
- [SibApiV3Sdk.AddContactToList](docs/AddContactToList.md)
234243
- [SibApiV3Sdk.AddCredits](docs/AddCredits.md)
@@ -268,6 +277,7 @@ Class | Method | HTTP request | Description
268277
- [SibApiV3Sdk.GetCampaignOverview](docs/GetCampaignOverview.md)
269278
- [SibApiV3Sdk.GetCampaignRecipients](docs/GetCampaignRecipients.md)
270279
- [SibApiV3Sdk.GetCampaignStats](docs/GetCampaignStats.md)
280+
- [SibApiV3Sdk.GetChildAccountCreationStatus](docs/GetChildAccountCreationStatus.md)
271281
- [SibApiV3Sdk.GetChildDomain](docs/GetChildDomain.md)
272282
- [SibApiV3Sdk.GetChildDomains](docs/GetChildDomains.md)
273283
- [SibApiV3Sdk.GetChildInfoApiKeys](docs/GetChildInfoApiKeys.md)
@@ -284,6 +294,7 @@ Class | Method | HTTP request | Description
284294
- [SibApiV3Sdk.GetContactCampaignStatsUnsubscriptions](docs/GetContactCampaignStatsUnsubscriptions.md)
285295
- [SibApiV3Sdk.GetContactDetails](docs/GetContactDetails.md)
286296
- [SibApiV3Sdk.GetContacts](docs/GetContacts.md)
297+
- [SibApiV3Sdk.GetDeviceBrowserStats](docs/GetDeviceBrowserStats.md)
287298
- [SibApiV3Sdk.GetEmailCampaigns](docs/GetEmailCampaigns.md)
288299
- [SibApiV3Sdk.GetEmailEventReport](docs/GetEmailEventReport.md)
289300
- [SibApiV3Sdk.GetEmailEventReportEvents](docs/GetEmailEventReportEvents.md)
@@ -315,6 +326,7 @@ Class | Method | HTTP request | Description
315326
- [SibApiV3Sdk.GetSendersList](docs/GetSendersList.md)
316327
- [SibApiV3Sdk.GetSendersListIps](docs/GetSendersListIps.md)
317328
- [SibApiV3Sdk.GetSendersListSenders](docs/GetSendersListSenders.md)
329+
- [SibApiV3Sdk.GetSharedTemplateUrl](docs/GetSharedTemplateUrl.md)
318330
- [SibApiV3Sdk.GetSmsCampaignOverview](docs/GetSmsCampaignOverview.md)
319331
- [SibApiV3Sdk.GetSmsCampaignStats](docs/GetSmsCampaignStats.md)
320332
- [SibApiV3Sdk.GetSmsCampaigns](docs/GetSmsCampaigns.md)
@@ -324,8 +336,17 @@ Class | Method | HTTP request | Description
324336
- [SibApiV3Sdk.GetSmtpTemplateOverviewSender](docs/GetSmtpTemplateOverviewSender.md)
325337
- [SibApiV3Sdk.GetSmtpTemplates](docs/GetSmtpTemplates.md)
326338
- [SibApiV3Sdk.GetSsoToken](docs/GetSsoToken.md)
339+
- [SibApiV3Sdk.GetStatsByBrowser](docs/GetStatsByBrowser.md)
340+
- [SibApiV3Sdk.GetStatsByDevice](docs/GetStatsByDevice.md)
327341
- [SibApiV3Sdk.GetStatsByDomain](docs/GetStatsByDomain.md)
328342
- [SibApiV3Sdk.GetTransacAggregatedSmsReport](docs/GetTransacAggregatedSmsReport.md)
343+
- [SibApiV3Sdk.GetTransacBlockedContacts](docs/GetTransacBlockedContacts.md)
344+
- [SibApiV3Sdk.GetTransacBlockedContactsContacts](docs/GetTransacBlockedContactsContacts.md)
345+
- [SibApiV3Sdk.GetTransacBlockedContactsReason](docs/GetTransacBlockedContactsReason.md)
346+
- [SibApiV3Sdk.GetTransacEmailContent](docs/GetTransacEmailContent.md)
347+
- [SibApiV3Sdk.GetTransacEmailContentEvents](docs/GetTransacEmailContentEvents.md)
348+
- [SibApiV3Sdk.GetTransacEmailsList](docs/GetTransacEmailsList.md)
349+
- [SibApiV3Sdk.GetTransacEmailsListTransactionalEmails](docs/GetTransacEmailsListTransactionalEmails.md)
329350
- [SibApiV3Sdk.GetTransacSmsReport](docs/GetTransacSmsReport.md)
330351
- [SibApiV3Sdk.GetTransacSmsReportReports](docs/GetTransacSmsReportReports.md)
331352
- [SibApiV3Sdk.GetWebhook](docs/GetWebhook.md)
@@ -341,6 +362,7 @@ Class | Method | HTTP request | Description
341362
- [SibApiV3Sdk.RemoveContactFromList](docs/RemoveContactFromList.md)
342363
- [SibApiV3Sdk.RemoveCredits](docs/RemoveCredits.md)
343364
- [SibApiV3Sdk.RequestContactExport](docs/RequestContactExport.md)
365+
- [SibApiV3Sdk.RequestContactExportCustomContactFilter](docs/RequestContactExportCustomContactFilter.md)
344366
- [SibApiV3Sdk.RequestContactImport](docs/RequestContactImport.md)
345367
- [SibApiV3Sdk.RequestContactImportNewList](docs/RequestContactImportNewList.md)
346368
- [SibApiV3Sdk.RequestSmsRecipientExport](docs/RequestSmsRecipientExport.md)

docs/AbTestCampaignResult.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SibApiV3Sdk.AbTestCampaignResult
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**winningVersion** | **String** | Winning Campaign Info. pending = Campaign has been picked for sending and winning version is yet to be decided, tie = A tie happened between both the versions, notAvailable = Campaign has not yet been picked for sending. | [optional]
7+
**winningCriteria** | **String** | Criteria choosen for winning version (Open/Click) | [optional]
8+
**winningSubjectLine** | **String** | Subject Line of current winning version | [optional]
9+
**openRate** | **String** | Open rate for current winning version | [optional]
10+
**clickRate** | **String** | Click rate for current winning version | [optional]
11+
**winningVersionRate** | **String** | Open/Click rate for the winner version | [optional]
12+
13+
14+
<a name="WinningVersionEnum"></a>
15+
## Enum: WinningVersionEnum
16+
17+
18+
* `notAvailable` (value: `"notAvailable"`)
19+
20+
* `pending` (value: `"pending"`)
21+
22+
* `tie` (value: `"tie"`)
23+
24+
* `A` (value: `"A"`)
25+
26+
* `B` (value: `"B"`)
27+
28+
29+
30+
31+
<a name="WinningCriteriaEnum"></a>
32+
## Enum: WinningCriteriaEnum
33+
34+
35+
* `Open` (value: `"Open"`)
36+
37+
* `Click` (value: `"Click"`)
38+
39+
40+
41+

docs/ContactsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ partnerKey.apiKey = 'YOUR API KEY';
603603

604604
var apiInstance = new SibApiV3Sdk.ContactsApi();
605605

606-
var email = "email_example"; // String | Email (urlencoded) of the contact
606+
var email = "email_example"; // String | Email (urlencoded) of the contact OR its SMS attribute value
607607

608608
apiInstance.getContactInfo(email).then(function(data) {
609609
console.log('API called successfully. Returned data: ' + data);

docs/CreateAttribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**value** | **String** | Value of the attribute. Use only if the attribute&#39;s category is &#39;calculated&#39; or &#39;global&#39; | [optional]
7-
**enumeration** | [**[CreateAttributeEnumeration]**](CreateAttributeEnumeration.md) | List of values and labels that the attribute can take. Use only if the attribute&#39;s category is \&quot;category\&quot;. For example, &#x60;[{\&quot;value\&quot;:1, \&quot;label\&quot;:\&quot;male\&quot;}, {\&quot;value\&quot;:2, \&quot;label\&quot;:\&quot;female\&quot;}]&#x60; | [optional]
7+
**enumeration** | [**[CreateAttributeEnumeration]**](CreateAttributeEnumeration.md) | List of values and labels that the attribute can take. Use only if the attribute&#39;s category is \&quot;category\&quot;. For example, [{&#39;value&#39;:1, &#39;label&#39;:&#39;male&#39;}, {&#39;value&#39;:2, &#39;label&#39;:&#39;female&#39;}] | [optional]
88
**type** | **String** | Type of the attribute. Use only if the attribute&#39;s category is &#39;normal&#39;, &#39;category&#39; or &#39;transactional&#39; ( type &#39;boolean&#39; is only available if the category is &#39;normal&#39; attribute, type &#39;id&#39; is only available if the category is &#39;transactional&#39; attribute &amp; type &#39;category&#39; is only available if the category is &#39;category&#39; attribute ) | [optional]
99

1010

docs/CreateContact.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**email** | **String** | Email address of the user. Mandatory if \&quot;sms\&quot; field is not passed in \&quot;attributes\&quot; parameter&#39; | [optional]
7-
**attributes** | **Object** | Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For example, &#x60;{\&quot;FNAME\&quot;:\&quot;Elly\&quot;, \&quot;LNAME\&quot;:\&quot;Roger\&quot;}&#x60; | [optional]
6+
**email** | **String** | Email address of the user. Mandatory if \&quot;SMS\&quot; field is not passed in \&quot;attributes\&quot; parameter. Mobile Number in \&quot;SMS\&quot; field should be passed with proper country code. For example {&#39;SMS&#39;:&#39;+91xxxxxxxxxx&#39;} or {&#39;SMS&#39;:&#39;0091xxxxxxxxxx&#39;} | [optional]
7+
**attributes** | **Object** | Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For eg. {&#39;FNAME&#39;:&#39;Elly&#39;, &#39;LNAME&#39;:&#39;Roger&#39;} | [optional]
88
**emailBlacklisted** | **Boolean** | Set this field to blacklist the contact for emails (emailBlacklisted &#x3D; true) | [optional]
99
**smsBlacklisted** | **Boolean** | Set this field to blacklist the contact for SMS (smsBlacklisted &#x3D; true) | [optional]
1010
**listIds** | **[Number]** | Ids of the lists to add the contact to | [optional]
1111
**updateEnabled** | **Boolean** | Facilitate to update the existing contact in the same request (updateEnabled &#x3D; true) | [optional] [default to false]
12-
**smtpBlacklistSender** | **[String]** | SMTP forbidden sender for contact. Use only for email Contact ( only available if updateEnabled &#x3D; true ) | [optional]
12+
**smtpBlacklistSender** | **[String]** | transactional email forbidden sender for contact. Use only for email Contact ( only available if updateEnabled &#x3D; true ) | [optional]
1313

1414

0 commit comments

Comments
 (0)