perfume-api 2.4.0 → 2.5.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/dist/types.d.ts +29 -29
- package/dist/types.js +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -56,35 +56,35 @@ export interface SearchPerfumesResponse {
|
|
|
56
56
|
source: string;
|
|
57
57
|
}
|
|
58
58
|
export interface SearchPerfumesParams {
|
|
59
|
-
/** Free text: a perfume name, house, notes or mood. Examples: "fresh citrus summer for men", "Tom Ford
|
|
59
|
+
/** Free text: a perfume name, house, notes or mood. Examples: "fresh citrus summer for men", "Tom Ford oud", "vanilla gourmand for winter" */
|
|
60
60
|
q?: string;
|
|
61
61
|
/** Only perfumes from this house. Examples: "Dior", "Maison Francis Kurkdjian", "MFK", "YSL" */
|
|
62
62
|
house?: string;
|
|
63
|
-
/** Every listed note must be present. Examples: ["oud","
|
|
63
|
+
/** Every listed note must be present. Examples: ["oud","sandalwood"], ["vanilla"] Comma-separated list. */
|
|
64
64
|
notes_include?: string | string[];
|
|
65
65
|
/** None of these notes may be present. Example: ["patchouli"] Comma-separated list. */
|
|
66
66
|
notes_exclude?: string | string[];
|
|
67
67
|
/** Accords that must be present. Examples: ["woody","sweet"], ["fresh","aquatic"] Comma-separated list. */
|
|
68
68
|
accords?: string | string[];
|
|
69
|
-
/** Fragrance family:
|
|
69
|
+
/** Fragrance family. Examples: "chypre", "fougere", "gourmand", "amber", "citrus". Leave term empty in explain_perfume_term to list every family. */
|
|
70
70
|
family?: string;
|
|
71
71
|
/** Audience the perfume is marketed to. men and women also include unisex perfumes. */
|
|
72
72
|
gender?: "men" | "women" | "unisex";
|
|
73
73
|
/** Season the perfume suits (fall is accepted in text queries as autumn). */
|
|
74
74
|
season?: "spring" | "summer" | "autumn" | "winter";
|
|
75
|
-
/** Occasion the perfume suits
|
|
75
|
+
/** Occasion the perfume suits. */
|
|
76
76
|
occasion?: "daytime" | "office" | "casual" | "evening" | "date night" | "special occasion";
|
|
77
|
-
/** A style word
|
|
77
|
+
/** A style word the scent should have. */
|
|
78
78
|
style?: "aquatic" | "boozy" | "clean" | "creamy" | "dark" | "floral" | "fresh" | "citrusy" | "fruity" | "gourmand" | "green" | "leathery" | "musky" | "powdery" | "sensual" | "smoky" | "spicy" | "sweet" | "woody";
|
|
79
79
|
/** true = only the editors' iconic, era-defining classics (works with every other filter, and without a query) */
|
|
80
80
|
iconic?: boolean;
|
|
81
|
-
/**
|
|
81
|
+
/** Results per page. */
|
|
82
82
|
limit?: number;
|
|
83
|
-
/** next_cursor from the previous page
|
|
83
|
+
/** next_cursor from the previous page. */
|
|
84
84
|
cursor?: string;
|
|
85
|
-
/** concise (default) or detailed (adds
|
|
85
|
+
/** concise (default) or detailed (adds pyramid, seasons, occasions, longevity). */
|
|
86
86
|
format?: "concise" | "detailed";
|
|
87
|
-
/** Language of the 10ml.com links and labels.
|
|
87
|
+
/** Language of the 10ml.com links and labels. */
|
|
88
88
|
locale?: "en" | "de" | "fr" | "es" | "it" | "ro" | "el" | "hu" | "cs" | "pl";
|
|
89
89
|
}
|
|
90
90
|
export interface GetPerfumeResponse {
|
|
@@ -121,9 +121,9 @@ export interface GetPerfumeResponse {
|
|
|
121
121
|
export interface GetPerfumeParams {
|
|
122
122
|
/** House, when the name alone is ambiguous. Example: "Creed" */
|
|
123
123
|
house?: string;
|
|
124
|
-
/** concise (default) or detailed (adds
|
|
124
|
+
/** concise (default) or detailed (adds pyramid, seasons, occasions, longevity). */
|
|
125
125
|
format?: "concise" | "detailed";
|
|
126
|
-
/** Language of the 10ml.com links and labels.
|
|
126
|
+
/** Language of the 10ml.com links and labels. */
|
|
127
127
|
locale?: "en" | "de" | "fr" | "es" | "it" | "ro" | "el" | "hu" | "cs" | "pl";
|
|
128
128
|
}
|
|
129
129
|
export interface FindSimilarPerfumesResponse {
|
|
@@ -167,13 +167,13 @@ export interface FindSimilarPerfumesParams {
|
|
|
167
167
|
gender?: "men" | "women" | "unisex";
|
|
168
168
|
/** True to leave out perfumes from the same house as the starting perfume */
|
|
169
169
|
other_houses_only?: boolean;
|
|
170
|
-
/**
|
|
170
|
+
/** Results per page. */
|
|
171
171
|
limit?: number;
|
|
172
|
-
/** next_cursor from the previous page
|
|
172
|
+
/** next_cursor from the previous page. */
|
|
173
173
|
cursor?: string;
|
|
174
|
-
/** concise (default) or detailed (adds
|
|
174
|
+
/** concise (default) or detailed (adds pyramid, seasons, occasions, longevity). */
|
|
175
175
|
format?: "concise" | "detailed";
|
|
176
|
-
/** Language of the 10ml.com links and labels.
|
|
176
|
+
/** Language of the 10ml.com links and labels. */
|
|
177
177
|
locale?: "en" | "de" | "fr" | "es" | "it" | "ro" | "el" | "hu" | "cs" | "pl";
|
|
178
178
|
}
|
|
179
179
|
export interface FindPerfumeAlternativesResponse {
|
|
@@ -211,11 +211,11 @@ export interface FindPerfumeAlternativesParams {
|
|
|
211
211
|
house?: string;
|
|
212
212
|
/** Only alternatives at this closeness */
|
|
213
213
|
closeness?: "very close" | "similar vibe" | "same spirit";
|
|
214
|
-
/**
|
|
214
|
+
/** Results per page. */
|
|
215
215
|
limit?: number;
|
|
216
|
-
/** next_cursor from the previous page
|
|
216
|
+
/** next_cursor from the previous page. */
|
|
217
217
|
cursor?: string;
|
|
218
|
-
/** Language of the 10ml.com links and labels.
|
|
218
|
+
/** Language of the 10ml.com links and labels. */
|
|
219
219
|
locale?: "en" | "de" | "fr" | "es" | "it" | "ro" | "el" | "hu" | "cs" | "pl";
|
|
220
220
|
}
|
|
221
221
|
export interface ExplainNoteResponse {
|
|
@@ -239,9 +239,9 @@ export interface ExplainNoteResponse {
|
|
|
239
239
|
source: string;
|
|
240
240
|
}
|
|
241
241
|
export interface ExplainNoteParams {
|
|
242
|
-
/** concise (default) or detailed (adds
|
|
242
|
+
/** concise (default) or detailed (adds pyramid, seasons, occasions, longevity). */
|
|
243
243
|
format?: "concise" | "detailed";
|
|
244
|
-
/** Language of the 10ml.com links and labels.
|
|
244
|
+
/** Language of the 10ml.com links and labels. */
|
|
245
245
|
locale?: "en" | "de" | "fr" | "es" | "it" | "ro" | "el" | "hu" | "cs" | "pl";
|
|
246
246
|
}
|
|
247
247
|
export interface ListHousesResponse {
|
|
@@ -269,11 +269,11 @@ export interface ListHousesParams {
|
|
|
269
269
|
country?: string;
|
|
270
270
|
/** Part of a house name, e.g. "tom" or "maison" */
|
|
271
271
|
query?: string;
|
|
272
|
-
/**
|
|
272
|
+
/** Results per page. */
|
|
273
273
|
limit?: number;
|
|
274
|
-
/** next_cursor from the previous page
|
|
274
|
+
/** next_cursor from the previous page. */
|
|
275
275
|
cursor?: string;
|
|
276
|
-
/** Language of the 10ml.com links and labels.
|
|
276
|
+
/** Language of the 10ml.com links and labels. */
|
|
277
277
|
locale?: "en" | "de" | "fr" | "es" | "it" | "ro" | "el" | "hu" | "cs" | "pl";
|
|
278
278
|
}
|
|
279
279
|
export interface GetHouseResponse {
|
|
@@ -296,9 +296,9 @@ export interface GetHouseResponse {
|
|
|
296
296
|
source: string;
|
|
297
297
|
}
|
|
298
298
|
export interface GetHouseParams {
|
|
299
|
-
/** concise (default) or detailed (adds
|
|
299
|
+
/** concise (default) or detailed (adds pyramid, seasons, occasions, longevity). */
|
|
300
300
|
format?: "concise" | "detailed";
|
|
301
|
-
/** Language of the 10ml.com links and labels.
|
|
301
|
+
/** Language of the 10ml.com links and labels. */
|
|
302
302
|
locale?: "en" | "de" | "fr" | "es" | "it" | "ro" | "el" | "hu" | "cs" | "pl";
|
|
303
303
|
}
|
|
304
304
|
export interface SearchGuidesResponse {
|
|
@@ -312,7 +312,7 @@ export interface SearchGuidesResponse {
|
|
|
312
312
|
title: string;
|
|
313
313
|
type: string;
|
|
314
314
|
topics: string[];
|
|
315
|
-
url
|
|
315
|
+
url?: string;
|
|
316
316
|
/** False when the guide is only available in English (the url is then the English page) */
|
|
317
317
|
translated: boolean;
|
|
318
318
|
}>;
|
|
@@ -323,11 +323,11 @@ export interface SearchGuidesParams {
|
|
|
323
323
|
q?: string;
|
|
324
324
|
/** how-to, list (rankings/comparisons), alternatives (dupes guides), note (a note explained), house (a house mapped) */
|
|
325
325
|
type?: "how-to" | "list" | "alternatives" | "note" | "house";
|
|
326
|
-
/**
|
|
326
|
+
/** Results per page. */
|
|
327
327
|
limit?: number;
|
|
328
|
-
/** next_cursor from the previous page
|
|
328
|
+
/** next_cursor from the previous page. */
|
|
329
329
|
cursor?: string;
|
|
330
|
-
/** Language of the 10ml.com links and labels.
|
|
330
|
+
/** Language of the 10ml.com links and labels. */
|
|
331
331
|
locale?: "en" | "de" | "fr" | "es" | "it" | "ro" | "el" | "hu" | "cs" | "pl";
|
|
332
332
|
}
|
|
333
333
|
export type Locale = "en" | "de" | "fr" | "es" | "it" | "ro" | "el" | "hu" | "cs" | "pl";
|
package/dist/types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Generated by scripts/gen-types.mjs from spec/openapi.json (10ML Fragrance Index API 2.
|
|
1
|
+
// Generated by scripts/gen-types.mjs from spec/openapi.json (10ML Fragrance Index API 2.5.0). Do not edit by hand.
|
|
2
2
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "perfume-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Free perfume API client: perfumes, note pyramids, accords, similar scents, notes and houses from the 10ML Fragrance Index. No API key, JSON over HTTPS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"perfume",
|