omnata-plugin-runtime 0.10.18a272__tar.gz → 0.10.19__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.10.18a272
3
+ Version: 0.10.19
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.10.18-a272"
3
+ version = "0.10.19"
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"
@@ -222,6 +222,22 @@ class FormSliderField(SubscriptableBaseModel):
222
222
  step_size: int = Field(default=1)
223
223
 
224
224
 
225
+ class FormSnowflakeStageField(SubscriptableBaseModel):
226
+ """
227
+ A field which represents a stage which can be selected from a list shared to the plugin.
228
+ """
229
+
230
+ name: str
231
+ label: str
232
+ default_value: Union[str, bool] = Field(default="")
233
+ required: bool = Field(default=False)
234
+ depends_on: Optional[str] = Field(default=None)
235
+ help_text: str = Field(default="")
236
+ reload_on_change: bool = Field(default=False)
237
+ secret: bool = Field(default=False)
238
+ type: Literal["snowflake_stage"] = "snowflake_stage"
239
+
240
+
225
241
  class FormJinjaTemplate(SubscriptableBaseModel):
226
242
  """
227
243
  Uses text area to allow the user to create a template, which can include column values from the source
@@ -340,7 +356,8 @@ FormFieldBase = Annotated[
340
356
  FormSliderField,
341
357
  FormDropdownField,
342
358
  InformationField,
343
- InformationBoxField
359
+ InformationBoxField,
360
+ FormSnowflakeStageField
344
361
  ],
345
362
  Field(discriminator="type"),
346
363
  ]