@salesforce/b2c-tooling-sdk 2.3.0 → 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/data/guides/enrichment.json +291 -0
- package/data/guides/index.json +426 -37
- package/data/schemas/dw.schema.json +590 -0
- package/data/tooling/index.json +18 -9
- package/dist/esm/cli/base-command.d.ts +20 -1
- package/dist/esm/cli/base-command.js +61 -11
- package/dist/esm/cli/base-command.js.map +1 -1
- package/dist/esm/cli/cartridge-command.js +2 -1
- package/dist/esm/cli/cartridge-command.js.map +1 -1
- package/dist/esm/cli/command-search.d.ts +85 -0
- package/dist/esm/cli/command-search.js +147 -0
- package/dist/esm/cli/command-search.js.map +1 -0
- package/dist/esm/cli/config.d.ts +10 -1
- package/dist/esm/cli/config.js +18 -9
- package/dist/esm/cli/config.js.map +1 -1
- package/dist/esm/cli/hooks.d.ts +13 -0
- package/dist/esm/cli/hooks.js +11 -0
- package/dist/esm/cli/hooks.js.map +1 -1
- package/dist/esm/cli/index.d.ts +2 -0
- package/dist/esm/cli/index.js +2 -0
- package/dist/esm/cli/index.js.map +1 -1
- package/dist/esm/cli/instance-command.d.ts +1 -0
- package/dist/esm/cli/instance-command.js +2 -1
- package/dist/esm/cli/instance-command.js.map +1 -1
- package/dist/esm/cli/mrt-command.d.ts +3 -2
- package/dist/esm/cli/mrt-command.js +4 -4
- package/dist/esm/cli/mrt-command.js.map +1 -1
- package/dist/esm/cli/oauth-command.d.ts +1 -0
- package/dist/esm/cli/ods-command.d.ts +1 -0
- package/dist/esm/cli/webdav-command.d.ts +1 -0
- package/dist/esm/clients/custom-apis.d.ts +36 -2
- package/dist/esm/clients/custom-apis.js +57 -4
- package/dist/esm/clients/custom-apis.js.map +1 -1
- package/dist/esm/clients/index.d.ts +1 -1
- package/dist/esm/clients/index.js +1 -1
- package/dist/esm/clients/index.js.map +1 -1
- package/dist/esm/clients/scapi-backend-utils.d.ts +15 -0
- package/dist/esm/clients/scapi-backend-utils.js +28 -1
- package/dist/esm/clients/scapi-backend-utils.js.map +1 -1
- package/dist/esm/clients/scapi-fallback-backend.js +2 -2
- package/dist/esm/clients/scapi-fallback-backend.js.map +1 -1
- package/dist/esm/clients/scapi-schemas.generated.d.ts +2 -2
- package/dist/esm/compat/dispatcher.js +2 -2
- package/dist/esm/compat/dispatcher.js.map +1 -1
- package/dist/esm/config/config-origins.d.ts +19 -0
- package/dist/esm/config/config-origins.js +11 -0
- package/dist/esm/config/config-origins.js.map +1 -0
- package/dist/esm/config/config-write.d.ts +86 -0
- package/dist/esm/config/config-write.js +296 -0
- package/dist/esm/config/config-write.js.map +1 -0
- package/dist/esm/config/dw-json-schema.d.ts +14 -0
- package/dist/esm/config/dw-json-schema.js +269 -0
- package/dist/esm/config/dw-json-schema.js.map +1 -0
- package/dist/esm/config/dw-json.d.ts +2 -0
- package/dist/esm/config/dw-json.js +10 -6
- package/dist/esm/config/dw-json.js.map +1 -1
- package/dist/esm/config/index.d.ts +13 -4
- package/dist/esm/config/index.js +8 -3
- package/dist/esm/config/index.js.map +1 -1
- package/dist/esm/config/instance-manager.d.ts +64 -28
- package/dist/esm/config/instance-manager.js +145 -63
- package/dist/esm/config/instance-manager.js.map +1 -1
- package/dist/esm/config/mapping.d.ts +5 -0
- package/dist/esm/config/mapping.js +20 -1
- package/dist/esm/config/mapping.js.map +1 -1
- package/dist/esm/config/project-environment.d.ts +62 -0
- package/dist/esm/config/project-environment.js +113 -0
- package/dist/esm/config/project-environment.js.map +1 -1
- package/dist/esm/config/resolver.d.ts +22 -0
- package/dist/esm/config/resolver.js +106 -37
- package/dist/esm/config/resolver.js.map +1 -1
- package/dist/esm/config/sources/dw-json-source.d.ts +9 -1
- package/dist/esm/config/sources/dw-json-source.js +59 -23
- package/dist/esm/config/sources/dw-json-source.js.map +1 -1
- package/dist/esm/config/sources/env-source.d.ts +70 -9
- package/dist/esm/config/sources/env-source.js +205 -47
- package/dist/esm/config/sources/env-source.js.map +1 -1
- package/dist/esm/config/sources/index.d.ts +1 -1
- package/dist/esm/config/sources/index.js +1 -1
- package/dist/esm/config/sources/index.js.map +1 -1
- package/dist/esm/config/types.d.ts +53 -3
- package/dist/esm/docs/search.js +3 -1
- package/dist/esm/docs/search.js.map +1 -1
- package/dist/esm/docs/types.d.ts +3 -1
- package/dist/esm/guidance/bundle.d.ts +33 -0
- package/dist/esm/guidance/bundle.js +268 -0
- package/dist/esm/guidance/bundle.js.map +1 -0
- package/dist/esm/guidance/catalog.d.ts +8 -1
- package/dist/esm/guidance/catalog.js +48 -6
- package/dist/esm/guidance/catalog.js.map +1 -1
- package/dist/esm/guidance/index.d.ts +1 -0
- package/dist/esm/guidance/index.js +1 -0
- package/dist/esm/guidance/index.js.map +1 -1
- package/dist/esm/guidance/types.d.ts +17 -1
- package/dist/esm/guidance/types.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/operations/jobs/run-system-job.js +2 -2
- package/dist/esm/operations/jobs/run-system-job.js.map +1 -1
- package/dist/esm/plugins/discovery.js +2 -1
- package/dist/esm/plugins/discovery.js.map +1 -1
- package/dist/esm/scapi/catalog.d.ts +5 -2
- package/dist/esm/scapi/catalog.js.map +1 -1
- package/dist/esm/scapi/index.d.ts +6 -2
- package/dist/esm/scapi/index.js +4 -2
- package/dist/esm/scapi/index.js.map +1 -1
- package/dist/esm/scapi/live.d.ts +14 -3
- package/dist/esm/scapi/live.js +33 -5
- package/dist/esm/scapi/live.js.map +1 -1
- package/dist/esm/scapi/local.d.ts +26 -0
- package/dist/esm/scapi/local.js +143 -0
- package/dist/esm/scapi/local.js.map +1 -0
- package/dist/esm/scapi/request.d.ts +2 -2
- package/dist/esm/scapi/request.js +4 -2
- package/dist/esm/scapi/request.js.map +1 -1
- package/dist/esm/scapi/runtime.d.ts +5 -0
- package/dist/esm/scapi/runtime.js.map +1 -1
- package/dist/esm/scapi/schema-source.d.ts +90 -0
- package/dist/esm/scapi/schema-source.js +146 -0
- package/dist/esm/scapi/schema-source.js.map +1 -0
- package/dist/esm/scapi/worker-source.js +31 -7
- package/dist/esm/scapi/worker-source.js.map +1 -1
- package/dist/esm/telemetry/telemetry.d.ts +1 -0
- package/dist/esm/telemetry/telemetry.js +18 -1
- package/dist/esm/telemetry/telemetry.js.map +1 -1
- package/dist/esm/telemetry/types.d.ts +9 -0
- package/dist/esm/test-utils/config-isolation.js +21 -15
- package/dist/esm/test-utils/config-isolation.js.map +1 -1
- package/dist/esm/ux/agent-context.d.ts +69 -0
- package/dist/esm/ux/agent-context.js +133 -0
- package/dist/esm/ux/agent-context.js.map +1 -0
- package/dist/esm/ux/confirm.d.ts +27 -0
- package/dist/esm/ux/confirm.js +32 -0
- package/dist/esm/ux/confirm.js.map +1 -1
- package/dist/esm/ux/index.d.ts +2 -1
- package/dist/esm/ux/index.js +2 -1
- package/dist/esm/ux/index.js.map +1 -1
- package/node_modules/@salesforce/b2c-api-schemas/manifest.json +83 -42
- package/node_modules/@salesforce/b2c-api-schemas/package.json +1 -1
- package/node_modules/@salesforce/b2c-api-schemas/scapi/cdn/zones/v1.json +6798 -238
- package/node_modules/@salesforce/b2c-api-schemas/scapi/checkout/orders/v1.json +2296 -205
- package/node_modules/@salesforce/b2c-api-schemas/scapi/checkout/shopper-baskets/v1.json +5571 -666
- package/node_modules/@salesforce/b2c-api-schemas/scapi/checkout/shopper-baskets/v2.json +6062 -371
- package/node_modules/@salesforce/b2c-api-schemas/scapi/checkout/shopper-orders/v1.json +3426 -360
- package/node_modules/@salesforce/b2c-api-schemas/scapi/checkout/shopper-payments/v1.json +351 -99
- package/node_modules/@salesforce/b2c-api-schemas/scapi/configuration/cors/v1.json +172 -12
- package/node_modules/@salesforce/b2c-api-schemas/scapi/configuration/preferences/v1.json +1497 -111
- package/node_modules/@salesforce/b2c-api-schemas/scapi/configuration/shopper-configurations/v1.json +202 -36
- package/node_modules/@salesforce/b2c-api-schemas/scapi/configuration/timeouts/v1.json +79 -10
- package/node_modules/@salesforce/b2c-api-schemas/scapi/custom-object/custom-objects/v1.json +785 -49
- package/node_modules/@salesforce/b2c-api-schemas/scapi/custom-object/shopper-custom-objects/v1.json +191 -40
- package/node_modules/@salesforce/b2c-api-schemas/scapi/customer/customers/v1.json +1483 -107
- package/node_modules/@salesforce/b2c-api-schemas/scapi/customer/shopper-customers/v1.json +4854 -787
- package/node_modules/@salesforce/b2c-api-schemas/scapi/dx/custom-apis/v1.json +119 -15
- package/node_modules/@salesforce/b2c-api-schemas/scapi/dx/object-definitions/v1.json +1699 -80
- package/node_modules/@salesforce/b2c-api-schemas/scapi/dx/scapi-schemas/v1.json +252 -18
- package/node_modules/@salesforce/b2c-api-schemas/scapi/dx/scripts/v1.json +329 -23
- package/node_modules/@salesforce/b2c-api-schemas/scapi/experience/experiences/v1.json +4208 -234
- package/node_modules/@salesforce/b2c-api-schemas/scapi/experience/shopper-experience/v1.json +1591 -247
- package/node_modules/@salesforce/b2c-api-schemas/scapi/intelligence/analytics/v1.json +396 -8
- package/node_modules/@salesforce/b2c-api-schemas/scapi/inventory/availability/v1.json +1242 -69
- package/node_modules/@salesforce/b2c-api-schemas/scapi/inventory/impex/v1.json +2354 -248
- package/node_modules/@salesforce/b2c-api-schemas/scapi/inventory/reservation/v1.json +1550 -45
- package/node_modules/@salesforce/b2c-api-schemas/scapi/inventory/segmentation/v1.json +6615 -0
- package/node_modules/@salesforce/b2c-api-schemas/scapi/merchant/roles/v1.json +1520 -59
- package/node_modules/@salesforce/b2c-api-schemas/scapi/merchant/users/v1.json +397 -17
- package/node_modules/@salesforce/b2c-api-schemas/scapi/observability/metrics/v1.json +1241 -27
- package/node_modules/@salesforce/b2c-api-schemas/scapi/operation/jobs/v1.json +1069 -68
- package/node_modules/@salesforce/b2c-api-schemas/scapi/operation/replications/v1.json +410 -23
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/assignments/v1.json +502 -102
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/campaigns/v1.json +1112 -94
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/coupons/v1.json +820 -93
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/gift-certificates/v1.json +845 -92
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/promotions/v1.json +2716 -674
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/shopper-gift-certificates/v1.json +130 -47
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/shopper-promotions/v1.json +233 -63
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/source-code-groups/v1.json +630 -70
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/catalogs/v1.json +2886 -348
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/inventory-lists/v1.json +520 -19
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/price-books/v1.json +3115 -293
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/products/v1.json +3313 -138
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/shopper-availability/v1.json +266 -52
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/shopper-delivery-estimates/v1.json +256 -48
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/shopper-products/v1.json +1744 -306
- package/node_modules/@salesforce/b2c-api-schemas/scapi/search/shopper-search/v1.json +1661 -120
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/auth/v1.json +2174 -118
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/auth-admin/v1.json +1373 -24
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/consents/v1.json +531 -20
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/shopper-agents/v1.json +154 -6
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/shopper-consents/v1.json +596 -79
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/shopper-context/v1.json +456 -42
- package/node_modules/@salesforce/b2c-api-schemas/scapi/site/seo/v1.json +101 -23
- package/node_modules/@salesforce/b2c-api-schemas/scapi/site/shopper-seo/v1.json +184 -41
- package/node_modules/@salesforce/b2c-api-schemas/scapi/site/sites/v1.json +995 -47
- package/node_modules/@salesforce/b2c-api-schemas/scapi/store/shopper-stores/v1.json +370 -67
- package/node_modules/@salesforce/b2c-api-schemas/scapi/store/store-redirect-mappings/v1.json +319 -11
- package/node_modules/@salesforce/b2c-api-schemas/scapi/store/stores/v1.json +1109 -64
- package/node_modules/@salesforce/b2c-api-schemas/scapi/storefront/deployments/v1.json +1442 -0
- package/node_modules/@salesforce/b2c-api-schemas/scapi/storefront/environments/v1.json +4293 -0
- package/node_modules/@salesforce/b2c-api-schemas/scapi/storefront/storefronts/v1.json +1371 -0
- package/package.json +5 -2
- package/specs/scapi-schemas-v1.yaml +4 -1
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
"openapi": "3.0.1",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Timeouts",
|
|
5
|
-
"
|
|
5
|
+
"description": "[Download API specification](https://developer.salesforce.com/static/commercecloud/commerce-api/timeouts/timeouts-oas-v1-public.yaml)\n\n# API Overview\n\nUse the Timeouts API to manage SCAPI timeouts.\n\nYou can specify individual timeout values for specific APIs. Note that you can't set timeouts at the API family level.\n\n## Authentication & Authorization\n\nFor resource access, you must use a client ID and client secret from Account Manager to request an access token. The access token is used as a bearer token and added to the Authorization header of your API request. \n\nYou must include `sfcc.timeouts.rw` (read-write access) or `sfcc.timeouts` (read-only access) in the client ID used to generate the token. For a full list of permissions, see the [Authorization Scopes Catalog.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/auth-z-scope-catalog.html)\n\nFor detailed setup instructions, see the [Authorization for Admin APIs](https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-admin-apis.html) guide.\n\n## Response Details\n\n### Timeouts\n\nAdmin API requests must respond within 60 seconds. If a response exceeds this threshold, an HTTP 504 status code is returned. For details, see [Timeouts and Limits.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/timeouts-limits.html)\n\n### Error Handling\n\nError responses follow the [RFC 7807](https://datatracker.ietf.org/doc/html/rfc7807) problem detail format. To trace errors, include a `correlation-id` header in your request — the response returns it as `x-correlation-id`. For details, see [HTTP Status Codes and Errors.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/error-response-codes.html)\n\n## Use Cases\n\n### Manage Timeouts\n\nUse the timeouts endpoint to retrieve, set, or delete your configuration for timeouts.\n\n## Usage Notes\n\n1. Timeout configuration is set per instance type (development, staging, and production), not per site. Updating the configuration for one instance type does not affect the others.\n2. Configure timeouts for an individual API, not an API family.\n3. Wildcards are not allowed.\n4. Max timeout value is 120 seconds.",
|
|
6
|
+
"version": "1.0.7",
|
|
6
7
|
"x-api-type": "Admin",
|
|
7
8
|
"x-api-family": "Configuration"
|
|
8
9
|
},
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
"url": "https://{shortCode}.api.commercecloud.salesforce.com/configuration/timeouts/v1",
|
|
12
13
|
"variables": {
|
|
13
14
|
"shortCode": {
|
|
15
|
+
"description": "An eight-character string assigned to a realm for routing purposes. See [Base URL and Request Formation.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html)",
|
|
14
16
|
"default": "shortCode"
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -19,17 +21,21 @@
|
|
|
19
21
|
"paths": {
|
|
20
22
|
"/organizations/{organizationId}/timeouts": {
|
|
21
23
|
"get": {
|
|
24
|
+
"summary": "Return a set of SCAPI timeout overrides.",
|
|
25
|
+
"description": "Return a set of SCAPI timeout overrides.",
|
|
22
26
|
"operationId": "getTimeouts",
|
|
23
27
|
"parameters": [
|
|
24
28
|
{
|
|
25
29
|
"name": "organizationId",
|
|
26
30
|
"in": "path",
|
|
31
|
+
"description": "An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).",
|
|
27
32
|
"required": true,
|
|
28
33
|
"style": "simple",
|
|
29
34
|
"explode": false,
|
|
30
35
|
"schema": {
|
|
31
36
|
"$ref": "#/components/schemas/OrganizationId"
|
|
32
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"example": "f_ecom_zzxy_prd"
|
|
33
39
|
}
|
|
34
40
|
],
|
|
35
41
|
"responses": {
|
|
@@ -39,6 +45,11 @@
|
|
|
39
45
|
"application/json": {
|
|
40
46
|
"schema": {
|
|
41
47
|
"$ref": "#/components/schemas/TimeoutConfigurations"
|
|
48
|
+
},
|
|
49
|
+
"examples": {
|
|
50
|
+
"TimeoutExample": {
|
|
51
|
+
"$ref": "#/components/examples/TimeoutsExample"
|
|
52
|
+
}
|
|
42
53
|
}
|
|
43
54
|
}
|
|
44
55
|
}
|
|
@@ -54,17 +65,21 @@
|
|
|
54
65
|
]
|
|
55
66
|
},
|
|
56
67
|
"put": {
|
|
68
|
+
"summary": "Create or replace the full set of SCAPI timeout overrides.",
|
|
69
|
+
"description": "Create or replace the full set of SCAPI timeout overrides.",
|
|
57
70
|
"operationId": "putTimeouts",
|
|
58
71
|
"parameters": [
|
|
59
72
|
{
|
|
60
73
|
"name": "organizationId",
|
|
61
74
|
"in": "path",
|
|
75
|
+
"description": "An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).",
|
|
62
76
|
"required": true,
|
|
63
77
|
"style": "simple",
|
|
64
78
|
"explode": false,
|
|
65
79
|
"schema": {
|
|
66
80
|
"$ref": "#/components/schemas/OrganizationId"
|
|
67
|
-
}
|
|
81
|
+
},
|
|
82
|
+
"example": "f_ecom_zzxy_prd"
|
|
68
83
|
}
|
|
69
84
|
],
|
|
70
85
|
"requestBody": {
|
|
@@ -72,6 +87,11 @@
|
|
|
72
87
|
"application/json": {
|
|
73
88
|
"schema": {
|
|
74
89
|
"$ref": "#/components/schemas/TimeoutConfigurations"
|
|
90
|
+
},
|
|
91
|
+
"examples": {
|
|
92
|
+
"TimeoutExample": {
|
|
93
|
+
"$ref": "#/components/examples/TimeoutsExample"
|
|
94
|
+
}
|
|
75
95
|
}
|
|
76
96
|
}
|
|
77
97
|
},
|
|
@@ -84,6 +104,11 @@
|
|
|
84
104
|
"application/json": {
|
|
85
105
|
"schema": {
|
|
86
106
|
"$ref": "#/components/schemas/TimeoutConfigurations"
|
|
107
|
+
},
|
|
108
|
+
"examples": {
|
|
109
|
+
"TimeoutExample": {
|
|
110
|
+
"$ref": "#/components/examples/TimeoutsExample"
|
|
111
|
+
}
|
|
87
112
|
}
|
|
88
113
|
}
|
|
89
114
|
}
|
|
@@ -94,6 +119,11 @@
|
|
|
94
119
|
"application/json": {
|
|
95
120
|
"schema": {
|
|
96
121
|
"$ref": "#/components/schemas/TimeoutConfigurations"
|
|
122
|
+
},
|
|
123
|
+
"examples": {
|
|
124
|
+
"TimeoutExample": {
|
|
125
|
+
"$ref": "#/components/examples/TimeoutsExample"
|
|
126
|
+
}
|
|
97
127
|
}
|
|
98
128
|
}
|
|
99
129
|
}
|
|
@@ -104,6 +134,11 @@
|
|
|
104
134
|
"application/json": {
|
|
105
135
|
"schema": {
|
|
106
136
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
137
|
+
},
|
|
138
|
+
"examples": {
|
|
139
|
+
"InvalidTimeoutExample": {
|
|
140
|
+
"$ref": "#/components/examples/InvalidTimeoutsExample"
|
|
141
|
+
}
|
|
107
142
|
}
|
|
108
143
|
}
|
|
109
144
|
}
|
|
@@ -118,17 +153,21 @@
|
|
|
118
153
|
]
|
|
119
154
|
},
|
|
120
155
|
"delete": {
|
|
156
|
+
"summary": "Delete all SCAPI timeout override values.",
|
|
157
|
+
"description": "Delete all SCAPI timeout override values.",
|
|
121
158
|
"operationId": "deleteTimeouts",
|
|
122
159
|
"parameters": [
|
|
123
160
|
{
|
|
124
161
|
"name": "organizationId",
|
|
125
162
|
"in": "path",
|
|
163
|
+
"description": "An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).",
|
|
126
164
|
"required": true,
|
|
127
165
|
"style": "simple",
|
|
128
166
|
"explode": false,
|
|
129
167
|
"schema": {
|
|
130
168
|
"$ref": "#/components/schemas/OrganizationId"
|
|
131
|
-
}
|
|
169
|
+
},
|
|
170
|
+
"example": "f_ecom_zzxy_prd"
|
|
132
171
|
}
|
|
133
172
|
],
|
|
134
173
|
"responses": {
|
|
@@ -151,14 +190,18 @@
|
|
|
151
190
|
"schemas": {
|
|
152
191
|
"OrganizationId": {
|
|
153
192
|
"type": "string",
|
|
193
|
+
"description": "An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).",
|
|
194
|
+
"example": "f_ecom_zzxy_prd",
|
|
154
195
|
"pattern": "^f_ecom_[a-z]{4}_(prd|stg|dev|s[0-9]{2}|[0-9]{3})$"
|
|
155
196
|
},
|
|
156
197
|
"TimeoutMappings": {
|
|
157
198
|
"type": "object",
|
|
158
199
|
"additionalProperties": {
|
|
159
200
|
"type": "integer",
|
|
160
|
-
"format": "int32"
|
|
201
|
+
"format": "int32",
|
|
202
|
+
"description": "Map of APIs and their respective timeout values in seconds. Max timeout value is 120."
|
|
161
203
|
},
|
|
204
|
+
"description": "Configuration object for timeout feature",
|
|
162
205
|
"properties": {}
|
|
163
206
|
},
|
|
164
207
|
"TimeoutConfigurations": {
|
|
@@ -175,17 +218,25 @@
|
|
|
175
218
|
"properties": {
|
|
176
219
|
"title": {
|
|
177
220
|
"type": "string",
|
|
221
|
+
"description": "A short, human-readable summary of the problem\ntype. It will not change from occurrence to occurrence of the \nproblem, except for purposes of localization\n",
|
|
222
|
+
"example": "You do not have enough credit",
|
|
178
223
|
"maxLength": 256
|
|
179
224
|
},
|
|
180
225
|
"type": {
|
|
181
226
|
"type": "string",
|
|
227
|
+
"description": "A URI reference [RFC3986] that identifies the\nproblem type. This specification encourages that, when\ndereferenced, it provide human-readable documentation for the\nproblem type (e.g., using HTML [W3C.REC-html5-20141028]). When\nthis member is not present, its value is assumed to be\n\"about:blank\". It accepts relative URIs; this means\nthat they must be resolved relative to the document's base URI, as\nper [RFC3986], Section 5.\n",
|
|
228
|
+
"example": "NotEnoughMoney",
|
|
182
229
|
"maxLength": 2048
|
|
183
230
|
},
|
|
184
231
|
"detail": {
|
|
185
|
-
"type": "string"
|
|
232
|
+
"type": "string",
|
|
233
|
+
"description": "A human-readable explanation specific to this occurrence of the problem.",
|
|
234
|
+
"example": "Your current balance is 30, but that costs 50"
|
|
186
235
|
},
|
|
187
236
|
"instance": {
|
|
188
237
|
"type": "string",
|
|
238
|
+
"description": "A URI reference that identifies the specific\noccurrence of the problem. It may or may not yield further\ninformation if dereferenced. It accepts relative URIs; this means\nthat they must be resolved relative to the document's base URI, as\nper [RFC3986], Section 5.\n",
|
|
239
|
+
"example": "/account/12345/msgs/abc",
|
|
189
240
|
"maxLength": 2048
|
|
190
241
|
}
|
|
191
242
|
},
|
|
@@ -200,17 +251,37 @@
|
|
|
200
251
|
"organizationId": {
|
|
201
252
|
"name": "organizationId",
|
|
202
253
|
"in": "path",
|
|
254
|
+
"description": "An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).",
|
|
203
255
|
"required": true,
|
|
204
256
|
"style": "simple",
|
|
205
257
|
"explode": false,
|
|
206
258
|
"schema": {
|
|
207
259
|
"$ref": "#/components/schemas/OrganizationId"
|
|
260
|
+
},
|
|
261
|
+
"example": "f_ecom_zzxy_prd"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"examples": {
|
|
265
|
+
"TimeoutsExample": {
|
|
266
|
+
"value": {
|
|
267
|
+
"timeouts": {
|
|
268
|
+
"product/shopper-products": 77,
|
|
269
|
+
"checkout/orders": 88
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"InvalidTimeoutsExample": {
|
|
274
|
+
"value": {
|
|
275
|
+
"title": "Bad Request",
|
|
276
|
+
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/bad-request",
|
|
277
|
+
"detail": "Submitted content was invalid: API paths can only consist of an API family, followed by a slash, followed by a single API."
|
|
208
278
|
}
|
|
209
279
|
}
|
|
210
280
|
},
|
|
211
281
|
"securitySchemes": {
|
|
212
282
|
"AmOAuth2": {
|
|
213
283
|
"type": "oauth2",
|
|
284
|
+
"description": "Account Manager OAuth 2.0 bearer token authentication",
|
|
214
285
|
"flows": {
|
|
215
286
|
"clientCredentials": {
|
|
216
287
|
"tokenUrl": "https://account.demandware.com/dwsso/oauth2/access_token",
|
|
@@ -222,10 +293,8 @@
|
|
|
222
293
|
"authorizationCode": {
|
|
223
294
|
"authorizationUrl": "https://account.demandware.com/dwsso/oauth2/authorize",
|
|
224
295
|
"tokenUrl": "https://account.demandware.com/dwsso/oauth2/access_token",
|
|
225
|
-
"
|
|
226
|
-
|
|
227
|
-
"sfcc.timeouts.rw": "Timeouts scope"
|
|
228
|
-
}
|
|
296
|
+
"refreshUrl": "https://account.demandware.com/dwsso/oauth2/access_token",
|
|
297
|
+
"scopes": {}
|
|
229
298
|
}
|
|
230
299
|
}
|
|
231
300
|
}
|