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.

api/foldersApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export enum FoldersApiApiKeys {
4040
export class FoldersApi {
4141
protected _basePath = defaultBasePath;
4242
protected _defaultHeaders : any = {
43-
'user-agent': 'sendinblue_clientAPI/v2.1.0/ts-node'
43+
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
4444
};
4545
protected _useQuerystring : boolean = false;
4646

@@ -331,7 +331,7 @@ export class FoldersApi {
331331
* @param folderId Id of the folder
332332
* @param limit Number of documents per page
333333
* @param offset Index of the first document of the page
334-
* @param sort Sort the results in the ascending/descending order of record creation
334+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
335335
*/
336336
public async getFolderLists (folderId: number, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetFolderLists; }> {
337337
const localVarPath = this.basePath + '/contacts/folders/{folderId}/lists'
@@ -420,7 +420,7 @@ export class FoldersApi {
420420
* @summary Get all folders
421421
* @param limit Number of documents per page
422422
* @param offset Index of the first document of the page
423-
* @param sort Sort the results in the ascending/descending order of record creation
423+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
424424
*/
425425
public async getFolders (limit: number, offset: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetFolders; }> {
426426
const localVarPath = this.basePath + '/contacts/folders';

api/listsApi.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/listsApi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export enum ListsApiApiKeys {
4545
export class ListsApi {
4646
protected _basePath = defaultBasePath;
4747
protected _defaultHeaders : any = {
48-
'user-agent': 'sendinblue_clientAPI/v2.1.0/ts-node'
48+
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
4949
};
5050
protected _useQuerystring : boolean = false;
5151

@@ -344,7 +344,7 @@ export class ListsApi {
344344
* @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.
345345
* @param limit Number of documents per page
346346
* @param offset Index of the first document of the page
347-
* @param sort Sort the results in the ascending/descending order of record creation
347+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
348348
*/
349349
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; }> {
350350
const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts'
@@ -438,7 +438,7 @@ export class ListsApi {
438438
* @param folderId Id of the folder
439439
* @param limit Number of documents per page
440440
* @param offset Index of the first document of the page
441-
* @param sort Sort the results in the ascending/descending order of record creation
441+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
442442
*/
443443
public async getFolderLists (folderId: number, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetFolderLists; }> {
444444
const localVarPath = this.basePath + '/contacts/folders/{folderId}/lists'
@@ -602,7 +602,7 @@ export class ListsApi {
602602
* @summary Get all the lists
603603
* @param limit Number of documents per page
604604
* @param offset Index of the first document of the page
605-
* @param sort Sort the results in the ascending/descending order of record creation
605+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
606606
*/
607607
public async getLists (limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetLists; }> {
608608
const localVarPath = this.basePath + '/contacts/lists';

api/processApi.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/processApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export enum ProcessApiApiKeys {
3737
export class ProcessApi {
3838
protected _basePath = defaultBasePath;
3939
protected _defaultHeaders : any = {
40-
'user-agent': 'sendinblue_clientAPI/v2.1.0/ts-node'
40+
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
4141
};
4242
protected _useQuerystring : boolean = false;
4343

@@ -178,7 +178,7 @@ export class ProcessApi {
178178
* @summary Return all the processes for your account
179179
* @param limit Number limitation for the result returned
180180
* @param offset Beginning point in the list to retrieve from.
181-
* @param sort Sort the results in the ascending/descending order of record creation
181+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
182182
*/
183183
public async getProcesses (limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetProcesses; }> {
184184
const localVarPath = this.basePath + '/processes';

api/resellerApi.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/resellerApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export enum ResellerApiApiKeys {
5050
export class ResellerApi {
5151
protected _basePath = defaultBasePath;
5252
protected _defaultHeaders : any = {
53-
'user-agent': 'sendinblue_clientAPI/v2.1.0/ts-node'
53+
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
5454
};
5555
protected _useQuerystring : boolean = false;
5656

api/sMSCampaignsApi.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/sMSCampaignsApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export enum SMSCampaignsApiApiKeys {
4646
export class SMSCampaignsApi {
4747
protected _basePath = defaultBasePath;
4848
protected _defaultHeaders : any = {
49-
'user-agent': 'sendinblue_clientAPI/v2.1.0/ts-node'
49+
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
5050
};
5151
protected _useQuerystring : boolean = false;
5252

@@ -339,7 +339,7 @@ export class SMSCampaignsApi {
339339
* @param endDate Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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; )
340340
* @param limit Number limitation for the result returned
341341
* @param offset Beginning point in the list to retrieve from.
342-
* @param sort Sort the results in the ascending/descending order of record creation
342+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
343343
*/
344344
public async getSmsCampaigns (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: GetSmsCampaigns; }> {
345345
const localVarPath = this.basePath + '/smsCampaigns';

api/sendersApi.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/sendersApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export enum SendersApiApiKeys {
4141
export class SendersApi {
4242
protected _basePath = defaultBasePath;
4343
protected _defaultHeaders : any = {
44-
'user-agent': 'sendinblue_clientAPI/v2.1.0/ts-node'
44+
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
4545
};
4646
protected _useQuerystring : boolean = false;
4747

api/transactionalEmailsApi.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)