Skip to content

Commit 7956384

Browse files
authored
Merge pull request #30 from sendinblue/feature_AP-1488
AP-1488 typescript wrapper update
2 parents 47b2cc8 + bec70e5 commit 7956384

File tree

169 files changed

+379
-298
lines changed

Some content is hidden

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

169 files changed

+379
-298
lines changed

.eslintrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
"plugin:@typescript-eslint/recommended"
1212
],
1313
"rules": {
14-
"unused-imports/no-unused-imports-ts" : 2
14+
"unused-imports/no-unused-imports-ts" : 2,
15+
"@typescript-eslint/ban-types" : "off",
16+
"@typescript-eslint/no-explicit-any": "off",
17+
"@typescript-eslint/no-namespace": "off",
18+
"no-self-assign": "off",
19+
"@typescript-eslint/adjacent-overload-signatures": "off",
20+
"@typescript-eslint/explicit-module-boundary-types": "off"
1521
}
1622
}

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.2.0/ts-node' };
37+
protected _defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node' };
3838
protected _useQuerystring = 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
@@ -37,7 +37,7 @@ export enum AttributesApiApiKeys {
3737
export class AttributesApi {
3838
protected _basePath = defaultBasePath;
3939
protected _defaultHeaders : any = {
40-
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
40+
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
4141
};
4242
protected _useQuerystring = false;
4343

api/contactsApi.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ export declare class ContactsApi {
152152
response: http.IncomingMessage;
153153
body: GetContactCampaignStats;
154154
}>;
155-
getContacts(limit?: number, offset?: number, modifiedSince?: Date, sort?: 'asc' | 'desc', options?: {
155+
getContacts(limit?: number, offset?: number, modifiedSince?: string, sort?: 'asc' | 'desc', options?: {
156156
headers: {
157157
[name: string]: string;
158158
};
159159
}): Promise<{
160160
response: http.IncomingMessage;
161161
body: GetContacts;
162162
}>;
163-
getContactsFromList(listId: number, modifiedSince?: Date, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
163+
getContactsFromList(listId: number, modifiedSince?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
164164
headers: {
165165
[name: string]: string;
166166
};

api/contactsApi.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/contactsApi.js.map

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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export enum ContactsApiApiKeys {
5959
export class ContactsApi {
6060
protected _basePath = defaultBasePath;
6161
protected _defaultHeaders : any = {
62-
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
62+
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
6363
};
6464
protected _useQuerystring = false;
6565

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

11521152
if (modifiedSince !== undefined) {
1153-
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "Date");
1153+
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "string");
11541154
}
11551155

11561156
if (sort !== undefined) {
@@ -1217,7 +1217,7 @@ export class ContactsApi {
12171217
* @param offset Index of the first document of the page
12181218
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
12191219
*/
1220-
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; }> {
1220+
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; }> {
12211221
const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts'
12221222
.replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
12231223
const localVarQueryParameters: any = {};
@@ -1237,7 +1237,7 @@ export class ContactsApi {
12371237
}
12381238

12391239
if (modifiedSince !== undefined) {
1240-
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "Date");
1240+
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "string");
12411241
}
12421242

12431243
if (limit !== undefined) {

api/emailCampaignsApi.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export declare class EmailCampaignsApi {
7676
response: http.IncomingMessage;
7777
body: GetEmailCampaign;
7878
}>;
79-
getEmailCampaigns(type?: 'classic' | 'trigger', status?: 'suspended' | 'archive' | 'sent' | 'queued' | 'draft' | 'inProcess', startDate?: Date, endDate?: Date, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
79+
getEmailCampaigns(type?: 'classic' | 'trigger', status?: 'suspended' | 'archive' | 'sent' | 'queued' | 'draft' | 'inProcess', startDate?: string, endDate?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
8080
headers: {
8181
[name: string]: string;
8282
};

api/emailCampaignsApi.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/emailCampaignsApi.js.map

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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export enum EmailCampaignsApiApiKeys {
4747
export class EmailCampaignsApi {
4848
protected _basePath = defaultBasePath;
4949
protected _defaultHeaders : any = {
50-
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
50+
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
5151
};
5252
protected _useQuerystring = false;
5353

@@ -495,7 +495,7 @@ export class EmailCampaignsApi {
495495
* @param offset Index of the first document in the page
496496
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
497497
*/
498-
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; }> {
498+
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; }> {
499499
const localVarPath = this.basePath + '/emailCampaigns';
500500
const localVarQueryParameters: any = {};
501501
const localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -517,11 +517,11 @@ export class EmailCampaignsApi {
517517
}
518518

519519
if (startDate !== undefined) {
520-
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "Date");
520+
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
521521
}
522522

523523
if (endDate !== undefined) {
524-
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "Date");
524+
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
525525
}
526526

527527
if (limit !== undefined) {

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export enum FoldersApiApiKeys {
3939
export class FoldersApi {
4040
protected _basePath = defaultBasePath;
4141
protected _defaultHeaders : any = {
42-
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
42+
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
4343
};
4444
protected _useQuerystring = false;
4545

api/listsApi.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export declare class ListsApi {
5757
response: http.IncomingMessage;
5858
body?: any;
5959
}>;
60-
getContactsFromList(listId: number, modifiedSince?: Date, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
60+
getContactsFromList(listId: number, modifiedSince?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
6161
headers: {
6262
[name: string]: string;
6363
};

api/listsApi.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/listsApi.js.map

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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export enum ListsApiApiKeys {
4444
export class ListsApi {
4545
protected _basePath = defaultBasePath;
4646
protected _defaultHeaders : any = {
47-
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
47+
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
4848
};
4949
protected _useQuerystring = false;
5050

@@ -345,7 +345,7 @@ export class ListsApi {
345345
* @param offset Index of the first document of the page
346346
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
347347
*/
348-
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; }> {
348+
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; }> {
349349
const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts'
350350
.replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
351351
const localVarQueryParameters: any = {};
@@ -365,7 +365,7 @@ export class ListsApi {
365365
}
366366

367367
if (modifiedSince !== undefined) {
368-
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "Date");
368+
localVarQueryParameters['modifiedSince'] = ObjectSerializer.serialize(modifiedSince, "string");
369369
}
370370

371371
if (limit !== undefined) {

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export enum ProcessApiApiKeys {
3636
export class ProcessApi {
3737
protected _basePath = defaultBasePath;
3838
protected _defaultHeaders : any = {
39-
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
39+
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
4040
};
4141
protected _useQuerystring = false;
4242

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
@@ -49,7 +49,7 @@ export enum ResellerApiApiKeys {
4949
export class ResellerApi {
5050
protected _basePath = defaultBasePath;
5151
protected _defaultHeaders : any = {
52-
'user-agent': 'sendinblue_clientAPI/v2.2.0/ts-node'
52+
'user-agent': 'sendinblue_clientAPI/v2.2.2/ts-node'
5353
};
5454
protected _useQuerystring = false;
5555

api/sMSCampaignsApi.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export declare class SMSCampaignsApi {
5757
response: http.IncomingMessage;
5858
body: GetSmsCampaign;
5959
}>;
60-
getSmsCampaigns(status?: 'suspended' | 'archive' | 'sent' | 'queued' | 'draft' | 'inProcess', startDate?: Date, endDate?: Date, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
60+
getSmsCampaigns(status?: 'suspended' | 'archive' | 'sent' | 'queued' | 'draft' | 'inProcess', startDate?: string, endDate?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options?: {
6161
headers: {
6262
[name: string]: string;
6363
};

api/sMSCampaignsApi.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/sMSCampaignsApi.js.map

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)