@getbrevo/brevo 2.3.0 → 2.5.0
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 +24 -113
- package/.openapi-generator/VERSION +1 -1
- package/api/accountApi.ts +1 -6
- package/api/apis.ts +3 -9
- package/api/companiesApi.ts +69 -247
- package/api/contactsApi.ts +25 -119
- package/api/dealsApi.ts +1 -181
- package/api/ecommerceApi.ts +14 -29
- package/api/emailCampaignsApi.ts +2 -2
- package/api/masterAccountApi.ts +4 -233
- package/api/transactionalEmailsApi.ts +1 -78
- package/api/transactionalSMSApi.ts +0 -60
- package/api/userApi.ts +2 -2
- package/model/addContactToList.ts +2 -11
- package/model/companiesIdPatchRequest.ts +0 -18
- package/model/conversationsMessage.ts +0 -131
- package/model/conversionSourceMetrics.ts +3 -6
- package/model/createAttribute.ts +3 -13
- package/model/createContact.ts +4 -4
- package/model/createDoiContact.ts +3 -3
- package/model/createEmailCampaign.ts +0 -7
- package/model/createEmailCampaignRecipients.ts +0 -9
- package/model/createUpdateProduct.ts +1 -1
- package/model/createUpdateProducts.ts +1 -1
- package/model/createWebhook.ts +1 -14
- package/model/crmDealsIdPatchRequest.ts +0 -18
- package/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.ts +3 -6
- package/model/errorModel.ts +1 -0
- package/model/getAccountAllOfPlan.ts +13 -3
- package/model/getAttributesAttributesInner.ts +1 -12
- package/model/getCampaignStats.ts +0 -18
- package/model/getContactCampaignStats.ts +11 -11
- package/model/getContactCampaignStatsClickedInner.ts +3 -3
- package/model/getContactCampaignStatsUnsubscriptions.ts +6 -6
- package/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.ts +0 -45
- package/model/getCorporateUserPermissionFeatureAccess.ts +0 -45
- package/model/getEmailCampaign.ts +6 -4
- package/model/getExtendedCampaignStats.ts +0 -3
- package/model/getOrdersOrdersInner.ts +8 -24
- package/model/getSegments.ts +3 -3
- package/model/getSmsCampaign.ts +6 -4
- package/model/inviteAdminUserPrivilegesInner.ts +2 -11
- package/model/inviteuserPrivilegesInner.ts +3 -5
- package/model/models.ts +77 -419
- package/model/order.ts +8 -24
- package/model/orderBilling.ts +1 -1
- package/model/removeContactFromList.ts +3 -12
- package/model/requestContactExport.ts +1 -37
- package/model/requestContactExportCustomContactFilter.ts +1 -10
- package/model/sendSmtpEmail.ts +1 -1
- package/model/sendTransacSms.ts +5 -3
- package/model/subAccountDetailsResponsePlanInfoCredits.ts +0 -14
- package/model/subAccountDetailsResponsePlanInfoFeatures.ts +0 -7
- package/model/subAccountDetailsResponsePlanInfoFeaturesUsers.ts +3 -3
- package/model/subAccountUpdatePlanRequestCredits.ts +2 -20
- package/model/subAccountUpdatePlanRequestFeatures.ts +1 -10
- package/model/updateAttribute.ts +1 -10
- package/model/updateContact.ts +3 -3
- package/model/updateEmailCampaign.ts +0 -7
- package/model/updateEmailCampaignRecipients.ts +0 -9
- package/package.json +6 -5
- package/tsconfig.json +1 -0
- package/api/balanceApi.ts +0 -1725
- package/api/programApi.ts +0 -992
- package/api/rewardApi.ts +0 -975
- package/api/tierApi.ts +0 -952
- package/model/addSubscriptionMemberPayload.ts +0 -52
- package/model/aggregateBalance.ts +0 -43
- package/model/balance.ts +0 -106
- package/model/balanceDataPerContact.ts +0 -49
- package/model/balanceDefinition.ts +0 -212
- package/model/balanceDefinitionPage.ts +0 -35
- package/model/balanceLimit.ts +0 -115
- package/model/balanceOrder.ts +0 -136
- package/model/companiesImportPost200Response.ts +0 -34
- package/model/companiesImportPost400Response.ts +0 -31
- package/model/contactBalancesResp.ts +0 -50
- package/model/contactErrorModel.ts +0 -63
- package/model/conversationsMessageAttachmentsInner.ts +0 -79
- package/model/conversationsMessageForwardedToSourceStatus.ts +0 -40
- package/model/conversationsMessageFrom.ts +0 -40
- package/model/conversationsMessageReplyTo.ts +0 -40
- package/model/conversationsMessageToInner.ts +0 -37
- package/model/corporateUserEmailPermissionsPutRequest.ts +0 -41
- package/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.ts +0 -69
- package/model/createBalanceDefinitionPayload.ts +0 -218
- package/model/createBalanceLimitPayload.ts +0 -98
- package/model/createBalancePayload.ts +0 -37
- package/model/createEmailCampaignEmailExpirationDate.ts +0 -53
- package/model/createLoyaltyProgramPayload.ts +0 -61
- package/model/createOrderPayload.ts +0 -91
- package/model/createSubscriptionPayload.ts +0 -52
- package/model/createSubscriptionResponse.ts +0 -88
- package/model/createTierGroupRequest.ts +0 -73
- package/model/createTransactionPayload.ts +0 -109
- package/model/crmAttributesPost200Response.ts +0 -34
- package/model/crmAttributesPostRequest.ts +0 -85
- package/model/errorResponse.ts +0 -31
- package/model/fetchTemplatePreview.ts +0 -52
- package/model/getSegment.ts +0 -61
- package/model/loyaltyProgram.ts +0 -139
- package/model/loyaltyProgramPage.ts +0 -35
- package/model/loyaltyProgramValidationError.ts +0 -52
- package/model/loyaltyTierPage.ts +0 -32
- package/model/mainAttributeRewardPayload.ts +0 -88
- package/model/mainBillingPayload.ts +0 -88
- package/model/mainCodeCountHttpResponse.ts +0 -34
- package/model/mainCreateRedeemPayload.ts +0 -98
- package/model/mainCreateRewardPayload.ts +0 -61
- package/model/mainCreateRewardResponse.ts +0 -97
- package/model/mainErrorResponse.ts +0 -34
- package/model/mainFilter.ts +0 -43
- package/model/mainGenerator.ts +0 -79
- package/model/mainGetContactRewardsPayload.ts +0 -99
- package/model/mainIdentifiersPayload.ts +0 -43
- package/model/mainLimit.ts +0 -97
- package/model/mainModelContactReward.ts +0 -115
- package/model/mainModelContactRewardsResp.ts +0 -71
- package/model/mainNodeResponse.ts +0 -97
- package/model/mainOrderPayload.ts +0 -136
- package/model/mainProduct.ts +0 -61
- package/model/mainProductPayload.ts +0 -70
- package/model/mainRedeem.ts +0 -151
- package/model/mainResultParameterResponse.ts +0 -44
- package/model/mainReward.ts +0 -397
- package/model/mainRewardAttribution.ts +0 -124
- package/model/mainRewardConfigurations.ts +0 -52
- package/model/mainRewardPage.ts +0 -44
- package/model/mainRewardPageObj.ts +0 -106
- package/model/mainRewardValidate.ts +0 -34
- package/model/mainRule.ts +0 -145
- package/model/mainRuleConditionResponse.ts +0 -71
- package/model/mainRuleEventResponse.ts +0 -43
- package/model/mainRuleResultResponse.ts +0 -53
- package/model/mainValidateRewardPayload.ts +0 -79
- package/model/mainValueResponse.ts +0 -98
- package/model/mainVoucherRevokePayload.ts +0 -34
- package/model/memberContact.ts +0 -52
- package/model/modelSubscriptionBalanceResp.ts +0 -32
- package/model/orderIdentifiers.ts +0 -64
- package/model/patchLoyaltyProgramPayload.ts +0 -52
- package/model/sendTransacSmsTag.ts +0 -37
- package/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.ts +0 -46
- package/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.ts +0 -46
- package/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.ts +0 -46
- package/model/subAccountsUpdatePlanRequest.ts +0 -51
- package/model/subAccountsUpdatePlanRequestCredits.ts +0 -73
- package/model/subAccountsUpdatePlanRequestFeatures.ts +0 -55
- package/model/subscription.ts +0 -88
- package/model/subscriptionAggregateBalance.ts +0 -43
- package/model/subscriptionAttributedReward.ts +0 -106
- package/model/subscriptionBalances.ts +0 -53
- package/model/subscriptionHandlerInfo.ts +0 -65
- package/model/subscriptionMember.ts +0 -70
- package/model/subscriptionTier.ts +0 -88
- package/model/templatePreview.ts +0 -76
- package/model/tier.ts +0 -102
- package/model/tierAccessConditionsInner.ts +0 -55
- package/model/tierForContact.ts +0 -82
- package/model/tierGroup.ts +0 -109
- package/model/tierGroupPage.ts +0 -32
- package/model/tierRequest.ts +0 -57
- package/model/tierRequestAccessConditionsInner.ts +0 -43
- package/model/tierRequestPutPayload.ts +0 -57
- package/model/tierRequestTierRewardsInner.ts +0 -34
- package/model/tierTierRewardsInner.ts +0 -46
- package/model/transaction.ts +0 -163
- package/model/transactionHistory.ts +0 -118
- package/model/transactionHistoryResp.ts +0 -74
- package/model/unauthorizedResponse.ts +0 -34
- package/model/updateBalanceDefinitionPayload.ts +0 -218
- package/model/updateBalanceLimitPayload.ts +0 -98
- package/model/updateEmailCampaignEmailExpirationDate.ts +0 -53
- package/model/updateLoyaltyProgramPayload.ts +0 -52
- package/model/updateTierGroupRequest.ts +0 -73
|
@@ -1,43 +0,0 @@
|
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
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 SubscriptionAggregateBalance {
|
|
16
|
-
/**
|
|
17
|
-
* Unique identifier for the balance definition).
|
|
18
|
-
*/
|
|
19
|
-
'balanceDefinitionId'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The amount of the balance.
|
|
22
|
-
*/
|
|
23
|
-
'value'?: number;
|
|
24
|
-
|
|
25
|
-
static discriminator: string | undefined = undefined;
|
|
26
|
-
|
|
27
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
28
|
-
{
|
|
29
|
-
"name": "balanceDefinitionId",
|
|
30
|
-
"baseName": "balanceDefinitionId",
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "value",
|
|
35
|
-
"baseName": "value",
|
|
36
|
-
"type": "number"
|
|
37
|
-
} ];
|
|
38
|
-
|
|
39
|
-
static getAttributeTypeMap() {
|
|
40
|
-
return SubscriptionAggregateBalance.attributeTypeMap;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
@@ -1,106 +0,0 @@
|
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
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 SubscriptionAttributedReward {
|
|
16
|
-
/**
|
|
17
|
-
* Reward code assigned to the contact.
|
|
18
|
-
*/
|
|
19
|
-
'code'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Unique identifier of the contact.
|
|
22
|
-
*/
|
|
23
|
-
'contactId'?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Timestamp when the reward was created.
|
|
26
|
-
*/
|
|
27
|
-
'createdAt'?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Expiration date of the reward.
|
|
30
|
-
*/
|
|
31
|
-
'expirationDate'?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Unique identifier of the reward.
|
|
34
|
-
*/
|
|
35
|
-
'id'?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Unique identifier of the loyalty program.
|
|
38
|
-
*/
|
|
39
|
-
'loyaltyProgramId'?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Additional metadata related to the reward.
|
|
42
|
-
*/
|
|
43
|
-
'meta'?: { [key: string]: object; };
|
|
44
|
-
/**
|
|
45
|
-
* Unique identifier of the reward definition.
|
|
46
|
-
*/
|
|
47
|
-
'rewardId'?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Timestamp when the reward was last updated.
|
|
50
|
-
*/
|
|
51
|
-
'updatedAt'?: string;
|
|
52
|
-
|
|
53
|
-
static discriminator: string | undefined = undefined;
|
|
54
|
-
|
|
55
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
56
|
-
{
|
|
57
|
-
"name": "code",
|
|
58
|
-
"baseName": "code",
|
|
59
|
-
"type": "string"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "contactId",
|
|
63
|
-
"baseName": "contactId",
|
|
64
|
-
"type": "number"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "createdAt",
|
|
68
|
-
"baseName": "createdAt",
|
|
69
|
-
"type": "string"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"name": "expirationDate",
|
|
73
|
-
"baseName": "expirationDate",
|
|
74
|
-
"type": "string"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"name": "id",
|
|
78
|
-
"baseName": "id",
|
|
79
|
-
"type": "string"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "loyaltyProgramId",
|
|
83
|
-
"baseName": "loyaltyProgramId",
|
|
84
|
-
"type": "string"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"name": "meta",
|
|
88
|
-
"baseName": "meta",
|
|
89
|
-
"type": "{ [key: string]: object; }"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "rewardId",
|
|
93
|
-
"baseName": "rewardId",
|
|
94
|
-
"type": "string"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"name": "updatedAt",
|
|
98
|
-
"baseName": "updatedAt",
|
|
99
|
-
"type": "string"
|
|
100
|
-
} ];
|
|
101
|
-
|
|
102
|
-
static getAttributeTypeMap() {
|
|
103
|
-
return SubscriptionAttributedReward.attributeTypeMap;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
@@ -1,53 +0,0 @@
|
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
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 { SubscriptionAggregateBalance } from './subscriptionAggregateBalance';
|
|
15
|
-
|
|
16
|
-
export class SubscriptionBalances {
|
|
17
|
-
/**
|
|
18
|
-
* List of balance details associated with the contact.
|
|
19
|
-
*/
|
|
20
|
-
'balances'?: Array<SubscriptionAggregateBalance>;
|
|
21
|
-
/**
|
|
22
|
-
* Unique identifier of the contact.
|
|
23
|
-
*/
|
|
24
|
-
'contactId'?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Unique identifier of the loyalty program.
|
|
27
|
-
*/
|
|
28
|
-
'loyaltyProgramId'?: string;
|
|
29
|
-
|
|
30
|
-
static discriminator: string | undefined = undefined;
|
|
31
|
-
|
|
32
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
33
|
-
{
|
|
34
|
-
"name": "balances",
|
|
35
|
-
"baseName": "balances",
|
|
36
|
-
"type": "Array<SubscriptionAggregateBalance>"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "contactId",
|
|
40
|
-
"baseName": "contactId",
|
|
41
|
-
"type": "number"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "loyaltyProgramId",
|
|
45
|
-
"baseName": "loyaltyProgramId",
|
|
46
|
-
"type": "string"
|
|
47
|
-
} ];
|
|
48
|
-
|
|
49
|
-
static getAttributeTypeMap() {
|
|
50
|
-
return SubscriptionBalances.attributeTypeMap;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
@@ -1,65 +0,0 @@
|
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
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 { MemberContact } from './memberContact';
|
|
15
|
-
import { SubscriptionAttributedReward } from './subscriptionAttributedReward';
|
|
16
|
-
import { SubscriptionBalances } from './subscriptionBalances';
|
|
17
|
-
import { SubscriptionTier } from './subscriptionTier';
|
|
18
|
-
|
|
19
|
-
export class SubscriptionHandlerInfo {
|
|
20
|
-
/**
|
|
21
|
-
* Balance details for the subscription.
|
|
22
|
-
*/
|
|
23
|
-
'balance'?: SubscriptionBalances;
|
|
24
|
-
/**
|
|
25
|
-
* List of members associated with the subscription.
|
|
26
|
-
*/
|
|
27
|
-
'members'?: Array<MemberContact>;
|
|
28
|
-
/**
|
|
29
|
-
* List of rewards associated with the subscription.
|
|
30
|
-
*/
|
|
31
|
-
'reward'?: Array<SubscriptionAttributedReward>;
|
|
32
|
-
/**
|
|
33
|
-
* List of tier assignments for the subscription.
|
|
34
|
-
*/
|
|
35
|
-
'tier'?: Array<SubscriptionTier>;
|
|
36
|
-
|
|
37
|
-
static discriminator: string | undefined = undefined;
|
|
38
|
-
|
|
39
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
40
|
-
{
|
|
41
|
-
"name": "balance",
|
|
42
|
-
"baseName": "balance",
|
|
43
|
-
"type": "SubscriptionBalances"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "members",
|
|
47
|
-
"baseName": "members",
|
|
48
|
-
"type": "Array<MemberContact>"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "reward",
|
|
52
|
-
"baseName": "reward",
|
|
53
|
-
"type": "Array<SubscriptionAttributedReward>"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "tier",
|
|
57
|
-
"baseName": "tier",
|
|
58
|
-
"type": "Array<SubscriptionTier>"
|
|
59
|
-
} ];
|
|
60
|
-
|
|
61
|
-
static getAttributeTypeMap() {
|
|
62
|
-
return SubscriptionHandlerInfo.attributeTypeMap;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
@@ -1,70 +0,0 @@
|
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
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 SubscriptionMember {
|
|
16
|
-
/**
|
|
17
|
-
* Timestamp when the subscription member was created.
|
|
18
|
-
*/
|
|
19
|
-
'createdAt'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* List of unique member contact IDs.
|
|
22
|
-
*/
|
|
23
|
-
'memberContactIds'?: Array<number>;
|
|
24
|
-
/**
|
|
25
|
-
* Unique identifier of the organization.
|
|
26
|
-
*/
|
|
27
|
-
'organizationId'?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Unique identifier of the subscription owner.
|
|
30
|
-
*/
|
|
31
|
-
'ownerContactId'?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Timestamp when the subscription member was last updated.
|
|
34
|
-
*/
|
|
35
|
-
'updatedAt'?: string;
|
|
36
|
-
|
|
37
|
-
static discriminator: string | undefined = undefined;
|
|
38
|
-
|
|
39
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
40
|
-
{
|
|
41
|
-
"name": "createdAt",
|
|
42
|
-
"baseName": "createdAt",
|
|
43
|
-
"type": "string"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "memberContactIds",
|
|
47
|
-
"baseName": "memberContactIds",
|
|
48
|
-
"type": "Array<number>"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "organizationId",
|
|
52
|
-
"baseName": "organizationId",
|
|
53
|
-
"type": "number"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "ownerContactId",
|
|
57
|
-
"baseName": "ownerContactId",
|
|
58
|
-
"type": "number"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "updatedAt",
|
|
62
|
-
"baseName": "updatedAt",
|
|
63
|
-
"type": "string"
|
|
64
|
-
} ];
|
|
65
|
-
|
|
66
|
-
static getAttributeTypeMap() {
|
|
67
|
-
return SubscriptionMember.attributeTypeMap;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
@@ -1,88 +0,0 @@
|
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
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 SubscriptionTier {
|
|
16
|
-
/**
|
|
17
|
-
* Unique identifier of the contact.
|
|
18
|
-
*/
|
|
19
|
-
'contactId'?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Timestamp when the tier was assigned.
|
|
22
|
-
*/
|
|
23
|
-
'createdAt'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Unique identifier of the group associated with the tier.
|
|
26
|
-
*/
|
|
27
|
-
'groupId'?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Unique identifier of the loyalty program.
|
|
30
|
-
*/
|
|
31
|
-
'loyaltyProgramId'?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Additional metadata related to the tier.
|
|
34
|
-
*/
|
|
35
|
-
'meta'?: { [key: string]: object; };
|
|
36
|
-
/**
|
|
37
|
-
* Unique identifier of the tier.
|
|
38
|
-
*/
|
|
39
|
-
'tierId'?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Timestamp when the tier was last updated
|
|
42
|
-
*/
|
|
43
|
-
'updatedAt'?: string;
|
|
44
|
-
|
|
45
|
-
static discriminator: string | undefined = undefined;
|
|
46
|
-
|
|
47
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
48
|
-
{
|
|
49
|
-
"name": "contactId",
|
|
50
|
-
"baseName": "contactId",
|
|
51
|
-
"type": "number"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "createdAt",
|
|
55
|
-
"baseName": "createdAt",
|
|
56
|
-
"type": "string"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "groupId",
|
|
60
|
-
"baseName": "groupId",
|
|
61
|
-
"type": "string"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "loyaltyProgramId",
|
|
65
|
-
"baseName": "loyaltyProgramId",
|
|
66
|
-
"type": "string"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "meta",
|
|
70
|
-
"baseName": "meta",
|
|
71
|
-
"type": "{ [key: string]: object; }"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "tierId",
|
|
75
|
-
"baseName": "tierId",
|
|
76
|
-
"type": "string"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "updatedAt",
|
|
80
|
-
"baseName": "updatedAt",
|
|
81
|
-
"type": "string"
|
|
82
|
-
} ];
|
|
83
|
-
|
|
84
|
-
static getAttributeTypeMap() {
|
|
85
|
-
return SubscriptionTier.attributeTypeMap;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
package/model/templatePreview.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
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 TemplatePreview {
|
|
16
|
-
/**
|
|
17
|
-
* Sender email address
|
|
18
|
-
*/
|
|
19
|
-
'fromEmail'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Sender name
|
|
22
|
-
*/
|
|
23
|
-
'fromName'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Html content of the template
|
|
26
|
-
*/
|
|
27
|
-
'html'?: string;
|
|
28
|
-
/**
|
|
29
|
-
* subject of the template
|
|
30
|
-
*/
|
|
31
|
-
'subject'?: string;
|
|
32
|
-
'usedFeedNames'?: Array<string>;
|
|
33
|
-
/**
|
|
34
|
-
* Preview text of the template
|
|
35
|
-
*/
|
|
36
|
-
'previewText'?: string;
|
|
37
|
-
|
|
38
|
-
static discriminator: string | undefined = undefined;
|
|
39
|
-
|
|
40
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
41
|
-
{
|
|
42
|
-
"name": "fromEmail",
|
|
43
|
-
"baseName": "fromEmail",
|
|
44
|
-
"type": "string"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "fromName",
|
|
48
|
-
"baseName": "fromName",
|
|
49
|
-
"type": "string"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "html",
|
|
53
|
-
"baseName": "html",
|
|
54
|
-
"type": "string"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "subject",
|
|
58
|
-
"baseName": "subject",
|
|
59
|
-
"type": "string"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "usedFeedNames",
|
|
63
|
-
"baseName": "usedFeedNames",
|
|
64
|
-
"type": "Array<string>"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "previewText",
|
|
68
|
-
"baseName": "previewText",
|
|
69
|
-
"type": "string"
|
|
70
|
-
} ];
|
|
71
|
-
|
|
72
|
-
static getAttributeTypeMap() {
|
|
73
|
-
return TemplatePreview.attributeTypeMap;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
package/model/tier.ts
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
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 { TierAccessConditionsInner } from './tierAccessConditionsInner';
|
|
15
|
-
import { TierTierRewardsInner } from './tierTierRewardsInner';
|
|
16
|
-
|
|
17
|
-
export class Tier {
|
|
18
|
-
/**
|
|
19
|
-
* Tier id
|
|
20
|
-
*/
|
|
21
|
-
'tierId'?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Tier name
|
|
24
|
-
*/
|
|
25
|
-
'name'?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Tier image reference
|
|
28
|
-
*/
|
|
29
|
-
'imageRef'?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Associated loyalty program Id
|
|
32
|
-
*/
|
|
33
|
-
'loyaltyProgramId'?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Associated group Id
|
|
36
|
-
*/
|
|
37
|
-
'groupId'?: string;
|
|
38
|
-
'createdAt'?: Date;
|
|
39
|
-
'updatedAt'?: Date;
|
|
40
|
-
/**
|
|
41
|
-
* Conditions required to access this tier
|
|
42
|
-
*/
|
|
43
|
-
'accessConditions'?: Array<TierAccessConditionsInner>;
|
|
44
|
-
/**
|
|
45
|
-
* Rewards associated with this tier
|
|
46
|
-
*/
|
|
47
|
-
'tierRewards'?: Array<TierTierRewardsInner>;
|
|
48
|
-
|
|
49
|
-
static discriminator: string | undefined = undefined;
|
|
50
|
-
|
|
51
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
52
|
-
{
|
|
53
|
-
"name": "tierId",
|
|
54
|
-
"baseName": "tierId",
|
|
55
|
-
"type": "string"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "name",
|
|
59
|
-
"baseName": "name",
|
|
60
|
-
"type": "string"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "imageRef",
|
|
64
|
-
"baseName": "imageRef",
|
|
65
|
-
"type": "string"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"name": "loyaltyProgramId",
|
|
69
|
-
"baseName": "loyaltyProgramId",
|
|
70
|
-
"type": "string"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "groupId",
|
|
74
|
-
"baseName": "groupId",
|
|
75
|
-
"type": "string"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "createdAt",
|
|
79
|
-
"baseName": "createdAt",
|
|
80
|
-
"type": "Date"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "updatedAt",
|
|
84
|
-
"baseName": "updatedAt",
|
|
85
|
-
"type": "Date"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"name": "accessConditions",
|
|
89
|
-
"baseName": "accessConditions",
|
|
90
|
-
"type": "Array<TierAccessConditionsInner>"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "tierRewards",
|
|
94
|
-
"baseName": "tierRewards",
|
|
95
|
-
"type": "Array<TierTierRewardsInner>"
|
|
96
|
-
} ];
|
|
97
|
-
|
|
98
|
-
static getAttributeTypeMap() {
|
|
99
|
-
return Tier.attributeTypeMap;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
@@ -1,55 +0,0 @@
|
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
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 TierAccessConditionsInner {
|
|
16
|
-
/**
|
|
17
|
-
* Balance definition identifier
|
|
18
|
-
*/
|
|
19
|
-
'balanceDefinitionId'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Minimum value required to access this tier
|
|
22
|
-
*/
|
|
23
|
-
'minimumValue'?: number;
|
|
24
|
-
'createdAt'?: Date;
|
|
25
|
-
'updatedAt'?: Date;
|
|
26
|
-
|
|
27
|
-
static discriminator: string | undefined = undefined;
|
|
28
|
-
|
|
29
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
30
|
-
{
|
|
31
|
-
"name": "balanceDefinitionId",
|
|
32
|
-
"baseName": "balanceDefinitionId",
|
|
33
|
-
"type": "string"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "minimumValue",
|
|
37
|
-
"baseName": "minimumValue",
|
|
38
|
-
"type": "number"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "createdAt",
|
|
42
|
-
"baseName": "createdAt",
|
|
43
|
-
"type": "Date"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "updatedAt",
|
|
47
|
-
"baseName": "updatedAt",
|
|
48
|
-
"type": "Date"
|
|
49
|
-
} ];
|
|
50
|
-
|
|
51
|
-
static getAttributeTypeMap() {
|
|
52
|
-
return TierAccessConditionsInner.attributeTypeMap;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|