omnata-plugin-runtime 0.8.2a203__py3-none-any.whl → 0.8.3a207__py3-none-any.whl
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.
- omnata_plugin_runtime/configuration.py +1 -0
- omnata_plugin_runtime/omnata_plugin.py +46 -1
- {omnata_plugin_runtime-0.8.2a203.dist-info → omnata_plugin_runtime-0.8.3a207.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.8.2a203.dist-info → omnata_plugin_runtime-0.8.3a207.dist-info}/RECORD +6 -6
- {omnata_plugin_runtime-0.8.2a203.dist-info → omnata_plugin_runtime-0.8.3a207.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.8.2a203.dist-info → omnata_plugin_runtime-0.8.3a207.dist-info}/WHEEL +0 -0
@@ -704,6 +704,7 @@ class OutboundSyncConfigurationParameters(SyncConfigurationParameters):
|
|
704
704
|
"""
|
705
705
|
|
706
706
|
connection_method: str
|
707
|
+
target_type: Optional[str] = Field(default=None, description="The label of the OutboundTargetType selected by the user")
|
707
708
|
connection_parameters: Optional[Dict[str, StoredConfigurationValue]] = Field(default=None)
|
708
709
|
connection_secrets: Optional[Dict[str, StoredConfigurationValue]] = Field(default=None)
|
709
710
|
sync_parameters: Optional[Dict[str, StoredConfigurationValue]] = Field(default=None)
|
@@ -111,11 +111,56 @@ class PluginManifest(SubscriptableBaseModel):
|
|
111
111
|
developer_name: str
|
112
112
|
docs_url: str
|
113
113
|
supports_inbound: bool
|
114
|
-
supported_outbound_strategies: List[OutboundSyncStrategy]
|
114
|
+
supported_outbound_strategies: List[OutboundSyncStrategy] = Field(
|
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"
|
116
|
+
)
|
115
117
|
supported_connectivity_options: List[ConnectivityOption] = Field(
|
116
118
|
default_factory=lambda: [ConnectivityOption.DIRECT]
|
117
119
|
)
|
120
|
+
outbound_target_types: Optional[List[OutboundTargetType]] = Field(
|
121
|
+
default=None,
|
122
|
+
title="An optional list of target types that the plugin can support."
|
123
|
+
)
|
118
124
|
|
125
|
+
class OutboundTargetType(BaseModel):
|
126
|
+
"""
|
127
|
+
Some products have APIs that can be grouped together in ways that support different strategies and may or may not support toggling.
|
128
|
+
The label should answer the question: "What would you like to sync to?"
|
129
|
+
Examples:
|
130
|
+
- A CRM system may have "Standard objects", "Custom objects" or "Events"
|
131
|
+
- A messaging platform may have "Channels", "Users" or "Messages"
|
132
|
+
- A marketing platform may have "Customer lists", "Campaigns" or "Automations"
|
133
|
+
- An Ad platform may have "Campaigns", "Ad groups" or "Ads"
|
134
|
+
The target type cannot be changed after the sync is created.
|
135
|
+
"""
|
136
|
+
label: str
|
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):
|
148
|
+
"""
|
149
|
+
Accomodates testing outbound syncs in production by nominating a form field who's value stays in the branch.
|
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.
|
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.'""")
|
119
164
|
|
120
165
|
class SnowflakeFunctionParameter(BaseModel):
|
121
166
|
"""
|
{omnata_plugin_runtime-0.8.2a203.dist-info → omnata_plugin_runtime-0.8.3a207.dist-info}/RECORD
RENAMED
@@ -1,12 +1,12 @@
|
|
1
1
|
omnata_plugin_runtime/__init__.py,sha256=MS9d1whnfT_B3-ThqZ7l63QeC_8OEKTuaYV5wTwRpBA,1576
|
2
2
|
omnata_plugin_runtime/api.py,sha256=tVi4KLL0v5N3yz3Ie0kSyFemryu572gCbtSRfWN6wBU,6523
|
3
|
-
omnata_plugin_runtime/configuration.py,sha256=
|
3
|
+
omnata_plugin_runtime/configuration.py,sha256=g6A9sFHBBaCgZPjhTM4iYcyEoZDPjB1F24QMboLteyY,38505
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=ueodN2GIMS5N9fqebpY4uNGJnjEb9HcuaVQVfWH-cGg,19838
|
5
5
|
omnata_plugin_runtime/logging.py,sha256=WBuZt8lF9E5oFWM4KYQbE8dDJ_HctJ1pN3BHwU6rcd0,4461
|
6
|
-
omnata_plugin_runtime/omnata_plugin.py,sha256
|
6
|
+
omnata_plugin_runtime/omnata_plugin.py,sha256=WrttykPnWR5ckL2SHUbcU6yYpNb-_HTL3LzFB6cBMd8,134356
|
7
7
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=sB_h6OBEMk7lTLIjdNrNo9Sthk8UE9PnK2AUcQJPe9I,32728
|
8
8
|
omnata_plugin_runtime/rate_limiting.py,sha256=eOWVRYWiqPlVeYzmB1exVXfXbrcpmYb7vtTi9B-4zkQ,25868
|
9
|
-
omnata_plugin_runtime-0.8.
|
10
|
-
omnata_plugin_runtime-0.8.
|
11
|
-
omnata_plugin_runtime-0.8.
|
12
|
-
omnata_plugin_runtime-0.8.
|
9
|
+
omnata_plugin_runtime-0.8.3a207.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
|
10
|
+
omnata_plugin_runtime-0.8.3a207.dist-info/METADATA,sha256=aU_EJv5HVn3CXBKKuJaD3JFhBANrOT_o883o2fvIdpA,2158
|
11
|
+
omnata_plugin_runtime-0.8.3a207.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
12
|
+
omnata_plugin_runtime-0.8.3a207.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.8.2a203.dist-info → omnata_plugin_runtime-0.8.3a207.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.8.2a203.dist-info → omnata_plugin_runtime-0.8.3a207.dist-info}/WHEEL
RENAMED
File without changes
|