Skip to content

Commit 4b7402d

Browse files
Update APIs (@W-17701731@) (#430)
* add APIs * remove SEO API * update test * Feat: Update docs site and add API version table (@W-17701731@) (#431) * update docs * lint and remove generateVersionTable from test covereage
1 parent 22b4f10 commit 4b7402d

File tree

163 files changed

+6252
-64647
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+6252
-64647
lines changed

.nycrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"src/updateApis.ts",
77
"src/lib/config.ts",
88
"src/generate-oas.ts",
9+
"src/generateVersionTable.ts",
910
"src/removeInternalOas.ts",
1011
"src/static/helpers/index.ts",
1112
"src/lib/utils.ts"

CHANGELOG.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,40 @@
1-
## CHANGELOG
1+
# CHANGELOG
22

33
## v5.0.0
44

5+
### API Versions
6+
7+
| API Name | API Version |
8+
|----------|-------------|
9+
| assignments | 1.0.35 |
10+
| campaigns | 1.0.37 |
11+
| catalogs | 1.0.42 |
12+
| cdn-api-process-apis | 1.0.39 |
13+
| cors-preferences | 1.0.5 |
14+
| coupons | 1.0.39 |
15+
| customers | 1.0.32 |
16+
| gift-certificates | 1.0.39 |
17+
| orders | 1.4.10 |
18+
| preferences | 1.1.3 |
19+
| products | 1.0.40 |
20+
| promotions | 1.0.33 |
21+
| shopper-baskets | 1.9.0 |
22+
| shopper-baskets | 2.1.0 |
23+
| shopper-consents | 1.1.0 |
24+
| shopper-context | 1.1.1 |
25+
| shopper-customers | 1.1.1 |
26+
| shopper-experience | 1.0.7 |
27+
| shopper-gift-certificates | 1.0.26 |
28+
| shopper-login | 1.39.41 |
29+
| shopper-orders | 1.5.0 |
30+
| shopper-products | 1.0.37 |
31+
| shopper-promotions | 1.0.36 |
32+
| shopper-search | 1.3.0 |
33+
| shopper-seo | 1.0.13 |
34+
| shopper-stores | 1.0.17 |
35+
| slas-admin | 1.12.30 |
36+
| source-code-groups | 1.0.37 |
37+
538
### Enchancements
639
- Enum types have been added for certain operations and types
740
- Certain operations have had types updated for query parameters

apis/assignments-oas/assignments-oas-1.0.34/.metadata.json renamed to apis/assignments-oas-1.0.35/.metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/assignments-oas/1.0.34",
2+
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/assignments-oas/1.0.35",
33
"name": "Assignments OAS",
44
"description": "",
55
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
66
"assetId": "assignments-oas",
7-
"version": "1.0.34",
7+
"version": "1.0.35",
88
"categories": {
99
"SDK Type": [
1010
"Commerce"

apis/assignments-oas/assignments-oas-1.0.34/assignments-oas-v1-public.yaml renamed to apis/assignments-oas-1.0.35/assignments-oas-v1-public.yaml

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ components:
115115
$ref: '#/components/schemas/TermQuery'
116116
textQuery:
117117
$ref: '#/components/schemas/TextQuery'
118+
additionalProperties: false
118119
BoolQuery:
119120
description: "A boolean query allows construction of full logical expression trees that are composed of other queries (usually term queries and text queries). A boolean query has three sets of clauses:\n \n - `must`, which combines as an `AND` operator.\n - `should`, which combines as an `OR` operator.\n - `must_not`, which combines as a `NOT` operator.\n \nIf `must`, `mustNot`, or `should` appear in the same boolean query, they are combined logically using the `AND` operator. For example:\n\n (must-1 AND must-1 AND ...)\n AND (should-1 OR should-2 OR ...)\n AND NOT (must_not-1 OR must_not-2 OR ...)\n"
120121
type: object
@@ -152,6 +153,7 @@ components:
152153
type: array
153154
items:
154155
$ref: '#/components/schemas/Query'
156+
additionalProperties: false
155157
Filter:
156158
minProperties: 1
157159
maxProperties: 1
@@ -180,6 +182,7 @@ components:
180182
$ref: '#/components/schemas/RangeFilter'
181183
termFilter:
182184
$ref: '#/components/schemas/TermFilter'
185+
additionalProperties: false
183186
BoolFilter:
184187
description: Allows you to combine other filters into (possibly recursive) logical expression trees. A boolean filter is composed of a logical operator (`AND`, `OR`, `NOT`) and a list of filters that the operator relates to. Multiple filters can be negated with a single `NOT` operator, even when the filters are combined with the `AND` operator.
185188
example:
@@ -213,6 +216,7 @@ components:
213216
example: and
214217
required:
215218
- operator
219+
additionalProperties: false
216220
QueryFilter:
217221
description: Wraps any query and allows it to be used as a filter.
218222
type: object
@@ -289,6 +293,7 @@ components:
289293
required:
290294
- fromField
291295
- toField
296+
additionalProperties: false
292297
RangeFilter:
293298
description: |-
294299
Allows you to restrict a search result to hits that have values for a given attribute that fall within a given value range. The range filter supports several value types and relies on the natural sorting of the value type for range interpretation. Value ranges can be open-ended, but only at one end of the range. You can configure whether the lower bounds and upper bounds are inclusive or exclusive.
@@ -302,16 +307,30 @@ components:
302307
allOf:
303308
- $ref: '#/components/schemas/Field'
304309
from:
310+
oneOf:
311+
- type: string
312+
format: date-time
313+
example: '2007-01-01T00:00:00.000Z'
314+
- type: integer
315+
example: 1
316+
- type: number
317+
example: 1
305318
description: The lower bound of the filter range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended.
306-
example: '2007-01-01T00:00:00.000Z'
307319
fromInclusive:
308320
default: true
309321
example: true
310322
description: A flag indicating if the lower bound of the range is inclusive. To make the lower bound exclusive, set to `false`.
311323
type: boolean
312324
to:
325+
oneOf:
326+
- type: string
327+
format: date-time
328+
example: '2007-01-02T00:00:00.000Z'
329+
- type: integer
330+
example: 2
331+
- type: number
332+
example: 2
313333
description: The upper bound of the filter range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended.
314-
example: '2017-01-01T00:00:00.000Z'
315334
toInclusive:
316335
default: true
317336
example: true
@@ -354,6 +373,7 @@ components:
354373
required:
355374
- field
356375
- operator
376+
additionalProperties: false
357377
FilteredQuery:
358378
description: Allows to filter the result of a possibly complex query using a possibly complex filter.
359379
example:
@@ -377,6 +397,7 @@ components:
377397
required:
378398
- filter
379399
- query
400+
additionalProperties: false
380401
MatchAllQuery:
381402
description: Matches all documents (namespace and document type). This query comes in handy if you just want to filter a search result or really do not have any constraints.
382403
type: object
@@ -425,6 +446,7 @@ components:
425446
required:
426447
- path
427448
- query
449+
additionalProperties: false
428450
TermQuery:
429451
description: |-
430452
A term query matches one or more values against one or more document fields. A document is considered a hit if one of the values matches exactly with at least one of the given fields. The operator `is` can only take one value, while `one_of` can take multiple values. If multiple fields are specified, they are combined using a logical `OR` operator.
@@ -458,7 +480,15 @@ components:
458480
description: The values that the fields are compared against, combined with the operator.
459481
type: array
460482
items:
461-
type: string
483+
oneOf:
484+
- type: string
485+
example: myCouponId
486+
- type: number
487+
example: 1
488+
- type: boolean
489+
example: true
490+
- type: integer
491+
example: 1
462492
example: myCouponId
463493
required:
464494
- fields
@@ -484,6 +514,7 @@ components:
484514
required:
485515
- fields
486516
- searchPhrase
517+
additionalProperties: false
487518
String256:
488519
type: string
489520
maxLength: 256
@@ -510,6 +541,7 @@ components:
510541
type: string
511542
required:
512543
- field
544+
additionalProperties: false
513545
Offset:
514546
default: 0
515547
minimum: 0
@@ -623,6 +655,7 @@ components:
623655
sortOrder: desc
624656
offset: 2
625657
total: 8
658+
additionalProperties: false
626659
CampaignId:
627660
minLength: 1
628661
maxLength: 256

apis/assignments-oas/assignments-oas-1.0.34/exchange.json renamed to apis/assignments-oas-1.0.35/exchange.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Assignments OAS",
44
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
55
"assetId": "assignments-oas",
6-
"version": "1.0.34",
6+
"version": "1.0.35",
77
"classifier": "oas",
88
"tags": [],
99
"descriptorVersion": "1.0.0",

0 commit comments

Comments
 (0)