types.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. export type MemberJson = {
  2. memberId: string
  3. rootAccount: string
  4. controllerAccount: string
  5. handle: string
  6. about?: string
  7. avatarUri?: string
  8. registeredAtTime: number
  9. registeredAtBlock: number
  10. }
  11. export type StorageSystemJson = {
  12. id: string
  13. blacklist: string[]
  14. storageBucketsPerBagLimit: number
  15. distributionBucketsPerBagLimit: number
  16. uploadingBlocked: boolean
  17. dataObjectFeePerMb: number | string
  18. storageBucketMaxObjectsCountLimit: number | string
  19. storageBucketMaxObjectsSizeLimit: number | string
  20. }
  21. export type WorkerJson = {
  22. workerId: string
  23. metadata?: string
  24. createdAt: number
  25. }
  26. export type WorkingGroupJson = {
  27. workers: WorkerJson[]
  28. }
  29. export type WorkingGroupsJson = {
  30. [group in 'GATEWAY' | 'STORAGE']?: WorkingGroupJson
  31. }
  32. export type VideoCategoryJson = {
  33. id: string
  34. name: string
  35. createdInBlock: number
  36. createdAt: string
  37. updatedAt: string
  38. }
  39. export type ChannelCategoryJson = {
  40. id: string
  41. name: string
  42. createdInBlock: number
  43. createdAt: string
  44. updatedAt: string
  45. }