@vonq/hapi-elements-types 1.56.0 → 1.57.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
|
@@ -253,6 +253,10 @@ export type CampaignCreateFormPostingDetails = {
|
|
|
253
253
|
applicationUrl: string
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
+
export type CampaignCreateFormDirectApply = {
|
|
257
|
+
webhookUrl: string
|
|
258
|
+
}
|
|
259
|
+
|
|
256
260
|
export type CampaignCreateForm = {
|
|
257
261
|
labels: Record<string, string> | null
|
|
258
262
|
companyId: string
|
|
@@ -267,6 +271,7 @@ export type CampaignCreateForm = {
|
|
|
267
271
|
orderedProducts: string[] //Array of UUIDs
|
|
268
272
|
orderedProductsSpecs: Record<string, CampaignCreateFormOrderedProductSpec>
|
|
269
273
|
orderedProductsSpecsLabels?: Record<string, PostingRequirementLabelsMap>
|
|
274
|
+
directApply?: CampaignCreateFormDirectApply
|
|
270
275
|
heStateSnapshotId?: string
|
|
271
276
|
}
|
|
272
277
|
|
|
@@ -283,6 +288,7 @@ export type CampaignEditForm = Omit<
|
|
|
283
288
|
| "postingDetails"
|
|
284
289
|
| "orderedProductsSpecs"
|
|
285
290
|
| "orderedProductsSpecsLabels"
|
|
291
|
+
| "directApply"
|
|
286
292
|
| "heStateSnapshotId"
|
|
287
293
|
> & {
|
|
288
294
|
campaignId: string
|
|
@@ -320,6 +326,7 @@ export type CampaignOrderRequestBody = {
|
|
|
320
326
|
orderedProducts: string[]
|
|
321
327
|
orderedProductsSpecs: CampaignOrderRequestBodyOrderedProductsSpec[]
|
|
322
328
|
currency?: ProductPriceCurrency
|
|
329
|
+
directApply?: CampaignCreateFormDirectApply
|
|
323
330
|
}
|
|
324
331
|
|
|
325
332
|
export type CampaignOrderRequestBodyProvidedBySmartFill = Omit<
|
|
@@ -343,6 +350,7 @@ export type CampaignEditRequestBody = Omit<
|
|
|
343
350
|
| "postingDetails"
|
|
344
351
|
| "orderedProductsSpecs"
|
|
345
352
|
| "paymentMethod"
|
|
353
|
+
| "directApply"
|
|
346
354
|
> & {
|
|
347
355
|
campaignId: string
|
|
348
356
|
postingDetails: Omit<
|
|
@@ -150,6 +150,7 @@ export type ZodCampaignCreateFormOrderedProductSpecs = ZodRecord<
|
|
|
150
150
|
ZodString,
|
|
151
151
|
ZodAny
|
|
152
152
|
>
|
|
153
|
+
export type ZodCampaignFormDirectApply = ZodObject<{ webhookUrl: ZodString }>
|
|
153
154
|
|
|
154
155
|
export type ZodCampaign = ZodObject<{
|
|
155
156
|
currency: ZodNullable<ZodString>
|
|
@@ -295,4 +296,5 @@ export type WindowHapiValidationsCampaign = {
|
|
|
295
296
|
campaignFormTargetGroup: ZodCampaignCreateFormTargetGroup
|
|
296
297
|
campaignFormPostingDetails: ZodCampaignCreateFormPostingDetails
|
|
297
298
|
campaignFormOrderedProductsSpecs: ZodCampaignCreateFormOrderedProductSpecs
|
|
299
|
+
campaignFormDirectApply: ZodCampaignFormDirectApply
|
|
298
300
|
}
|
package/package.json
CHANGED