Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
"plugin:@typescript-eslint/recommended"
],
"rules": {
"unused-imports/no-unused-imports-ts" : 2
"unused-imports/no-unused-imports-ts" : 2,
"@typescript-eslint/ban-types" : "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"no-self-assign": "off",
"@typescript-eslint/adjacent-overload-signatures": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
2 changes: 1 addition & 1 deletion api/accountApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/accountApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export enum AccountApiApiKeys {

export class AccountApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node' };
protected _defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node' };
protected _useQuerystring = false;

protected authentications = {
Expand Down
2 changes: 1 addition & 1 deletion api/attributesApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/attributesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export enum AttributesApiApiKeys {
export class AttributesApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
};
protected _useQuerystring = false;

Expand Down
4 changes: 2 additions & 2 deletions api/contactsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,15 @@ export declare class ContactsApi {
response: http.IncomingMessage;
body: GetContactCampaignStats;
}>;
getContacts(limit?: number, offset?: number, modifiedSince?: Date, sort?: 'asc' | 'desc', options?: {
getContacts(limit?: number, offset?: number, modifiedSince?: string, sort?: 'asc' | 'desc', options?: {
headers: {
[name: string]: string;
};
}): Promise<{
response: http.IncomingMessage;
body: GetContacts;
}>;
getContactsFromList(listId: number, modifiedSince?: Date, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
getContactsFromList(listId: number, modifiedSince?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
headers: {
[name: string]: string;
};
Expand Down
6 changes: 3 additions & 3 deletions api/contactsApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/contactsApi.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions api/contactsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export enum ContactsApiApiKeys {
export class ContactsApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
};
protected _useQuerystring = false;

Expand Down Expand Up @@ -1128,7 +1128,7 @@ export class ContactsApi {
* @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.
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
*/
public async getContacts (limit?: number, offset?: number, modifiedSince?: Date, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetContacts; }> {
public async getContacts (limit?: number, offset?: number, modifiedSince?: string, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetContacts; }> {
const localVarPath = this.basePath + '/contacts';
const localVarQueryParameters: any = {};
const localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
Expand All @@ -1150,7 +1150,7 @@ export class ContactsApi {
}

if (modifiedSince !== undefined) {
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "Date");
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "string");
}

if (sort !== undefined) {
Expand Down Expand Up @@ -1217,7 +1217,7 @@ export class ContactsApi {
* @param offset Index of the first document of the page
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
*/
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; }> {
public async getContactsFromList (listId: number, modifiedSince?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetContacts; }> {
const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts'
.replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
const localVarQueryParameters: any = {};
Expand All @@ -1237,7 +1237,7 @@ export class ContactsApi {
}

if (modifiedSince !== undefined) {
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "Date");
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "string");
}

if (limit !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion api/emailCampaignsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export declare class EmailCampaignsApi {
response: http.IncomingMessage;
body: GetEmailCampaign;
}>;
getEmailCampaigns(type?: 'classic' | 'trigger', status?: 'suspended' | 'archive' | 'sent' | 'queued' | 'draft' | 'inProcess', startDate?: Date, endDate?: Date, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
getEmailCampaigns(type?: 'classic' | 'trigger', status?: 'suspended' | 'archive' | 'sent' | 'queued' | 'draft' | 'inProcess', startDate?: string, endDate?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
headers: {
[name: string]: string;
};
Expand Down
6 changes: 3 additions & 3 deletions api/emailCampaignsApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/emailCampaignsApi.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions api/emailCampaignsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export enum EmailCampaignsApiApiKeys {
export class EmailCampaignsApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
};
protected _useQuerystring = false;

Expand Down Expand Up @@ -495,7 +495,7 @@ export class EmailCampaignsApi {
* @param offset Index of the first document in the page
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
*/
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; }> {
public async getEmailCampaigns (type?: 'classic' | 'trigger', status?: 'suspended' | 'archive' | 'sent' | 'queued' | 'draft' | 'inProcess', startDate?: string, endDate?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetEmailCampaigns; }> {
const localVarPath = this.basePath + '/emailCampaigns';
const localVarQueryParameters: any = {};
const localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
Expand All @@ -517,11 +517,11 @@ export class EmailCampaignsApi {
}

if (startDate !== undefined) {
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "Date");
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
}

if (endDate !== undefined) {
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "Date");
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
}

if (limit !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion api/foldersApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/foldersApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export enum FoldersApiApiKeys {
export class FoldersApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
};
protected _useQuerystring = false;

Expand Down
2 changes: 1 addition & 1 deletion api/listsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export declare class ListsApi {
response: http.IncomingMessage;
body?: any;
}>;
getContactsFromList(listId: number, modifiedSince?: Date, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
getContactsFromList(listId: number, modifiedSince?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
headers: {
[name: string]: string;
};
Expand Down
4 changes: 2 additions & 2 deletions api/listsApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/listsApi.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions api/listsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export enum ListsApiApiKeys {
export class ListsApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
};
protected _useQuerystring = false;

Expand Down Expand Up @@ -345,7 +345,7 @@ export class ListsApi {
* @param offset Index of the first document of the page
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
*/
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; }> {
public async getContactsFromList (listId: number, modifiedSince?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetContacts; }> {
const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts'
.replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
const localVarQueryParameters: any = {};
Expand All @@ -365,7 +365,7 @@ export class ListsApi {
}

if (modifiedSince !== undefined) {
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "Date");
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "string");
}

if (limit !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion api/processApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/processApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export enum ProcessApiApiKeys {
export class ProcessApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
};
protected _useQuerystring = false;

Expand Down
2 changes: 1 addition & 1 deletion api/resellerApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/resellerApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export enum ResellerApiApiKeys {
export class ResellerApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
};
protected _useQuerystring = false;

Expand Down
2 changes: 1 addition & 1 deletion api/sMSCampaignsApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export declare class SMSCampaignsApi {
response: http.IncomingMessage;
body: GetSmsCampaign;
}>;
getSmsCampaigns(status?: 'suspended' | 'archive' | 'sent' | 'queued' | 'draft' | 'inProcess', startDate?: Date, endDate?: Date, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
getSmsCampaigns(status?: 'suspended' | 'archive' | 'sent' | 'queued' | 'draft' | 'inProcess', startDate?: string, endDate?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
headers: {
[name: string]: string;
};
Expand Down
6 changes: 3 additions & 3 deletions api/sMSCampaignsApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/sMSCampaignsApi.js.map

Large diffs are not rendered by default.

Loading