@salesforce/afv-skills 1.13.0 → 1.15.0
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.
- package/package.json +3 -3
- package/skills/applying-slds/SKILL.md +322 -0
- package/skills/applying-slds/checklists.md +83 -0
- package/skills/applying-slds/examples.md +283 -0
- package/skills/applying-slds/guidance/README.md +83 -0
- package/skills/applying-slds/guidance/blueprints-index.md +213 -0
- package/skills/applying-slds/guidance/icons-guidance.md +186 -0
- package/skills/applying-slds/guidance/overviews/borders.md +236 -0
- package/skills/applying-slds/guidance/overviews/color.md +266 -0
- package/skills/applying-slds/guidance/overviews/display-density.md +366 -0
- package/skills/applying-slds/guidance/overviews/icons.md +240 -0
- package/skills/applying-slds/guidance/overviews/illustrations.md +235 -0
- package/skills/applying-slds/guidance/overviews/shadows.md +176 -0
- package/skills/applying-slds/guidance/overviews/spacing.md +216 -0
- package/skills/applying-slds/guidance/overviews/typography.md +323 -0
- package/skills/applying-slds/guidance/overviews/utilities.md +542 -0
- package/skills/applying-slds/guidance/slds-development-guide.md +288 -0
- package/skills/applying-slds/guidance/styling-hooks/borders.md +202 -0
- package/skills/applying-slds/guidance/styling-hooks/color/expressive-palette-hooks.md +153 -0
- package/skills/applying-slds/guidance/styling-hooks/color/index.md +171 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/accent-hooks.md +204 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/feedback-hooks.md +768 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/surface-hooks.md +337 -0
- package/skills/applying-slds/guidance/styling-hooks/color/system-hooks.md +132 -0
- package/skills/applying-slds/guidance/styling-hooks/index.md +327 -0
- package/skills/applying-slds/guidance/styling-hooks/shadows.md +238 -0
- package/skills/applying-slds/guidance/styling-hooks/spacing.md +254 -0
- package/skills/applying-slds/guidance/styling-hooks/typography.md +448 -0
- package/skills/applying-slds/guidance/utilities/alignment.md +119 -0
- package/skills/applying-slds/guidance/utilities/borders.md +131 -0
- package/skills/applying-slds/guidance/utilities/box.md +125 -0
- package/skills/applying-slds/guidance/utilities/color.md +165 -0
- package/skills/applying-slds/guidance/utilities/dark-mode.md +111 -0
- package/skills/applying-slds/guidance/utilities/description-list.md +168 -0
- package/skills/applying-slds/guidance/utilities/floats.md +117 -0
- package/skills/applying-slds/guidance/utilities/grid.md +264 -0
- package/skills/applying-slds/guidance/utilities/horizontal-list.md +110 -0
- package/skills/applying-slds/guidance/utilities/hyphenation.md +84 -0
- package/skills/applying-slds/guidance/utilities/index.md +205 -0
- package/skills/applying-slds/guidance/utilities/interactions.md +89 -0
- package/skills/applying-slds/guidance/utilities/layout.md +109 -0
- package/skills/applying-slds/guidance/utilities/line-clamp.md +131 -0
- package/skills/applying-slds/guidance/utilities/margin.md +155 -0
- package/skills/applying-slds/guidance/utilities/media-object.md +161 -0
- package/skills/applying-slds/guidance/utilities/name-value-list.md +152 -0
- package/skills/applying-slds/guidance/utilities/padding.md +155 -0
- package/skills/applying-slds/guidance/utilities/position.md +177 -0
- package/skills/applying-slds/guidance/utilities/print.md +114 -0
- package/skills/applying-slds/guidance/utilities/scrollable.md +126 -0
- package/skills/applying-slds/guidance/utilities/sizing.md +190 -0
- package/skills/applying-slds/guidance/utilities/themes.md +121 -0
- package/skills/applying-slds/guidance/utilities/truncate.md +127 -0
- package/skills/applying-slds/guidance/utilities/typography.md +166 -0
- package/skills/applying-slds/guidance/utilities/vertical-list.md +166 -0
- package/skills/applying-slds/guidance/utilities/visibility.md +228 -0
- package/skills/applying-slds/metadata/README.md +84 -0
- package/skills/applying-slds/metadata/blueprints/components/accordion.yaml +304 -0
- package/skills/applying-slds/metadata/blueprints/components/activity-timeline.yaml +92 -0
- package/skills/applying-slds/metadata/blueprints/components/alert.yaml +103 -0
- package/skills/applying-slds/metadata/blueprints/components/app-launcher.yaml +94 -0
- package/skills/applying-slds/metadata/blueprints/components/avatar-group.yaml +81 -0
- package/skills/applying-slds/metadata/blueprints/components/avatar.yaml +97 -0
- package/skills/applying-slds/metadata/blueprints/components/badges.yaml +102 -0
- package/skills/applying-slds/metadata/blueprints/components/brand-band.yaml +198 -0
- package/skills/applying-slds/metadata/blueprints/components/breadcrumbs.yaml +95 -0
- package/skills/applying-slds/metadata/blueprints/components/builder-header.yaml +192 -0
- package/skills/applying-slds/metadata/blueprints/components/button-groups.yaml +82 -0
- package/skills/applying-slds/metadata/blueprints/components/button-icons.yaml +295 -0
- package/skills/applying-slds/metadata/blueprints/components/buttons.yaml +230 -0
- package/skills/applying-slds/metadata/blueprints/components/cards.yaml +124 -0
- package/skills/applying-slds/metadata/blueprints/components/carousel.yaml +140 -0
- package/skills/applying-slds/metadata/blueprints/components/chat.yaml +179 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-button-group.yaml +192 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-button.yaml +204 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-toggle.yaml +177 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox.yaml +108 -0
- package/skills/applying-slds/metadata/blueprints/components/color-picker.yaml +172 -0
- package/skills/applying-slds/metadata/blueprints/components/combobox.yaml +136 -0
- package/skills/applying-slds/metadata/blueprints/components/counter.yaml +147 -0
- package/skills/applying-slds/metadata/blueprints/components/data-tables.yaml +157 -0
- package/skills/applying-slds/metadata/blueprints/components/datepickers.yaml +130 -0
- package/skills/applying-slds/metadata/blueprints/components/datetime-picker.yaml +155 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-composer.yaml +201 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-form-footer.yaml +161 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-utility-bar.yaml +175 -0
- package/skills/applying-slds/metadata/blueprints/components/drop-zone.yaml +115 -0
- package/skills/applying-slds/metadata/blueprints/components/dueling-picklist.yaml +196 -0
- package/skills/applying-slds/metadata/blueprints/components/dynamic-icons.yaml +128 -0
- package/skills/applying-slds/metadata/blueprints/components/dynamic-menu.yaml +141 -0
- package/skills/applying-slds/metadata/blueprints/components/expandable-section.yaml +115 -0
- package/skills/applying-slds/metadata/blueprints/components/expression.yaml +143 -0
- package/skills/applying-slds/metadata/blueprints/components/feeds.yaml +125 -0
- package/skills/applying-slds/metadata/blueprints/components/file-selector.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/files.yaml +119 -0
- package/skills/applying-slds/metadata/blueprints/components/form-element.yaml +145 -0
- package/skills/applying-slds/metadata/blueprints/components/global-header.yaml +120 -0
- package/skills/applying-slds/metadata/blueprints/components/global-navigation.yaml +100 -0
- package/skills/applying-slds/metadata/blueprints/components/icons.yaml +138 -0
- package/skills/applying-slds/metadata/blueprints/components/illustration.yaml +205 -0
- package/skills/applying-slds/metadata/blueprints/components/input.yaml +151 -0
- package/skills/applying-slds/metadata/blueprints/components/list-builder.yaml +127 -0
- package/skills/applying-slds/metadata/blueprints/components/lookups.yaml +132 -0
- package/skills/applying-slds/metadata/blueprints/components/map.yaml +118 -0
- package/skills/applying-slds/metadata/blueprints/components/menus.yaml +134 -0
- package/skills/applying-slds/metadata/blueprints/components/modals.yaml +152 -0
- package/skills/applying-slds/metadata/blueprints/components/notifications.yaml +88 -0
- package/skills/applying-slds/metadata/blueprints/components/page-headers.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/panels.yaml +149 -0
- package/skills/applying-slds/metadata/blueprints/components/path.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/picklist.yaml +125 -0
- package/skills/applying-slds/metadata/blueprints/components/pills.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/popovers.yaml +120 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-bar.yaml +110 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-indicator.yaml +133 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-ring.yaml +102 -0
- package/skills/applying-slds/metadata/blueprints/components/prompt.yaml +126 -0
- package/skills/applying-slds/metadata/blueprints/components/publishers.yaml +178 -0
- package/skills/applying-slds/metadata/blueprints/components/radio-button-group.yaml +172 -0
- package/skills/applying-slds/metadata/blueprints/components/radio-group.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/rich-text-editor.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/scoped-notifications.yaml +188 -0
- package/skills/applying-slds/metadata/blueprints/components/scoped-tabs.yaml +97 -0
- package/skills/applying-slds/metadata/blueprints/components/select.yaml +127 -0
- package/skills/applying-slds/metadata/blueprints/components/setup-assistant.yaml +152 -0
- package/skills/applying-slds/metadata/blueprints/components/slider.yaml +111 -0
- package/skills/applying-slds/metadata/blueprints/components/spinners.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/split-view.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/summary-detail.yaml +103 -0
- package/skills/applying-slds/metadata/blueprints/components/tabs.yaml +138 -0
- package/skills/applying-slds/metadata/blueprints/components/textarea.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/tiles.yaml +108 -0
- package/skills/applying-slds/metadata/blueprints/components/timepicker.yaml +111 -0
- package/skills/applying-slds/metadata/blueprints/components/toast.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/tooltips.yaml +107 -0
- package/skills/applying-slds/metadata/blueprints/components/tree-grid.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/trees.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/trial-bar.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/vertical-navigation.yaml +130 -0
- package/skills/applying-slds/metadata/blueprints/components/vertical-tabs.yaml +140 -0
- package/skills/applying-slds/metadata/blueprints/components/visual-picker.yaml +150 -0
- package/skills/applying-slds/metadata/blueprints/components/welcome-mat.yaml +136 -0
- package/skills/applying-slds/metadata/hooks-index.json +6272 -0
- package/skills/applying-slds/metadata/icon-metadata.json +38466 -0
- package/skills/applying-slds/metadata/utilities-index.json +21912 -0
- package/skills/applying-slds/references/component-selection.md +112 -0
- package/skills/applying-slds/references/icons-decision-guide.md +124 -0
- package/skills/applying-slds/references/styling-decision-guide.md +228 -0
- package/skills/applying-slds/references/utilities-quick-ref.md +125 -0
- package/skills/applying-slds/scripts/search-blueprints.cjs +117 -0
- package/skills/applying-slds/scripts/search-hooks.cjs +139 -0
- package/skills/applying-slds/scripts/search-icons.cjs +174 -0
- package/skills/applying-slds/scripts/search-utilities.cjs +161 -0
- package/skills/building-ui-bundle-app/SKILL.md +33 -8
- package/skills/generating-custom-application/SKILL.md +1 -1
- package/skills/generating-custom-lightning-type/SKILL.md +17 -39
- package/skills/generating-custom-lightning-type/assets/primitive-types-and-constraints.md +41 -0
- package/skills/generating-custom-lightning-type/references/widget-rendition.md +124 -0
- package/skills/generating-ui-bundle-custom-app/SKILL.md +93 -0
- package/skills/generating-ui-bundle-custom-app/docs/configure-metadata-custom-application.md +70 -0
- package/skills/generating-ui-bundle-metadata/SKILL.md +39 -1
- package/skills/investigating-agentforce-architecture/README.md +156 -0
- package/skills/investigating-agentforce-architecture/SKILL.md +230 -0
- package/skills/investigating-agentforce-architecture/assets/cli/describe_sobject.yaml +16 -0
- package/skills/investigating-agentforce-architecture/assets/cli/describe_tooling_sobject.yaml +17 -0
- package/skills/investigating-agentforce-architecture/assets/cli/list_metadata_genaiprompttemplate.yaml +17 -0
- package/skills/investigating-agentforce-architecture/assets/cli/org_display.yaml +15 -0
- package/skills/investigating-agentforce-architecture/assets/cli/retrieve_genai_plugin.yaml +18 -0
- package/skills/investigating-agentforce-architecture/assets/cli/show_access_token.yaml +27 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/action_tree.mmd +20 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/data_flow.mmd +19 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/dependency_graph.mmd +19 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/invocation_sequence.mmd +20 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/planner_state.mmd +18 -0
- package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_names.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/bot_definition_details.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/bot_version_lookup.soql +4 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_by_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_ids_by_names.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_view_by_durable_ids.soql +4 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_metadata_by_id.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/functions_by_plugins.soql +5 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_attrs_by_parent_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_bundle_functions.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_definition_by_agent_chain.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugin_functions_by_plugin_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugin_instructions_by_plugin_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugins_by_planner.soql +4 -0
- package/skills/investigating-agentforce-architecture/references/architecture_sections.md +243 -0
- package/skills/investigating-agentforce-architecture/references/contract.json +244 -0
- package/skills/investigating-agentforce-architecture/references/soql_fields.md +512 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/__init__.py +1 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/fs_guard.py +329 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/paths.py +110 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/runtime.py +59 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/sql.py +10 -0
- package/skills/investigating-agentforce-architecture/scripts/cache_check.py +234 -0
- package/skills/investigating-agentforce-architecture/scripts/config.py +131 -0
- package/skills/investigating-agentforce-architecture/scripts/fetch_soql.py +689 -0
- package/skills/investigating-agentforce-architecture/scripts/finalize.py +295 -0
- package/skills/investigating-agentforce-architecture/scripts/main.py +2835 -0
- package/skills/investigating-agentforce-architecture/scripts/metadata_listing.py +265 -0
- package/skills/investigating-agentforce-architecture/scripts/parallel_retrieve.py +69 -0
- package/skills/investigating-agentforce-architecture/scripts/parse_bundle.py +215 -0
- package/skills/investigating-agentforce-architecture/scripts/parse_wave.py +845 -0
- package/skills/investigating-agentforce-architecture/scripts/probe_channels.py +302 -0
- package/skills/investigating-agentforce-architecture/scripts/render_architecture.py +1043 -0
- package/skills/investigating-agentforce-architecture/scripts/resolve_bot.py +255 -0
- package/skills/investigating-agentforce-architecture/scripts/resolve_invocation_target.py +130 -0
- package/skills/investigating-agentforce-architecture/scripts/rest_client.py +763 -0
- package/skills/investigating-agentforce-architecture/scripts/retrieve_planner.py +13 -0
- package/skills/investigating-agentforce-architecture/scripts/sf_cli.py +242 -0
- package/skills/investigating-agentforce-architecture/scripts/soql_loader.py +253 -0
- package/skills/investigating-agentforce-architecture/scripts/summarize_tree.py +143 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/__init__.py +0 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/_bootstrap.py +23 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/__init__.py +0 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/genai_payloads.py +400 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check.py +307 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check_main.py +283 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_config.py +115 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_end_to_end_fixture.py +651 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_finalize.py +278 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_flow_children_inflation.py +582 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_fs_guard.py +113 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_iterative_wave_b.py +478 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_main_pipeline.py +3359 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parallel_retrieve.py +131 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_bundle.py +400 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave.py +644 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_classifiers.py +224 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_helpers.py +380 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_main.py +397 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_per_branch_visited.py +244 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_channels.py +359 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_cli_recipes.py +185 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_render_architecture.py +810 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_bot.py +203 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_creds.py +157 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_invocation_target.py +145 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_rest_client.py +1253 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_runtime_override.py +100 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_sf_cli.py +261 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_signature_stamping.py +466 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_soql_loader.py +501 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_summarize_tree.py +241 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_write_emit_ctx.py +480 -0
- package/skills/investigating-agentforce-architecture/tools/emit_env.py +157 -0
- package/skills/investigating-agentforce-architecture/tools/emit_result.py +262 -0
- package/skills/investigating-agentforce-architecture/tools/sanitize.py +33 -0
- package/skills/investigating-agentforce-architecture/tools/write_emit_ctx.py +332 -0
- package/skills/investigating-agentforce-d360/README.md +123 -0
- package/skills/investigating-agentforce-d360/SKILL.md +163 -0
- package/skills/investigating-agentforce-d360/assets/dc/app_generation.sql +51 -0
- package/skills/investigating-agentforce-d360/assets/dc/content_category.sql +44 -0
- package/skills/investigating-agentforce-d360/assets/dc/content_quality.sql +41 -0
- package/skills/investigating-agentforce-d360/assets/dc/discover_sessions.sql +36 -0
- package/skills/investigating-agentforce-d360/assets/dc/feedback.sql +47 -0
- package/skills/investigating-agentforce-d360/assets/dc/feedback_details.sql +38 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_records.sql +45 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_llm.sql +50 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_metadata.sql +44 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_tags.sql +42 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_requests.sql +89 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_responses.sql +43 -0
- package/skills/investigating-agentforce-d360/assets/dc/generations.sql +52 -0
- package/skills/investigating-agentforce-d360/assets/dc/interactions.sql +53 -0
- package/skills/investigating-agentforce-d360/assets/dc/messages.sql +53 -0
- package/skills/investigating-agentforce-d360/assets/dc/messaging_session.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/moment_interactions.sql +34 -0
- package/skills/investigating-agentforce-d360/assets/dc/moments.sql +39 -0
- package/skills/investigating-agentforce-d360/assets/dc/participants.sql +48 -0
- package/skills/investigating-agentforce-d360/assets/dc/sessions.sql +78 -0
- package/skills/investigating-agentforce-d360/assets/dc/steps.sql +64 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_associations.sql +46 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_definition_associations.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_definitions.sql +50 -0
- package/skills/investigating-agentforce-d360/assets/dc/tags.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/telemetry_spans.sql +55 -0
- package/skills/investigating-agentforce-d360/references/artifacts.md +50 -0
- package/skills/investigating-agentforce-d360/references/dc_dmo_fields.md +823 -0
- package/skills/investigating-agentforce-d360/references/dc_pipeline_contract.md +608 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/__init__.py +2 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/cli_override.py +98 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/fs_guard.py +334 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/paths.py +155 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/runtime.py +59 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/sql.py +14 -0
- package/skills/investigating-agentforce-d360/scripts/assemble_dc.py +1624 -0
- package/skills/investigating-agentforce-d360/scripts/config.py +45 -0
- package/skills/investigating-agentforce-d360/scripts/dc.py +188 -0
- package/skills/investigating-agentforce-d360/scripts/discover_sessions.py +556 -0
- package/skills/investigating-agentforce-d360/scripts/fetch_dc.py +1045 -0
- package/skills/investigating-agentforce-d360/scripts/render_dc.py +1750 -0
- package/skills/investigating-agentforce-d360/scripts/resolve_session.py +264 -0
- package/skills/investigating-agentforce-d360/scripts/storage.py +92 -0
- package/skills/investigating-agentforce-d360/scripts/tests/__init__.py +0 -0
- package/skills/investigating-agentforce-d360/scripts/tests/_bootstrap.py +15 -0
- package/skills/investigating-agentforce-d360/scripts/tests/fixtures/__init__.py +0 -0
- package/skills/investigating-agentforce-d360/scripts/tests/fixtures/synthetic_session.py +424 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_bootstrap_and_mode.py +115 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct.py +220 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct_integration.py +158 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_helpers.py +287 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_integration.py +247 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_dc_and_resolve_session.py +433 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions.py +458 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions_grep_ci.py +193 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_helpers.py +266 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_identity.py +528 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_main.py +251 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall.py +229 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall_full.py +283 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_identity_coherence.py +327 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_branches.py +256 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_gateway_direct.py +130 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_helpers.py +291 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_integration.py +220 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_planner_llm_calls.py +284 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_show_prompts_gating.py +215 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_from_disk.py +100 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_session_main.py +149 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_runtime_override.py +104 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape.py +95 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape_dropped_by_stdm.py +85 -0
- package/skills/managing-managed-event-subscription/SKILL.md +152 -0
- package/skills/managing-managed-event-subscription/assets/managed-event-subscription-template.xml +20 -0
- package/skills/managing-managed-event-subscription/references/delete-guide.md +57 -0
- package/skills/managing-managed-event-subscription/references/topic-name-formats.md +26 -0
- package/skills/managing-managed-event-subscription/references/update-constraints.md +30 -0
- package/skills/reviewing-lwc-mobile-offline/SKILL.md +168 -0
- package/skills/reviewing-lwc-mobile-offline/references/grounding.md +7 -0
- package/skills/reviewing-lwc-mobile-offline/references/inline-graphql.md +43 -0
- package/skills/reviewing-lwc-mobile-offline/references/komaci-eslint.md +125 -0
- package/skills/reviewing-lwc-mobile-offline/references/lwc-if.md +78 -0
- package/skills/reviewing-lwc-mobile-offline/scripts/komaci.config.mjs +18 -0
- package/skills/reviewing-lwc-mobile-offline/scripts/package.json +10 -0
- package/skills/reviewing-lwc-mobile-offline/scripts/run-komaci.sh +69 -0
- package/skills/uplifting-components-to-slds2/SKILL.md +3 -2
- package/skills/uplifting-components-to-slds2/references/color-hooks-decision-guide.md +30 -9
- package/skills/uplifting-components-to-slds2/references/examples.md +24 -6
- package/skills/using-mobile-native-capabilities/SKILL.md +182 -0
- package/skills/using-mobile-native-capabilities/references/app-review.md +68 -0
- package/skills/using-mobile-native-capabilities/references/ar-space-capture.md +125 -0
- package/skills/using-mobile-native-capabilities/references/barcode-scanner.md +219 -0
- package/skills/using-mobile-native-capabilities/references/base-capability.md +22 -0
- package/skills/using-mobile-native-capabilities/references/biometrics.md +90 -0
- package/skills/using-mobile-native-capabilities/references/calendar.md +213 -0
- package/skills/using-mobile-native-capabilities/references/contacts.md +232 -0
- package/skills/using-mobile-native-capabilities/references/document-scanner.md +342 -0
- package/skills/using-mobile-native-capabilities/references/geofencing.md +123 -0
- package/skills/using-mobile-native-capabilities/references/location.md +158 -0
- package/skills/using-mobile-native-capabilities/references/mobile-capabilities.md +30 -0
- package/skills/using-mobile-native-capabilities/references/nfc.md +181 -0
- package/skills/using-mobile-native-capabilities/references/payments.md +95 -0
- package/skills/validating-slds/SKILL.md +262 -0
- package/skills/validating-slds/references/quality-checks.md +308 -0
- package/skills/validating-slds/references/report-format.md +302 -0
- package/skills/validating-slds/scripts/analyze-quality.cjs +521 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# Calendar Service Grounding Context
|
|
2
|
+
|
|
3
|
+
The following content provides grounding information for generating a Salesforce LWC that leverages calendar facilities on mobile devices. Specifically, this context will cover the API types and methods available to leverage the calendar API of the mobile device, within the LWC.
|
|
4
|
+
|
|
5
|
+
## Calendar Service API
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
/*
|
|
9
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
10
|
+
* All rights reserved.
|
|
11
|
+
* For full license text, see the LICENSE.txt file
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { BaseCapability } from '../BaseCapability.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Use this factory function to get an instance of {@linkcode CalendarService}.
|
|
18
|
+
* @returns An instance of {@linkcode CalendarService}.
|
|
19
|
+
*/
|
|
20
|
+
export function getCalendarService(): CalendarService;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Manage calendar events from a Lightning web component.
|
|
24
|
+
* @see {@link https://developer.salesforce.com/docs/platform/lwc/guide/reference-lightning-calendarservice.html|CalendarService API}
|
|
25
|
+
*/
|
|
26
|
+
export interface CalendarService extends BaseCapability {
|
|
27
|
+
/**
|
|
28
|
+
* Returns all available calendars from the device’s native Calendar application.
|
|
29
|
+
* If needed, a permission pop-up for the user to grant calendar access is presented first.
|
|
30
|
+
* @param options A {@linkcode CalendarServiceOptions} object to configure the {@linkcode CalendarService} request.
|
|
31
|
+
* @returns A Promise object that resolves as an array of {@linkcode Calendar} objects.
|
|
32
|
+
*/
|
|
33
|
+
getCalendars(options?: CalendarServiceOptions): Promise<Calendar[]>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Returns all events of all available calendar events in a specified date range from the specified calendars.
|
|
37
|
+
* @param startDateSecondsUTC The start of the date range.
|
|
38
|
+
* @param endDateSecondsUTC The end of the date range.
|
|
39
|
+
* @param calendars The titles of calendars to get events from. If not provided, or null is passed in, events are fetched from all available calendars.
|
|
40
|
+
* @param options A {@linkcode CalendarServiceOptions} object to configure the {@linkcode CalendarService} request.
|
|
41
|
+
* @returns A Promise object that resolves as an array of {@linkcode CalendarEvent} objects.
|
|
42
|
+
*/
|
|
43
|
+
getEvents(
|
|
44
|
+
startDateSecondsUTC: number,
|
|
45
|
+
endDateSecondsUTC: number,
|
|
46
|
+
calendars?: string[],
|
|
47
|
+
options?: CalendarServiceOptions,
|
|
48
|
+
): Promise<CalendarEvent[]>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Adds an event to the device’s calendar.
|
|
52
|
+
* @param event A {@linkcode CalendarEvent} object to be added to the device’s calendar.
|
|
53
|
+
* @param options A {@linkcode CalendarServiceOptions} object to configure the {@linkcode CalendarService} request.
|
|
54
|
+
* @returns A Promise object that resolves as a coerced version of the {@linkcode CalendarEvent} parameter.
|
|
55
|
+
*/
|
|
56
|
+
addEvent(event: CalendarEvent, options?: CalendarServiceOptions): Promise<CalendarEvent>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Updates an event in the device’s calendar.
|
|
60
|
+
* @param updatedEvent A {@linkcode CalendarEvent} object with updated data to replace the existing data in the corresponding event on the device’s calendar.
|
|
61
|
+
* @param options A {@linkcode CalendarServiceOptions} object to configure the {@linkcode CalendarService} request.
|
|
62
|
+
* @returns A Promise object that resolves as a coerced version of the {@linkcode CalendarEvent} parameter.
|
|
63
|
+
*/
|
|
64
|
+
updateEvent(updatedEvent: CalendarEvent, options?: CalendarServiceOptions): Promise<CalendarEvent>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Removes an event from a device’s calendar.
|
|
68
|
+
* @param event The {@linkcode CalendarEvent} object to be removed from the device’s calendar.
|
|
69
|
+
* @param options A {@linkcode CalendarServiceOptions} object to configure the {@linkcode CalendarService} request.
|
|
70
|
+
* @returns If successful, null is returned.
|
|
71
|
+
*/
|
|
72
|
+
removeEvent(event: CalendarEvent, options?: CalendarServiceOptions): Promise<null>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Calendar interface.
|
|
77
|
+
*/
|
|
78
|
+
export interface Calendar {
|
|
79
|
+
id: string;
|
|
80
|
+
title: string;
|
|
81
|
+
allowsContentModifications: boolean; // indicates whether the calendar is read-only
|
|
82
|
+
hexColor: string; // includes # + hex color value, e.g #c603fc
|
|
83
|
+
type: string; // a string hinting about calendar type. It is platform specific. on iOS it is set to EKSource.sourceType+EKSource.title and on Android it is set to CalendarContract.Calendars.ACCOUNT_TYPE+CalendarContract.Calendars.ACCOUNT_NAME
|
|
84
|
+
isPrimary: boolean; // indicates whether it is the primary/default calendar
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Event interface.
|
|
89
|
+
*/
|
|
90
|
+
export interface CalendarEvent {
|
|
91
|
+
id: string;
|
|
92
|
+
isAllDay: boolean; // defaults to False
|
|
93
|
+
startDateSecondsUTC: number;
|
|
94
|
+
endDateSecondsUTC: number;
|
|
95
|
+
availability: EventAvailability; // defaults to Busy
|
|
96
|
+
status: EventStatus; // read-only - value set by caller will be ignored and overwritten by the plugin
|
|
97
|
+
calendarId?: string;
|
|
98
|
+
title: string;
|
|
99
|
+
location?: string;
|
|
100
|
+
notes?: string;
|
|
101
|
+
alarms?: Alarm[];
|
|
102
|
+
attendees?: Participant[]; // Note: on iOS this field can only be used for fetching attendee info of an existing event, but you cannot create an event with attendee info (which is an EventKit limitation as mentioned here https://apple.co/3toRnDO)
|
|
103
|
+
recurrenceRules?: RecurrenceRule[];
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* EventAvailability values.
|
|
108
|
+
*/
|
|
109
|
+
export type EventAvailability = 'Busy' | 'Free' | 'Tentative';
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* EventStatus values.
|
|
113
|
+
*/
|
|
114
|
+
export type EventStatus = 'Canceled' | 'Confirmed' | 'Tentative';
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Alarm interface.
|
|
118
|
+
*/
|
|
119
|
+
export interface Alarm {
|
|
120
|
+
relativeOffsetSeconds: number;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Participant interface.
|
|
125
|
+
*/
|
|
126
|
+
export interface Participant {
|
|
127
|
+
name: string;
|
|
128
|
+
email: string | null;
|
|
129
|
+
role: ParticipantRole;
|
|
130
|
+
status: ParticipantStatus;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* ParticipantRole values.
|
|
135
|
+
*/
|
|
136
|
+
export type ParticipantRole = 'Required' | 'Optional' | 'Unknown';
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* ParticipantStatus values.
|
|
140
|
+
*/
|
|
141
|
+
export type ParticipantStatus = 'Accepted' | 'Declined' | 'Pending' | 'Tentative' | 'Unknown';
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The recurrence rule as defined by https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10.
|
|
145
|
+
*/
|
|
146
|
+
export interface RecurrenceRule {
|
|
147
|
+
frequency: RecurrenceFrequency;
|
|
148
|
+
interval: number;
|
|
149
|
+
daysOfTheWeek?: RecurrenceDayOfWeek[];
|
|
150
|
+
daysOfTheMonth?: number[];
|
|
151
|
+
monthsOfTheYear?: number[];
|
|
152
|
+
weeksOfTheYear?: number[];
|
|
153
|
+
daysOfTheYear?: number[];
|
|
154
|
+
setPositions?: number[];
|
|
155
|
+
end?: RecurrenceEnd;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* RecurrenceFrequency values.
|
|
160
|
+
*/
|
|
161
|
+
export type RecurrenceFrequency = 'Daily' | 'Weekly' | 'Monthly' | 'Yearly';
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* RecurrenceDayOfWeek interface.
|
|
165
|
+
*/
|
|
166
|
+
export interface RecurrenceDayOfWeek {
|
|
167
|
+
dayOfTheWeek: Weekday;
|
|
168
|
+
weekNumber: number;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Weekday values.
|
|
173
|
+
*/
|
|
174
|
+
export type Weekday = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday';
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* RecurrenceEnd interface.
|
|
178
|
+
*/
|
|
179
|
+
export interface RecurrenceEnd {
|
|
180
|
+
endDateSecondsUTC?: number;
|
|
181
|
+
occurrenceCount?: number;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* CalendarServiceOptions interface.
|
|
186
|
+
*/
|
|
187
|
+
export interface CalendarServiceOptions {
|
|
188
|
+
permissionRationaleText?: string;
|
|
189
|
+
span?: Span;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Span values.
|
|
194
|
+
*/
|
|
195
|
+
export type Span = 'ThisEvent' | 'ThisAndFollowingEvents';
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* CalendarServiceFailure interface.
|
|
199
|
+
*/
|
|
200
|
+
export interface CalendarServiceFailure {
|
|
201
|
+
code: CalendarServiceFailureCode;
|
|
202
|
+
message: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Possible failure codes.
|
|
207
|
+
*/
|
|
208
|
+
export type CalendarServiceFailureCode =
|
|
209
|
+
| 'USER_DENIED_PERMISSION' // Permission was denied by user when prompt.
|
|
210
|
+
| 'NOT_FOUND' // A specified item (calendar or event) was not found.
|
|
211
|
+
| 'SERVICE_NOT_ENABLED' // The service is not enabled and therefore cannot be used.
|
|
212
|
+
| 'UNKNOWN_REASON'; // An error happened in the native code that is not permission based. Will give more information in the CalendarServiceFailure message.
|
|
213
|
+
```
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# Contacts Service Grounding Context
|
|
2
|
+
|
|
3
|
+
The following content provides grounding information for generating a Salesforce LWC that leverages contacts facilities on mobile devices. Specifically, this context will cover the API types and methods available to leverage the contacts API of the mobile device, within the LWC.
|
|
4
|
+
|
|
5
|
+
## Contacts Service API
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
/*
|
|
9
|
+
* Copyright (c) 2024, Salesforce, Inc.
|
|
10
|
+
* All rights reserved.
|
|
11
|
+
* For full license text, see the LICENSE.txt file
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { BaseCapability } from '../BaseCapability.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Use this factory function to get an instance of {@linkcode ContactsService}.
|
|
18
|
+
* @returns An instance of {@linkcode ContactsService}.
|
|
19
|
+
*/
|
|
20
|
+
export function getContactsService(): ContactsService;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Access contacts from a Lightning web component.
|
|
24
|
+
* @see {@link https://developer.salesforce.com/docs/platform/lwc/guide/reference-lightning-contactsservice.html|ContactsService API}
|
|
25
|
+
*/
|
|
26
|
+
export interface ContactsService extends BaseCapability {
|
|
27
|
+
/**
|
|
28
|
+
* Allows the user to pick one or more contacts from the device’s Contacts app. If needed, presents a
|
|
29
|
+
* permissions pop-up to the user to request access to contacts first, and then presents the user with the contacts selector.
|
|
30
|
+
* @param options A {@linkcode ContactsServiceOptions} object to configure the {@linkcode ContactsService} request.
|
|
31
|
+
* @returns A Promise object that resolves as an array of {@linkcode Contacts} objects. If an error is encountered, the array is empty.
|
|
32
|
+
*/
|
|
33
|
+
getContacts(options?: ContactsServiceOptions): Promise<Contact[]>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Save a contact record into the mobile device address book.
|
|
37
|
+
* @param contact A {@linkcode Contacts} object.
|
|
38
|
+
* @param options A {@linkcode ContactsServiceOptions} object to configure the {@linkcode ContactsService} request. Currently
|
|
39
|
+
* used to override the device's permission UX sequence text.
|
|
40
|
+
* @returns A resolved promise returns a {@linkcode Contacts} object.
|
|
41
|
+
*/
|
|
42
|
+
putContact(contact: Contact, options?: ContactsServiceOptions): Promise<Contact>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* An object representing a contact.
|
|
47
|
+
*/
|
|
48
|
+
export interface Contact {
|
|
49
|
+
/**
|
|
50
|
+
* A stringified number unique to each contact. Generated by the native device at the time of contact creation.
|
|
51
|
+
*/
|
|
52
|
+
id: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* An object representing a contact's name.
|
|
56
|
+
*/
|
|
57
|
+
name: ContactName;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* An array of objects containing phone numbers for the contact.
|
|
61
|
+
*/
|
|
62
|
+
phoneNumbers: ContactLabeledValue[];
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* An array of objects containing email addresses for the contact.
|
|
66
|
+
*/
|
|
67
|
+
emails: ContactLabeledValue[];
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* An array of objects representing contact's addresses.
|
|
71
|
+
*/
|
|
72
|
+
addresses: ContactAddress[];
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* An array of objects containing instant messaging (IM) usernames for the contact.
|
|
76
|
+
*/
|
|
77
|
+
ims: ContactLabeledValue[];
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* An object representing a contact's organization.
|
|
81
|
+
*/
|
|
82
|
+
organizations: ContactOrganization[];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* A text field for any extra information about the contact.
|
|
86
|
+
*/
|
|
87
|
+
note: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* An array of objects containing URLs for the contact.
|
|
91
|
+
*/
|
|
92
|
+
urls: ContactLabeledValue[];
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* An object representing a contact’s address.
|
|
97
|
+
*/
|
|
98
|
+
export interface ContactAddress {
|
|
99
|
+
/**
|
|
100
|
+
* A string representing the type of address for a contact’s address.
|
|
101
|
+
*/
|
|
102
|
+
type: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* A string representing the street address for a contact’s address.
|
|
106
|
+
*/
|
|
107
|
+
streetAddress: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* A string representing the locality (also known as the “city”) for a contact’s address.
|
|
111
|
+
*/
|
|
112
|
+
locality: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* A string representing the region (also known as the “state” or “province”) for a contact’s address.
|
|
116
|
+
*/
|
|
117
|
+
region: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* A string representing the postal code for a contact’s address.
|
|
121
|
+
*/
|
|
122
|
+
postalCode: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* A string representing the country for a contact’s address.
|
|
126
|
+
*/
|
|
127
|
+
country: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* An object representing a contact’s organization.
|
|
132
|
+
*/
|
|
133
|
+
export interface ContactOrganization {
|
|
134
|
+
/**
|
|
135
|
+
* A string representing the name of a contact’s organization.
|
|
136
|
+
*/
|
|
137
|
+
name: string;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* A string representing the department of a contact’s organization.
|
|
141
|
+
*/
|
|
142
|
+
department: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* A string representing the title the contact holds in the organization.
|
|
146
|
+
*/
|
|
147
|
+
title: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* An object representing a contact’s name.
|
|
152
|
+
*/
|
|
153
|
+
export interface ContactName {
|
|
154
|
+
/**
|
|
155
|
+
* A string representing the contact’s family name (also known as “surname” or “last name”).
|
|
156
|
+
*/
|
|
157
|
+
familyName: string;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* A string representing the contact’s given name (also known as “first name”).
|
|
161
|
+
*/
|
|
162
|
+
givenName: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* A string representing the contact’s middle name.
|
|
166
|
+
*/
|
|
167
|
+
middleName: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* A string representing the contact’s name prefix.
|
|
171
|
+
*/
|
|
172
|
+
namePrefix: string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* A string representing the contact’s name suffix.
|
|
176
|
+
*/
|
|
177
|
+
nameSuffix: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* An object containing a label and a value for a miscellaneous piece of contact information.
|
|
182
|
+
*/
|
|
183
|
+
export interface ContactLabeledValue {
|
|
184
|
+
/**
|
|
185
|
+
* The display name that categorizes the data in value. In the following examples, home, homepage, and work are label properties.
|
|
186
|
+
*/
|
|
187
|
+
label: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The value of the data specified in label.
|
|
191
|
+
*/
|
|
192
|
+
value: string;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* An object representing an error that occurred when accessing {@linkcode ContactsService} features.
|
|
197
|
+
*/
|
|
198
|
+
export interface ContactsServiceFailure {
|
|
199
|
+
/**
|
|
200
|
+
* A value representing the reason for a contacts error.
|
|
201
|
+
*/
|
|
202
|
+
code: ContactsServiceFailureCode;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* A string value describing the reason for the failure. This value is suitable for use in user interface messages. The message is provided in English, and isn’t localized.
|
|
206
|
+
*/
|
|
207
|
+
message: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* An object representing configuration details for a {@linkcode ContactsService} session.
|
|
212
|
+
*/
|
|
213
|
+
export interface ContactsServiceOptions {
|
|
214
|
+
/**
|
|
215
|
+
* Optional parameter, used by Android only. This only appears after an initial denial by the user. To use the default permission message, pass in an empty object.
|
|
216
|
+
* The default permission message is “To import Contacts, permission is needed to access Contacts. Tap Allow in the following permissions dialog.”
|
|
217
|
+
*/
|
|
218
|
+
permissionRationaleText?: string;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Possible failure codes.
|
|
223
|
+
*/
|
|
224
|
+
export type ContactsServiceFailureCode =
|
|
225
|
+
| 'USER_DISMISSED' // The user clicked the cancel button.
|
|
226
|
+
| 'USER_DENIED_PERMISSION' // Permission was denied to access contacts (older versions of Android only).
|
|
227
|
+
| 'USER_DISABLED_PERMISSION' // Android Only - Permission was denied. User will need to go to app setting to turn on.
|
|
228
|
+
| 'USER_RESTRICTED_PERMISSION' // The application is restricted (perhaps by parental controls) from accessing Contacts (iOS only).
|
|
229
|
+
| 'SERVICE_NOT_ENABLED' // The service is not enabled and therefore cannot be used.
|
|
230
|
+
| 'SAVE_OPERATION_FAILED' // The service couldn't save the contact record into the address book.
|
|
231
|
+
| 'UNKNOWN_REASON'; // Generic error that is not captured by any of the above categories
|
|
232
|
+
```
|