Skip to content

Commit 64d3c95

Browse files
authored
Merge pull request #16 from NarrativeScience/mixpanel-optional
Mixpanel properties can be optional
2 parents cf8e219 + 165eb66 commit 64d3c95

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+84
-140
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ https://www.stitchdata.com/docs/developers/stitch-connect/api
66

77
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
88

9-
- API version: 0.3
10-
- Package version: 0.4.0
9+
- API version: 0.4.1
10+
- Package version: 0.4.1
1111
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1212

1313
Table of Contents:
@@ -150,6 +150,6 @@ npx openapi-generator generate \
150150
--package-name stitch_connect_client \
151151
--git-user-id NarrativeScience \
152152
--git-repo-id stitch-connect-python \
153-
-p packageVersion=0.4.0 \
153+
-p packageVersion=0.4.1 \
154154
-t templates
155155
```

docs/MixpanelSourceFormProperties.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Mixpanel connections read data from the Mixpanel API and correspond to source `t
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**anchor_time** | **str** | Defines the time that frequency_in_minutes is \"anchored\" to, which Stitch will use to create the integration's replication schedule. In Stitch, this is referred to as Anchor Scheduling. This field must contain an ISO 8601-compliant date. Note: When Stitch stores this value, it will be in UTC. You should provide this value in UTC to ensure the desired anchor time is retained. For example: You want to create a schedule that is anchored to 1:00PM EST and runs every 6 hours (360 minutes). To do this, you can set anchor_time to something like 2018-04-30T17:00:00Z and frequency_in_minutes to 360. This means jobs would run at 23:00:00, 05:00:00, 11:00:00, and so on. | [optional]
8-
**api_secret** | **str** | The API secret of your project in your Mixpanel account. Refer to the Mixpanel documentation for instructions on obtaining this information. |
9-
**attribution_window** | **str** | Defines the number, in days, Stitch should use as an attribution window. To ensure your Mixpanel and Stitch settings align, we recommend using the same attribution window in Stitch that you use in Mixpanel. Mixpanel's default attribution window is five days (5). Refer to the Mixpanel documentation for more information about attribution windows for this integration. |
8+
**api_secret** | **str** | The API secret of your project in your Mixpanel account. Refer to the Mixpanel documentation for instructions on obtaining this information. | [optional]
9+
**attribution_window** | **str** | Defines the number, in days, Stitch should use as an attribution window. To ensure your Mixpanel and Stitch settings align, we recommend using the same attribution window in Stitch that you use in Mixpanel. Mixpanel's default attribution window is five days (5). Refer to the Mixpanel documentation for more information about attribution windows for this integration. | [optional]
1010
**cron_expression** | **str** | Note: Advanced Scheduling using Cron is not yet supported for this source. A value may be submitted for this property if the account is on an Enterprise plan, but Stitch will not use the expression submitted. A valid Quartz cron expression representing the replication schedule for the integration. Refer to the Advanced Scheduling documentation for more info. Note: If neither a cron_expression or frequency_in_minutes property is provided, Stitch will use the source's default frequency_in_minutes value (60). | [optional]
11-
**date_window_size** | **str** | Defines the number, in days, for a date looping window for the export, funnel, and revenue tables. Date looping will return records whose from_date and to_date fall between the number of days in the defined window size. Note: If your project has large volumes of events, you may want to set the number of days to 14, 7, or even to 1 or 2 days. |
11+
**date_window_size** | **str** | Defines the number, in days, for a date looping window for the export, funnel, and revenue tables. Date looping will return records whose from_date and to_date fall between the number of days in the defined window size. Note: If your project has large volumes of events, you may want to set the number of days to 14, 7, or even to 1 or 2 days. | [optional]
1212
**frequency_in_minutes** | **str** | Defines how often, in minutes, Stitch should attempt to replicate data from Google Analytics. Accepted values are: - 30 - 60 - 360 - 720 - 1440 | [optional]
13-
**project_timezone** | **str** | The timezone in which your date-time fields are stored for your project. You can find your project timezone in the project settings in the Mixpanel console |
13+
**project_timezone** | **str** | The timezone in which your date-time fields are stored for your project. You can find your project timezone in the project settings in the Mixpanel console | [optional]
1414
**select_properties_by_default** | **str** | A configuration parameter - the only accepted values are true and false. When set to true, this parameter captures new properties in the events and engage tables' records. If set to false, new properties will be ignored. | [optional]
15-
**start_date** | **str** | The date from which Stitch should begin replicating data from Salesforce. Data from this date forward will be replicated. This field must contain an ISO 8601-compliant date, and the timestamp must be midnight. For example: 2018-01-01T00:00:00Z |
15+
**start_date** | **str** | The date from which Stitch should begin replicating data from Salesforce. Data from this date forward will be replicated. This field must contain an ISO 8601-compliant date, and the timestamp must be midnight. For example: 2018-01-01T00:00:00Z | [optional]
1616

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

docs/SourceFormProperties.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ Name | Type | Description | Notes
1616
**quota_percent_total** | **str** | The maximum percentage of Salesforce API quota allowed per day. | [optional]
1717
**refresh_token** | **str** | The OAuth 2.0 refresh token used to access the Google API. | [optional]
1818
**select_fields_by_default** | **str** | If `true`, Stitch will automatically set new fields added in Salesforce to replicate. | [optional]
19-
**start_date** | **str** | The date from which Stitch should begin replicating data from Salesforce. Data from this date forward will be replicated. This field must contain an ISO 8601-compliant date, and the timestamp must be midnight. For example: 2018-01-01T00:00:00Z |
19+
**start_date** | **str** | The date from which Stitch should begin replicating data from Salesforce. Data from this date forward will be replicated. This field must contain an ISO 8601-compliant date, and the timestamp must be midnight. For example: 2018-01-01T00:00:00Z | [optional]
2020
**quota_user** | **str** | Note: This is a read-only property and will be returned when the Google Analytics object is successfully created. Including it in POST or PUT requests will result in InvalidProperties errors. | [optional]
2121
**report_definitions** | [**list[GoogleAnalyticsSourceFormPropertiesReportDefinitions]**](GoogleAnalyticsSourceFormPropertiesReportDefinitions.md) | An array of objects, each object pertaining to a custom report you want to create. Note: Metrics and dimensions for each report can be selected when the source proceeds to the field_selection step. | [optional]
22-
**api_secret** | **str** | The API secret of your project in your Mixpanel account. Refer to the Mixpanel documentation for instructions on obtaining this information. |
23-
**attribution_window** | **str** | Defines the number, in days, Stitch should use as an attribution window. To ensure your Mixpanel and Stitch settings align, we recommend using the same attribution window in Stitch that you use in Mixpanel. Mixpanel's default attribution window is five days (5). Refer to the Mixpanel documentation for more information about attribution windows for this integration. |
24-
**date_window_size** | **str** | Defines the number, in days, for a date looping window for the export, funnel, and revenue tables. Date looping will return records whose from_date and to_date fall between the number of days in the defined window size. Note: If your project has large volumes of events, you may want to set the number of days to 14, 7, or even to 1 or 2 days. |
25-
**project_timezone** | **str** | The timezone in which your date-time fields are stored for your project. You can find your project timezone in the project settings in the Mixpanel console |
22+
**api_secret** | **str** | The API secret of your project in your Mixpanel account. Refer to the Mixpanel documentation for instructions on obtaining this information. | [optional]
23+
**attribution_window** | **str** | Defines the number, in days, Stitch should use as an attribution window. To ensure your Mixpanel and Stitch settings align, we recommend using the same attribution window in Stitch that you use in Mixpanel. Mixpanel's default attribution window is five days (5). Refer to the Mixpanel documentation for more information about attribution windows for this integration. | [optional]
24+
**date_window_size** | **str** | Defines the number, in days, for a date looping window for the export, funnel, and revenue tables. Date looping will return records whose from_date and to_date fall between the number of days in the defined window size. Note: If your project has large volumes of events, you may want to set the number of days to 14, 7, or even to 1 or 2 days. | [optional]
25+
**project_timezone** | **str** | The timezone in which your date-time fields are stored for your project. You can find your project timezone in the project settings in the Mixpanel console | [optional]
2626
**select_properties_by_default** | **str** | A configuration parameter - the only accepted values are true and false. When set to true, this parameter captures new properties in the events and engage tables' records. If set to false, new properties will be ignored. | [optional]
2727

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

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
66
https://www.stitchdata.com/docs/developers/stitch-connect/api # noqa: E501
77
8-
The version of the OpenAPI document: 0.3
8+
The version of the OpenAPI document: 0.4.1
99
Generated by: https://openapi-generator.tech
1010
"""
1111

1212

1313
from setuptools import find_packages, setup # noqa: H301
1414

1515
NAME = "stitch-connect-client"
16-
VERSION = "0.4.0"
16+
VERSION = "0.4.1"
1717
# To install the library, run the following
1818
#
1919
# python setup.py install

stitch_connect_client/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
https://www.stitchdata.com/docs/developers/stitch-connect/api # noqa: E501
99
10-
The version of the OpenAPI document: 0.3
10+
The version of the OpenAPI document: 0.4.1
1111
Generated by: https://openapi-generator.tech
1212
"""
1313

@@ -88,4 +88,4 @@
8888
from stitch_connect_client.models.streams_update_list import StreamsUpdateList
8989
from stitch_connect_client.models.update_source_body import UpdateSourceBody
9090

91-
__version__ = "0.4.0"
91+
__version__ = "0.4.1"

stitch_connect_client/api/destinations_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
https://www.stitchdata.com/docs/developers/stitch-connect/api # noqa: E501
77
8-
The version of the OpenAPI document: 0.3
8+
The version of the OpenAPI document: 0.4.1
99
Generated by: https://openapi-generator.tech
1010
"""
1111

stitch_connect_client/api/sources_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
https://www.stitchdata.com/docs/developers/stitch-connect/api # noqa: E501
77
8-
The version of the OpenAPI document: 0.3
8+
The version of the OpenAPI document: 0.4.1
99
Generated by: https://openapi-generator.tech
1010
"""
1111

stitch_connect_client/api/streams_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
https://www.stitchdata.com/docs/developers/stitch-connect/api # noqa: E501
77
8-
The version of the OpenAPI document: 0.3
8+
The version of the OpenAPI document: 0.4.1
99
Generated by: https://openapi-generator.tech
1010
"""
1111

stitch_connect_client/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
https://www.stitchdata.com/docs/developers/stitch-connect/api # noqa: E501
66
7-
The version of the OpenAPI document: 0.3
7+
The version of the OpenAPI document: 0.4.1
88
Generated by: https://openapi-generator.tech
99
"""
1010

@@ -83,7 +83,7 @@ def __init__(
8383
self.default_headers[header_name] = header_value
8484
self.cookie = cookie
8585
# Set default User-Agent.
86-
self.user_agent = "OpenAPI-Generator/0.4.0/python"
86+
self.user_agent = "OpenAPI-Generator/0.4.1/python"
8787
self.client_side_validation = configuration.client_side_validation
8888

8989
def __del__(self):

stitch_connect_client/configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
https://www.stitchdata.com/docs/developers/stitch-connect/api # noqa: E501
77
8-
The version of the OpenAPI document: 0.3
8+
The version of the OpenAPI document: 0.4.1
99
Generated by: https://openapi-generator.tech
1010
"""
1111

@@ -264,8 +264,8 @@ def to_debug_report(self):
264264
"Python SDK Debug Report:\n"
265265
"OS: {env}\n"
266266
"Python Version: {pyversion}\n"
267-
"Version of the API: 0.3\n"
268-
"SDK Package Version: 0.4.0".format(env=sys.platform, pyversion=sys.version)
267+
"Version of the API: 0.4.1\n"
268+
"SDK Package Version: 0.4.1".format(env=sys.platform, pyversion=sys.version)
269269
)
270270

271271
def get_host_settings(self):

0 commit comments

Comments
 (0)