@thefittingroom/sdk 0.0.13 → 1.0.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/esm/api/shop.d.ts +2 -14
- package/dist/esm/firebase/firebase.d.ts +1 -0
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +298 -149
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +189 -188
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/types/index.d.ts +8 -7
- package/dist/esm/types/measurement.d.ts +262 -0
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ export interface FirestoreSize {
|
|
|
24
24
|
label: string;
|
|
25
25
|
size_system: string;
|
|
26
26
|
size_value_id: string;
|
|
27
|
-
garment_measurements:
|
|
27
|
+
garment_measurements: FirestoreGarmentMeasurement[];
|
|
28
28
|
}
|
|
29
29
|
export interface FirestoreColorway {
|
|
30
30
|
id: number;
|
|
@@ -39,12 +39,8 @@ export interface FirestoreStyle {
|
|
|
39
39
|
garment_category: string;
|
|
40
40
|
is_published: boolean;
|
|
41
41
|
sale_type: string;
|
|
42
|
-
colorways:
|
|
43
|
-
|
|
44
|
-
};
|
|
45
|
-
sizes: {
|
|
46
|
-
[key: number]: FirestoreSize;
|
|
47
|
-
};
|
|
42
|
+
colorways: FirestoreColorway[];
|
|
43
|
+
sizes: FirestoreSize[];
|
|
48
44
|
}
|
|
49
45
|
export interface FirestoreFrames {
|
|
50
46
|
colorway_size_asset_id: number;
|
|
@@ -65,3 +61,8 @@ export interface FirestoreUser {
|
|
|
65
61
|
last_name: string;
|
|
66
62
|
vto: FirestoreVTO;
|
|
67
63
|
}
|
|
64
|
+
export interface FirestoreStyleCategory {
|
|
65
|
+
category: string;
|
|
66
|
+
classification: string;
|
|
67
|
+
sub_category: string;
|
|
68
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
export declare enum MeasurementLocation {
|
|
2
|
+
ACROSS_BACK = "across_back",
|
|
3
|
+
ACROSS_FRONT = "across_front",
|
|
4
|
+
ACROSS_SHOULDER = "across_shoulder",
|
|
5
|
+
ANKLE = "ankle",
|
|
6
|
+
ARMEYE = "arm_eye",
|
|
7
|
+
ARM_LENGTH_FROM_SHOULDER = "arm_length_from_shoulder",
|
|
8
|
+
BACK_CROTCH_LENGTH = "back_crotch_length",
|
|
9
|
+
BACK_NECK_TO_EBLOW = "back_neck_to_elbow",
|
|
10
|
+
BELOW_KNEE = "below_knee",
|
|
11
|
+
BICEP = "bicep",
|
|
12
|
+
BUST = "bust",
|
|
13
|
+
BUST_POINT_TO_BUST_POINT = "bust_point_to_bust_point",
|
|
14
|
+
CALF = "calf",
|
|
15
|
+
CB_NECK_TO_WAIST = "cb_neck_to_waist",
|
|
16
|
+
CB_NECK_TO_WRIST = "cb_neck_to_wrist",
|
|
17
|
+
CF_NECK_TO_WAIST = "cf_neck_to_waist",
|
|
18
|
+
ELBOW = "elbow",
|
|
19
|
+
FOREARM = "forearm",
|
|
20
|
+
FRONT_CROTCH_LENGTH = "front_crotch_length",
|
|
21
|
+
HIGH_HIP_PLACEMENT_FROM_WAIST = "high_hip_placement",
|
|
22
|
+
HIGH_HIP = "high_hip",
|
|
23
|
+
HSP_TO_ACROSS_BACK = "hsp_to_across_back",
|
|
24
|
+
HSP_TO_ACROSS_FRONT = "hsp_to_across_front",
|
|
25
|
+
HSP_TO_BUST_POINT = "hsp_to_bust_point",
|
|
26
|
+
HSP_TO_LOW_HIP_POSITION = "hsp_to_low_hip_position",
|
|
27
|
+
HSP_TO_WAIST_POSITION = "hsp_to_waist_position",
|
|
28
|
+
INSEAM = "inseam",
|
|
29
|
+
KNEE = "knee",
|
|
30
|
+
LOW_HIP = "low_hip",
|
|
31
|
+
LOW_HIP_PLACEMENT_FROM_WAIST = "low_hip_placement",
|
|
32
|
+
MID_NECK = "mid_neck",
|
|
33
|
+
NECK_AT_BASE = "neck_base",
|
|
34
|
+
SHOULDER_DROP = "shoulder_drop",
|
|
35
|
+
SHOULDER_TO_SHOULDER = "shoulder_to_shoulder",
|
|
36
|
+
SIDE_WAIST_TO_FLOOR = "side_waist_to_floor",
|
|
37
|
+
SIDE_WAIST_TO_KNEE = "side_waist_to_knee",
|
|
38
|
+
THIGH = "thigh",
|
|
39
|
+
TOTAL_RISE_LENGTH = "total_rise_length",
|
|
40
|
+
UNDER_BUST = "under_bust",
|
|
41
|
+
VERTICAL_TRUNK = "vertical_trunk",
|
|
42
|
+
WAIST = "waist",
|
|
43
|
+
WRIST = "wrist"
|
|
44
|
+
}
|
|
45
|
+
export declare const MeasurementLocationName: {
|
|
46
|
+
across_back: string;
|
|
47
|
+
across_front: string;
|
|
48
|
+
across_shoulder: string;
|
|
49
|
+
ankle: string;
|
|
50
|
+
arm_eye: string;
|
|
51
|
+
arm_length_from_shoulder: string;
|
|
52
|
+
back_crotch_length: string;
|
|
53
|
+
back_neck_to_elbow: string;
|
|
54
|
+
below_knee: string;
|
|
55
|
+
bicep: string;
|
|
56
|
+
bust: string;
|
|
57
|
+
bust_point_to_bust_point: string;
|
|
58
|
+
calf: string;
|
|
59
|
+
cb_neck_to_waist: string;
|
|
60
|
+
cb_neck_to_wrist: string;
|
|
61
|
+
cf_neck_to_waist: string;
|
|
62
|
+
elbow: string;
|
|
63
|
+
forearm: string;
|
|
64
|
+
front_crotch_length: string;
|
|
65
|
+
high_hip_placement: string;
|
|
66
|
+
high_hip: string;
|
|
67
|
+
hsp_to_across_back: string;
|
|
68
|
+
hsp_to_across_front: string;
|
|
69
|
+
hsp_to_bust_point: string;
|
|
70
|
+
hsp_to_low_hip_position: string;
|
|
71
|
+
hsp_to_waist_position: string;
|
|
72
|
+
inseam: string;
|
|
73
|
+
knee: string;
|
|
74
|
+
low_hip: string;
|
|
75
|
+
low_hip_placement: string;
|
|
76
|
+
mid_neck: string;
|
|
77
|
+
neck_base: string;
|
|
78
|
+
shoulder_drop: string;
|
|
79
|
+
shoulder_to_shoulder: string;
|
|
80
|
+
side_waist_to_floor: string;
|
|
81
|
+
side_waist_to_knee: string;
|
|
82
|
+
thigh: string;
|
|
83
|
+
total_rise_length: string;
|
|
84
|
+
under_bust: string;
|
|
85
|
+
vertical_trunk: string;
|
|
86
|
+
waist: string;
|
|
87
|
+
wrist: string;
|
|
88
|
+
};
|
|
89
|
+
export declare enum Classification {
|
|
90
|
+
BLOUSES = "blouses",
|
|
91
|
+
COATS = "coats",
|
|
92
|
+
DRESSES = "dresses",
|
|
93
|
+
JACKETS = "jackets",
|
|
94
|
+
PANTS = "pants",
|
|
95
|
+
PUFFERS_AND_PARKAS = "puffer_and_parkas",
|
|
96
|
+
SHORTS = "shorts",
|
|
97
|
+
SKIRTS = "skirts",
|
|
98
|
+
SWEATERS = "sweaters",
|
|
99
|
+
T_SHIRTS_AND_TANKS = "t_shirts_and_tanks"
|
|
100
|
+
}
|
|
101
|
+
export declare const ClassificationLocations: {
|
|
102
|
+
blouses: MeasurementLocation[];
|
|
103
|
+
coats: MeasurementLocation[];
|
|
104
|
+
dresses: MeasurementLocation[];
|
|
105
|
+
jackets: MeasurementLocation[];
|
|
106
|
+
pants: MeasurementLocation[];
|
|
107
|
+
puffer_and_parkas: MeasurementLocation[];
|
|
108
|
+
shorts: MeasurementLocation[];
|
|
109
|
+
skirts: MeasurementLocation[];
|
|
110
|
+
sweaters: MeasurementLocation[];
|
|
111
|
+
t_shirts_and_tanks: MeasurementLocation[];
|
|
112
|
+
};
|
|
113
|
+
export declare const enum Category {
|
|
114
|
+
ACTIVEWEAR = "activewear",
|
|
115
|
+
DRESSES = "dresses",
|
|
116
|
+
JACKETS_AND_COATS = "jackets_and_coats",
|
|
117
|
+
JEANS = "jeans",
|
|
118
|
+
JUMPSUITS_AND_ROMPERS = "jumpsuits_and_rompers",
|
|
119
|
+
PANTS_AND_SHORTS = "pants_and_shorts",
|
|
120
|
+
SKIRTS = "skirts",
|
|
121
|
+
SUITS_AND_TAILORING = "suits_and_tailoring",
|
|
122
|
+
SWEATERS = "sweaters",
|
|
123
|
+
TOPS = "tops"
|
|
124
|
+
}
|
|
125
|
+
export declare const CategoryNames: {
|
|
126
|
+
activewear: string;
|
|
127
|
+
dresses: string;
|
|
128
|
+
jackets_and_coats: string;
|
|
129
|
+
jeans: string;
|
|
130
|
+
jumpsuits_and_rompers: string;
|
|
131
|
+
pants_and_shorts: string;
|
|
132
|
+
skirts: string;
|
|
133
|
+
suits_and_tailoring: string;
|
|
134
|
+
sweaters: string;
|
|
135
|
+
tops: string;
|
|
136
|
+
};
|
|
137
|
+
export declare const Categories: Category[];
|
|
138
|
+
export declare const enum Subcategory {
|
|
139
|
+
A_LINE = "a_line",
|
|
140
|
+
A_LINE_FLARED = "a_line_flared",
|
|
141
|
+
BLAZERS = "blazers",
|
|
142
|
+
BODYCON = "bodycon",
|
|
143
|
+
BODYSUITS = "bodysuits",
|
|
144
|
+
BOILER_SUITS = "boiler_suits",
|
|
145
|
+
BOOTCUT = "bootcut",
|
|
146
|
+
CARDIGANS = "cardigans",
|
|
147
|
+
CIGARETTE = "cigarette",
|
|
148
|
+
CORSETS_AND_BUSTIERS = "corsets_and_bustiers",
|
|
149
|
+
CREWNECKS = "crewnecks",
|
|
150
|
+
CULOTTES = "culottes",
|
|
151
|
+
DENIM = "denim",
|
|
152
|
+
DENIM_JACKETS = "denim_jackets",
|
|
153
|
+
DENIM_SHORTS = "denim_shorts",
|
|
154
|
+
FIT_AND_FLARE = "fit_and_flare",
|
|
155
|
+
FLARED = "flared",
|
|
156
|
+
HOODIES_AND_ZIPUPS = "hoodies_and_zipups",
|
|
157
|
+
JOGGERS = "joggers",
|
|
158
|
+
JUMPSUITS = "jumpsuits",
|
|
159
|
+
KNIT = "knit",
|
|
160
|
+
LEGGINGS = "leggings",
|
|
161
|
+
MOM = "mom",
|
|
162
|
+
OVERALLS = "overalls",
|
|
163
|
+
PARKAS = "parkas",
|
|
164
|
+
PEACOATS = "peacoats",
|
|
165
|
+
PENCIL = "pencil",
|
|
166
|
+
PLEATED = "pleated",
|
|
167
|
+
POLOS = "polos",
|
|
168
|
+
PUFFER_JACKETS = "puffer_jackets",
|
|
169
|
+
RAINCOATS = "raincoats",
|
|
170
|
+
RELAXED = "relaxed",
|
|
171
|
+
ROMPERS = "rompers",
|
|
172
|
+
SHACKETS = "shackets",
|
|
173
|
+
SHIRT = "shirt",
|
|
174
|
+
SHIRTS_AND_BLOUSES = "shirts_and_blouses",
|
|
175
|
+
SKATER = "skater",
|
|
176
|
+
SKINNY = "skinny",
|
|
177
|
+
SLIM = "slim",
|
|
178
|
+
SLIP = "slip",
|
|
179
|
+
SPORTS_BRAS = "sports_bras",
|
|
180
|
+
STRAIGHT = "straight",
|
|
181
|
+
SUIT_JACKETS = "suit_jackets",
|
|
182
|
+
SUIT_SKIRTS = "suit_skirts",
|
|
183
|
+
SUIT_TROUSERS = "suit_trousers",
|
|
184
|
+
SUIT_VESTS = "suit_vests",
|
|
185
|
+
SWEATSHIRTS = "sweatshirts",
|
|
186
|
+
T_SHIRTS = "t_shirts",
|
|
187
|
+
TANK_TOPS_AND_CAMISOLES = "tank_tops_and_camisoles",
|
|
188
|
+
TAPERED = "tapered",
|
|
189
|
+
TRENCH_COATS = "trench_coats",
|
|
190
|
+
TROUSERS = "trousers",
|
|
191
|
+
TURTLENECKS = "turtlenecks",
|
|
192
|
+
UNITARDS = "unitards",
|
|
193
|
+
V_NECKS = "v_necks",
|
|
194
|
+
WIDE_LEG = "wide_leg",
|
|
195
|
+
WRAP = "wrap"
|
|
196
|
+
}
|
|
197
|
+
export declare const SubcategoryNames: {
|
|
198
|
+
a_line: string;
|
|
199
|
+
a_line_flared: string;
|
|
200
|
+
blazers: string;
|
|
201
|
+
bodycon: string;
|
|
202
|
+
bodysuits: string;
|
|
203
|
+
boiler_suits: string;
|
|
204
|
+
bootcut: string;
|
|
205
|
+
cardigans: string;
|
|
206
|
+
cigarette: string;
|
|
207
|
+
corsets_and_bustiers: string;
|
|
208
|
+
crewnecks: string;
|
|
209
|
+
culottes: string;
|
|
210
|
+
denim: string;
|
|
211
|
+
denim_jackets: string;
|
|
212
|
+
denim_shorts: string;
|
|
213
|
+
fit_and_flare: string;
|
|
214
|
+
flared: string;
|
|
215
|
+
hoodies_and_zipups: string;
|
|
216
|
+
joggers: string;
|
|
217
|
+
jumpsuits: string;
|
|
218
|
+
knit: string;
|
|
219
|
+
leggings: string;
|
|
220
|
+
mom: string;
|
|
221
|
+
overalls: string;
|
|
222
|
+
parkas: string;
|
|
223
|
+
peacoats: string;
|
|
224
|
+
pencil: string;
|
|
225
|
+
pleated: string;
|
|
226
|
+
polos: string;
|
|
227
|
+
puffer_jackets: string;
|
|
228
|
+
raincoats: string;
|
|
229
|
+
relaxed: string;
|
|
230
|
+
rompers: string;
|
|
231
|
+
shackets: string;
|
|
232
|
+
shirt: string;
|
|
233
|
+
shirts_and_blouses: string;
|
|
234
|
+
skater: string;
|
|
235
|
+
skinny: string;
|
|
236
|
+
slim: string;
|
|
237
|
+
slip: string;
|
|
238
|
+
sports_bras: string;
|
|
239
|
+
straight: string;
|
|
240
|
+
suit_jackets: string;
|
|
241
|
+
suit_skirts: string;
|
|
242
|
+
suit_trousers: string;
|
|
243
|
+
suit_vests: string;
|
|
244
|
+
sweatshirts: string;
|
|
245
|
+
t_shirts: string;
|
|
246
|
+
tank_tops_and_camisoles: string;
|
|
247
|
+
tapered: string;
|
|
248
|
+
trench_coats: string;
|
|
249
|
+
trousers: string;
|
|
250
|
+
turtlenecks: string;
|
|
251
|
+
unitards: string;
|
|
252
|
+
v_necks: string;
|
|
253
|
+
wide_leg: string;
|
|
254
|
+
wrap: string;
|
|
255
|
+
};
|
|
256
|
+
type Taxonomy = {
|
|
257
|
+
[key in Category]: {
|
|
258
|
+
[key in Subcategory]?: Classification;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
export declare const Taxonomy: Taxonomy;
|
|
262
|
+
export {};
|