File tree Expand file tree Collapse file tree 2 files changed +26
-15
lines changed Expand file tree Collapse file tree 2 files changed +26
-15
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,7 @@ export type PostCampaignsApiArg = {
272272 description ?: string ;
273273 base_bug_internal_id ?: string ;
274274 express_slug : string ;
275+ use_cases ?: UseCase [ ] ;
275276 } ;
276277} ;
277278export type PostProjectsApiResponse = /** status 200 OK */ Project ;
@@ -394,29 +395,38 @@ export type PlatformObject = {
394395 id : number ;
395396 deviceType : number ;
396397} ;
397- export type Coin = {
398- id : number ;
399- customer_id : number ;
400- amount : number ;
401- agreement_id ?: number ;
402- price ?: number ;
403- created_on ?: string ;
404- updated_on ?: string ;
405- } ;
406398export type TemplateCategory = {
407399 id ?: number ;
408400 name : string ;
409401} ;
410402export type Template = {
411403 title : string ;
412- description : string ;
413- content : string ;
414- category : TemplateCategory ;
415- device_type : 'webapp' | 'mobileapp' ;
416- locale : 'en' | 'it' ;
404+ description ? : string ;
405+ content ? : string ;
406+ category ? : TemplateCategory ;
407+ device_type ? : 'webapp' | 'mobileapp' ;
408+ locale ? : 'en' | 'it' ;
417409 image ?: string ;
418410 requiresLogin ?: boolean ;
419411} ;
412+ export type UseCase = {
413+ title : string ;
414+ description : string ;
415+ functionality ?: {
416+ id ?: number ;
417+ } & Template ;
418+ logged ?: boolean ;
419+ link ?: string ;
420+ } ;
421+ export type Coin = {
422+ id : number ;
423+ customer_id : number ;
424+ amount : number ;
425+ agreement_id ?: number ;
426+ price ?: number ;
427+ created_on ?: string ;
428+ updated_on ?: string ;
429+ } ;
420430export const {
421431 useGetQuery,
422432 usePostAuthenticateMutation,
Original file line number Diff line number Diff line change @@ -316,10 +316,11 @@ export const ExpressWizardContainer = () => {
316316 const wordpressHandle = async ( cp : Campaign , next : any ) => {
317317 try {
318318 // Post on webhook WordPress axios call
319- await createPages ( cp . id ) ;
320319 if ( ! values . use_cases ) {
321320 await createUseCases ( cp . id ) ;
322321 }
322+
323+ await createPages ( cp . id ) ;
323324 await createCrons ( cp . id ) ;
324325 await createTasks ( cp . id ) ;
325326 next ( null , cp ) ;
You can’t perform that action at this time.
0 commit comments