@vonq/hapi-elements-types 1.30.0 → 1.31.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/campaign/types.ts CHANGED
@@ -130,6 +130,14 @@ export type CampaignDetailedStatus = {
130
130
  orderedProductsStatuses: CampaignDetailsStatusOrderedProductStatus[]
131
131
  }
132
132
 
133
+ export type CampaignDraftOldBackwardsCompatability = {
134
+ // there is a recipe /docs/recipes/order-journey-campaign-recipes/campaign-order-success-event/
135
+ // it says if payment method is direct-charge, BE returns `draftCampaignId` instead of `campaignId`
136
+ // during migration from PKB-drafts to non-PKB drafts, I think this got removed
137
+ // HE should continue to support it
138
+ draftCampaignId?: string
139
+ }
140
+
133
141
  export type CampaignDraft = {
134
142
  campaignId: string
135
143
  isDraft: boolean
@@ -146,6 +154,7 @@ export type CampaignDraftV2 = {
146
154
  }
147
155
 
148
156
  export type Campaign = Pick<CampaignDraft, "campaignId"> &
157
+ CampaignDraftOldBackwardsCompatability &
149
158
  CampaignDraftV2 & {
150
159
  labels: Record<string, string> | null
151
160
  currency: ProductPriceCurrency
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@vonq/hapi-elements-types",
4
- "version": "1.30.0",
4
+ "version": "1.31.0",
5
5
  "description": "This package contains Typescript definitions for HAPI Elements",
6
6
  "author": "VONQ HAPI Team",
7
7
  "license": "BSD-3-Clause",