-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
50 lines (48 loc) · 1.13 KB
/
types.ts
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
import { ApolloServer } from "apollo-server";
import { PrismaClient } from "@prisma/client";
export interface RequestDetails {
url?: string;
additionalParams: Object;
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
};
export interface AuthTokenPayload {
userId: number;
};
export interface MSTrack {
id: string[];
isrc: string[];
title: string[];
length: string[];
id_work: string[];
subtitle: string[];
id_record: string[];
id_release: string[];
disc_number: string[];
update_date: string[];
track_number: string[];
creation_date: string[];
search_scores: string[];
recording_place: string[];
production_date: string[];
parental_advisory: string[];
};
export interface MusicStoryTrack {
item: MSTrack[];
};
export interface XMLProperties {
root: {
code: string[];
count: string[];
version: string[];
pageCount: string[];
currentPage: string[];
data: MusicStoryTrack[];
}
};
export interface AppContext {
userId?: number;
prisma: PrismaClient;
};
export type TestContext = {
client: ApolloServer;
};