omnata-plugin-runtime 0.8.3a204__tar.gz → 0.8.3a207__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/src/omnata_plugin_runtime/omnata_plugin.py +28 -17
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/LICENSE +0 -0
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/README.md +0 -0
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/src/omnata_plugin_runtime/configuration.py +0 -0
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/src/omnata_plugin_runtime/plugin_entrypoints.py +0 -0
- {omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/src/omnata_plugin_runtime/rate_limiting.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "omnata-plugin-runtime"
|
3
|
-
version = "0.8.3-
|
3
|
+
version = "0.8.3-a207"
|
4
4
|
description = "Classes and common runtime components for building and running Omnata Plugins"
|
5
5
|
authors = ["James Weakley <james.weakley@omnata.com>"]
|
6
6
|
readme = "README.md"
|
@@ -112,16 +112,14 @@ class PluginManifest(SubscriptableBaseModel):
|
|
112
112
|
docs_url: str
|
113
113
|
supports_inbound: bool
|
114
114
|
supported_outbound_strategies: List[OutboundSyncStrategy] = Field(
|
115
|
-
|
116
|
-
deprecated=True,
|
117
|
-
title="A list of sync strategies that the plugin can support. This has been replaced by OutboundTargetTypes."
|
115
|
+
title="A list of sync strategies that the plugin can support. If outbound_target_types are specified, theses strategies are allocated there. Otherwise, they apply globally"
|
118
116
|
)
|
119
117
|
supported_connectivity_options: List[ConnectivityOption] = Field(
|
120
118
|
default_factory=lambda: [ConnectivityOption.DIRECT]
|
121
119
|
)
|
122
|
-
outbound_target_types: List[OutboundTargetType] = Field(
|
123
|
-
|
124
|
-
title="
|
120
|
+
outbound_target_types: Optional[List[OutboundTargetType]] = Field(
|
121
|
+
default=None,
|
122
|
+
title="An optional list of target types that the plugin can support."
|
125
123
|
)
|
126
124
|
|
127
125
|
class OutboundTargetType(BaseModel):
|
@@ -136,20 +134,33 @@ class OutboundTargetType(BaseModel):
|
|
136
134
|
The target type cannot be changed after the sync is created.
|
137
135
|
"""
|
138
136
|
label: str
|
139
|
-
supported_strategies: List[
|
140
|
-
|
141
|
-
|
142
|
-
|
137
|
+
supported_strategies: List[str] = Field(
|
138
|
+
title="The names of the sync strategies supported by this target. Each one must match the name of a sync strategy declared in supported_outbound_strategies."
|
139
|
+
)
|
140
|
+
target_parameter: Optional[OutboundTargetParameter] = Field(
|
141
|
+
default=None,
|
142
|
+
title="""The sync configuration parameter that designates the target object, if applicable. For example, 'object_name' or 'channel_name'.
|
143
|
+
This will be used for two purposes:
|
144
|
+
1. To show a more readable indication of what this sync is doing in the UI, e.g. Standard object: Account
|
145
|
+
2. Designates this field as serving as a br toggle for testing in production.""")
|
146
|
+
|
147
|
+
class OutboundTargetParameter(BaseModel):
|
143
148
|
"""
|
144
149
|
Accomodates testing outbound syncs in production by nominating a form field who's value stays in the branch.
|
145
|
-
|
146
|
-
|
147
|
-
The field_name must match a field which will be returned by the outbound_configuration_form for this target type.
|
148
|
-
The reason this is set separately here instead of as a flag on the FormField, is so that the sync engine can know
|
149
|
-
whether or not location toggling is supported for a target type without calling the plugin.
|
150
|
+
The reason this information is set statically here instead of as a flag on the FormField, is so that the sync engine
|
151
|
+
can have this information readily available without calling the plugin.
|
150
152
|
"""
|
151
|
-
field_name: str = Field(
|
152
|
-
|
153
|
+
field_name: str = Field(title="""The name of the form field that toggles the location, e.g. 'channel','customer_list'.
|
154
|
+
This must match a field which will be returned by the outbound_configuration_form for this target type.""")
|
155
|
+
is_branching_toggle: bool = Field(title="""Whether or not this field is a target toggle for branching.
|
156
|
+
If true, the value of this field will be used to determine the location of the sync in production.
|
157
|
+
For example, a messaging plugin could have a "channel" field to route messages to an alternate location.
|
158
|
+
Or, a marketing platform could have an alternate customer list name which is connected to test campaigns that don't actually send.
|
159
|
+
|
160
|
+
This should only be used in situations where all other sync parameters and field mappings can remain consistent between branches.""")
|
161
|
+
label: str = Field(title="""Used in the UI when describing the location., e.g. 'Channel','Customer List'.
|
162
|
+
It should completely describe the behaviour when used in a sentence like this:
|
163
|
+
'Changes will be tested against a different <label> when running in a branch.'""")
|
153
164
|
|
154
165
|
class SnowflakeFunctionParameter(BaseModel):
|
155
166
|
"""
|
File without changes
|
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.8.3a204 → omnata_plugin_runtime-0.8.3a207}/src/omnata_plugin_runtime/api.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|