Skip to content

Commit 7dccd87

Browse files
authored
Merge pull request #21 from sendinblue/feature_AP-1237
AP-1237 Wrapper Update
2 parents 06b1ea5 + 3d1ec5e commit 7dccd87

Some content is hidden

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

53 files changed

+423
-60
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const SibApiV3Sdk = require('sib-api-v3-typescript');
3030

3131
let apiInstance = new SibApiV3Sdk.AccountApi()
3232

33-
// Configure API key authorization: api-key
33+
// Configure API key authorization: apiKey
3434

3535
let apiKey = apiInstance.authentications['apiKey'];
3636
apiKey.apiKey = "YOUR API KEY"

api/accountApi.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/accountApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export enum AccountApiApiKeys {
3434

3535
export class AccountApi {
3636
protected _basePath = defaultBasePath;
37-
protected _defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.1.0/ts-node' };;
37+
protected _defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node' };;
3838
protected _useQuerystring : boolean = false;
3939

4040
protected authentications = {

api/attributesApi.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/attributesApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export enum AttributesApiApiKeys {
3838
export class AttributesApi {
3939
protected _basePath = defaultBasePath;
4040
protected _defaultHeaders : any = {
41-
'user-agent': 'sendinblue_clientAPI/v2.1.0/ts-node'
41+
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
4242
};
4343
protected _useQuerystring : boolean = false;
4444

api/contactsApi.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/contactsApi.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export enum ContactsApiApiKeys {
6060
export class ContactsApi {
6161
protected _basePath = defaultBasePath;
6262
protected _defaultHeaders : any = {
63-
'user-agent': 'sendinblue_clientAPI/v2.1.0/ts-node'
63+
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
6464
};
6565
protected _useQuerystring : boolean = false;
6666

@@ -1127,7 +1127,7 @@ export class ContactsApi {
11271127
* @param limit Number of documents per page
11281128
* @param offset Index of the first document of the page
11291129
* @param modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
1130-
* @param sort Sort the results in the ascending/descending order of record creation
1130+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
11311131
*/
11321132
public async getContacts (limit?: number, offset?: number, modifiedSince?: Date, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetContacts; }> {
11331133
const localVarPath = this.basePath + '/contacts';
@@ -1216,7 +1216,7 @@ export class ContactsApi {
12161216
* @param modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
12171217
* @param limit Number of documents per page
12181218
* @param offset Index of the first document of the page
1219-
* @param sort Sort the results in the ascending/descending order of record creation
1219+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
12201220
*/
12211221
public async getContactsFromList (listId: number, modifiedSince?: Date, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetContacts; }> {
12221222
const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts'
@@ -1385,7 +1385,7 @@ export class ContactsApi {
13851385
* @param folderId Id of the folder
13861386
* @param limit Number of documents per page
13871387
* @param offset Index of the first document of the page
1388-
* @param sort Sort the results in the ascending/descending order of record creation
1388+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
13891389
*/
13901390
public async getFolderLists (folderId: number, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetFolderLists; }> {
13911391
const localVarPath = this.basePath + '/contacts/folders/{folderId}/lists'
@@ -1474,7 +1474,7 @@ export class ContactsApi {
14741474
* @summary Get all folders
14751475
* @param limit Number of documents per page
14761476
* @param offset Index of the first document of the page
1477-
* @param sort Sort the results in the ascending/descending order of record creation
1477+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
14781478
*/
14791479
public async getFolders (limit: number, offset: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetFolders; }> {
14801480
const localVarPath = this.basePath + '/contacts/folders';
@@ -1642,7 +1642,7 @@ export class ContactsApi {
16421642
* @summary Get all the lists
16431643
* @param limit Number of documents per page
16441644
* @param offset Index of the first document of the page
1645-
* @param sort Sort the results in the ascending/descending order of record creation
1645+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
16461646
*/
16471647
public async getLists (limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetLists; }> {
16481648
const localVarPath = this.basePath + '/contacts/lists';

api/emailCampaignsApi.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/emailCampaignsApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export enum EmailCampaignsApiApiKeys {
4949
export class EmailCampaignsApi {
5050
protected _basePath = defaultBasePath;
5151
protected _defaultHeaders : any = {
52-
'user-agent': 'sendinblue_clientAPI/v2.1.0/ts-node'
52+
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
5353
};
5454
protected _useQuerystring : boolean = false;
5555

@@ -495,7 +495,7 @@ export class EmailCampaignsApi {
495495
* @param endDate Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either \&#39;status\&#39; not passed and if passed is set to \&#39;sent\&#39; )
496496
* @param limit Number of documents per page
497497
* @param offset Index of the first document in the page
498-
* @param sort Sort the results in the ascending/descending order of record creation
498+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
499499
*/
500500
public async getEmailCampaigns (type?: 'classic' | 'trigger', status?: 'suspended' | 'archive' | 'sent' | 'queued' | 'draft' | 'inProcess', startDate?: Date, endDate?: Date, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetEmailCampaigns; }> {
501501
const localVarPath = this.basePath + '/emailCampaigns';

api/foldersApi.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)