@salesforce/b2c-cli 2.3.1 → 2.5.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/bin/dev.js +8 -8
- package/bin/run.js +5 -7
- package/content/guidance/b2c/b2c-business-manager-extensions/SKILL.md +361 -0
- package/content/guidance/b2c/b2c-business-manager-extensions/references/EXTENSIONS-XML.md +458 -0
- package/content/guidance/b2c/b2c-controllers/SKILL.md +301 -0
- package/content/guidance/b2c/b2c-controllers/references/CLASSIC-PATTERNS.md +335 -0
- package/content/guidance/b2c/b2c-controllers/references/SFRA-PATTERNS.md +400 -0
- package/content/guidance/b2c/b2c-custom-api-development/SKILL.md +281 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/CONTRACT.md +142 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/IMPLEMENTATION.md +153 -0
- package/content/guidance/b2c/b2c-custom-api-development/references/TESTING.md +118 -0
- package/content/guidance/b2c/b2c-custom-caches/SKILL.md +279 -0
- package/content/guidance/b2c/b2c-custom-job-steps/SKILL.md +520 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/CHUNK-ORIENTED.md +377 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/JOBS-XML.md +212 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/STEPTYPES-JSON.md +373 -0
- package/content/guidance/b2c/b2c-custom-job-steps/references/TASK-ORIENTED.md +344 -0
- package/content/guidance/b2c/b2c-custom-objects/SKILL.md +327 -0
- package/content/guidance/b2c/b2c-custom-objects/references/OCAPI-SEARCH.md +298 -0
- package/content/guidance/b2c/b2c-forms/SKILL.md +242 -0
- package/content/guidance/b2c/b2c-forms/references/FORM-XML.md +409 -0
- package/content/guidance/b2c/b2c-hooks/SKILL.md +500 -0
- package/content/guidance/b2c/b2c-hooks/references/OCAPI-SCAPI-HOOKS.md +403 -0
- package/content/guidance/b2c/b2c-hooks/references/ORDER-HOOK-LIFECYCLE.md +169 -0
- package/content/guidance/b2c/b2c-hooks/references/SYSTEM-HOOKS.md +433 -0
- package/content/guidance/b2c/b2c-isml/SKILL.md +320 -0
- package/content/guidance/b2c/b2c-isml/references/EXPRESSIONS.md +366 -0
- package/content/guidance/b2c/b2c-isml/references/TAGS.md +443 -0
- package/content/guidance/b2c/b2c-localization/SKILL.md +344 -0
- package/content/guidance/b2c/b2c-localization/references/PATTERNS.md +407 -0
- package/content/guidance/b2c/b2c-logging/SKILL.md +352 -0
- package/content/guidance/b2c/b2c-logging/references/LOG-FILES.md +282 -0
- package/content/guidance/b2c/b2c-metadata/SKILL.md +406 -0
- package/content/guidance/b2c/b2c-metadata/references/SYSTEM-OBJECTS.md +320 -0
- package/content/guidance/b2c/b2c-metadata/references/XML-EXAMPLES.md +366 -0
- package/content/guidance/b2c/b2c-onboarding/SKILL.md +154 -0
- package/content/guidance/b2c/b2c-ordering/SKILL.md +391 -0
- package/content/guidance/b2c/b2c-page-designer/SKILL.md +410 -0
- package/content/guidance/b2c/b2c-page-designer/references/ATTRIBUTE-TYPES.md +436 -0
- package/content/guidance/b2c/b2c-page-designer/references/META-DEFINITIONS.md +340 -0
- package/content/guidance/b2c/b2c-querying-data/SKILL.md +289 -0
- package/content/guidance/b2c/b2c-querying-data/references/PERFORMANCE-APIS.md +74 -0
- package/content/guidance/b2c/b2c-scapi-admin/SKILL.md +53 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/CLIENT-EXAMPLES.md +440 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/INTEGRATION-PATTERNS.md +518 -0
- package/content/guidance/b2c/b2c-scapi-admin/references/OAUTH-SCOPES.md +337 -0
- package/content/guidance/b2c/b2c-scapi-shopper/SKILL.md +56 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/CHECKOUT-FLOW.md +466 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/CLIENT-EXAMPLES.md +351 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/COMMON-PATTERNS.md +390 -0
- package/content/guidance/b2c/b2c-scapi-shopper/references/SCOPES.md +290 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/SKILL.md +420 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/PASSKEYS.md +126 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/SESSION-BRIDGE.md +267 -0
- package/content/guidance/b2c/b2c-slas-auth-patterns/references/TOKEN-LIFECYCLE.md +367 -0
- package/content/guidance/b2c/b2c-webservices/SKILL.md +318 -0
- package/content/guidance/b2c/b2c-webservices/references/FTP-SERVICES.md +524 -0
- package/content/guidance/b2c/b2c-webservices/references/HTTP-SERVICES.md +578 -0
- package/content/guidance/b2c/b2c-webservices/references/SERVICES-XML.md +351 -0
- package/content/guidance/b2c/b2c-webservices/references/SOAP-SERVICES.md +587 -0
- package/content/guidance/b2c-cli/b2c-am/SKILL.md +277 -0
- package/content/guidance/b2c-cli/b2c-bm-users-roles/SKILL.md +210 -0
- package/content/guidance/b2c-cli/b2c-cap/SKILL.md +131 -0
- package/content/guidance/b2c-cli/b2c-cip/SKILL.md +116 -0
- package/content/guidance/b2c-cli/b2c-cip/references/KNOWN_TABLES.md +105 -0
- package/content/guidance/b2c-cli/b2c-cip/references/SALES_ANALYSIS.md +50 -0
- package/content/guidance/b2c-cli/b2c-cip/references/STARTER_QUERIES.md +147 -0
- package/content/guidance/b2c-cli/b2c-code/SKILL.md +146 -0
- package/content/guidance/b2c-cli/b2c-config/SKILL.md +481 -0
- package/content/guidance/b2c-cli/b2c-content/SKILL.md +176 -0
- package/content/guidance/b2c-cli/b2c-debug/SKILL.md +138 -0
- package/content/guidance/b2c-cli/b2c-docs/SKILL.md +301 -0
- package/content/guidance/b2c-cli/b2c-ecdn/SKILL.md +137 -0
- package/content/guidance/b2c-cli/b2c-ecdn/references/ADVANCED.md +97 -0
- package/content/guidance/b2c-cli/b2c-ecdn/references/SECURITY.md +75 -0
- package/content/guidance/b2c-cli/b2c-import-set-migrations/SKILL.md +265 -0
- package/content/guidance/b2c-cli/b2c-job/SKILL.md +70 -0
- package/content/guidance/b2c-cli/b2c-job/references/EXPORT.md +121 -0
- package/content/guidance/b2c-cli/b2c-job/references/IMPORT.md +55 -0
- package/content/guidance/b2c-cli/b2c-job/references/RUN-AND-MONITOR.md +148 -0
- package/content/guidance/b2c-cli/b2c-logs/SKILL.md +249 -0
- package/content/guidance/b2c-cli/b2c-metrics/SKILL.md +315 -0
- package/content/guidance/b2c-cli/b2c-mrt/SKILL.md +207 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/BUNDLE-COMMANDS.md +203 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/ENVIRONMENT-COMMANDS.md +218 -0
- package/content/guidance/b2c-cli/b2c-mrt/references/PROJECT-COMMANDS.md +154 -0
- package/content/guidance/b2c-cli/b2c-sandbox/SKILL.md +112 -0
- package/content/guidance/b2c-cli/b2c-scapi-custom/SKILL.md +126 -0
- package/content/guidance/b2c-cli/b2c-scapi-schemas/SKILL.md +70 -0
- package/content/guidance/b2c-cli/b2c-scapi-schemas/references/CLI-EXAMPLES.md +108 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/SKILL.md +57 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/IMPORT-OPTIONS.md +118 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/METADATA-XML.md +381 -0
- package/content/guidance/b2c-cli/b2c-site-import-export/references/WORKFLOWS.md +182 -0
- package/content/guidance/b2c-cli/b2c-sites/SKILL.md +112 -0
- package/content/guidance/b2c-cli/b2c-slas/SKILL.md +182 -0
- package/content/guidance/b2c-cli/b2c-webdav/SKILL.md +186 -0
- package/content/guidance/b2c-ops/b2c-checkout-triage/SKILL.md +68 -0
- package/content/guidance/b2c-ops/b2c-edge-traffic-triage/SKILL.md +69 -0
- package/content/guidance/b2c-ops/b2c-job-health/SKILL.md +80 -0
- package/content/guidance/b2c-ops/b2c-job-health/references/job-logs.md +21 -0
- package/content/guidance/b2c-ops/b2c-order-failure-triage/SKILL.md +66 -0
- package/content/guidance/b2c-ops/b2c-order-failure-triage/references/order-evidence.md +87 -0
- package/content/guidance/b2c-ops/b2c-production-triage/SKILL.md +88 -0
- package/content/guidance/b2c-ops/b2c-production-triage/references/escalation.md +57 -0
- package/content/guidance/index.json +1969 -0
- package/content/guidance/storefront-next/sfnext-accessibility/SKILL.md +103 -0
- package/content/guidance/storefront-next/sfnext-accessibility/references/checklist.md +64 -0
- package/content/guidance/storefront-next/sfnext-analytics-consent/SKILL.md +91 -0
- package/content/guidance/storefront-next/sfnext-analytics-consent/references/CUSTOM-ADAPTER.md +49 -0
- package/content/guidance/storefront-next/sfnext-authentication/SKILL.md +127 -0
- package/content/guidance/storefront-next/sfnext-authentication/references/COOKIES.md +39 -0
- package/content/guidance/storefront-next/sfnext-authentication/references/LOGIN-FLOWS.md +59 -0
- package/content/guidance/storefront-next/sfnext-commerce-features/SKILL.md +67 -0
- package/content/guidance/storefront-next/sfnext-commerce-features/references/FEATURE-PREREQUISITES.md +37 -0
- package/content/guidance/storefront-next/sfnext-components/SKILL.md +153 -0
- package/content/guidance/storefront-next/sfnext-components/references/COMPONENT-AUTHORING.md +118 -0
- package/content/guidance/storefront-next/sfnext-components/references/SHAPE-TOKENS.md +51 -0
- package/content/guidance/storefront-next/sfnext-components/references/STORYBOOK.md +54 -0
- package/content/guidance/storefront-next/sfnext-components/references/TOKEN-SYSTEM.md +53 -0
- package/content/guidance/storefront-next/sfnext-components/references/TROUBLESHOOTING.md +19 -0
- package/content/guidance/storefront-next/sfnext-configuration/SKILL.md +163 -0
- package/content/guidance/storefront-next/sfnext-configuration/references/ENV-VARIABLES.md +55 -0
- package/content/guidance/storefront-next/sfnext-configuration/references/MULTI-SITE-URLS.md +137 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/SKILL.md +140 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/ACTIONS.md +53 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/API-CLIENTS.md +34 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/LOADERS.md +73 -0
- package/content/guidance/storefront-next/sfnext-data-fetching/references/SCAPI-FETCHER.md +39 -0
- package/content/guidance/storefront-next/sfnext-deployment/SKILL.md +127 -0
- package/content/guidance/storefront-next/sfnext-deployment/references/MRT-DEPLOYMENT.md +59 -0
- package/content/guidance/storefront-next/sfnext-extensions/SKILL.md +118 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/ACTION-HOOKS.md +57 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/BASE-AUDIT.md +68 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/CLI-AND-INSTALL.md +58 -0
- package/content/guidance/storefront-next/sfnext-extensions/references/EXTENSION-EXAMPLES.md +79 -0
- package/content/guidance/storefront-next/sfnext-hybrid-storefronts/SKILL.md +93 -0
- package/content/guidance/storefront-next/sfnext-hybrid-storefronts/references/HYBRID-PROXY-CONFIG.md +86 -0
- package/content/guidance/storefront-next/sfnext-i18n/SKILL.md +152 -0
- package/content/guidance/storefront-next/sfnext-i18n/references/locale-config.md +35 -0
- package/content/guidance/storefront-next/sfnext-overview/SKILL.md +101 -0
- package/content/guidance/storefront-next/sfnext-page-designer/SKILL.md +202 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/BUSINESS-MANAGER.md +46 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/COMPONENT-REGISTRY.md +111 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/DECORATOR-PATTERNS.md +168 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/REVIEW-CHECKLIST.md +83 -0
- package/content/guidance/storefront-next/sfnext-page-designer/references/TROUBLESHOOTING.md +35 -0
- package/content/guidance/storefront-next/sfnext-performance/SKILL.md +102 -0
- package/content/guidance/storefront-next/sfnext-performance/references/PERFORMANCE-REVIEW-CHECKLIST.md +85 -0
- package/content/guidance/storefront-next/sfnext-performance/references/SUSPENSE-AND-STREAMING.md +58 -0
- package/content/guidance/storefront-next/sfnext-project-setup/SKILL.md +147 -0
- package/content/guidance/storefront-next/sfnext-project-setup/references/PROJECT-STRUCTURE.md +61 -0
- package/content/guidance/storefront-next/sfnext-project-setup/references/SCRIPTS.md +47 -0
- package/content/guidance/storefront-next/sfnext-project-setup/references/SFNEXT-CLI.md +63 -0
- package/content/guidance/storefront-next/sfnext-quality-gates/SKILL.md +70 -0
- package/content/guidance/storefront-next/sfnext-quality-gates/references/lint-and-budgets.md +39 -0
- package/content/guidance/storefront-next/sfnext-revalidation/SKILL.md +121 -0
- package/content/guidance/storefront-next/sfnext-revalidation/references/POLICIES-AND-TAGS.md +55 -0
- package/content/guidance/storefront-next/sfnext-routing/SKILL.md +123 -0
- package/content/guidance/storefront-next/sfnext-routing/references/ROUTE-CONVENTIONS.md +65 -0
- package/content/guidance/storefront-next/sfnext-routing/references/URLS-AND-SEO-ROUTES.md +22 -0
- package/content/guidance/storefront-next/sfnext-scapi/SKILL.md +126 -0
- package/content/guidance/storefront-next/sfnext-scapi/references/WORKED-EXAMPLE.md +39 -0
- package/content/guidance/storefront-next/sfnext-security/SKILL.md +129 -0
- package/content/guidance/storefront-next/sfnext-security/references/COOKIE-DOMAIN.md +39 -0
- package/content/guidance/storefront-next/sfnext-security/references/TURNSTILE.md +43 -0
- package/content/guidance/storefront-next/sfnext-seo/SKILL.md +95 -0
- package/content/guidance/storefront-next/sfnext-seo/references/MULTI-DOMAIN-BASE-PATH.md +17 -0
- package/content/guidance/storefront-next/sfnext-seo/references/SEO-ROUTES.md +31 -0
- package/content/guidance/storefront-next/sfnext-state-management/SKILL.md +114 -0
- package/content/guidance/storefront-next/sfnext-state-management/references/PATTERNS.md +45 -0
- package/content/guidance/storefront-next/sfnext-testing/SKILL.md +151 -0
- package/content/guidance/storefront-next/sfnext-testing/references/E2E.md +38 -0
- package/content/guidance/storefront-next/sfnext-testing/references/STORYBOOK-PATTERNS.md +97 -0
- package/content/guidance/storefront-next/sfnext-testing/references/UNIT-AND-ROUTE-TESTS.md +60 -0
- package/content/guidance/storefront-next/sfnext-theming/SKILL.md +104 -0
- package/content/guidance/storefront-next/sfnext-theming/references/REBRAND-CHECKLIST.md +29 -0
- package/dist/commands/cap/install.d.ts +1 -0
- package/dist/commands/cap/list.d.ts +1 -0
- package/dist/commands/cap/pull.d.ts +1 -0
- package/dist/commands/cap/tasks.d.ts +1 -0
- package/dist/commands/cap/uninstall.d.ts +1 -0
- package/dist/commands/cip/describe.d.ts +1 -0
- package/dist/commands/cip/query.d.ts +1 -0
- package/dist/commands/cip/report/bot-traffic-share.d.ts +1 -0
- package/dist/commands/cip/report/checkout-funnel-dropoff.d.ts +1 -0
- package/dist/commands/cip/report/controller-error-rate-trend.d.ts +1 -0
- package/dist/commands/cip/report/controller-health-scorecard.d.ts +1 -0
- package/dist/commands/cip/report/customer-registration-trends.d.ts +1 -0
- package/dist/commands/cip/report/discount-depth-breakdown.d.ts +1 -0
- package/dist/commands/cip/report/inventory-stockout-by-location.d.ts +1 -0
- package/dist/commands/cip/report/new-vs-returning-buyer-revenue.d.ts +1 -0
- package/dist/commands/cip/report/ocapi-client-usage.d.ts +1 -0
- package/dist/commands/cip/report/ocapi-requests.d.ts +1 -0
- package/dist/commands/cip/report/payment-method-performance.d.ts +1 -0
- package/dist/commands/cip/report/product-co-purchase-analysis.d.ts +1 -0
- package/dist/commands/cip/report/promotion-discount-analysis.d.ts +1 -0
- package/dist/commands/cip/report/promotion-roi-leaderboard.d.ts +1 -0
- package/dist/commands/cip/report/recommender-effectiveness.d.ts +1 -0
- package/dist/commands/cip/report/remote-include-performance.d.ts +1 -0
- package/dist/commands/cip/report/revenue-by-channel.d.ts +1 -0
- package/dist/commands/cip/report/sales-analytics.d.ts +1 -0
- package/dist/commands/cip/report/sales-summary.d.ts +1 -0
- package/dist/commands/cip/report/scapi-cache-hit-ratio.d.ts +1 -0
- package/dist/commands/cip/report/scapi-error-rate-by-status.d.ts +1 -0
- package/dist/commands/cip/report/scapi-latency-distribution.d.ts +1 -0
- package/dist/commands/cip/report/scapi-traffic-latency.d.ts +1 -0
- package/dist/commands/cip/report/search-query-performance.d.ts +1 -0
- package/dist/commands/cip/report/top-referrers.d.ts +1 -0
- package/dist/commands/cip/report/top-selling-products.d.ts +1 -0
- package/dist/commands/cip/report/zero-result-searches.d.ts +1 -0
- package/dist/commands/cip/tables.d.ts +1 -0
- package/dist/commands/code/activate.d.ts +1 -0
- package/dist/commands/code/delete.d.ts +1 -0
- package/dist/commands/code/deploy.d.ts +1 -0
- package/dist/commands/code/download.d.ts +1 -0
- package/dist/commands/code/watch.d.ts +1 -0
- package/dist/commands/commands/search.d.ts +35 -0
- package/dist/commands/commands/search.js +85 -0
- package/dist/commands/commands/search.js.map +1 -0
- package/dist/commands/content/export.d.ts +1 -0
- package/dist/commands/content/list.d.ts +1 -0
- package/dist/commands/content/validate.d.ts +1 -0
- package/dist/commands/debug/cli.d.ts +1 -0
- package/dist/commands/debug/index.d.ts +1 -0
- package/dist/commands/docs/cache.d.ts +1 -0
- package/dist/commands/docs/download.d.ts +1 -0
- package/dist/commands/docs/read.d.ts +1 -0
- package/dist/commands/docs/schema.d.ts +1 -0
- package/dist/commands/docs/search.d.ts +1 -0
- package/dist/commands/docs/skill.d.ts +41 -0
- package/dist/commands/docs/skill.js +183 -0
- package/dist/commands/docs/skill.js.map +1 -0
- package/dist/commands/ecdn/cache/purge.d.ts +1 -0
- package/dist/commands/ecdn/certificates/add.d.ts +1 -0
- package/dist/commands/ecdn/certificates/delete.d.ts +1 -0
- package/dist/commands/ecdn/certificates/list.d.ts +1 -0
- package/dist/commands/ecdn/certificates/update.d.ts +1 -0
- package/dist/commands/ecdn/certificates/validate.d.ts +1 -0
- package/dist/commands/ecdn/cipher-suites/get.d.ts +1 -0
- package/dist/commands/ecdn/cipher-suites/update.d.ts +1 -0
- package/dist/commands/ecdn/firewall/create.d.ts +1 -0
- package/dist/commands/ecdn/firewall/delete.d.ts +1 -0
- package/dist/commands/ecdn/firewall/get.d.ts +1 -0
- package/dist/commands/ecdn/firewall/list.d.ts +1 -0
- package/dist/commands/ecdn/firewall/reorder.d.ts +1 -0
- package/dist/commands/ecdn/firewall/update.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/create.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/delete.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/get.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/list.d.ts +1 -0
- package/dist/commands/ecdn/logpush/jobs/update.d.ts +1 -0
- package/dist/commands/ecdn/logpush/ownership.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/create.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/delete.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/get.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/rules/delete.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/rules/update.d.ts +1 -0
- package/dist/commands/ecdn/mrt-rules/update.d.ts +1 -0
- package/dist/commands/ecdn/mtls/create.d.ts +1 -0
- package/dist/commands/ecdn/mtls/delete.d.ts +1 -0
- package/dist/commands/ecdn/mtls/get.d.ts +1 -0
- package/dist/commands/ecdn/mtls/issue.d.ts +1 -0
- package/dist/commands/ecdn/mtls/list.d.ts +1 -0
- package/dist/commands/ecdn/mtls/setup.d.ts +1 -0
- package/dist/commands/ecdn/origin-headers/delete.d.ts +1 -0
- package/dist/commands/ecdn/origin-headers/get.d.ts +1 -0
- package/dist/commands/ecdn/origin-headers/set.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/notifications/create.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/notifications/delete.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/notifications/list.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/create.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/delete.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/get.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/list.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/policies/update.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/scripts/get.d.ts +1 -0
- package/dist/commands/ecdn/page-shield/scripts/list.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/create.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/delete.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/get.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/list.d.ts +1 -0
- package/dist/commands/ecdn/rate-limit/update.d.ts +1 -0
- package/dist/commands/ecdn/security/get.d.ts +1 -0
- package/dist/commands/ecdn/security/update.d.ts +1 -0
- package/dist/commands/ecdn/speed/get.d.ts +1 -0
- package/dist/commands/ecdn/speed/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/groups/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/groups/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/managed-rules/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/managed-rules/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/migrate.d.ts +1 -0
- package/dist/commands/ecdn/waf/owasp/get.d.ts +1 -0
- package/dist/commands/ecdn/waf/owasp/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/rules/get.d.ts +1 -0
- package/dist/commands/ecdn/waf/rules/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/rules/update.d.ts +1 -0
- package/dist/commands/ecdn/waf/rulesets/list.d.ts +1 -0
- package/dist/commands/ecdn/waf/rulesets/update.d.ts +1 -0
- package/dist/commands/ecdn/zones/create.d.ts +1 -0
- package/dist/commands/ecdn/zones/list.d.ts +1 -0
- package/dist/commands/job/execution/delete.d.ts +1 -0
- package/dist/commands/job/export.d.ts +1 -0
- package/dist/commands/job/import-set.d.ts +1 -0
- package/dist/commands/job/import.d.ts +1 -0
- package/dist/commands/job/log.d.ts +1 -0
- package/dist/commands/job/run.d.ts +1 -0
- package/dist/commands/job/run.js +1 -1
- package/dist/commands/job/run.js.map +1 -1
- package/dist/commands/job/search.d.ts +1 -0
- package/dist/commands/job/wait.d.ts +1 -0
- package/dist/commands/logs/get.d.ts +1 -0
- package/dist/commands/logs/list.d.ts +1 -0
- package/dist/commands/logs/tail.d.ts +1 -0
- package/dist/commands/metrics/controller.d.ts +1 -0
- package/dist/commands/metrics/ecdn.d.ts +1 -0
- package/dist/commands/metrics/mrt.d.ts +1 -0
- package/dist/commands/metrics/ocapi.d.ts +1 -0
- package/dist/commands/metrics/overall.d.ts +1 -0
- package/dist/commands/metrics/sales.d.ts +1 -0
- package/dist/commands/metrics/scapi-hooks.d.ts +1 -0
- package/dist/commands/metrics/scapi.d.ts +1 -0
- package/dist/commands/metrics/third-party.d.ts +1 -0
- package/dist/commands/mrt/bundle/delete.d.ts +1 -0
- package/dist/commands/mrt/bundle/deploy.d.ts +1 -0
- package/dist/commands/mrt/bundle/download.d.ts +1 -0
- package/dist/commands/mrt/bundle/history.d.ts +1 -0
- package/dist/commands/mrt/bundle/list.d.ts +1 -0
- package/dist/commands/mrt/bundle/save.d.ts +1 -0
- package/dist/commands/mrt/bundle/upload-v2.d.ts +1 -0
- package/dist/commands/mrt/env/access-control/list.d.ts +1 -0
- package/dist/commands/mrt/env/b2c.d.ts +1 -0
- package/dist/commands/mrt/env/clone.d.ts +1 -0
- package/dist/commands/mrt/env/create.d.ts +1 -0
- package/dist/commands/mrt/env/delete.d.ts +1 -0
- package/dist/commands/mrt/env/get.d.ts +1 -0
- package/dist/commands/mrt/env/invalidate.d.ts +1 -0
- package/dist/commands/mrt/env/list.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/clone.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/create.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/delete.d.ts +1 -0
- package/dist/commands/mrt/env/redirect/list.d.ts +1 -0
- package/dist/commands/mrt/env/update.d.ts +1 -0
- package/dist/commands/mrt/env/var/delete.d.ts +1 -0
- package/dist/commands/mrt/env/var/list.d.ts +1 -0
- package/dist/commands/mrt/env/var/push.d.ts +1 -0
- package/dist/commands/mrt/env/var/set.d.ts +1 -0
- package/dist/commands/mrt/org/b2c.d.ts +1 -0
- package/dist/commands/mrt/org/cert/create.d.ts +1 -0
- package/dist/commands/mrt/org/cert/delete.d.ts +1 -0
- package/dist/commands/mrt/org/cert/get.d.ts +1 -0
- package/dist/commands/mrt/org/cert/list.d.ts +1 -0
- package/dist/commands/mrt/org/cert/restart-validation.d.ts +1 -0
- package/dist/commands/mrt/org/list.d.ts +1 -0
- package/dist/commands/mrt/org/member/add.d.ts +1 -0
- package/dist/commands/mrt/org/member/get.d.ts +1 -0
- package/dist/commands/mrt/org/member/list.d.ts +1 -0
- package/dist/commands/mrt/org/member/remove.d.ts +1 -0
- package/dist/commands/mrt/org/member/update.d.ts +1 -0
- package/dist/commands/mrt/project/create.d.ts +1 -0
- package/dist/commands/mrt/project/delete.d.ts +1 -0
- package/dist/commands/mrt/project/get.d.ts +1 -0
- package/dist/commands/mrt/project/list.d.ts +1 -0
- package/dist/commands/mrt/project/member/add.d.ts +1 -0
- package/dist/commands/mrt/project/member/get.d.ts +1 -0
- package/dist/commands/mrt/project/member/list.d.ts +1 -0
- package/dist/commands/mrt/project/member/remove.d.ts +1 -0
- package/dist/commands/mrt/project/member/update.d.ts +1 -0
- package/dist/commands/mrt/project/notification/delete.d.ts +1 -0
- package/dist/commands/mrt/project/notification/get.d.ts +1 -0
- package/dist/commands/mrt/project/update.d.ts +1 -0
- package/dist/commands/mrt/save-credentials.d.ts +1 -0
- package/dist/commands/mrt/tail-logs.d.ts +1 -0
- package/dist/commands/mrt/user/api-key.d.ts +1 -0
- package/dist/commands/mrt/user/email-prefs.d.ts +1 -0
- package/dist/commands/mrt/user/profile.d.ts +1 -0
- package/dist/commands/scaffold/init.js +2 -1
- package/dist/commands/scaffold/init.js.map +1 -1
- package/dist/commands/scapi/custom/status.d.ts +1 -0
- package/dist/commands/scapi/schemas/get.d.ts +9 -0
- package/dist/commands/scapi/schemas/get.js +51 -19
- package/dist/commands/scapi/schemas/get.js.map +1 -1
- package/dist/commands/scapi/schemas/list.d.ts +6 -0
- package/dist/commands/scapi/schemas/list.js +28 -18
- package/dist/commands/scapi/schemas/list.js.map +1 -1
- package/dist/commands/setup/get.d.ts +36 -0
- package/dist/commands/setup/get.js +67 -0
- package/dist/commands/setup/get.js.map +1 -0
- package/dist/commands/setup/ide/tsserver-plugin.d.ts +1 -0
- package/dist/commands/setup/ide/vscode-types.d.ts +1 -0
- package/dist/commands/setup/index.js +4 -3
- package/dist/commands/setup/index.js.map +1 -1
- package/dist/commands/setup/inspect.d.ts +1 -0
- package/dist/commands/setup/inspect.js +15 -4
- package/dist/commands/setup/inspect.js.map +1 -1
- package/dist/commands/setup/instance/create.d.ts +9 -0
- package/dist/commands/setup/instance/create.js +22 -6
- package/dist/commands/setup/instance/create.js.map +1 -1
- package/dist/commands/setup/instance/list.d.ts +1 -0
- package/dist/commands/setup/instance/list.js +3 -4
- package/dist/commands/setup/instance/list.js.map +1 -1
- package/dist/commands/setup/instance/remove.d.ts +1 -0
- package/dist/commands/setup/instance/remove.js +5 -5
- package/dist/commands/setup/instance/remove.js.map +1 -1
- package/dist/commands/setup/instance/set-active.d.ts +6 -0
- package/dist/commands/setup/instance/set-active.js +20 -5
- package/dist/commands/setup/instance/set-active.js.map +1 -1
- package/dist/commands/setup/openshell.d.ts +1 -0
- package/dist/commands/setup/set.d.ts +37 -0
- package/dist/commands/setup/set.js +87 -0
- package/dist/commands/setup/set.js.map +1 -0
- package/dist/commands/setup/skills.d.ts +1 -0
- package/dist/commands/setup/unset.d.ts +37 -0
- package/dist/commands/setup/unset.js +55 -0
- package/dist/commands/setup/unset.js.map +1 -0
- package/dist/commands/slas/client/create.d.ts +1 -0
- package/dist/commands/slas/client/delete.d.ts +1 -0
- package/dist/commands/slas/client/get.d.ts +1 -0
- package/dist/commands/slas/client/list.d.ts +1 -0
- package/dist/commands/slas/client/open.d.ts +1 -0
- package/dist/commands/slas/client/update.d.ts +1 -0
- package/dist/commands/slas/token.d.ts +1 -0
- package/dist/commands/slas/token.js +2 -1
- package/dist/commands/slas/token.js.map +1 -1
- package/dist/commands/webdav/get.d.ts +1 -0
- package/dist/commands/webdav/rm.d.ts +1 -0
- package/dist/help.d.ts +25 -0
- package/dist/help.js +96 -0
- package/dist/help.js.map +1 -0
- package/dist/lib/scaffold/generate-helper.js +3 -2
- package/dist/lib/scaffold/generate-helper.js.map +1 -1
- package/dist/lib/skills.d.ts +19 -0
- package/dist/lib/skills.js +75 -0
- package/dist/lib/skills.js.map +1 -0
- package/dist/utils/cip/command.d.ts +1 -0
- package/dist/utils/ecdn/zone-command.d.ts +1 -0
- package/dist/utils/setup/config-field-command.d.ts +25 -0
- package/dist/utils/setup/config-field-command.js +41 -0
- package/dist/utils/setup/config-field-command.js.map +1 -0
- package/dist/utils/slas/client.d.ts +1 -0
- package/oclif.manifest.json +20802 -16968
- package/package.json +11 -5
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
# Services XML Import/Export Reference
|
|
2
|
+
|
|
3
|
+
XML format for importing and exporting service configurations via site import/export.
|
|
4
|
+
|
|
5
|
+
## XSD Schema Reference
|
|
6
|
+
|
|
7
|
+
For the authoritative XML schema definition, use the `b2c` CLI (if installed):
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# View the services XSD schema
|
|
11
|
+
b2c docs schema services
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## XML Namespace
|
|
15
|
+
|
|
16
|
+
```xml
|
|
17
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
18
|
+
<services xmlns="http://www.demandware.com/xml/impex/services/2014-09-26">
|
|
19
|
+
<!-- service-credential, service-profile, and service elements -->
|
|
20
|
+
</services>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## XML Structure
|
|
24
|
+
|
|
25
|
+
Services XML contains three types of elements that must appear in this order:
|
|
26
|
+
|
|
27
|
+
1. `service-credential` - Authentication and URL configuration
|
|
28
|
+
2. `service-profile` - Rate limiting and circuit breaker settings
|
|
29
|
+
3. `service` - Service configuration linking credentials and profiles
|
|
30
|
+
|
|
31
|
+
## Service Credential
|
|
32
|
+
|
|
33
|
+
Defines authentication credentials and base URL.
|
|
34
|
+
|
|
35
|
+
```xml
|
|
36
|
+
<service-credential service-credential-id="my.api.credential">
|
|
37
|
+
<url>https://api.example.com/v1</url>
|
|
38
|
+
<user-id>api_user</user-id>
|
|
39
|
+
<password>plaintext_password</password>
|
|
40
|
+
</service-credential>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Credential Elements
|
|
44
|
+
|
|
45
|
+
| Element | Required | Description |
|
|
46
|
+
|---------|----------|-------------|
|
|
47
|
+
| `url` | No | Base URL for the service |
|
|
48
|
+
| `user-id` | No | Username for authentication |
|
|
49
|
+
| `password` | No | Password (plain text on import, encrypted on export) |
|
|
50
|
+
| `custom-attributes` | No | Custom attributes for the credential |
|
|
51
|
+
|
|
52
|
+
### Password Encryption
|
|
53
|
+
|
|
54
|
+
On export, passwords are encrypted:
|
|
55
|
+
|
|
56
|
+
```xml
|
|
57
|
+
<password encrypted="true" encryption-type="common.export">
|
|
58
|
+
bZHe1DBvCOyUTyHpte9DSgQ2qpqQXe+s6vlsRYbEYAs=
|
|
59
|
+
</password>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
On import, use plain text:
|
|
63
|
+
|
|
64
|
+
```xml
|
|
65
|
+
<password>my_secret_password</password>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Credential with Custom Attributes
|
|
69
|
+
|
|
70
|
+
```xml
|
|
71
|
+
<service-credential service-credential-id="aws.s3">
|
|
72
|
+
<url>https://bucket-name.s3.amazonaws.com</url>
|
|
73
|
+
<user-id>AWS_ACCESS_KEY_ID</user-id>
|
|
74
|
+
<password>AWS_SECRET_ACCESS_KEY</password>
|
|
75
|
+
<custom-attributes>
|
|
76
|
+
<custom-attribute attribute-id="awsRegion">us-east-2</custom-attribute>
|
|
77
|
+
</custom-attributes>
|
|
78
|
+
</service-credential>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Service Profile
|
|
82
|
+
|
|
83
|
+
Defines timeout, rate limiting, and circuit breaker settings.
|
|
84
|
+
|
|
85
|
+
```xml
|
|
86
|
+
<service-profile service-profile-id="my.api.profile">
|
|
87
|
+
<timeout-millis>30000</timeout-millis>
|
|
88
|
+
<rate-limit-enabled>true</rate-limit-enabled>
|
|
89
|
+
<rate-limit-calls>10</rate-limit-calls>
|
|
90
|
+
<rate-limit-millis>2000</rate-limit-millis>
|
|
91
|
+
<cb-enabled>true</cb-enabled>
|
|
92
|
+
<cb-calls>5</cb-calls>
|
|
93
|
+
<cb-millis>5000</cb-millis>
|
|
94
|
+
</service-profile>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Profile Elements
|
|
98
|
+
|
|
99
|
+
| Element | Required | Default | Description |
|
|
100
|
+
|---------|----------|---------|-------------|
|
|
101
|
+
| `timeout-millis` | No | 30000 | Request timeout in milliseconds |
|
|
102
|
+
| `rate-limit-enabled` | No | false | Enable rate limiting |
|
|
103
|
+
| `rate-limit-calls` | No | 0 | Max calls in rate limit window |
|
|
104
|
+
| `rate-limit-millis` | No | 0 | Rate limit time window in ms |
|
|
105
|
+
| `cb-enabled` | No | false | Enable circuit breaker |
|
|
106
|
+
| `cb-ignore-5xx` | No | false | Don't count 5xx as failures |
|
|
107
|
+
| `cb-calls` | No | 0 | Failures before circuit opens |
|
|
108
|
+
| `cb-millis` | No | 0 | Circuit breaker time window |
|
|
109
|
+
| `custom-attributes` | No | | Custom attributes |
|
|
110
|
+
|
|
111
|
+
### Profile Examples
|
|
112
|
+
|
|
113
|
+
**High-throughput API:**
|
|
114
|
+
```xml
|
|
115
|
+
<service-profile service-profile-id="high-throughput">
|
|
116
|
+
<timeout-millis>5000</timeout-millis>
|
|
117
|
+
<rate-limit-enabled>true</rate-limit-enabled>
|
|
118
|
+
<rate-limit-calls>100</rate-limit-calls>
|
|
119
|
+
<rate-limit-millis>1000</rate-limit-millis>
|
|
120
|
+
<cb-enabled>true</cb-enabled>
|
|
121
|
+
<cb-calls>10</cb-calls>
|
|
122
|
+
<cb-millis>2000</cb-millis>
|
|
123
|
+
</service-profile>
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Long-running service (no rate limit):**
|
|
127
|
+
```xml
|
|
128
|
+
<service-profile service-profile-id="long-running">
|
|
129
|
+
<timeout-millis>90000</timeout-millis>
|
|
130
|
+
<rate-limit-enabled>false</rate-limit-enabled>
|
|
131
|
+
<rate-limit-calls>0</rate-limit-calls>
|
|
132
|
+
<rate-limit-millis>0</rate-limit-millis>
|
|
133
|
+
<cb-enabled>true</cb-enabled>
|
|
134
|
+
<cb-calls>3</cb-calls>
|
|
135
|
+
<cb-millis>1000</cb-millis>
|
|
136
|
+
</service-profile>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
**No protections (internal service):**
|
|
140
|
+
```xml
|
|
141
|
+
<service-profile service-profile-id="internal">
|
|
142
|
+
<timeout-millis>60000</timeout-millis>
|
|
143
|
+
<rate-limit-enabled>false</rate-limit-enabled>
|
|
144
|
+
<rate-limit-calls>0</rate-limit-calls>
|
|
145
|
+
<rate-limit-millis>0</rate-limit-millis>
|
|
146
|
+
<cb-enabled>false</cb-enabled>
|
|
147
|
+
<cb-calls>0</cb-calls>
|
|
148
|
+
<cb-millis>0</cb-millis>
|
|
149
|
+
</service-profile>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Service
|
|
153
|
+
|
|
154
|
+
Links service type, profile, and credential together.
|
|
155
|
+
|
|
156
|
+
```xml
|
|
157
|
+
<service service-id="my.api.service">
|
|
158
|
+
<service-type>HTTP</service-type>
|
|
159
|
+
<enabled>true</enabled>
|
|
160
|
+
<log-prefix>myapi</log-prefix>
|
|
161
|
+
<comm-log-enabled>false</comm-log-enabled>
|
|
162
|
+
<force-prd-enabled>true</force-prd-enabled>
|
|
163
|
+
<mock-mode-enabled>false</mock-mode-enabled>
|
|
164
|
+
<profile-id>my.api.profile</profile-id>
|
|
165
|
+
<credential-id>my.api.credential</credential-id>
|
|
166
|
+
</service>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Service Elements
|
|
170
|
+
|
|
171
|
+
| Element | Required | Description |
|
|
172
|
+
|---------|----------|-------------|
|
|
173
|
+
| `service-type` | Yes | HTTP, HTTPForm, FTP, SFTP, SOAP, GENERIC |
|
|
174
|
+
| `enabled` | No | Enable/disable the service |
|
|
175
|
+
| `log-prefix` | No | Prefix for log entries |
|
|
176
|
+
| `comm-log-enabled` | No | Enable communication logging |
|
|
177
|
+
| `force-prd-enabled` | No | Force logging on production |
|
|
178
|
+
| `mock-mode-enabled` | No | Enable mock mode |
|
|
179
|
+
| `profile-id` | No | Reference to service profile |
|
|
180
|
+
| `credential-id` | No | Reference to service credential |
|
|
181
|
+
| `custom-attributes` | No | Custom attributes |
|
|
182
|
+
|
|
183
|
+
### Service Types
|
|
184
|
+
|
|
185
|
+
| Type | Description |
|
|
186
|
+
|------|-------------|
|
|
187
|
+
| `HTTP` | Standard HTTP/HTTPS requests |
|
|
188
|
+
| `HTTPForm` | Form-encoded HTTP requests |
|
|
189
|
+
| `FTP` | FTP file transfer (deprecated) |
|
|
190
|
+
| `SFTP` | Secure FTP file transfer |
|
|
191
|
+
| `SOAP` | SOAP web services |
|
|
192
|
+
| `GENERIC` | Custom protocol implementation |
|
|
193
|
+
|
|
194
|
+
## Complete Example
|
|
195
|
+
|
|
196
|
+
```xml
|
|
197
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
198
|
+
<services xmlns="http://www.demandware.com/xml/impex/services/2014-09-26">
|
|
199
|
+
|
|
200
|
+
<!-- OAuth Token Endpoint Credential -->
|
|
201
|
+
<service-credential service-credential-id="my.oauth.token.cred">
|
|
202
|
+
<url>https://auth.example.com/oauth/token</url>
|
|
203
|
+
<user-id>client_id_here</user-id>
|
|
204
|
+
<password>client_secret_here</password>
|
|
205
|
+
</service-credential>
|
|
206
|
+
|
|
207
|
+
<!-- API Credential (no auth needed, only URL) -->
|
|
208
|
+
<service-credential service-credential-id="my.api.cred">
|
|
209
|
+
<url>https://api.example.com/v2</url>
|
|
210
|
+
</service-credential>
|
|
211
|
+
|
|
212
|
+
<!-- SFTP Credential -->
|
|
213
|
+
<service-credential service-credential-id="my.sftp.cred">
|
|
214
|
+
<url>sftp://sftp.example.com:22</url>
|
|
215
|
+
<user-id>sftp_user</user-id>
|
|
216
|
+
<password>sftp_password</password>
|
|
217
|
+
</service-credential>
|
|
218
|
+
|
|
219
|
+
<!-- Standard API Profile -->
|
|
220
|
+
<service-profile service-profile-id="standard.api">
|
|
221
|
+
<timeout-millis>15000</timeout-millis>
|
|
222
|
+
<rate-limit-enabled>true</rate-limit-enabled>
|
|
223
|
+
<rate-limit-calls>10</rate-limit-calls>
|
|
224
|
+
<rate-limit-millis>2000</rate-limit-millis>
|
|
225
|
+
<cb-enabled>true</cb-enabled>
|
|
226
|
+
<cb-calls>5</cb-calls>
|
|
227
|
+
<cb-millis>2000</cb-millis>
|
|
228
|
+
</service-profile>
|
|
229
|
+
|
|
230
|
+
<!-- Auth Profile (short timeout) -->
|
|
231
|
+
<service-profile service-profile-id="auth.profile">
|
|
232
|
+
<timeout-millis>5000</timeout-millis>
|
|
233
|
+
<rate-limit-enabled>false</rate-limit-enabled>
|
|
234
|
+
<rate-limit-calls>0</rate-limit-calls>
|
|
235
|
+
<rate-limit-millis>0</rate-limit-millis>
|
|
236
|
+
<cb-enabled>false</cb-enabled>
|
|
237
|
+
<cb-calls>0</cb-calls>
|
|
238
|
+
<cb-millis>0</cb-millis>
|
|
239
|
+
</service-profile>
|
|
240
|
+
|
|
241
|
+
<!-- SFTP Profile -->
|
|
242
|
+
<service-profile service-profile-id="sftp.profile">
|
|
243
|
+
<timeout-millis>60000</timeout-millis>
|
|
244
|
+
<rate-limit-enabled>true</rate-limit-enabled>
|
|
245
|
+
<rate-limit-calls>5</rate-limit-calls>
|
|
246
|
+
<rate-limit-millis>10000</rate-limit-millis>
|
|
247
|
+
<cb-enabled>true</cb-enabled>
|
|
248
|
+
<cb-calls>3</cb-calls>
|
|
249
|
+
<cb-millis>5000</cb-millis>
|
|
250
|
+
</service-profile>
|
|
251
|
+
|
|
252
|
+
<!-- OAuth Token Service -->
|
|
253
|
+
<service service-id="my.oauth.token">
|
|
254
|
+
<service-type>HTTPForm</service-type>
|
|
255
|
+
<enabled>true</enabled>
|
|
256
|
+
<log-prefix>oauth</log-prefix>
|
|
257
|
+
<comm-log-enabled>false</comm-log-enabled>
|
|
258
|
+
<force-prd-enabled>true</force-prd-enabled>
|
|
259
|
+
<mock-mode-enabled>false</mock-mode-enabled>
|
|
260
|
+
<profile-id>auth.profile</profile-id>
|
|
261
|
+
<credential-id>my.oauth.token.cred</credential-id>
|
|
262
|
+
</service>
|
|
263
|
+
|
|
264
|
+
<!-- Main API Service -->
|
|
265
|
+
<service service-id="my.api">
|
|
266
|
+
<service-type>HTTP</service-type>
|
|
267
|
+
<enabled>true</enabled>
|
|
268
|
+
<log-prefix>myapi</log-prefix>
|
|
269
|
+
<comm-log-enabled>false</comm-log-enabled>
|
|
270
|
+
<force-prd-enabled>true</force-prd-enabled>
|
|
271
|
+
<mock-mode-enabled>false</mock-mode-enabled>
|
|
272
|
+
<profile-id>standard.api</profile-id>
|
|
273
|
+
<credential-id>my.api.cred</credential-id>
|
|
274
|
+
</service>
|
|
275
|
+
|
|
276
|
+
<!-- SFTP Service -->
|
|
277
|
+
<service service-id="my.sftp">
|
|
278
|
+
<service-type>SFTP</service-type>
|
|
279
|
+
<enabled>true</enabled>
|
|
280
|
+
<log-prefix>sftp</log-prefix>
|
|
281
|
+
<comm-log-enabled>true</comm-log-enabled>
|
|
282
|
+
<force-prd-enabled>false</force-prd-enabled>
|
|
283
|
+
<mock-mode-enabled>false</mock-mode-enabled>
|
|
284
|
+
<profile-id>sftp.profile</profile-id>
|
|
285
|
+
<credential-id>my.sftp.cred</credential-id>
|
|
286
|
+
</service>
|
|
287
|
+
|
|
288
|
+
</services>
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
## Delete Mode
|
|
292
|
+
|
|
293
|
+
To delete a service configuration during import, use `mode="delete"`:
|
|
294
|
+
|
|
295
|
+
```xml
|
|
296
|
+
<service service-id="old.service" mode="delete">
|
|
297
|
+
<service-type>HTTP</service-type>
|
|
298
|
+
</service>
|
|
299
|
+
|
|
300
|
+
<service-profile service-profile-id="old.profile" mode="delete"/>
|
|
301
|
+
|
|
302
|
+
<service-credential service-credential-id="old.credential" mode="delete"/>
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
## Import via CLI
|
|
306
|
+
|
|
307
|
+
```bash
|
|
308
|
+
# Import services configuration
|
|
309
|
+
b2c job import ./my-import-folder --wait
|
|
310
|
+
|
|
311
|
+
# The import folder should contain services.xml at the root
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
## Export via Business Manager
|
|
315
|
+
|
|
316
|
+
1. Go to **Administration > Site Development > Site Import & Export**
|
|
317
|
+
2. Select **Export** and choose **Services**
|
|
318
|
+
3. Download the exported archive containing `services.xml`
|
|
319
|
+
|
|
320
|
+
## Best Practices
|
|
321
|
+
|
|
322
|
+
1. **Use consistent naming**: Match service-id, profile-id, and credential-id
|
|
323
|
+
```
|
|
324
|
+
my.integration (service)
|
|
325
|
+
my.integration (profile)
|
|
326
|
+
my.integration.cred (credential)
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
2. **Separate auth credentials**: Create dedicated credentials for OAuth token endpoints
|
|
330
|
+
```
|
|
331
|
+
my.api.cred (API calls)
|
|
332
|
+
my.api.auth.cred (Token endpoint)
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
3. **Environment-specific credentials**: Use different credential IDs per environment
|
|
336
|
+
```
|
|
337
|
+
my.api.dev.cred (Development)
|
|
338
|
+
my.api.stg.cred (Staging)
|
|
339
|
+
my.api.prd.cred (Production)
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
4. **Don't commit passwords**: Remove or mask passwords in version-controlled files
|
|
343
|
+
```xml
|
|
344
|
+
<password>PLACEHOLDER</password>
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
5. **Set appropriate timeouts**: Match profile timeout to expected response times
|
|
348
|
+
- Auth endpoints: 5000ms
|
|
349
|
+
- Standard APIs: 15000-30000ms
|
|
350
|
+
- File transfers: 60000ms+
|
|
351
|
+
- Long-running processes: 90000ms+
|