typings.d.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. declare namespace PULLIN {
  2. type OGPParamsProps = {
  3. marketingGoal: string,
  4. bidMode: string;
  5. siteSet: string[];
  6. automaticSiteEnabled: boolean,
  7. marketingTargetType?: string,
  8. marketingCarrierType?: string,
  9. }
  10. interface AdReactContent {
  11. form: FormInstance<any>
  12. OGPParams: OGPParamsProps,
  13. setOGPparams: React.Dispatch<React.SetStateAction<OGPParamsProps>>
  14. }
  15. interface AddeliveryProps {
  16. adgroups: any,
  17. targeting: any[],
  18. dynamic: any,
  19. dynamicMaterialDTos: any
  20. dynamicCreativesTextDTOS: any,
  21. mediaType: 0 | 1
  22. }
  23. interface DispatchAddelivery {
  24. addelivery: AddeliveryProps,
  25. setAddelivery: React.Dispatch<React.SetStateAction<AddeliveryProps>>
  26. accountCreateLogs: AccountCreateLogsProps[]
  27. setAccountCreateLogs: React.Dispatch<React.SetStateAction<AccountCreateLogsProps[]>>
  28. materialData: any
  29. setMaterialData: React.Dispatch<any>
  30. textData: any,
  31. setTextData: React.Dispatch<any>,
  32. clearData: () => void
  33. }
  34. type DataType = { label: string | number, value: any, disabled?: boolean }
  35. interface FormItemDataProps {
  36. id?: any
  37. value?: string,
  38. onChange?: (value?: string) => void
  39. }
  40. interface FormItemDataNewProps {
  41. data: DataType[]
  42. id?: any,
  43. value?: any,
  44. onChange?: (value?: any) => void
  45. }
  46. interface FormItemDataArrayProps {
  47. id?: number,
  48. value?: string[],
  49. onChange?: (value?: string[]) => void
  50. }
  51. interface FormItemDataNew2Props {
  52. data: AdcreativeTemplateList[]
  53. id?: any,
  54. value?: any,
  55. onChange?: (value?: any) => void
  56. }
  57. interface GetTargeting {
  58. pageNum: number,
  59. pageSize: number,
  60. accountId?: number,
  61. targetingName?: string,
  62. min?: string,
  63. max?: string,
  64. }
  65. interface AccountCreateLogsProps {
  66. accountId: number,
  67. userActionSetsList?: any[],
  68. productList?: any[],
  69. wechatChannelList?: any[],
  70. conversionList?: any,
  71. customAudienceList?: any,
  72. excludedCustomAudienceList?: any,
  73. pageList?: any,
  74. coldStartAudienceList?: any[]
  75. }
  76. interface DynamicReactContent {
  77. form: FormInstance<any>
  78. value: any,
  79. adgroups: any,
  80. creativeComponents: any,
  81. setCreativeComponents: React.Dispatch<any>,
  82. isUpdate: boolean,
  83. setIsUpdate: React.Dispatch<React.SetStateAction<boolean>>
  84. }
  85. interface AdcreativeTemplateList {
  86. creativeSampleImage: string,
  87. creativeTemplateAppellation: string,
  88. creativeTemplateId: number,
  89. creativeTemplateStyle: string,
  90. isGeneral: boolean,
  91. siteSet: number,
  92. label: string | number,
  93. value: any,
  94. tooltip?: string,
  95. img?: string
  96. }
  97. interface GetTaskV3Props {
  98. pageNum: number,
  99. pageSize: number,
  100. taskName?: string,
  101. createTimeMin?: string,
  102. createTimeMax?: string
  103. }
  104. interface GetTaskV3LogProps {
  105. pageNum: number,
  106. pageSize: number,
  107. taskId?: string
  108. }
  109. interface GetDynamicV3LogProps {
  110. pageNum: number,
  111. pageSize: number,
  112. adgroupCreateLogId?: string
  113. }
  114. type TextDtoProps = {
  115. label: string,
  116. value: string,
  117. required: boolean,
  118. restriction: {
  119. textRestriction: {
  120. minLength: number,
  121. maxLength: number,
  122. textPattern: string
  123. }
  124. }
  125. }
  126. /**
  127. * 当前广告新增创意
  128. */
  129. type NewAddDynamic = {
  130. adData: any[],
  131. visible?: boolean,
  132. tactics?: any,
  133. onClose?: () => void,
  134. onChange?: () => void
  135. }
  136. // 策略组
  137. type AddV3StrategyProps = {
  138. type: string,
  139. strategyKey: string,
  140. strategyValue: string,
  141. remark?: string
  142. }
  143. type GetV3StrategyListProps = {
  144. pageNum: number,
  145. pageSize: number,
  146. strategyKey?: string,
  147. type?: string
  148. }
  149. }