Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 588b93b

Browse files
authored
Added support for getting products by release (#745)
1 parent 04fb478 commit 588b93b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/endpoints/catalogs.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,15 @@ class Products extends CRUDExtend {
163163
token
164164
)
165165
}
166+
167+
GetProductsInCatalogRelease({ catalogId, releaseId, token = null }) {
168+
return this.request.send(
169+
`catalogs/${catalogId}/releases/${releaseId}/products`,
170+
'GET',
171+
undefined,
172+
token
173+
)
174+
}
166175
}
167176

168177
class Releases extends CRUDExtend {

src/types/catalogs-products.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,10 @@ export interface CatalogsProductsEndpoint {
164164
productId: string
165165
token?: string
166166
}): Promise<ResourcePage<PcmProduct>>
167+
168+
GetProductsInCatalogRelease(options: {
169+
catalogId: string
170+
releaseId: string
171+
token?: string
172+
}): Promise<ResourcePage<ProductResponse>>
167173
}

0 commit comments

Comments
 (0)