groovectl 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +79 -0
- package/LICENSE +201 -0
- package/NOTICE +4 -0
- package/README.md +424 -2
- package/SECURITY.md +10 -0
- package/dist/app/collection-service.d.ts +24 -0
- package/dist/app/collection-service.d.ts.map +1 -0
- package/dist/app/collection-service.js +129 -0
- package/dist/app/collection-service.js.map +1 -0
- package/dist/app/database-service.d.ts +26 -0
- package/dist/app/database-service.d.ts.map +1 -0
- package/dist/app/database-service.js +242 -0
- package/dist/app/database-service.js.map +1 -0
- package/dist/app/marketplace-offers.d.ts +25 -0
- package/dist/app/marketplace-offers.d.ts.map +1 -0
- package/dist/app/marketplace-offers.js +237 -0
- package/dist/app/marketplace-offers.js.map +1 -0
- package/dist/app/marketplace-service.d.ts +37 -0
- package/dist/app/marketplace-service.d.ts.map +1 -0
- package/dist/app/marketplace-service.js +270 -0
- package/dist/app/marketplace-service.js.map +1 -0
- package/dist/app/user-mappers.d.ts +4 -0
- package/dist/app/user-mappers.d.ts.map +1 -0
- package/dist/app/user-mappers.js +21 -0
- package/dist/app/user-mappers.js.map +1 -0
- package/dist/app/user-service.d.ts +11 -0
- package/dist/app/user-service.d.ts.map +1 -0
- package/dist/app/user-service.js +73 -0
- package/dist/app/user-service.js.map +1 -0
- package/dist/app/wantlist-service.d.ts +12 -0
- package/dist/app/wantlist-service.d.ts.map +1 -0
- package/dist/app/wantlist-service.js +32 -0
- package/dist/app/wantlist-service.js.map +1 -0
- package/dist/auth/keyring.d.ts +8 -0
- package/dist/auth/keyring.d.ts.map +1 -0
- package/dist/auth/keyring.js +39 -0
- package/dist/auth/keyring.js.map +1 -0
- package/dist/auth/prompt.d.ts +3 -0
- package/dist/auth/prompt.d.ts.map +1 -0
- package/dist/auth/prompt.js +8 -0
- package/dist/auth/prompt.js.map +1 -0
- package/dist/auth/token-provider.d.ts +31 -0
- package/dist/auth/token-provider.d.ts.map +1 -0
- package/dist/auth/token-provider.js +94 -0
- package/dist/auth/token-provider.js.map +1 -0
- package/dist/bin/groovectl.d.ts +3 -0
- package/dist/bin/groovectl.d.ts.map +1 -0
- package/dist/bin/groovectl.js +9 -0
- package/dist/bin/groovectl.js.map +1 -0
- package/dist/cli/commands/artist.d.ts +5 -0
- package/dist/cli/commands/artist.d.ts.map +1 -0
- package/dist/cli/commands/artist.js +72 -0
- package/dist/cli/commands/artist.js.map +1 -0
- package/dist/cli/commands/auth.d.ts +5 -0
- package/dist/cli/commands/auth.d.ts.map +1 -0
- package/dist/cli/commands/auth.js +49 -0
- package/dist/cli/commands/auth.js.map +1 -0
- package/dist/cli/commands/collection.d.ts +5 -0
- package/dist/cli/commands/collection.d.ts.map +1 -0
- package/dist/cli/commands/collection.js +391 -0
- package/dist/cli/commands/collection.js.map +1 -0
- package/dist/cli/commands/config.d.ts +5 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +79 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/database-common.d.ts +19 -0
- package/dist/cli/commands/database-common.d.ts.map +1 -0
- package/dist/cli/commands/database-common.js +53 -0
- package/dist/cli/commands/database-common.js.map +1 -0
- package/dist/cli/commands/label.d.ts +5 -0
- package/dist/cli/commands/label.d.ts.map +1 -0
- package/dist/cli/commands/label.js +59 -0
- package/dist/cli/commands/label.js.map +1 -0
- package/dist/cli/commands/list.d.ts +5 -0
- package/dist/cli/commands/list.d.ts.map +1 -0
- package/dist/cli/commands/list.js +58 -0
- package/dist/cli/commands/list.js.map +1 -0
- package/dist/cli/commands/marketplace.d.ts +5 -0
- package/dist/cli/commands/marketplace.d.ts.map +1 -0
- package/dist/cli/commands/marketplace.js +661 -0
- package/dist/cli/commands/marketplace.js.map +1 -0
- package/dist/cli/commands/master.d.ts +5 -0
- package/dist/cli/commands/master.d.ts.map +1 -0
- package/dist/cli/commands/master.js +96 -0
- package/dist/cli/commands/master.js.map +1 -0
- package/dist/cli/commands/release.d.ts +5 -0
- package/dist/cli/commands/release.d.ts.map +1 -0
- package/dist/cli/commands/release.js +158 -0
- package/dist/cli/commands/release.js.map +1 -0
- package/dist/cli/commands/schema.d.ts +38 -0
- package/dist/cli/commands/schema.d.ts.map +1 -0
- package/dist/cli/commands/schema.js +125 -0
- package/dist/cli/commands/schema.js.map +1 -0
- package/dist/cli/commands/search.d.ts +5 -0
- package/dist/cli/commands/search.d.ts.map +1 -0
- package/dist/cli/commands/search.js +144 -0
- package/dist/cli/commands/search.js.map +1 -0
- package/dist/cli/commands/user.d.ts +5 -0
- package/dist/cli/commands/user.d.ts.map +1 -0
- package/dist/cli/commands/user.js +43 -0
- package/dist/cli/commands/user.js.map +1 -0
- package/dist/cli/commands/wantlist.d.ts +5 -0
- package/dist/cli/commands/wantlist.d.ts.map +1 -0
- package/dist/cli/commands/wantlist.js +158 -0
- package/dist/cli/commands/wantlist.js.map +1 -0
- package/dist/cli/confirmation.d.ts +3 -0
- package/dist/cli/confirmation.d.ts.map +1 -0
- package/dist/cli/confirmation.js +21 -0
- package/dist/cli/confirmation.js.map +1 -0
- package/dist/cli/create-program.d.ts +10 -0
- package/dist/cli/create-program.d.ts.map +1 -0
- package/dist/cli/create-program.js +121 -0
- package/dist/cli/create-program.js.map +1 -0
- package/dist/cli/global-options.d.ts +18 -0
- package/dist/cli/global-options.d.ts.map +1 -0
- package/dist/cli/global-options.js +25 -0
- package/dist/cli/global-options.js.map +1 -0
- package/dist/cli/run-cli.d.ts +7 -0
- package/dist/cli/run-cli.d.ts.map +1 -0
- package/dist/cli/run-cli.js +84 -0
- package/dist/cli/run-cli.js.map +1 -0
- package/dist/cli/runtime.d.ts +34 -0
- package/dist/cli/runtime.d.ts.map +1 -0
- package/dist/cli/runtime.js +93 -0
- package/dist/cli/runtime.js.map +1 -0
- package/dist/config/paths.d.ts +2 -0
- package/dist/config/paths.d.ts.map +1 -0
- package/dist/config/paths.js +18 -0
- package/dist/config/paths.js.map +1 -0
- package/dist/config/schema.d.ts +20 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +15 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/store.d.ts +10 -0
- package/dist/config/store.d.ts.map +1 -0
- package/dist/config/store.js +88 -0
- package/dist/config/store.js.map +1 -0
- package/dist/discogs/client.d.ts +247 -0
- package/dist/discogs/client.d.ts.map +1 -0
- package/dist/discogs/client.js +331 -0
- package/dist/discogs/client.js.map +1 -0
- package/dist/discogs/database-schemas.d.ts +162 -0
- package/dist/discogs/database-schemas.d.ts.map +1 -0
- package/dist/discogs/database-schemas.js +92 -0
- package/dist/discogs/database-schemas.js.map +1 -0
- package/dist/discogs/marketplace-page.d.ts +10 -0
- package/dist/discogs/marketplace-page.d.ts.map +1 -0
- package/dist/discogs/marketplace-page.js +140 -0
- package/dist/discogs/marketplace-page.js.map +1 -0
- package/dist/discogs/marketplace-schemas.d.ts +378 -0
- package/dist/discogs/marketplace-schemas.d.ts.map +1 -0
- package/dist/discogs/marketplace-schemas.js +184 -0
- package/dist/discogs/marketplace-schemas.js.map +1 -0
- package/dist/discogs/schemas.d.ts +142 -0
- package/dist/discogs/schemas.d.ts.map +1 -0
- package/dist/discogs/schemas.js +120 -0
- package/dist/discogs/schemas.js.map +1 -0
- package/dist/discogs/user-schemas.d.ts +325 -0
- package/dist/discogs/user-schemas.d.ts.map +1 -0
- package/dist/discogs/user-schemas.js +140 -0
- package/dist/discogs/user-schemas.js.map +1 -0
- package/dist/domain/database-resource.d.ts +72 -0
- package/dist/domain/database-resource.d.ts.map +1 -0
- package/dist/domain/database-resource.js +2 -0
- package/dist/domain/database-resource.js.map +1 -0
- package/dist/domain/marketplace.d.ts +165 -0
- package/dist/domain/marketplace.d.ts.map +1 -0
- package/dist/domain/marketplace.js +91 -0
- package/dist/domain/marketplace.js.map +1 -0
- package/dist/domain/release.d.ts +61 -0
- package/dist/domain/release.d.ts.map +1 -0
- package/dist/domain/release.js +2 -0
- package/dist/domain/release.js.map +1 -0
- package/dist/domain/search-result.d.ts +17 -0
- package/dist/domain/search-result.d.ts.map +1 -0
- package/dist/domain/search-result.js +2 -0
- package/dist/domain/search-result.js.map +1 -0
- package/dist/domain/user-resource.d.ts +117 -0
- package/dist/domain/user-resource.d.ts.map +1 -0
- package/dist/domain/user-resource.js +2 -0
- package/dist/domain/user-resource.js.map +1 -0
- package/dist/errors/app-error.d.ts +19 -0
- package/dist/errors/app-error.d.ts.map +1 -0
- package/dist/errors/app-error.js +55 -0
- package/dist/errors/app-error.js.map +1 -0
- package/dist/http/marketplace-request.d.ts +3 -0
- package/dist/http/marketplace-request.d.ts.map +1 -0
- package/dist/http/marketplace-request.js +67 -0
- package/dist/http/marketplace-request.js.map +1 -0
- package/dist/http/rate-limit.d.ts +12 -0
- package/dist/http/rate-limit.d.ts.map +1 -0
- package/dist/http/rate-limit.js +27 -0
- package/dist/http/rate-limit.js.map +1 -0
- package/dist/http/request.d.ts +19 -0
- package/dist/http/request.d.ts.map +1 -0
- package/dist/http/request.js +165 -0
- package/dist/http/request.js.map +1 -0
- package/dist/output/records.d.ts +14 -0
- package/dist/output/records.d.ts.map +1 -0
- package/dist/output/records.js +110 -0
- package/dist/output/records.js.map +1 -0
- package/dist/version.d.ts +11 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +16 -0
- package/dist/version.js.map +1 -0
- package/package.json +72 -4
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { paginationSchema } from "./schemas.js";
|
|
3
|
+
const artistCreditSchema = z.object({
|
|
4
|
+
id: z.number().int().positive().optional(),
|
|
5
|
+
name: z.string(),
|
|
6
|
+
resource_url: z.url().optional(),
|
|
7
|
+
});
|
|
8
|
+
const formatSchema = z.object({
|
|
9
|
+
name: z.string(),
|
|
10
|
+
qty: z.string().optional(),
|
|
11
|
+
descriptions: z.array(z.string()).default([]),
|
|
12
|
+
});
|
|
13
|
+
const labelCreditSchema = z.object({
|
|
14
|
+
id: z.number().int().positive().optional(),
|
|
15
|
+
name: z.string(),
|
|
16
|
+
catno: z.string().optional(),
|
|
17
|
+
resource_url: z.url().optional(),
|
|
18
|
+
});
|
|
19
|
+
export const basicInformationSchema = z.object({
|
|
20
|
+
id: z.number().int().positive(),
|
|
21
|
+
title: z.string(),
|
|
22
|
+
year: z.number().int().nullable().optional(),
|
|
23
|
+
resource_url: z.url(),
|
|
24
|
+
thumb: z.url().optional().or(z.literal("")),
|
|
25
|
+
cover_image: z.url().optional().or(z.literal("")),
|
|
26
|
+
artists: z.array(artistCreditSchema).default([]),
|
|
27
|
+
formats: z.array(formatSchema).default([]),
|
|
28
|
+
labels: z.array(labelCreditSchema).default([]),
|
|
29
|
+
});
|
|
30
|
+
export const collectionFolderSchema = z.object({
|
|
31
|
+
id: z.number().int().nonnegative(),
|
|
32
|
+
count: z.number().int().nonnegative(),
|
|
33
|
+
name: z.string(),
|
|
34
|
+
resource_url: z.url(),
|
|
35
|
+
});
|
|
36
|
+
export const collectionFoldersResponseSchema = z.object({
|
|
37
|
+
folders: z.array(collectionFolderSchema),
|
|
38
|
+
});
|
|
39
|
+
export const collectionNoteSchema = z.object({
|
|
40
|
+
field_id: z.number().int().nonnegative(),
|
|
41
|
+
value: z.string(),
|
|
42
|
+
});
|
|
43
|
+
export const collectionItemSchema = z.object({
|
|
44
|
+
id: z.number().int().positive(),
|
|
45
|
+
instance_id: z.number().int().positive(),
|
|
46
|
+
folder_id: z.number().int().nonnegative(),
|
|
47
|
+
rating: z.number().int().min(0).max(5).default(0),
|
|
48
|
+
date_added: z.string().optional(),
|
|
49
|
+
notes: z.array(collectionNoteSchema).default([]),
|
|
50
|
+
basic_information: basicInformationSchema,
|
|
51
|
+
});
|
|
52
|
+
export const collectionItemsResponseSchema = z.object({
|
|
53
|
+
pagination: paginationSchema,
|
|
54
|
+
releases: z.array(collectionItemSchema),
|
|
55
|
+
});
|
|
56
|
+
export const collectionAddResponseSchema = z.object({
|
|
57
|
+
instance_id: z.number().int().positive(),
|
|
58
|
+
resource_url: z.url(),
|
|
59
|
+
});
|
|
60
|
+
export const collectionValueSchema = z.object({
|
|
61
|
+
minimum: z.string(),
|
|
62
|
+
median: z.string(),
|
|
63
|
+
maximum: z.string(),
|
|
64
|
+
});
|
|
65
|
+
export const wantlistItemSchema = z.object({
|
|
66
|
+
id: z.number().int().positive(),
|
|
67
|
+
rating: z.number().int().min(0).max(5).default(0),
|
|
68
|
+
notes: z.string().optional(),
|
|
69
|
+
resource_url: z.url(),
|
|
70
|
+
basic_information: basicInformationSchema,
|
|
71
|
+
});
|
|
72
|
+
export const wantlistResponseSchema = z.object({
|
|
73
|
+
pagination: paginationSchema,
|
|
74
|
+
wants: z.array(wantlistItemSchema),
|
|
75
|
+
});
|
|
76
|
+
export const collectionFieldSchema = z.object({
|
|
77
|
+
id: z.number().int().nonnegative(),
|
|
78
|
+
name: z.string(),
|
|
79
|
+
type: z.string(),
|
|
80
|
+
position: z.number().int().nonnegative(),
|
|
81
|
+
public: z.boolean().nullish(),
|
|
82
|
+
lines: z.number().int().nonnegative().nullish(),
|
|
83
|
+
options: z
|
|
84
|
+
.array(z.string())
|
|
85
|
+
.nullish()
|
|
86
|
+
.transform((value) => value ?? []),
|
|
87
|
+
});
|
|
88
|
+
export const collectionFieldsResponseSchema = z.object({
|
|
89
|
+
fields: z.array(collectionFieldSchema),
|
|
90
|
+
});
|
|
91
|
+
export const userProfileSchema = z.object({
|
|
92
|
+
id: z.number().int().positive(),
|
|
93
|
+
username: z.string(),
|
|
94
|
+
resource_url: z.url(),
|
|
95
|
+
uri: z.string().optional(),
|
|
96
|
+
name: z.string().nullish(),
|
|
97
|
+
profile: z.string().nullish(),
|
|
98
|
+
home_page: z.string().nullish(),
|
|
99
|
+
location: z.string().nullish(),
|
|
100
|
+
registered: z.string().nullish(),
|
|
101
|
+
num_collection: z.number().int().nonnegative().nullish(),
|
|
102
|
+
num_wantlist: z.number().int().nonnegative().nullish(),
|
|
103
|
+
num_for_sale: z.number().int().nonnegative().nullish(),
|
|
104
|
+
num_lists: z.number().int().nonnegative().nullish(),
|
|
105
|
+
releases_contributed: z.number().int().nonnegative().nullish(),
|
|
106
|
+
releases_rated: z.number().int().nonnegative().nullish(),
|
|
107
|
+
rating_avg: z.number().nonnegative().nullish(),
|
|
108
|
+
curr_abbr: z.string().nullish(),
|
|
109
|
+
buyer_rating: z.number().nonnegative().nullish(),
|
|
110
|
+
buyer_num_ratings: z.number().int().nonnegative().nullish(),
|
|
111
|
+
seller_rating: z.number().nonnegative().nullish(),
|
|
112
|
+
seller_num_ratings: z.number().int().nonnegative().nullish(),
|
|
113
|
+
});
|
|
114
|
+
export const userListSummarySchema = z.object({
|
|
115
|
+
id: z.number().int().positive(),
|
|
116
|
+
name: z.string(),
|
|
117
|
+
description: z.string().nullish(),
|
|
118
|
+
uri: z.string().optional(),
|
|
119
|
+
resource_url: z.url(),
|
|
120
|
+
date_added: z.string().nullish(),
|
|
121
|
+
date_changed: z.string().nullish(),
|
|
122
|
+
public: z.boolean().optional(),
|
|
123
|
+
});
|
|
124
|
+
export const userListsResponseSchema = z.object({
|
|
125
|
+
pagination: paginationSchema,
|
|
126
|
+
lists: z.array(userListSummarySchema),
|
|
127
|
+
});
|
|
128
|
+
export const userListItemSchema = z.object({
|
|
129
|
+
id: z.number().int().positive(),
|
|
130
|
+
type: z.string(),
|
|
131
|
+
display_title: z.string().optional(),
|
|
132
|
+
title: z.string().optional(),
|
|
133
|
+
uri: z.string().optional(),
|
|
134
|
+
resource_url: z.url().optional(),
|
|
135
|
+
comment: z.string().nullish(),
|
|
136
|
+
});
|
|
137
|
+
export const userListDetailSchema = userListSummarySchema.extend({
|
|
138
|
+
items: z.array(userListItemSchema).default([]),
|
|
139
|
+
});
|
|
140
|
+
//# sourceMappingURL=user-schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-schemas.js","sourceRoot":"","sources":["../../src/discogs/user-schemas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AC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,gBAAgB;IAC5B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,YAAY,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,qBAAqB,CAAC,MAAM,CAAC;IAC/D,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC/C,CAAC,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export interface Master {
|
|
2
|
+
id: number;
|
|
3
|
+
title: string;
|
|
4
|
+
artists: string[];
|
|
5
|
+
year: number | null;
|
|
6
|
+
genres: string[];
|
|
7
|
+
styles: string[];
|
|
8
|
+
mainReleaseId: number;
|
|
9
|
+
url: string;
|
|
10
|
+
resourceUrl: string;
|
|
11
|
+
}
|
|
12
|
+
export interface MasterVersion {
|
|
13
|
+
id: number;
|
|
14
|
+
title: string;
|
|
15
|
+
label: string | null;
|
|
16
|
+
country: string | null;
|
|
17
|
+
released: string | null;
|
|
18
|
+
formats: string[];
|
|
19
|
+
format: string | null;
|
|
20
|
+
catalogNumber: string | null;
|
|
21
|
+
status: string | null;
|
|
22
|
+
have: number | null;
|
|
23
|
+
want: number | null;
|
|
24
|
+
url: string;
|
|
25
|
+
resourceUrl: string;
|
|
26
|
+
}
|
|
27
|
+
export interface Artist {
|
|
28
|
+
id: number;
|
|
29
|
+
name: string;
|
|
30
|
+
realName: string | null;
|
|
31
|
+
profile: string | null;
|
|
32
|
+
urls: string[];
|
|
33
|
+
nameVariations: string[];
|
|
34
|
+
url: string;
|
|
35
|
+
resourceUrl: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ArtistRelease {
|
|
38
|
+
id: number;
|
|
39
|
+
title: string;
|
|
40
|
+
type: string;
|
|
41
|
+
artist: string;
|
|
42
|
+
role: string;
|
|
43
|
+
year: number | null;
|
|
44
|
+
mainReleaseId: number | null;
|
|
45
|
+
url: string;
|
|
46
|
+
resourceUrl: string;
|
|
47
|
+
}
|
|
48
|
+
export interface Label {
|
|
49
|
+
id: number;
|
|
50
|
+
name: string;
|
|
51
|
+
profile: string | null;
|
|
52
|
+
contactInfo: string | null;
|
|
53
|
+
urls: string[];
|
|
54
|
+
parentLabel: {
|
|
55
|
+
id: number;
|
|
56
|
+
name: string;
|
|
57
|
+
} | null;
|
|
58
|
+
url: string;
|
|
59
|
+
resourceUrl: string;
|
|
60
|
+
}
|
|
61
|
+
export interface LabelRelease {
|
|
62
|
+
id: number;
|
|
63
|
+
title: string;
|
|
64
|
+
artist: string;
|
|
65
|
+
year: number | null;
|
|
66
|
+
format: string | null;
|
|
67
|
+
catalogNumber: string | null;
|
|
68
|
+
status: string | null;
|
|
69
|
+
url: string;
|
|
70
|
+
resourceUrl: string;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=database-resource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database-resource.d.ts","sourceRoot":"","sources":["../../src/domain/database-resource.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW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EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database-resource.js","sourceRoot":"","sources":["../../src/domain/database-resource.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
export declare const marketplaceCurrencies: readonly ["USD", "GBP", "EUR", "CAD", "AUD", "JPY", "CHF", "MXN", "BRL", "NZD", "SEK", "ZAR"];
|
|
2
|
+
export type MarketplaceCurrency = (typeof marketplaceCurrencies)[number];
|
|
3
|
+
export interface Money {
|
|
4
|
+
value: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
}
|
|
7
|
+
export interface MarketplaceStats {
|
|
8
|
+
releaseId: number;
|
|
9
|
+
lowestPrice: Money | null;
|
|
10
|
+
numForSale: number | null;
|
|
11
|
+
blockedFromSale: boolean;
|
|
12
|
+
resourceUrl: string;
|
|
13
|
+
marketplaceUrl: string;
|
|
14
|
+
}
|
|
15
|
+
export interface MarketplaceListing {
|
|
16
|
+
id: number;
|
|
17
|
+
status: string;
|
|
18
|
+
price: Money;
|
|
19
|
+
originalPrice: Money | null;
|
|
20
|
+
shippingPrice: Money | null;
|
|
21
|
+
condition: string;
|
|
22
|
+
sleeveCondition: string | null;
|
|
23
|
+
comments: string | null;
|
|
24
|
+
postedAt: string | null;
|
|
25
|
+
shipsFrom: string | null;
|
|
26
|
+
seller: {
|
|
27
|
+
username: string;
|
|
28
|
+
rating: number | null;
|
|
29
|
+
};
|
|
30
|
+
release: {
|
|
31
|
+
id: number;
|
|
32
|
+
description: string | null;
|
|
33
|
+
};
|
|
34
|
+
resourceUrl: string;
|
|
35
|
+
marketplaceUrl: string;
|
|
36
|
+
}
|
|
37
|
+
export interface MarketplaceFee {
|
|
38
|
+
price: Money;
|
|
39
|
+
fee: Money;
|
|
40
|
+
}
|
|
41
|
+
export declare const mediaGrades: readonly ["P", "F", "G", "G+", "VG", "VG+", "NM", "M"];
|
|
42
|
+
export type MediaGrade = (typeof mediaGrades)[number];
|
|
43
|
+
export declare const mediaConditionLabels: Record<MediaGrade, string>;
|
|
44
|
+
export declare const sleeveSpecialConditions: readonly ["Generic", "Not Graded", "No Cover"];
|
|
45
|
+
export type SleeveSpecialCondition = (typeof sleeveSpecialConditions)[number];
|
|
46
|
+
export type SleeveGrade = MediaGrade | SleeveSpecialCondition;
|
|
47
|
+
export declare const marketplaceListingStatuses: readonly ["For Sale", "Draft", "Expired", "Sold", "All"];
|
|
48
|
+
export type MarketplaceListingStatus = (typeof marketplaceListingStatuses)[number];
|
|
49
|
+
export declare const marketplaceOfferSorts: readonly ["price-asc", "price-desc", "listed-desc", "listed-asc", "condition-desc", "condition-asc"];
|
|
50
|
+
export type MarketplaceOfferSort = (typeof marketplaceOfferSorts)[number];
|
|
51
|
+
export declare const marketplaceInventorySorts: readonly ["listed", "price", "item", "artist", "label", "catno", "audio", "status", "location"];
|
|
52
|
+
export type MarketplaceInventorySort = (typeof marketplaceInventorySorts)[number];
|
|
53
|
+
export declare const marketplaceOrderSorts: readonly ["id", "buyer", "created", "status", "last_activity"];
|
|
54
|
+
export type MarketplaceOrderSort = (typeof marketplaceOrderSorts)[number];
|
|
55
|
+
export declare function normalizeMediaCondition(value: string): string | undefined;
|
|
56
|
+
export declare function normalizeSleeveCondition(value: string): string | undefined;
|
|
57
|
+
export interface MarketplacePriceSuggestion {
|
|
58
|
+
releaseId: number;
|
|
59
|
+
grade: MediaGrade | null;
|
|
60
|
+
condition: string;
|
|
61
|
+
price: Money;
|
|
62
|
+
}
|
|
63
|
+
export interface MarketplaceInventoryItem {
|
|
64
|
+
id: number;
|
|
65
|
+
status: string;
|
|
66
|
+
price: Money;
|
|
67
|
+
originalPrice: Money | null;
|
|
68
|
+
shippingPrice: Money | null;
|
|
69
|
+
condition: string;
|
|
70
|
+
sleeveCondition: string | null;
|
|
71
|
+
comments: string | null;
|
|
72
|
+
allowOffers: boolean | null;
|
|
73
|
+
postedAt: string | null;
|
|
74
|
+
shipsFrom: string | null;
|
|
75
|
+
seller: {
|
|
76
|
+
username: string;
|
|
77
|
+
rating: number | null;
|
|
78
|
+
};
|
|
79
|
+
release: {
|
|
80
|
+
id: number;
|
|
81
|
+
description: string | null;
|
|
82
|
+
artist: string | null;
|
|
83
|
+
title: string | null;
|
|
84
|
+
format: string | null;
|
|
85
|
+
catalogNumber: string | null;
|
|
86
|
+
year: number | null;
|
|
87
|
+
};
|
|
88
|
+
resourceUrl: string;
|
|
89
|
+
marketplaceUrl: string;
|
|
90
|
+
}
|
|
91
|
+
export interface MarketplaceListingMutationResult {
|
|
92
|
+
action: string;
|
|
93
|
+
listingId?: number;
|
|
94
|
+
releaseId?: number;
|
|
95
|
+
status?: string;
|
|
96
|
+
condition?: string;
|
|
97
|
+
sleeveCondition?: string | null;
|
|
98
|
+
price?: number;
|
|
99
|
+
allowOffers?: boolean;
|
|
100
|
+
comments?: string | null;
|
|
101
|
+
resourceUrl?: string;
|
|
102
|
+
marketplaceUrl?: string;
|
|
103
|
+
dryRun: boolean;
|
|
104
|
+
}
|
|
105
|
+
export interface MarketplaceOrderItem {
|
|
106
|
+
id: number;
|
|
107
|
+
releaseId: number;
|
|
108
|
+
description: string | null;
|
|
109
|
+
price: Money;
|
|
110
|
+
}
|
|
111
|
+
export interface MarketplaceOrder {
|
|
112
|
+
id: string;
|
|
113
|
+
status: string;
|
|
114
|
+
nextStatus: string[];
|
|
115
|
+
created: string | null;
|
|
116
|
+
lastActivity: string | null;
|
|
117
|
+
archived: boolean | null;
|
|
118
|
+
buyer: {
|
|
119
|
+
username: string;
|
|
120
|
+
id: number | null;
|
|
121
|
+
} | null;
|
|
122
|
+
seller: {
|
|
123
|
+
username: string;
|
|
124
|
+
id: number | null;
|
|
125
|
+
} | null;
|
|
126
|
+
items: MarketplaceOrderItem[];
|
|
127
|
+
shipping: (Money & {
|
|
128
|
+
method: string | null;
|
|
129
|
+
}) | null;
|
|
130
|
+
fee: Money | null;
|
|
131
|
+
total: Money | null;
|
|
132
|
+
shippingAddress: string | null;
|
|
133
|
+
additionalInstructions: string | null;
|
|
134
|
+
resourceUrl: string;
|
|
135
|
+
marketplaceUrl: string;
|
|
136
|
+
}
|
|
137
|
+
export interface MarketplaceOrderMessage {
|
|
138
|
+
type: string;
|
|
139
|
+
subject: string | null;
|
|
140
|
+
message: string;
|
|
141
|
+
timestamp: string | null;
|
|
142
|
+
from: string | null;
|
|
143
|
+
}
|
|
144
|
+
/** A website offer, not an API-verified listing or delivered-price quote. */
|
|
145
|
+
export interface MarketplaceOffer {
|
|
146
|
+
id: number;
|
|
147
|
+
releaseId: number;
|
|
148
|
+
price: Money;
|
|
149
|
+
condition: string;
|
|
150
|
+
sleeveCondition: string | null;
|
|
151
|
+
comments: string | null;
|
|
152
|
+
shipsFrom: string | null;
|
|
153
|
+
seller: {
|
|
154
|
+
username: string;
|
|
155
|
+
rating: number | null;
|
|
156
|
+
feedbackCount: number | null;
|
|
157
|
+
};
|
|
158
|
+
shippingText: string | null;
|
|
159
|
+
availability: "listed" | "unavailable";
|
|
160
|
+
marketplaceUrl: string;
|
|
161
|
+
source: "web" | "html";
|
|
162
|
+
sourceUrl: string;
|
|
163
|
+
readAt: string;
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=marketplace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace.d.ts","sourceRoot":"","sources":["../../src/domain/marketplace.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,+FAaxB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,KAAK,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,aAAa,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,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AAM,CAAC;IACvB,MAAM,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export const marketplaceCurrencies = [
|
|
2
|
+
"USD",
|
|
3
|
+
"GBP",
|
|
4
|
+
"EUR",
|
|
5
|
+
"CAD",
|
|
6
|
+
"AUD",
|
|
7
|
+
"JPY",
|
|
8
|
+
"CHF",
|
|
9
|
+
"MXN",
|
|
10
|
+
"BRL",
|
|
11
|
+
"NZD",
|
|
12
|
+
"SEK",
|
|
13
|
+
"ZAR",
|
|
14
|
+
];
|
|
15
|
+
export const mediaGrades = [
|
|
16
|
+
"P",
|
|
17
|
+
"F",
|
|
18
|
+
"G",
|
|
19
|
+
"G+",
|
|
20
|
+
"VG",
|
|
21
|
+
"VG+",
|
|
22
|
+
"NM",
|
|
23
|
+
"M",
|
|
24
|
+
];
|
|
25
|
+
export const mediaConditionLabels = {
|
|
26
|
+
M: "Mint (M)",
|
|
27
|
+
NM: "Near Mint (NM or M-)",
|
|
28
|
+
"VG+": "Very Good Plus (VG+)",
|
|
29
|
+
VG: "Very Good (VG)",
|
|
30
|
+
"G+": "Good Plus (G+)",
|
|
31
|
+
G: "Good (G)",
|
|
32
|
+
F: "Fair (F)",
|
|
33
|
+
P: "Poor (P)",
|
|
34
|
+
};
|
|
35
|
+
export const sleeveSpecialConditions = [
|
|
36
|
+
"Generic",
|
|
37
|
+
"Not Graded",
|
|
38
|
+
"No Cover",
|
|
39
|
+
];
|
|
40
|
+
export const marketplaceListingStatuses = [
|
|
41
|
+
"For Sale",
|
|
42
|
+
"Draft",
|
|
43
|
+
"Expired",
|
|
44
|
+
"Sold",
|
|
45
|
+
"All",
|
|
46
|
+
];
|
|
47
|
+
export const marketplaceOfferSorts = [
|
|
48
|
+
"price-asc",
|
|
49
|
+
"price-desc",
|
|
50
|
+
"listed-desc",
|
|
51
|
+
"listed-asc",
|
|
52
|
+
"condition-desc",
|
|
53
|
+
"condition-asc",
|
|
54
|
+
];
|
|
55
|
+
export const marketplaceInventorySorts = [
|
|
56
|
+
"listed",
|
|
57
|
+
"price",
|
|
58
|
+
"item",
|
|
59
|
+
"artist",
|
|
60
|
+
"label",
|
|
61
|
+
"catno",
|
|
62
|
+
"audio",
|
|
63
|
+
"status",
|
|
64
|
+
"location",
|
|
65
|
+
];
|
|
66
|
+
export const marketplaceOrderSorts = [
|
|
67
|
+
"id",
|
|
68
|
+
"buyer",
|
|
69
|
+
"created",
|
|
70
|
+
"status",
|
|
71
|
+
"last_activity",
|
|
72
|
+
];
|
|
73
|
+
export function normalizeMediaCondition(value) {
|
|
74
|
+
const trimmed = value.trim();
|
|
75
|
+
const upper = trimmed.toUpperCase();
|
|
76
|
+
if (upper === "M-")
|
|
77
|
+
return mediaConditionLabels.NM;
|
|
78
|
+
if (mediaGrades.includes(upper)) {
|
|
79
|
+
return mediaConditionLabels[upper];
|
|
80
|
+
}
|
|
81
|
+
const exact = Object.values(mediaConditionLabels).find((label) => label.toLowerCase() === trimmed.toLowerCase());
|
|
82
|
+
return exact;
|
|
83
|
+
}
|
|
84
|
+
export function normalizeSleeveCondition(value) {
|
|
85
|
+
const media = normalizeMediaCondition(value);
|
|
86
|
+
if (media !== undefined)
|
|
87
|
+
return media;
|
|
88
|
+
const trimmed = value.trim();
|
|
89
|
+
return sleeveSpecialConditions.find((label) => label.toLowerCase() === trimmed.toLowerCase());
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=marketplace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace.js","sourceRoot":"","sources":["../../src/domain/marketplace.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,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AAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACvD,OAAO,oBAAoB,CAAC,KAAmB,CAAC,CAAC;IACnD,CAAC;IACD,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,IAAI,CACpD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,WAAW,EAAE,CACzD,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,KAAa;IACpD,MAAM,KAAK,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAC7C,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,OAAO,uBAAuB,CAAC,IAAI,CACjC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,WAAW,EAAE,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export interface ReleaseLabel {
|
|
2
|
+
name: string;
|
|
3
|
+
catalogNumber: string | null;
|
|
4
|
+
}
|
|
5
|
+
export interface ReleaseCompany {
|
|
6
|
+
name: string;
|
|
7
|
+
entityType: string | null;
|
|
8
|
+
catalogNumber: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface ReleaseIdentifier {
|
|
11
|
+
type: string;
|
|
12
|
+
value: string;
|
|
13
|
+
description: string | null;
|
|
14
|
+
}
|
|
15
|
+
export interface ReleaseTrack {
|
|
16
|
+
position: string;
|
|
17
|
+
title: string;
|
|
18
|
+
duration: string | null;
|
|
19
|
+
type: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface ReleaseCommunityStats {
|
|
22
|
+
have: number;
|
|
23
|
+
want: number;
|
|
24
|
+
ratingAverage: number | null;
|
|
25
|
+
ratingCount: number;
|
|
26
|
+
}
|
|
27
|
+
export interface Release {
|
|
28
|
+
id: number;
|
|
29
|
+
masterId: number | null;
|
|
30
|
+
title: string;
|
|
31
|
+
artists: string[];
|
|
32
|
+
year: number | null;
|
|
33
|
+
released: string | null;
|
|
34
|
+
country: string | null;
|
|
35
|
+
status: string | null;
|
|
36
|
+
dataQuality: string | null;
|
|
37
|
+
formats: string[];
|
|
38
|
+
labels: ReleaseLabel[];
|
|
39
|
+
companies: ReleaseCompany[];
|
|
40
|
+
identifiers: ReleaseIdentifier[];
|
|
41
|
+
tracklist: ReleaseTrack[];
|
|
42
|
+
notes: string | null;
|
|
43
|
+
genres: string[];
|
|
44
|
+
styles: string[];
|
|
45
|
+
community: ReleaseCommunityStats | null;
|
|
46
|
+
lowestPrice: number | null;
|
|
47
|
+
numForSale: number | null;
|
|
48
|
+
url: string;
|
|
49
|
+
resourceUrl: string | null;
|
|
50
|
+
}
|
|
51
|
+
export interface ReleaseCommunityRating {
|
|
52
|
+
releaseId: number;
|
|
53
|
+
average: number;
|
|
54
|
+
count: number;
|
|
55
|
+
}
|
|
56
|
+
export interface ReleaseUserRating {
|
|
57
|
+
releaseId: number;
|
|
58
|
+
username: string;
|
|
59
|
+
rating: number;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=release.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../src/domain/release.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;I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AAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.js","sourceRoot":"","sources":["../../src/domain/release.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface SearchResult {
|
|
2
|
+
id: number;
|
|
3
|
+
masterId: number | null;
|
|
4
|
+
type: string;
|
|
5
|
+
title: string;
|
|
6
|
+
year: string | null;
|
|
7
|
+
country: string | null;
|
|
8
|
+
formats: string[];
|
|
9
|
+
labels: string[];
|
|
10
|
+
genres: string[];
|
|
11
|
+
styles: string[];
|
|
12
|
+
barcodes: string[];
|
|
13
|
+
catalogNumber: string | null;
|
|
14
|
+
url: string;
|
|
15
|
+
resourceUrl: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=search-result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-result.d.ts","sourceRoot":"","sources":["../../src/domain/search-result.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-result.js","sourceRoot":"","sources":["../../src/domain/search-result.ts"],"names":[],"mappings":""}
|