feat(medusa,utils): added campaign get endpoints (#6125)

what:

adds endpoints for the following:

- list endpoint (RESOLVES CORE-1682)
- retrieve endpoint (RESOLVES CORE-1683)
This commit is contained in:
Riqwan Thamir authored and GitHub committed 2024-01-19 14:54:40 +00:00
1 parent 5e655dd59b
commit af7af73745
12 files changed
+520 -1

No files matched your search

+6
View File
@@ -116,6 +116,12 @@ export interface IPromotionModuleService extends IModuleService {
sharedContext?: Context
): Promise<CampaignDTO[]>
listAndCountCampaigns(
filters?: FilterableCampaignProps,
config?: FindConfig<CampaignDTO>,
sharedContext?: Context
): Promise<[CampaignDTO[], number]>
retrieveCampaign(
id: string,
config?: FindConfig<CampaignDTO>,