Skip to content

Commit

Permalink
CI-1357 Go wrapper update (#36)
Browse files Browse the repository at this point in the history
* Go wrapper update
Co-authored-by: raunakjain <raunak.jain@sendinblue.com>
  • Loading branch information
sahiltyagi-sib authored Jan 30, 2023
1 parent 564daca commit 7a06b58
Show file tree
Hide file tree
Showing 175 changed files with 7,506 additions and 1,983 deletions.
384 changes: 225 additions & 159 deletions README.md

Large diffs are not rendered by default.

2,935 changes: 2,446 additions & 489 deletions api/swagger.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/AbTestCampaignResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Name | Type | Description | Notes
**OpenRate** | **string** | Open rate for current winning version | [optional] [default to null]
**ClickRate** | **string** | Click rate for current winning version | [optional] [default to null]
**WinningVersionRate** | **string** | Open/Click rate for the winner version | [optional] [default to null]
**Statistics** | [***AbTestCampaignResultStatistics**](AbTestCampaignResultStatistics.md) | | [optional] [default to null]
**ClickedLinks** | [***AbTestCampaignResultClickedLinks**](AbTestCampaignResultClickedLinks.md) | | [optional] [default to null]
**Statistics** | [***AbTestCampaignResultStatistics**](ABTestCampaignResultStatistics.md) | | [optional] [default to null]
**ClickedLinks** | [***AbTestCampaignResultClickedLinks**](ABTestCampaignResultClickedLinks.md) | | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
4 changes: 2 additions & 2 deletions docs/AbTestCampaignResultClickedLinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VersionA** | [***AbTestVersionClicks**](AbTestVersionClicks.md) | | [default to null]
**VersionB** | [***AbTestVersionClicks**](AbTestVersionClicks.md) | | [default to null]
**VersionA** | [***AbTestVersionClicks**](ABTestVersionClicks.md) | | [default to null]
**VersionB** | [***AbTestVersionClicks**](ABTestVersionClicks.md) | | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 0 additions & 1 deletion docs/AttributesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,3 @@ Name | Type | Description | Notes
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

5 changes: 3 additions & 2 deletions docs/Body.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | Name of deal | [default to null]
**Attributes** | [**map[string]interface{}**](interface{}.md) | Attributes fo\\r deal creation | [optional] [default to null]
**Name** | **string** | Name of company | [default to null]
**Attributes** | [***interface{}**](interface{}.md) | Attributes for company creation | [optional] [default to null]
**CountryCode** | **int64** | Country code if phone_number is passed in attributes. | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
5 changes: 3 additions & 2 deletions docs/Body1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | Name of deal | [optional] [default to null]
**Attributes** | [**map[string]interface{}**](interface{}.md) | Attributes for deal update | [optional] [default to null]
**Name** | **string** | Name of company | [optional] [default to null]
**Attributes** | [***interface{}**](interface{}.md) | Attributes for company update | [optional] [default to null]
**CountryCode** | **int64** | Country code if phone_number is passed in attributes. | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
13 changes: 13 additions & 0 deletions docs/Body10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Body10

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VisitorId** | **string** | visitor’s ID received &lt;a href&#x3D;\&quot;https://developers.sendinblue.com/docs/conversations-webhooks\&quot;&gt;from a webhook&lt;/a&gt; or generated by you to &lt;a href&#x3D;\&quot;https://developers.sendinblue.com/docs/customize-the-widget#identifying-existing-users\&quot;&gt;bind existing user account to Conversations&lt;/a&gt; | [default to null]
**Text** | **string** | message text | [default to null]
**AgentId** | **string** | agent ID. It can be found on agent’s page or received &lt;a href&#x3D;\&quot;https://developers.sendinblue.com/docs/conversations-webhooks\&quot;&gt;from a webhook&lt;/a&gt;. Optional if &#x60;groupId&#x60; is set. | [optional] [default to null]
**GroupId** | **string** | group ID. It can be found on group’s page. Optional if &#x60;agentId&#x60; is set. | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


10 changes: 10 additions & 0 deletions docs/Body11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Body11

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Text** | **string** | edited message text | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


13 changes: 13 additions & 0 deletions docs/Body12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Body12

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AgentId** | **string** | agent ID. It can be found on agent’s page or received &lt;a href&#x3D;\&quot;https://developers.sendinblue.com/docs/conversations-webhooks\&quot;&gt;from a webhook&lt;/a&gt;. Alternatively, you can use &#x60;agentEmail&#x60; + &#x60;agentName&#x60; + &#x60;receivedFrom&#x60; instead (all 3 fields required). | [optional] [default to null]
**ReceivedFrom** | **string** | mark your messages to distinguish messages created by you from the others. | [optional] [default to null]
**AgentEmail** | **string** | agent email. When sending online pings from a standalone system, it’s hard to maintain a 1-to-1 relationship between the users of both systems. In this case, an agent can be specified by their email address. If there’s no agent with the specified email address in your Sendinblue organization, a dummy agent will be created automatically. | [optional] [default to null]
**AgentName** | **string** | agent name. | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


6 changes: 4 additions & 2 deletions docs/Body2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | Name of company | [default to null]
**Attributes** | [**map[string]interface{}**](interface{}.md) | Attributes for company creation | [optional] [default to null]
**LinkContactIds** | **[]int64** | Contact ids for contacts to be linked with company | [optional] [default to null]
**UnlinkContactIds** | **[]int64** | Contact ids for contacts to be unlinked from company | [optional] [default to null]
**LinkDealsIds** | **[]string** | Deals ids for deals to be linked with company | [optional] [default to null]
**UnlinkDealsIds** | **[]string** | Deals ids for deals to be unlinked from company | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
4 changes: 2 additions & 2 deletions docs/Body3.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | Name of company | [optional] [default to null]
**Attributes** | [**map[string]interface{}**](interface{}.md) | Attributes for company update | [optional] [default to null]
**Name** | **string** | Name of deal | [default to null]
**Attributes** | [***interface{}**](interface{}.md) | Attributes fo\\r deal creation | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
6 changes: 2 additions & 4 deletions docs/Body4.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**LinkContactIds** | **[]int32** | Contact ids for contacts to be linked with company | [optional] [default to null]
**UnlinkContactIds** | **[]int32** | Contact ids for contacts to be unlinked from company | [optional] [default to null]
**LinkDealsIds** | **[]string** | Deals ids for deals to be linked with company | [optional] [default to null]
**UnlinkDealsIds** | **[]string** | Deals ids for deals to be unlinked from company | [optional] [default to null]
**Name** | **string** | Name of deal | [optional] [default to null]
**Attributes** | [***interface{}**](interface{}.md) | Attributes for deal update | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
15 changes: 4 additions & 11 deletions docs/Body5.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | Name of task | [default to null]
**Duration** | **int64** | Duration of task in milliseconds [1 minute &#x3D; 60000 ms] | [optional] [default to null]
**TaskTypeId** | **string** | Id for type of task e.g Call / Email / Meeting etc. | [default to null]
**Date** | [**time.Time**](time.Time.md) | Task due date and time | [default to null]
**Notes** | **string** | Notes added to a task | [optional] [default to null]
**Done** | **bool** | Task marked as done | [optional] [default to null]
**AssignToId** | **string** | User id to whom task is assigned | [optional] [default to null]
**ContactsIds** | **[]int32** | Contact ids for contacts linked to this task | [optional] [default to null]
**DealsIds** | **[]string** | Deal ids for deals a task is linked to | [optional] [default to null]
**CompaniesIds** | **[]string** | Companies ids for companies a task is linked to | [optional] [default to null]
**Reminder** | [***TaskReminder**](TaskReminder.md) | | [optional] [default to null]
**LinkContactIds** | **[]int64** | Contact ids for contacts to be linked with deal | [optional] [default to null]
**UnlinkContactIds** | **[]int64** | Contact ids for contacts to be unlinked from deal | [optional] [default to null]
**LinkCompanyIds** | **[]string** | Company ids to be linked with deal | [optional] [default to null]
**UnlinkCompanyIds** | **[]string** | Company ids to be unlinked from deal | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
9 changes: 5 additions & 4 deletions docs/Body6.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | Name of task | [optional] [default to null]
**Duration** | **int32** | Duration of task in milliseconds [1 minute &#x3D; 60000 ms] | [optional] [default to null]
**TaskTypeId** | **string** | Id for type of task e.g Call / Email / Meeting etc. | [optional] [default to null]
**Date** | [**time.Time**](time.Time.md) | Task date/time | [optional] [default to null]
**Name** | **string** | Name of task | [default to null]
**Duration** | **int64** | Duration of task in milliseconds [1 minute &#x3D; 60000 ms] | [optional] [default to null]
**TaskTypeId** | **string** | Id for type of task e.g Call / Email / Meeting etc. | [default to null]
**Date** | [**time.Time**](time.Time.md) | Task due date and time | [default to null]
**Notes** | **string** | Notes added to a task | [optional] [default to null]
**Done** | **bool** | Task marked as done | [optional] [default to null]
**AssignToId** | **string** | User id to whom task is assigned | [optional] [default to null]
**ContactsIds** | **[]int32** | Contact ids for contacts linked to this task | [optional] [default to null]
**DealsIds** | **[]string** | Deal ids for deals a task is linked to | [optional] [default to null]
**CompaniesIds** | **[]string** | Companies ids for companies a task is linked to | [optional] [default to null]
**Reminder** | [***TaskReminder**](TaskReminder.md) | | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
19 changes: 19 additions & 0 deletions docs/Body7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Body7

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | Name of task | [optional] [default to null]
**Duration** | **int32** | Duration of task in milliseconds [1 minute &#x3D; 60000 ms] | [optional] [default to null]
**TaskTypeId** | **string** | Id for type of task e.g Call / Email / Meeting etc. | [optional] [default to null]
**Date** | [**time.Time**](time.Time.md) | Task date/time | [optional] [default to null]
**Notes** | **string** | Notes added to a task | [optional] [default to null]
**Done** | **bool** | Task marked as done | [optional] [default to null]
**AssignToId** | **string** | User id to whom task is assigned | [optional] [default to null]
**ContactsIds** | **[]int32** | Contact ids for contacts linked to this task | [optional] [default to null]
**DealsIds** | **[]string** | Deal ids for deals a task is linked to | [optional] [default to null]
**CompaniesIds** | **[]string** | Companies ids for companies a task is linked to | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


15 changes: 15 additions & 0 deletions docs/Body8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Body8

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VisitorId** | **string** | visitor’s ID received &lt;a href&#x3D;\&quot;https://developers.sendinblue.com/docs/conversations-webhooks\&quot;&gt;from a webhook&lt;/a&gt; or generated by you to &lt;a href&#x3D;\&quot;https://developers.sendinblue.com/docs/customize-the-widget#identifying-existing-users\&quot;&gt;bind existing user account to Conversations&lt;/a&gt; | [default to null]
**Text** | **string** | message text | [default to null]
**AgentId** | **string** | agent ID. It can be found on agent’s page or received &lt;a href&#x3D;\&quot;https://developers.sendinblue.com/docs/conversations-webhooks\&quot;&gt;from a webhook&lt;/a&gt;. Alternatively, you can use &#x60;agentEmail&#x60; + &#x60;agentName&#x60; + &#x60;receivedFrom&#x60; instead (all 3 fields required). | [optional] [default to null]
**ReceivedFrom** | **string** | mark your messages to distinguish messages created by you from the others. | [optional] [default to null]
**AgentEmail** | **string** | agent email. When sending messages from a standalone system, it’s hard to maintain a 1-to-1 relationship between the users of both systems. In this case, an agent can be specified by their email address. | [optional] [default to null]
**AgentName** | **string** | agent name | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


10 changes: 10 additions & 0 deletions docs/Body9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Body9

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Text** | **string** | edited message text | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


1 change: 0 additions & 1 deletion docs/CRMApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,4 +332,3 @@ This endpoint does not need any parameter.
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

8 changes: 4 additions & 4 deletions docs/CompaniesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**id** | **string**| |
**body** | [**Body3**](Body3.md)| Updated company details. |
**body** | [**Body1**](Body1.md)| Updated company details. |

### Return type

Expand All @@ -163,7 +163,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**id** | **string**| |
**body** | [**Body4**](Body4.md)| Linked / Unlinked contacts and deals ids. |
**body** | [**Body2**](Body2.md)| Linked / Unlinked contacts and deals ids. |

### Return type

Expand All @@ -189,11 +189,11 @@ Create a company
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**body** | [**Body2**](Body2.md)| Company create data. |
**body** | [**Body**](Body.md)| Company create data. |

### Return type

[**InlineResponse200**](InlineResponse200.md)
[**InlineResponse200**](inline_response_200.md)

### Authorization

Expand Down
2 changes: 1 addition & 1 deletion docs/Company.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | Unique company id | [optional] [default to null]
**Attributes** | [**map[string]interface{}**](interface{}.md) | Company attributes with values | [optional] [default to null]
**Attributes** | [***interface{}**](interface{}.md) | Company attributes with values | [optional] [default to null]
**LinkedContactsIds** | **[]int32** | Contact ids for contacts linked to this company | [optional] [default to null]
**LinkedDealsIds** | **[]string** | Deals ids for companies linked to this company | [optional] [default to null]

Expand Down
Loading

0 comments on commit 7a06b58

Please sign in to comment.