@vertigis/viewer-spec 61.14.0 → 61.14.1

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.
@@ -193,15 +193,32 @@ export interface DisplayAddFeatureArgs extends CreateFeatureArgs, HasMaps, EditO
193
193
  }
194
194
  /**
195
195
  * Arguments for the "edit.display-add-related-feature" command. A feature and a
196
- * relationship ID are supplied as inputs instead of a layer.
196
+ * relationship ID are supplied as inputs instead of a layer. Web only.
197
+ *
198
+ * @webOnly
197
199
  */
198
200
  export interface DisplayAddRelatedFeatureArgs extends Omit<DisplayAddFeatureArgs, "layers">, HasFeatures {
199
201
  /**
200
202
  * The ID of the relationship to add a feature to.
201
203
  */
202
204
  relationshipId: string;
205
+ }
206
+ /**
207
+ * Arguments for the "edit.display-add-related-feature" command. Mobile only.
208
+ *
209
+ * @mobileOnly
210
+ */
211
+ export interface DisplayAddRelatedFeatureMobileArgs {
203
212
  /**
204
- * The feature source for the related feature to create. Mobile only.
213
+ * The original feature to add a related feature to.
214
+ */
215
+ feature: Feature;
216
+ /**
217
+ * The ID of the relationship to add a feature to.
218
+ */
219
+ relationshipId: string;
220
+ /**
221
+ * The feature source the related feature belongs to.
205
222
  */
206
223
  relatedFeatureSource: FeatureSource;
207
224
  }
@@ -391,16 +408,16 @@ export declare class EditCommands extends CommandRegistry {
391
408
  * The specified feature will be the original feature that the new related
392
409
  * feature will be added to in the relationship.
393
410
  *
394
- * **Example:** Create and edit a new record on a related table, with the
395
- * option to add attachments. Make sure the 'COMMENTS' field is included in
396
- * the editable attributes and make it required.
411
+ * **Example (Web):** Create and edit a new record on a related table, with
412
+ * the option to add attachments. Make sure the 'COMMENTS' field is included
413
+ * in the editable attributes and make it required.
397
414
  *
398
415
  * _Notes:_.
399
416
  *
400
417
  * 1. The feature used here must come from the running viewer, and cannot be an
401
418
  * ad-hoc feature created from a JSON object. For example, you can use
402
- * the output of `results.get-active-features`, or the feature provided
403
- * in a command chain context.
419
+ * the output of `results.get-active-features` (Web only), or the feature
420
+ * provided in a command chain context.
404
421
  * 2. `editableExpression` and `requiredExpression` both take an Arcade
405
422
  * expression, and here the string "true" is just a simple Arcade
406
423
  * expression that always returns true. You can also use a more complex
@@ -420,8 +437,28 @@ export declare class EditCommands extends CommandRegistry {
420
437
  * ]
421
438
  * }
422
439
  * ```
440
+ *
441
+ * **Example (Mobile):** Create and edit a new record on a feature.
442
+ *
443
+ * _Notes:_.
444
+ *
445
+ * 1. The feature used here must come from the running viewer, and cannot be an
446
+ * ad-hoc feature created from a JSON object. For example, the feature
447
+ * provided to a Workflow from a Feature Action context (as in this
448
+ * example), or from a query.
449
+ * 2. The relatedFeatureSource in this example is a table passed in to the
450
+ * Workflow as an input like so: `{ "tableSource":
451
+ * "item://table-extension/your-table-extension-id" }`
452
+ *
453
+ * ```
454
+ * {
455
+ * "feature": $getWorkflowInputs.inputs.context[0]
456
+ * "relationshipId": "1",
457
+ * "relatedFeatureSource": $getWorkflowInputs.inputs.tableSource
458
+ * }
459
+ * ```
423
460
  */
424
- get displayAddRelatedFeature(): Command<DisplayAddRelatedFeatureArgs>;
461
+ get displayAddRelatedFeature(): Command<DisplayAddRelatedFeatureArgs | DisplayAddRelatedFeatureMobileArgs>;
425
462
  /**
426
463
  * Begin an interactive feature editing session with an existing feature.
427
464
  * `DisplayUpdateFeatureArgs` is not supported on Mobile.