@getbrevo/brevo 2.0.0-beta.4 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +396 -0
- package/.openapi-generator/VERSION +1 -0
- package/api/apis.ts +5 -1
- package/api/contactsApi.ts +12 -2
- package/api/couponsApi.ts +7 -7
- package/api/dealsApi.ts +1 -1
- package/api/ecommerceApi.ts +360 -2
- package/api/eventsApi.ts +169 -0
- package/api/masterAccountApi.ts +1056 -143
- package/api/paymentsApi.ts +321 -0
- package/api/tasksApi.ts +1 -1
- package/api/userApi.ts +2 -2
- package/api/whatsAppCampaignsApi.ts +6 -1
- package/dist/api/apis.d.ts +5 -1
- package/dist/api/apis.js +5 -1
- package/dist/api/apis.js.map +1 -1
- package/dist/api/contactsApi.d.ts +1 -1
- package/dist/api/contactsApi.js +7 -1
- package/dist/api/contactsApi.js.map +1 -1
- package/dist/api/couponsApi.d.ts +2 -2
- package/dist/api/couponsApi.js +4 -4
- package/dist/api/couponsApi.js.map +1 -1
- package/dist/api/ecommerceApi.d.ts +35 -2
- package/dist/api/ecommerceApi.js +303 -2
- package/dist/api/ecommerceApi.js.map +1 -1
- package/dist/api/eventsApi.d.ts +37 -0
- package/dist/api/eventsApi.js +140 -0
- package/dist/api/eventsApi.js.map +1 -0
- package/dist/api/masterAccountApi.d.ts +106 -0
- package/dist/api/masterAccountApi.js +882 -78
- package/dist/api/masterAccountApi.js.map +1 -1
- package/dist/api/paymentsApi.d.ts +55 -0
- package/dist/api/paymentsApi.js +274 -0
- package/dist/api/paymentsApi.js.map +1 -0
- package/dist/api/transactionalEmailsApi.js +1 -0
- package/dist/api/transactionalEmailsApi.js.map +1 -1
- package/dist/api/whatsAppCampaignsApi.d.ts +1 -1
- package/dist/api/whatsAppCampaignsApi.js +4 -1
- package/dist/api/whatsAppCampaignsApi.js.map +1 -1
- package/dist/model/cart.d.ts +20 -0
- package/dist/model/cart.js +29 -0
- package/dist/model/cart.js.map +1 -0
- package/dist/model/configuration.d.ts +14 -0
- package/dist/model/configuration.js +18 -0
- package/dist/model/configuration.js.map +1 -0
- package/dist/model/conversionSourceMetrics.d.ts +23 -0
- package/dist/model/conversionSourceMetrics.js +44 -0
- package/dist/model/conversionSourceMetrics.js.map +1 -0
- package/dist/model/conversionSourceProduct.d.ts +21 -0
- package/dist/model/conversionSourceProduct.js +53 -0
- package/dist/model/conversionSourceProduct.js.map +1 -0
- package/dist/model/corporateGroupDetailsResponse.d.ts +19 -0
- package/dist/model/corporateGroupDetailsResponse.js +28 -0
- package/dist/model/corporateGroupDetailsResponse.js.map +1 -0
- package/dist/model/corporateGroupDetailsResponseGroup.d.ts +16 -0
- package/dist/model/corporateGroupDetailsResponseGroup.js +28 -0
- package/dist/model/corporateGroupDetailsResponseGroup.js.map +1 -0
- package/dist/model/corporateGroupDetailsResponseSubAccountsInner.d.ts +16 -0
- package/dist/model/corporateGroupDetailsResponseSubAccountsInner.js +28 -0
- package/dist/model/corporateGroupDetailsResponseSubAccountsInner.js.map +1 -0
- package/dist/model/corporateGroupDetailsResponseUsersInner.d.ts +16 -0
- package/dist/model/corporateGroupDetailsResponseUsersInner.js +28 -0
- package/dist/model/corporateGroupDetailsResponseUsersInner.js.map +1 -0
- package/dist/model/corporateGroupPost201Response.d.ts +14 -0
- package/dist/model/corporateGroupPost201Response.js +18 -0
- package/dist/model/corporateGroupPost201Response.js.map +1 -0
- package/dist/model/corporateGroupPostRequest.d.ts +15 -0
- package/dist/model/corporateGroupPostRequest.js +23 -0
- package/dist/model/corporateGroupPostRequest.js.map +1 -0
- package/dist/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.d.ts +14 -0
- package/dist/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.js +18 -0
- package/dist/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.js.map +1 -0
- package/dist/model/corporateUserInvitationActionEmailPut200Response.d.ts +14 -0
- package/dist/model/corporateUserInvitationActionEmailPut200Response.js +18 -0
- package/dist/model/corporateUserInvitationActionEmailPut200Response.js.map +1 -0
- package/dist/model/createCouponCollectionRequest.d.ts +5 -2
- package/dist/model/createCouponCollectionRequest.js +17 -2
- package/dist/model/createCouponCollectionRequest.js.map +1 -1
- package/dist/model/createDomainModel.d.ts +1 -0
- package/dist/model/createDomainModel.js +5 -0
- package/dist/model/createDomainModel.js.map +1 -1
- package/dist/model/createDomainModelDnsRecords.d.ts +1 -0
- package/dist/model/createDomainModelDnsRecords.js +5 -0
- package/dist/model/createDomainModelDnsRecords.js.map +1 -1
- package/dist/model/createPaymentRequest.d.ts +21 -0
- package/dist/model/createPaymentRequest.js +38 -0
- package/dist/model/createPaymentRequest.js.map +1 -0
- package/dist/model/createWebhook.d.ts +5 -0
- package/dist/model/createWebhook.js +15 -0
- package/dist/model/createWebhook.js.map +1 -1
- package/dist/model/createWhatsAppTemplate.d.ts +2 -2
- package/dist/model/createWhatsAppTemplate.js +2 -2
- package/dist/model/createWhatsAppTemplate.js.map +1 -1
- package/dist/model/event.d.ts +19 -0
- package/dist/model/event.js +38 -0
- package/dist/model/event.js.map +1 -0
- package/dist/model/eventIdentifiers.d.ts +18 -0
- package/dist/model/eventIdentifiers.js +38 -0
- package/dist/model/eventIdentifiers.js.map +1 -0
- package/dist/model/getContactDetails.d.ts +1 -1
- package/dist/model/getCorporateInvitedUsersList.d.ts +15 -0
- package/dist/model/getCorporateInvitedUsersList.js +18 -0
- package/dist/model/getCorporateInvitedUsersList.js.map +1 -0
- package/dist/model/getCorporateInvitedUsersListUsersInner.d.ts +20 -0
- package/dist/model/getCorporateInvitedUsersListUsersInner.js +38 -0
- package/dist/model/getCorporateInvitedUsersListUsersInner.js.map +1 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.d.ts +17 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js +33 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js.map +1 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerGroups.d.ts +15 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerGroups.js +23 -0
- package/dist/model/getCorporateInvitedUsersListUsersInnerGroups.js.map +1 -0
- package/dist/model/getCorporateUserPermission.d.ts +19 -0
- package/dist/model/getCorporateUserPermission.js +33 -0
- package/dist/model/getCorporateUserPermission.js.map +1 -0
- package/dist/model/getCorporateUserPermissionFeatureAccess.d.ts +17 -0
- package/dist/model/getCorporateUserPermissionFeatureAccess.js +33 -0
- package/dist/model/getCorporateUserPermissionFeatureAccess.js.map +1 -0
- package/dist/model/getCorporateUserPermissionGroupsInner.d.ts +15 -0
- package/dist/model/getCorporateUserPermissionGroupsInner.js +23 -0
- package/dist/model/getCorporateUserPermissionGroupsInner.js.map +1 -0
- package/dist/model/getCouponCollection.d.ts +3 -0
- package/dist/model/getCouponCollection.js +15 -0
- package/dist/model/getCouponCollection.js.map +1 -1
- package/dist/model/getExtendedContactDetails.d.ts +1 -1
- package/dist/model/getOrders.d.ts +16 -0
- package/dist/model/getOrders.js +23 -0
- package/dist/model/getOrders.js.map +1 -0
- package/dist/model/getOrdersOrdersInner.d.ts +25 -0
- package/dist/model/getOrdersOrdersInner.js +63 -0
- package/dist/model/getOrdersOrdersInner.js.map +1 -0
- package/dist/model/getPaymentRequest.d.ts +29 -0
- package/dist/model/getPaymentRequest.js +51 -0
- package/dist/model/getPaymentRequest.js.map +1 -0
- package/dist/model/getSubAccountGroups200ResponseInner.d.ts +15 -0
- package/dist/model/getSubAccountGroups200ResponseInner.js +23 -0
- package/dist/model/getSubAccountGroups200ResponseInner.js.map +1 -0
- package/dist/model/getWebhook.d.ts +5 -0
- package/dist/model/getWebhook.js +15 -0
- package/dist/model/getWebhook.js.map +1 -1
- package/dist/model/getWebhookAuth.d.ts +15 -0
- package/dist/model/getWebhookAuth.js +23 -0
- package/dist/model/getWebhookAuth.js.map +1 -0
- package/dist/model/getWebhookHeadersInner.d.ts +15 -0
- package/dist/model/getWebhookHeadersInner.js +23 -0
- package/dist/model/getWebhookHeadersInner.js.map +1 -0
- package/dist/model/inviteAdminUser.d.ts +18 -0
- package/dist/model/inviteAdminUser.js +33 -0
- package/dist/model/inviteAdminUser.js.map +1 -0
- package/dist/model/inviteAdminUserPrivilegesInner.d.ts +27 -0
- package/dist/model/inviteAdminUserPrivilegesInner.js +37 -0
- package/dist/model/inviteAdminUserPrivilegesInner.js.map +1 -0
- package/dist/model/inviteuserPrivilegesInner.d.ts +14 -2
- package/dist/model/inviteuserPrivilegesInner.js +13 -1
- package/dist/model/inviteuserPrivilegesInner.js.map +1 -1
- package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.d.ts +2 -0
- package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.js +10 -0
- package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.js.map +1 -1
- package/dist/model/models.d.ts +32 -0
- package/dist/model/models.js +102 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/notification.d.ts +20 -0
- package/dist/model/notification.js +29 -0
- package/dist/model/notification.js.map +1 -0
- package/dist/model/orderBatch.d.ts +1 -0
- package/dist/model/orderBatch.js +8 -0
- package/dist/model/orderBatch.js.map +1 -1
- package/dist/model/sendSmtpEmailMessageVersionsInner.d.ts +2 -0
- package/dist/model/sendSmtpEmailMessageVersionsInner.js +10 -0
- package/dist/model/sendSmtpEmailMessageVersionsInner.js.map +1 -1
- package/dist/model/sendWhatsappMessage.d.ts +1 -0
- package/dist/model/sendWhatsappMessage.js +5 -0
- package/dist/model/sendWhatsappMessage.js.map +1 -1
- package/dist/model/ssoTokenRequestCorporate.d.ts +14 -0
- package/dist/model/ssoTokenRequestCorporate.js +18 -0
- package/dist/model/ssoTokenRequestCorporate.js.map +1 -0
- package/dist/model/updateCouponCollection200Response.d.ts +1 -1
- package/dist/model/updateCouponCollectionRequest.d.ts +4 -1
- package/dist/model/updateCouponCollectionRequest.js +15 -0
- package/dist/model/updateCouponCollectionRequest.js.map +1 -1
- package/dist/model/updateWebhook.d.ts +5 -0
- package/dist/model/updateWebhook.js +15 -0
- package/dist/model/updateWebhook.js.map +1 -1
- package/model/cart.ts +51 -0
- package/model/configuration.ts +37 -0
- package/model/conversionSourceMetrics.ts +60 -0
- package/model/conversionSourceProduct.ts +73 -0
- package/model/corporateGroupDetailsResponse.ts +46 -0
- package/model/corporateGroupDetailsResponseGroup.ts +52 -0
- package/model/corporateGroupDetailsResponseSubAccountsInner.ts +52 -0
- package/model/corporateGroupDetailsResponseUsersInner.ts +52 -0
- package/model/corporateGroupPost201Response.ts +31 -0
- package/model/corporateGroupPostRequest.ts +43 -0
- package/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.ts +34 -0
- package/model/corporateUserInvitationActionEmailPut200Response.ts +31 -0
- package/model/createContact.ts +1 -1
- package/model/createCouponCollectionRequest.ts +33 -6
- package/model/createDomainModel.ts +9 -0
- package/model/createDomainModelDnsRecords.ts +6 -0
- package/model/createPaymentRequest.ts +64 -0
- package/model/createWebhook.ts +26 -0
- package/model/createWhatsAppTemplate.ts +2 -2
- package/model/crmDealsIdPatchRequest.ts +1 -1
- package/model/crmDealsPostRequest.ts +1 -1
- package/model/crmTasksIdPatchRequest.ts +1 -1
- package/model/crmTasksPostRequest.ts +1 -1
- package/model/event.ts +68 -0
- package/model/eventIdentifiers.ts +73 -0
- package/model/getContactDetails.ts +1 -1
- package/model/getCorporateInvitedUsersList.ts +35 -0
- package/model/getCorporateInvitedUsersListUsersInner.ts +66 -0
- package/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.ts +64 -0
- package/model/getCorporateInvitedUsersListUsersInnerGroups.ts +46 -0
- package/model/getCorporateUserPermission.ts +60 -0
- package/model/getCorporateUserPermissionFeatureAccess.ts +64 -0
- package/model/getCorporateUserPermissionGroupsInner.ts +46 -0
- package/model/getCouponCollection.ts +33 -6
- package/model/getExtendedContactDetails.ts +1 -1
- package/model/getOrders.ts +41 -0
- package/model/getOrdersOrdersInner.ts +111 -0
- package/model/getPaymentRequest.ts +80 -0
- package/model/getSubAccountGroups200ResponseInner.ts +43 -0
- package/model/getWebhook.ts +26 -0
- package/model/getWebhookAuth.ts +46 -0
- package/model/getWebhookHeadersInner.ts +43 -0
- package/model/inviteAdminUser.ts +59 -0
- package/model/inviteAdminUserPrivilegesInner.ts +58 -0
- package/model/inviteuserPrivilegesInner.ts +14 -2
- package/model/masterDetailsResponsePlanInfoFeaturesInner.ts +18 -0
- package/model/models.ts +102 -0
- package/model/notification.ts +51 -0
- package/model/orderBatch.ts +9 -0
- package/model/sendSmtpEmailMessageVersionsInner.ts +18 -0
- package/model/sendWhatsappMessage.ts +9 -0
- package/model/ssoTokenRequestCorporate.ts +34 -0
- package/model/subAccountAppsToggleRequest.ts +1 -1
- package/model/subAccountDetailsResponsePlanInfoFeaturesInbox.ts +1 -1
- package/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.ts +1 -1
- package/model/subAccountUpdatePlanRequestFeatures.ts +2 -2
- package/model/updateContact.ts +1 -1
- package/model/updateCouponCollection200Response.ts +1 -1
- package/model/updateCouponCollectionRequest.ts +28 -1
- package/model/updateWebhook.ts +26 -0
- package/package.json +3 -3
- /package/{.swagger-codegen-ignore → .openapi-generator-ignore} +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brevo API
|
|
3
|
+
* Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.0.0
|
|
6
|
+
* Contact: contact@brevo.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
import { Cart } from './cart';
|
|
15
|
+
import { Configuration } from './configuration';
|
|
16
|
+
import { Notification } from './notification';
|
|
17
|
+
|
|
18
|
+
export class GetPaymentRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Reference of the payment request, it will appear on the payment page.
|
|
21
|
+
*/
|
|
22
|
+
'reference': string;
|
|
23
|
+
/**
|
|
24
|
+
* Status of the payment request.
|
|
25
|
+
*/
|
|
26
|
+
'status': GetPaymentRequest.StatusEnum;
|
|
27
|
+
'configuration'?: Configuration;
|
|
28
|
+
/**
|
|
29
|
+
* Brevo ID of the contact requested to pay.
|
|
30
|
+
*/
|
|
31
|
+
'contactId'?: number;
|
|
32
|
+
'cart': Cart;
|
|
33
|
+
'notification': Notification;
|
|
34
|
+
|
|
35
|
+
static discriminator: string | undefined = undefined;
|
|
36
|
+
|
|
37
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
38
|
+
{
|
|
39
|
+
"name": "reference",
|
|
40
|
+
"baseName": "reference",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "status",
|
|
45
|
+
"baseName": "status",
|
|
46
|
+
"type": "GetPaymentRequest.StatusEnum"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "configuration",
|
|
50
|
+
"baseName": "configuration",
|
|
51
|
+
"type": "Configuration"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "contactId",
|
|
55
|
+
"baseName": "contactId",
|
|
56
|
+
"type": "number"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "cart",
|
|
60
|
+
"baseName": "cart",
|
|
61
|
+
"type": "Cart"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "notification",
|
|
65
|
+
"baseName": "notification",
|
|
66
|
+
"type": "Notification"
|
|
67
|
+
} ];
|
|
68
|
+
|
|
69
|
+
static getAttributeTypeMap() {
|
|
70
|
+
return GetPaymentRequest.attributeTypeMap;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export namespace GetPaymentRequest {
|
|
75
|
+
export enum StatusEnum {
|
|
76
|
+
Created = <any> 'created',
|
|
77
|
+
Sent = <any> 'sent',
|
|
78
|
+
ReminderSentPaid = <any> 'reminderSent - paid'
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brevo API
|
|
3
|
+
* Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.0.0
|
|
6
|
+
* Contact: contact@brevo.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class GetSubAccountGroups200ResponseInner {
|
|
16
|
+
/**
|
|
17
|
+
* Unique id of the group
|
|
18
|
+
*/
|
|
19
|
+
'id'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The name of the group of sub-accounts
|
|
22
|
+
*/
|
|
23
|
+
'groupName'?: string;
|
|
24
|
+
|
|
25
|
+
static discriminator: string | undefined = undefined;
|
|
26
|
+
|
|
27
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
28
|
+
{
|
|
29
|
+
"name": "id",
|
|
30
|
+
"baseName": "id",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "groupName",
|
|
35
|
+
"baseName": "groupName",
|
|
36
|
+
"type": "string"
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return GetSubAccountGroups200ResponseInner.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
package/model/getWebhook.ts
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
|
+
import { GetWebhookAuth } from './getWebhookAuth';
|
|
15
|
+
import { GetWebhookHeadersInner } from './getWebhookHeadersInner';
|
|
14
16
|
|
|
15
17
|
export class GetWebhook {
|
|
16
18
|
/**
|
|
@@ -38,6 +40,15 @@ export class GetWebhook {
|
|
|
38
40
|
* Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
|
39
41
|
*/
|
|
40
42
|
'modifiedAt': string;
|
|
43
|
+
/**
|
|
44
|
+
* To send batched webhooks
|
|
45
|
+
*/
|
|
46
|
+
'batched'?: boolean;
|
|
47
|
+
'auth'?: GetWebhookAuth;
|
|
48
|
+
/**
|
|
49
|
+
* Custom headers to be send with webhooks
|
|
50
|
+
*/
|
|
51
|
+
'headers'?: Array<GetWebhookHeadersInner>;
|
|
41
52
|
|
|
42
53
|
static discriminator: string | undefined = undefined;
|
|
43
54
|
|
|
@@ -76,6 +87,21 @@ export class GetWebhook {
|
|
|
76
87
|
"name": "modifiedAt",
|
|
77
88
|
"baseName": "modifiedAt",
|
|
78
89
|
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "batched",
|
|
93
|
+
"baseName": "batched",
|
|
94
|
+
"type": "boolean"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "auth",
|
|
98
|
+
"baseName": "auth",
|
|
99
|
+
"type": "GetWebhookAuth"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "headers",
|
|
103
|
+
"baseName": "headers",
|
|
104
|
+
"type": "Array<GetWebhookHeadersInner>"
|
|
79
105
|
} ];
|
|
80
106
|
|
|
81
107
|
static getAttributeTypeMap() {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brevo API
|
|
3
|
+
* Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.0.0
|
|
6
|
+
* Contact: contact@brevo.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Add authentication on webhook url
|
|
17
|
+
*/
|
|
18
|
+
export class GetWebhookAuth {
|
|
19
|
+
/**
|
|
20
|
+
* Type of authentication
|
|
21
|
+
*/
|
|
22
|
+
'type'?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Webhook authentication token
|
|
25
|
+
*/
|
|
26
|
+
'token'?: string;
|
|
27
|
+
|
|
28
|
+
static discriminator: string | undefined = undefined;
|
|
29
|
+
|
|
30
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
31
|
+
{
|
|
32
|
+
"name": "type",
|
|
33
|
+
"baseName": "type",
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "token",
|
|
38
|
+
"baseName": "token",
|
|
39
|
+
"type": "string"
|
|
40
|
+
} ];
|
|
41
|
+
|
|
42
|
+
static getAttributeTypeMap() {
|
|
43
|
+
return GetWebhookAuth.attributeTypeMap;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brevo API
|
|
3
|
+
* Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.0.0
|
|
6
|
+
* Contact: contact@brevo.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class GetWebhookHeadersInner {
|
|
16
|
+
/**
|
|
17
|
+
* Header key name
|
|
18
|
+
*/
|
|
19
|
+
'key'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Header value
|
|
22
|
+
*/
|
|
23
|
+
'value'?: string;
|
|
24
|
+
|
|
25
|
+
static discriminator: string | undefined = undefined;
|
|
26
|
+
|
|
27
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
28
|
+
{
|
|
29
|
+
"name": "key",
|
|
30
|
+
"baseName": "key",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "value",
|
|
35
|
+
"baseName": "value",
|
|
36
|
+
"type": "string"
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return GetWebhookHeadersInner.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brevo API
|
|
3
|
+
* Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.0.0
|
|
6
|
+
* Contact: contact@brevo.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
import { InviteAdminUserPrivilegesInner } from './inviteAdminUserPrivilegesInner';
|
|
15
|
+
|
|
16
|
+
export class InviteAdminUser {
|
|
17
|
+
/**
|
|
18
|
+
* Email address for the organization
|
|
19
|
+
*/
|
|
20
|
+
'email': string;
|
|
21
|
+
/**
|
|
22
|
+
* All access to the features
|
|
23
|
+
*/
|
|
24
|
+
'allFeaturesAccess': boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Ids of Group
|
|
27
|
+
*/
|
|
28
|
+
'groupIds'?: Array<string>;
|
|
29
|
+
'privileges': Array<InviteAdminUserPrivilegesInner>;
|
|
30
|
+
|
|
31
|
+
static discriminator: string | undefined = undefined;
|
|
32
|
+
|
|
33
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
34
|
+
{
|
|
35
|
+
"name": "email",
|
|
36
|
+
"baseName": "email",
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "allFeaturesAccess",
|
|
41
|
+
"baseName": "all_features_access",
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "groupIds",
|
|
46
|
+
"baseName": "groupIds",
|
|
47
|
+
"type": "Array<string>"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "privileges",
|
|
51
|
+
"baseName": "privileges",
|
|
52
|
+
"type": "Array<InviteAdminUserPrivilegesInner>"
|
|
53
|
+
} ];
|
|
54
|
+
|
|
55
|
+
static getAttributeTypeMap() {
|
|
56
|
+
return InviteAdminUser.attributeTypeMap;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brevo API
|
|
3
|
+
* Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.0.0
|
|
6
|
+
* Contact: contact@brevo.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Privileges given to the user
|
|
17
|
+
*/
|
|
18
|
+
export class InviteAdminUserPrivilegesInner {
|
|
19
|
+
/**
|
|
20
|
+
* Feature name
|
|
21
|
+
*/
|
|
22
|
+
'feature'?: InviteAdminUserPrivilegesInner.FeatureEnum;
|
|
23
|
+
/**
|
|
24
|
+
* Permissions for a given feature
|
|
25
|
+
*/
|
|
26
|
+
'permissions'?: Array<InviteAdminUserPrivilegesInner.PermissionsEnum>;
|
|
27
|
+
|
|
28
|
+
static discriminator: string | undefined = undefined;
|
|
29
|
+
|
|
30
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
31
|
+
{
|
|
32
|
+
"name": "feature",
|
|
33
|
+
"baseName": "feature",
|
|
34
|
+
"type": "InviteAdminUserPrivilegesInner.FeatureEnum"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "permissions",
|
|
38
|
+
"baseName": "permissions",
|
|
39
|
+
"type": "Array<InviteAdminUserPrivilegesInner.PermissionsEnum>"
|
|
40
|
+
} ];
|
|
41
|
+
|
|
42
|
+
static getAttributeTypeMap() {
|
|
43
|
+
return InviteAdminUserPrivilegesInner.attributeTypeMap;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export namespace InviteAdminUserPrivilegesInner {
|
|
48
|
+
export enum FeatureEnum {
|
|
49
|
+
MyPlan = <any> 'my_plan',
|
|
50
|
+
Api = <any> 'api',
|
|
51
|
+
UserManagement = <any> 'user_management',
|
|
52
|
+
AppManagement = <any> 'app_management'
|
|
53
|
+
}
|
|
54
|
+
export enum PermissionsEnum {
|
|
55
|
+
All = <any> 'all',
|
|
56
|
+
None = <any> 'none'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -54,11 +54,13 @@ export namespace InviteuserPrivilegesInner {
|
|
|
54
54
|
FacebookAds = <any> 'facebook_ads',
|
|
55
55
|
LandingPages = <any> 'landing_pages',
|
|
56
56
|
TransactionalEmails = <any> 'transactional_emails',
|
|
57
|
-
|
|
57
|
+
SmtpApi = <any> 'smtp_api',
|
|
58
58
|
UserManagement = <any> 'user_management',
|
|
59
59
|
SalesPlatform = <any> 'sales_platform',
|
|
60
60
|
Phone = <any> 'phone',
|
|
61
|
-
Conversations = <any> 'conversations'
|
|
61
|
+
Conversations = <any> 'conversations',
|
|
62
|
+
SendersDomainsDedicatedIps = <any> 'senders_domains_dedicated_ips',
|
|
63
|
+
PushNotifications = <any> 'push_notifications'
|
|
62
64
|
}
|
|
63
65
|
export enum PermissionsEnum {
|
|
64
66
|
CreateEditDelete = <any> 'create_edit_delete',
|
|
@@ -77,6 +79,16 @@ export namespace InviteuserPrivilegesInner {
|
|
|
77
79
|
Access = <any> 'access',
|
|
78
80
|
Assign = <any> 'assign',
|
|
79
81
|
Configure = <any> 'configure',
|
|
82
|
+
ManageOwnedDealsTasksCompanies = <any> 'manage_owned_deals_tasks_companies',
|
|
83
|
+
ManageOthersDealsTasksCompanies = <any> 'manage_others_deals_tasks_companies',
|
|
84
|
+
Reports = <any> 'reports',
|
|
85
|
+
SendersManagement = <any> 'senders_management',
|
|
86
|
+
DomainsManagement = <any> 'domains_management',
|
|
87
|
+
DedicatedIpsManagement = <any> 'dedicated_ips_management',
|
|
88
|
+
Send = <any> 'send',
|
|
89
|
+
Smtp = <any> 'smtp',
|
|
90
|
+
ApiKeys = <any> 'api_keys',
|
|
91
|
+
AuthorizedIps = <any> 'authorized_ips',
|
|
80
92
|
None = <any> 'none'
|
|
81
93
|
}
|
|
82
94
|
}
|
|
@@ -26,10 +26,18 @@ export class MasterDetailsResponsePlanInfoFeaturesInner {
|
|
|
26
26
|
*/
|
|
27
27
|
'quantity'?: number;
|
|
28
28
|
/**
|
|
29
|
+
* Quantity with overages provided in the plan (only applicable on ENTv2)
|
|
30
|
+
*/
|
|
31
|
+
'quantityWithOverages'?: number;
|
|
32
|
+
/**
|
|
29
33
|
* Quantity consumed by master
|
|
30
34
|
*/
|
|
31
35
|
'used'?: number;
|
|
32
36
|
/**
|
|
37
|
+
* Quantity consumed by sub-organizations over the admin plan limit (only applicable on ENTv2)
|
|
38
|
+
*/
|
|
39
|
+
'usedOverages'?: number;
|
|
40
|
+
/**
|
|
33
41
|
* Quantity remaining in the plan
|
|
34
42
|
*/
|
|
35
43
|
'remaining'?: number;
|
|
@@ -52,11 +60,21 @@ export class MasterDetailsResponsePlanInfoFeaturesInner {
|
|
|
52
60
|
"baseName": "quantity",
|
|
53
61
|
"type": "number"
|
|
54
62
|
},
|
|
63
|
+
{
|
|
64
|
+
"name": "quantityWithOverages",
|
|
65
|
+
"baseName": "quantityWithOverages",
|
|
66
|
+
"type": "number"
|
|
67
|
+
},
|
|
55
68
|
{
|
|
56
69
|
"name": "used",
|
|
57
70
|
"baseName": "used",
|
|
58
71
|
"type": "number"
|
|
59
72
|
},
|
|
73
|
+
{
|
|
74
|
+
"name": "usedOverages",
|
|
75
|
+
"baseName": "usedOverages",
|
|
76
|
+
"type": "number"
|
|
77
|
+
},
|
|
60
78
|
{
|
|
61
79
|
"name": "remaining",
|
|
62
80
|
"baseName": "remaining",
|