typings.d.ts 4.7 KB

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