summaryrefslogtreecommitdiff
path: root/front/src/logic/bunts.ts
blob: dfa70e36e9eec99273a51888387c7905443d04ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import type { Engagement, List, Lock } from "@/types/trill";

export const openLock: Lock = {
  rank: { caveats: [], locked: false, public: true },
  luk: { caveats: [], locked: false, public: true },
  ship: { caveats: [], locked: false, public: true },
  tags: { caveats: [], locked: false, public: true },
  custom: { fn: null, public: false },
};

export const engagementBunt: Engagement = {
  reacts: {},
  quoted: [],
  shared: [],
};

export const pushStateBunt = {
  followers: [],
  gate: {
    lock: openLock,
    mute: openLock,
    begs: [],
    "post-begs": [],
    backlog: 0,
  },
};

export const harkStateBunt = {
  unread: {},
  engagement: [],
};

export const pullStateBunt = {
  following: [],
  begs: [],
  "post-begs": [],
};
export const listBunt: List = {
  symbol: "",
  name: "",
  desc: "",
  icon: "",
  cover: "",
  members: [],
  public: true,
};

// export const palsBunt: Pals = {
//   incoming: {},
//   outgoing: {}
// }