Skip to content

Commit fef466f

Browse files
committed
Updated ts wrapper
1 parent 8625f9c commit fef466f

File tree

9 files changed

+38
-85
lines changed

9 files changed

+38
-85
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
wwwroot/*.js
22
node_modules
3-
typings
3+
typings

.swagger-codegen-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

.swagger-codegen/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

api.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ export declare class CreateWebhook {
560560
'description'?: string;
561561
'events': Array<CreateWebhook.EventsEnum>;
562562
'type'?: CreateWebhook.TypeEnum;
563-
'domain'?: string;
564563
static discriminator: string | undefined;
565564
static attributeTypeMap: Array<{
566565
name: string;
@@ -590,13 +589,11 @@ export declare namespace CreateWebhook {
590589
Unsubscribed,
591590
ListAddition,
592591
ContactUpdated,
593-
ContactDeleted,
594-
InboundEmailProcessed
592+
ContactDeleted
595593
}
596594
enum TypeEnum {
597595
Transactional,
598-
Marketing,
599-
Inbound
596+
Marketing
600597
}
601598
}
602599
export declare class CreatedProcessId {

api.js

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

api.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

api.ts

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,17 +1588,13 @@ export class CreateWebhook {
15881588
*/
15891589
'description'?: string;
15901590
/**
1591-
* - Events triggering the webhook. Possible values for **Transactional** type webhook: #### `sent` OR `request`, `delivered`, `hardBounce`, `softBounce`, `blocked`, `spam`, `invalid`, `deferred`, `click`, `opened`, `uniqueOpened` and `unsubscribed` - Possible values for **Marketing** type webhook: #### `spam`, `opened`, `click`, `hardBounce`, `softBounce`, `unsubscribed`, `listAddition` & `delivered` - Possible values for **Inbound** type webhook: #### `inbound_email_processed`
1591+
* - Events triggering the webhook. Possible values for **Transactional** type webhook: #### `sent` OR `request`, `delivered`, `hardBounce`, `softBounce`, `blocked`, `spam`, `invalid`, `deferred`, `click`, `opened`, `uniqueOpened` and `unsubscribed` - Possible values for **Marketing** type webhook: #### `spam`, `opened`, `click`, `hardBounce`, `softBounce`, `unsubscribed`, `listAddition` & `delivered`
15921592
*/
15931593
'events': Array<CreateWebhook.EventsEnum>;
15941594
/**
15951595
* Type of the webhook
15961596
*/
15971597
'type'?: CreateWebhook.TypeEnum;
1598-
/**
1599-
* Inbound domain of webhook, required in case of event type `inbound`
1600-
*/
1601-
'domain'?: string;
16021598

16031599
static discriminator: string | undefined = undefined;
16041600

@@ -1622,11 +1618,6 @@ export class CreateWebhook {
16221618
"name": "type",
16231619
"baseName": "type",
16241620
"type": "CreateWebhook.TypeEnum"
1625-
},
1626-
{
1627-
"name": "domain",
1628-
"baseName": "domain",
1629-
"type": "string"
16301621
} ];
16311622

16321623
static getAttributeTypeMap() {
@@ -1651,13 +1642,11 @@ export namespace CreateWebhook {
16511642
Unsubscribed = <any> 'unsubscribed',
16521643
ListAddition = <any> 'listAddition',
16531644
ContactUpdated = <any> 'contactUpdated',
1654-
ContactDeleted = <any> 'contactDeleted',
1655-
InboundEmailProcessed = <any> 'inbound_email_processed'
1645+
ContactDeleted = <any> 'contactDeleted'
16561646
}
16571647
export enum TypeEnum {
16581648
Transactional = <any> 'transactional',
1659-
Marketing = <any> 'marketing',
1660-
Inbound = <any> 'inbound'
1649+
Marketing = <any> 'marketing'
16611650
}
16621651
}
16631652
export class CreatedProcessId {
@@ -8712,7 +8701,7 @@ export enum AccountApiApiKeys {
87128701

87138702
export class AccountApi {
87148703
protected _basePath = defaultBasePath;
8715-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
8704+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
87168705
protected _useQuerystring = false;
87178706

87188707
protected authentications = {
@@ -8813,7 +8802,7 @@ export enum AttributesApiApiKeys {
88138802

88148803
export class AttributesApi {
88158804
protected _basePath = defaultBasePath;
8816-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
8805+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
88178806
protected _useQuerystring = false;
88188807

88198808
protected authentications = {
@@ -9123,7 +9112,7 @@ export enum ContactsApiApiKeys {
91239112

91249113
export class ContactsApi {
91259114
protected _basePath = defaultBasePath;
9126-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
9115+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
91279116
protected _useQuerystring = false;
91289117

91299118
protected authentications = {
@@ -9829,7 +9818,7 @@ export class ContactsApi {
98299818
});
98309819
}
98319820
/**
9832-
*
9821+
* Along with the contact details, this endpoint will show the statistics of contact for the recent 90 days by default. To fetch the earlier statistics, please use Get contact campaign stats (https://developers.sendinblue.com/reference/contacts-7#getcontactstats) endpoint with the appropriate date ranges.
98339822
* @summary Get a contact's details
98349823
* @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
98359824
* @param {*} [options] Override http request options.
@@ -9892,7 +9881,7 @@ export class ContactsApi {
98929881
* @summary Get email campaigns' statistics for a contact
98939882
* @param identifier Email (urlencoded) OR ID of the contact
98949883
* @param startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
9895-
* @param endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate
9884+
* @param endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days
98969885
* @param {*} [options] Override http request options.
98979886
*/
98989887
public getContactStats (identifier: string, startDate?: string, endDate?: string, options: any = {}) : Promise<{ response: http.IncomingMessage; body: GetContactCampaignStats; }> {
@@ -10902,7 +10891,7 @@ export enum EmailCampaignsApiApiKeys {
1090210891

1090310892
export class EmailCampaignsApi {
1090410893
protected _basePath = defaultBasePath;
10905-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
10894+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
1090610895
protected _useQuerystring = false;
1090710896

1090810897
protected authentications = {
@@ -11769,7 +11758,7 @@ export enum FoldersApiApiKeys {
1176911758

1177011759
export class FoldersApi {
1177111760
protected _basePath = defaultBasePath;
11772-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
11761+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
1177311762
protected _useQuerystring = false;
1177411763

1177511764
protected authentications = {
@@ -12210,7 +12199,7 @@ export enum ListsApiApiKeys {
1221012199

1221112200
export class ListsApi {
1221212201
protected _basePath = defaultBasePath;
12213-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
12202+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
1221412203
protected _useQuerystring = false;
1221512204

1221612205
protected authentications = {
@@ -12852,7 +12841,7 @@ export enum ProcessApiApiKeys {
1285212841

1285312842
export class ProcessApi {
1285412843
protected _basePath = defaultBasePath;
12855-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
12844+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
1285612845
protected _useQuerystring = false;
1285712846

1285812847
protected authentications = {
@@ -13027,7 +13016,7 @@ export enum ResellerApiApiKeys {
1302713016

1302813017
export class ResellerApi {
1302913018
protected _basePath = defaultBasePath;
13030-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
13019+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
1303113020
protected _useQuerystring = false;
1303213021

1303313022
protected authentications = {
@@ -14080,7 +14069,7 @@ export enum SMSCampaignsApiApiKeys {
1408014069

1408114070
export class SMSCampaignsApi {
1408214071
protected _basePath = defaultBasePath;
14083-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
14072+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
1408414073
protected _useQuerystring = false;
1408514074

1408614075
protected authentications = {
@@ -14766,7 +14755,7 @@ export enum SendersApiApiKeys {
1476614755

1476714756
export class SendersApi {
1476814757
protected _basePath = defaultBasePath;
14769-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
14758+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
1477014759
protected _useQuerystring = false;
1477114760

1477214761
protected authentications = {
@@ -15160,7 +15149,7 @@ export enum TransactionalEmailsApiApiKeys {
1516015149

1516115150
export class TransactionalEmailsApi {
1516215151
protected _basePath = defaultBasePath;
15163-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
15152+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
1516415153
protected _useQuerystring = false;
1516515154

1516615155
protected authentications = {
@@ -15488,7 +15477,7 @@ export class TransactionalEmailsApi {
1548815477
});
1548915478
}
1549015479
/**
15491-
*
15480+
* This endpoint will show the aggregated stats for past 90 days by default if `startDate` and `endDate` OR `days` is not passed. The date range can not exceed 90 days
1549215481
* @summary Get your transactional email activity aggregated over a period of time
1549315482
* @param startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate
1549415483
* @param endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate
@@ -15612,7 +15601,7 @@ export class TransactionalEmailsApi {
1561215601
});
1561315602
}
1561415603
/**
15615-
*
15604+
* This endpoint will show the aggregated stats for past 30 days by default if `startDate` and `endDate` OR `days` is not passed. The date range can not exceed 90 days
1561615605
* @summary Get all your transactional email activity (unaggregated events)
1561715606
* @param limit Number limitation for the result returned
1561815607
* @param offset Beginning point in the list to retrieve from.
@@ -16482,7 +16471,7 @@ export enum TransactionalSMSApiApiKeys {
1648216471

1648316472
export class TransactionalSMSApi {
1648416473
protected _basePath = defaultBasePath;
16485-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
16474+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
1648616475
protected _useQuerystring = false;
1648716476

1648816477
protected authentications = {
@@ -16836,7 +16825,7 @@ export enum WebhooksApiApiKeys {
1683616825

1683716826
export class WebhooksApi {
1683816827
protected _basePath = defaultBasePath;
16839-
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3-beta.1/ts-node' };
16828+
protected defaultHeaders : any = { 'user-agent': 'sendinblue_clientAPI/v2.2.3/ts-node' };
1684016829
protected _useQuerystring = false;
1684116830

1684216831
protected authentications = {

0 commit comments

Comments
 (0)