Skip to content

Commit af118c4

Browse files
committed
Refactor constant definitions to remove apiKeyPrefixes
1 parent bcff29e commit af118c4

1 file changed

Lines changed: 28 additions & 34 deletions

File tree

src/utils/constant.ts

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -33,48 +33,42 @@ export const localStorageKeys = {
3333
},
3434
};
3535

36-
export const apiKeyPrefixes = {
37-
properties: "",
38-
types: "",
39-
tags: "",
40-
};
41-
4236
// API Property/Type Keys
4337
export const bundledPropKeys = {
44-
description: `${apiKeyPrefixes.properties}description`,
45-
type: `${apiKeyPrefixes.properties}type`,
46-
addedDate: `${apiKeyPrefixes.properties}added_date`,
47-
createdDate: `${apiKeyPrefixes.properties}created_date`,
48-
createdBy: `${apiKeyPrefixes.properties}creator`,
49-
lastModifiedDate: `${apiKeyPrefixes.properties}last_modified_date`,
50-
lastModifiedBy: `${apiKeyPrefixes.properties}last_modified_by`,
51-
lastOpenedDate: `${apiKeyPrefixes.properties}last_opened_date`,
52-
links: `${apiKeyPrefixes.properties}links`,
53-
backlinks: `${apiKeyPrefixes.properties}backlinks`,
54-
source: `${apiKeyPrefixes.properties}source`,
38+
description: "description",
39+
type: "type",
40+
addedDate: "added_date",
41+
createdDate: "created_date",
42+
createdBy: "creator",
43+
lastModifiedDate: "last_modified_date",
44+
lastModifiedBy: "last_modified_by",
45+
lastOpenedDate: "last_opened_date",
46+
links: "links",
47+
backlinks: "backlinks",
48+
source: "source",
5549
};
5650

5751
export const propKeys = {
58-
tag: `${apiKeyPrefixes.properties}tag`,
52+
tag: "tag",
5953
};
6054

6155
export const bundledTypeKeys = {
62-
audio: `${apiKeyPrefixes.types}audio`,
63-
bookmark: `${apiKeyPrefixes.types}bookmark`,
64-
chat: `${apiKeyPrefixes.types}chat`,
65-
collection: `${apiKeyPrefixes.types}collection`,
66-
file: `${apiKeyPrefixes.types}file`,
67-
note: `${apiKeyPrefixes.types}note`,
68-
image: `${apiKeyPrefixes.types}image`,
69-
object_type: `${apiKeyPrefixes.types}object_type`,
70-
page: `${apiKeyPrefixes.types}page`,
71-
participant: `${apiKeyPrefixes.types}participant`,
72-
profile: `${apiKeyPrefixes.types}profile`,
73-
set: `${apiKeyPrefixes.types}set`,
74-
tag: `${apiKeyPrefixes.types}tag`,
75-
task: `${apiKeyPrefixes.types}task`,
76-
template: `${apiKeyPrefixes.types}template`,
77-
video: `${apiKeyPrefixes.types}video`,
56+
audio: "audio",
57+
bookmark: "bookmark",
58+
chat: "chat",
59+
collection: "collection",
60+
file: "file",
61+
note: "note",
62+
image: "image",
63+
object_type: "object_type",
64+
page: "page",
65+
participant: "participant",
66+
profile: "profile",
67+
set: "set",
68+
tag: "tag",
69+
task: "task",
70+
template: "template",
71+
video: "video",
7872
};
7973

8074
// Colors

0 commit comments

Comments
 (0)