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
};

0 commit comments

Comments
 (0)