Skip to content

Commit 6daa5c5

Browse files
update nodejs wrapper M5
1 parent 60a85b5 commit 6daa5c5

8 files changed

+17
-89
lines changed

README.md

+1-1
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: 8.0.0
12+
- Package version: 8.0.2
1313
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
1414

1515
## Installation

docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**eventTime** | **Date** | UTC date-time of the event |
7-
**ip** | **String** | IP from which the user has been unsubscribed |
7+
**ip** | **String** | IP from which the user has been unsubscribed | [optional]
88

99

docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**campaignId** | **Number** | ID of the campaign which generated the event |
77
**eventTime** | **Date** | UTC date-time of the event |
8-
**ip** | **String** | IP from which the user has unsubscribed |
8+
**ip** | **String** | IP from which the user has unsubscribed | [optional]
99

1010

docs/SendReportEmail.md

+1-16
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**subject** | **String** | Subject of the email message |
76
**to** | **[String]** | Email addresses of the recipients |
8-
**contentType** | **String** | Type of the message body | [optional] [default to 'html']
9-
**bcc** | **[String]** | Email addresses of the recipients in bcc | [optional]
10-
**cc** | **[String]** | Email addresses of the recipients in cc | [optional]
11-
**body** | **String** | Body of the email message |
12-
13-
14-
<a name="ContentTypeEnum"></a>
15-
## Enum: ContentTypeEnum
16-
17-
18-
* `text` (value: `"text"`)
19-
20-
* `html` (value: `"html"`)
21-
22-
7+
**body** | **String** | Custom text message to be presented in the report email. |
238

249

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sib-api-v3-sdk",
3-
"version": "8.0.1",
3+
"version": "8.0.2",
44
"description": "SendinBlue_provide_a_RESTFul_API_that_can_be_used_with_any_languages__With_this_API_you_will_be_able_to_____Manage_your_campaigns_and_get_the_statistics____Manage_your_contacts____Send_transactional_Emails_and_SMS____and_much_more___You_can_download_our_wrappers_at_httpsgithub_comorgssendinbluePossible_responses___Code__Message____________________________________200___OK__Successful_Request_____201___OK__Successful_Creation____202___OK__Request_accepted____204___OK__Successful_UpdateDeletion_____400___Error__Bad_Request_____401___Error__Authentication_Needed_____402___Error__Not_enough_credit_plan_upgrade_needed_____403___Error__Permission_denied_____404___Error__Object_does_not_exist____405___Error__Method_not_allowed_____406___Error__Not_Acceptable__",
55
"license": "MIT",
66
"main": "src/index.js",
@@ -11,7 +11,7 @@
1111
"fs": false
1212
},
1313
"dependencies": {
14-
"superagent": "3.7.0"
14+
"superagent": "3.5.2"
1515
},
1616
"devDependencies": {
1717
"expect.js": "~0.3.1",

src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,20 @@
3737
/**
3838
* The GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription model module.
3939
* @module model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription
40-
* @version 8.0.0
40+
* @version 8.0.2
4141
*/
4242

4343
/**
4444
* Constructs a new <code>GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription</code>.
4545
* @alias module:model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription
4646
* @class
4747
* @param eventTime {Date} UTC date-time of the event
48-
* @param ip {String} IP from which the user has been unsubscribed
4948
*/
50-
var exports = function(eventTime, ip) {
49+
var exports = function(eventTime) {
5150
var _this = this;
5251

5352
_this['eventTime'] = eventTime;
54-
_this['ip'] = ip;
53+
5554
};
5655

5756
/**

src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
/**
3838
* The GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription model module.
3939
* @module model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription
40-
* @version 8.0.0
40+
* @version 8.0.2
4141
*/
4242

4343
/**
@@ -46,14 +46,13 @@
4646
* @class
4747
* @param campaignId {Number} ID of the campaign which generated the event
4848
* @param eventTime {Date} UTC date-time of the event
49-
* @param ip {String} IP from which the user has unsubscribed
5049
*/
51-
var exports = function(campaignId, eventTime, ip) {
50+
var exports = function(campaignId, eventTime) {
5251
var _this = this;
5352

5453
_this['campaignId'] = campaignId;
5554
_this['eventTime'] = eventTime;
56-
_this['ip'] = ip;
55+
5756
};
5857

5958
/**

src/model/SendReportEmail.js

+5-60
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,21 @@
3737
/**
3838
* The SendReportEmail model module.
3939
* @module model/SendReportEmail
40-
* @version 8.0.0
40+
* @version 8.0.2
4141
*/
4242

4343
/**
4444
* Constructs a new <code>SendReportEmail</code>.
45-
* Email sending credentials including subject, body, to, cc etc.
45+
* Custom attributes for the report email.
4646
* @alias module:model/SendReportEmail
4747
* @class
48-
* @param subject {String} Subject of the email message
4948
* @param to {Array.<String>} Email addresses of the recipients
50-
* @param body {String} Body of the email message
49+
* @param body {String} Custom text message to be presented in the report email.
5150
*/
52-
var exports = function(subject, to, body) {
51+
var exports = function(to, body) {
5352
var _this = this;
5453

55-
_this['subject'] = subject;
5654
_this['to'] = to;
57-
58-
59-
6055
_this['body'] = body;
6156
};
6257

@@ -71,78 +66,28 @@
7166
if (data) {
7267
obj = obj || new exports();
7368

74-
if (data.hasOwnProperty('subject')) {
75-
obj['subject'] = ApiClient.convertToType(data['subject'], 'String');
76-
}
7769
if (data.hasOwnProperty('to')) {
7870
obj['to'] = ApiClient.convertToType(data['to'], ['String']);
7971
}
80-
if (data.hasOwnProperty('contentType')) {
81-
obj['contentType'] = ApiClient.convertToType(data['contentType'], 'String');
82-
}
83-
if (data.hasOwnProperty('bcc')) {
84-
obj['bcc'] = ApiClient.convertToType(data['bcc'], ['String']);
85-
}
86-
if (data.hasOwnProperty('cc')) {
87-
obj['cc'] = ApiClient.convertToType(data['cc'], ['String']);
88-
}
8972
if (data.hasOwnProperty('body')) {
9073
obj['body'] = ApiClient.convertToType(data['body'], 'String');
9174
}
9275
}
9376
return obj;
9477
}
9578

96-
/**
97-
* Subject of the email message
98-
* @member {String} subject
99-
*/
100-
exports.prototype['subject'] = undefined;
10179
/**
10280
* Email addresses of the recipients
10381
* @member {Array.<String>} to
10482
*/
10583
exports.prototype['to'] = undefined;
10684
/**
107-
* Type of the message body
108-
* @member {module:model/SendReportEmail.ContentTypeEnum} contentType
109-
* @default 'html'
110-
*/
111-
exports.prototype['contentType'] = 'html';
112-
/**
113-
* Email addresses of the recipients in bcc
114-
* @member {Array.<String>} bcc
115-
*/
116-
exports.prototype['bcc'] = undefined;
117-
/**
118-
* Email addresses of the recipients in cc
119-
* @member {Array.<String>} cc
120-
*/
121-
exports.prototype['cc'] = undefined;
122-
/**
123-
* Body of the email message
85+
* Custom text message to be presented in the report email.
12486
* @member {String} body
12587
*/
12688
exports.prototype['body'] = undefined;
12789

12890

129-
/**
130-
* Allowed values for the <code>contentType</code> property.
131-
* @enum {String}
132-
* @readonly
133-
*/
134-
exports.ContentTypeEnum = {
135-
/**
136-
* value: "text"
137-
* @const
138-
*/
139-
"text": "text",
140-
/**
141-
* value: "html"
142-
* @const
143-
*/
144-
"html": "html" };
145-
14691

14792
return exports;
14893
}));

0 commit comments

Comments
 (0)