@thefittingroom/sdk 2.0.5 → 2.0.7
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/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/common.d.ts +1 -0
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/common.js +3 -0
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/common.js.map +1 -0
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/enums.d.ts +219 -0
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/enums.js +211 -0
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/enums.js.map +1 -0
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/requests.d.ts +193 -71
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/responses.d.ts +346 -54
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/responses.js +1 -0
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/responses.js.map +1 -1
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/shop.d.ts +2 -2
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/esm/api/shop.js.map +1 -1
- package/.rollup.cache/home/runner/work/shop-sdk/shop-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/api/common.d.ts +1 -0
- package/dist/esm/api/enums.d.ts +219 -0
- package/dist/esm/api/requests.d.ts +193 -71
- package/dist/esm/api/responses.d.ts +346 -54
- package/dist/esm/api/shop.d.ts +2 -2
- package/dist/esm/index.js +21 -19
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +2 -2
- package/dist/esm/index.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/eslint.config.js +39 -0
- package/go.mod +7 -0
- package/package.json +12 -3
- package/tygo.yaml +25 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
|
|
3
|
-
position: number;
|
|
4
|
-
value: number;
|
|
1
|
+
export interface AppLink {
|
|
2
|
+
phone_number: string;
|
|
5
3
|
}
|
|
6
4
|
export interface Avatar {
|
|
7
5
|
BrandID: string;
|
|
@@ -11,132 +9,252 @@ export interface Avatar {
|
|
|
11
9
|
BodyType: string;
|
|
12
10
|
SkinToneHex: string;
|
|
13
11
|
SkinToneFac: string;
|
|
14
|
-
FrameCount: string;
|
|
15
12
|
Video?: any;
|
|
16
13
|
}
|
|
17
14
|
export interface UpdateAvatarWebhook {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
right_hip_y: number;
|
|
24
|
-
right_hip_z: number;
|
|
25
|
-
left_hip_x: number;
|
|
26
|
-
left_hip_y: number;
|
|
27
|
-
left_hip_z: number;
|
|
28
|
-
right_waist_x: number;
|
|
29
|
-
right_waist_y: number;
|
|
30
|
-
right_waist_z: number;
|
|
31
|
-
left_waist_x: number;
|
|
32
|
-
left_waist_y: number;
|
|
33
|
-
left_waist_z: number;
|
|
34
|
-
right_shoulder_x: number;
|
|
35
|
-
right_shoulder_y: number;
|
|
36
|
-
right_shoulder_z: number;
|
|
37
|
-
left_shoulder_x: number;
|
|
38
|
-
left_shoulder_y: number;
|
|
39
|
-
left_shoulder_z: number;
|
|
15
|
+
error: string;
|
|
16
|
+
measurements: {
|
|
17
|
+
[key: string]: number;
|
|
18
|
+
};
|
|
19
|
+
joints: Joint[];
|
|
40
20
|
frames_storage_path: string;
|
|
41
21
|
object_storage_path: string;
|
|
22
|
+
sdf_storage_path: string;
|
|
23
|
+
}
|
|
24
|
+
export interface FakeAvatar {
|
|
25
|
+
gender: string;
|
|
26
|
+
measurements: {
|
|
27
|
+
[key: string]: number;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface BaseBody {
|
|
31
|
+
is_global: boolean;
|
|
32
|
+
label: string;
|
|
33
|
+
base_body_measurements: (BaseBodyMeasurement | undefined)[];
|
|
34
|
+
measurement_unit: string;
|
|
35
|
+
}
|
|
36
|
+
export interface BaseBodyMeasurement {
|
|
37
|
+
/**
|
|
38
|
+
* TODO: Revert to measurement_location.
|
|
39
|
+
*/
|
|
40
|
+
measurement_location: string;
|
|
41
|
+
lay_flat: boolean;
|
|
42
|
+
value: number;
|
|
42
43
|
}
|
|
43
44
|
export interface Brand {
|
|
44
45
|
name: string;
|
|
46
|
+
phone_number: string;
|
|
47
|
+
measurement_unit: any;
|
|
45
48
|
business_number: string;
|
|
46
|
-
logo_storage_path: string;
|
|
47
49
|
country_code: string;
|
|
48
50
|
about: string;
|
|
49
51
|
why_tfr: string;
|
|
50
52
|
specialty: string;
|
|
51
|
-
phone_number: string;
|
|
52
53
|
}
|
|
53
|
-
export interface
|
|
54
|
-
external_id: string;
|
|
54
|
+
export interface PutBrand {
|
|
55
55
|
name: string;
|
|
56
|
-
|
|
56
|
+
phone_number: string;
|
|
57
|
+
measurement_unit: any;
|
|
58
|
+
business_number: string;
|
|
59
|
+
country_code: string;
|
|
60
|
+
about: string;
|
|
61
|
+
why_tfr: string;
|
|
62
|
+
specialty: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ColorwayProperties {
|
|
65
|
+
File?: any;
|
|
57
66
|
}
|
|
58
67
|
export interface PatchColorwaySizeAsset {
|
|
59
68
|
Sku: string;
|
|
60
69
|
}
|
|
61
70
|
export interface ColorwaySizeAsset {
|
|
62
71
|
Sku: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ColorwaySizeAssetUpload {
|
|
63
74
|
File?: any;
|
|
64
75
|
}
|
|
76
|
+
export interface ColorwaySizeAssetFrames {
|
|
77
|
+
}
|
|
65
78
|
export interface UpdateColorwaySizeAssetWebhook {
|
|
66
79
|
avatar_id: number;
|
|
80
|
+
error: string;
|
|
67
81
|
frames_storage_path: string;
|
|
68
82
|
frame_count: number;
|
|
69
83
|
}
|
|
84
|
+
export interface Cycle {
|
|
85
|
+
season: string;
|
|
86
|
+
quarter: number;
|
|
87
|
+
quarter_drop: number;
|
|
88
|
+
start_date: any;
|
|
89
|
+
end_date: any;
|
|
90
|
+
name: string;
|
|
91
|
+
}
|
|
92
|
+
export interface PutCycle {
|
|
93
|
+
season: string;
|
|
94
|
+
quarter: number;
|
|
95
|
+
quarter_drop: number;
|
|
96
|
+
start_date: any;
|
|
97
|
+
end_date: any;
|
|
98
|
+
name: string;
|
|
99
|
+
}
|
|
100
|
+
export interface Division {
|
|
101
|
+
name: string;
|
|
102
|
+
}
|
|
103
|
+
export interface GarmentCategory {
|
|
104
|
+
label: string;
|
|
105
|
+
}
|
|
106
|
+
export interface PatchGarmentCategory {
|
|
107
|
+
label: string;
|
|
108
|
+
}
|
|
70
109
|
export interface Invitation {
|
|
71
110
|
email: string;
|
|
72
|
-
|
|
73
|
-
last_name: string;
|
|
111
|
+
full_name: string;
|
|
74
112
|
brand_id: number;
|
|
75
113
|
}
|
|
76
|
-
export interface
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
114
|
+
export interface MeasurementLocation {
|
|
115
|
+
name: string;
|
|
116
|
+
is_global: boolean;
|
|
117
|
+
avatar_measurement_location: string;
|
|
118
|
+
garment_label: string;
|
|
119
|
+
avatar_label: string;
|
|
120
|
+
is_vertical: boolean;
|
|
121
|
+
can_layflat: boolean;
|
|
122
|
+
is_required_base_body_measurement: boolean;
|
|
123
|
+
sort_order: number;
|
|
124
|
+
group_name: string;
|
|
125
|
+
}
|
|
126
|
+
export interface ShopifyStore {
|
|
127
|
+
store_name: string;
|
|
128
|
+
store_url: string;
|
|
129
|
+
plain_text_api_key: string;
|
|
130
|
+
return_window_days: number;
|
|
131
|
+
transit_window_days: number;
|
|
132
|
+
is_enabled: boolean;
|
|
133
|
+
window_limit: number;
|
|
134
|
+
}
|
|
135
|
+
export interface PatchShopifyStore {
|
|
136
|
+
is_enabled: boolean;
|
|
137
|
+
}
|
|
138
|
+
export interface ColorwayNameSizeAssetSKU {
|
|
139
|
+
colorway_name: string;
|
|
140
|
+
colorway_size_asset_sku: string;
|
|
80
141
|
}
|
|
81
142
|
export interface Size {
|
|
143
|
+
reference_size_value_id: number;
|
|
82
144
|
size_value_id: number;
|
|
145
|
+
vertical_size_value_id: number;
|
|
146
|
+
base_body_id: number;
|
|
83
147
|
label: string;
|
|
84
148
|
garment_measurements: GarmentMeasurement[];
|
|
149
|
+
colorway_name_size_asset_sku: ColorwayNameSizeAssetSKU[];
|
|
150
|
+
}
|
|
151
|
+
export interface Sizes {
|
|
152
|
+
sizes: Size[];
|
|
85
153
|
}
|
|
86
|
-
export interface
|
|
154
|
+
export interface SizeSystem {
|
|
87
155
|
name: string;
|
|
156
|
+
is_global: boolean;
|
|
157
|
+
is_horizontal: boolean;
|
|
158
|
+
is_vertical: boolean;
|
|
159
|
+
size_values: SizeValue[];
|
|
160
|
+
}
|
|
161
|
+
export interface SizeValue {
|
|
162
|
+
name: string;
|
|
163
|
+
}
|
|
164
|
+
export interface SizingChart {
|
|
165
|
+
measurement_unit: string;
|
|
166
|
+
name: string;
|
|
167
|
+
size_system_id: number;
|
|
168
|
+
start_size_value_id: number;
|
|
169
|
+
size_value_ids: number[];
|
|
170
|
+
vertical_size_system_id: number;
|
|
171
|
+
start_vertical_size_value_id: number;
|
|
172
|
+
vertical_size_value_ids: number[];
|
|
173
|
+
}
|
|
174
|
+
export interface GarmentMeasurement {
|
|
175
|
+
/**
|
|
176
|
+
* TODO revert this to measurement_location
|
|
177
|
+
*/
|
|
178
|
+
measurement_location: string;
|
|
179
|
+
value: number;
|
|
180
|
+
stretch: number;
|
|
181
|
+
lay_flat: boolean;
|
|
88
182
|
}
|
|
89
183
|
export interface Style {
|
|
90
184
|
brand_style_id: string;
|
|
91
|
-
|
|
185
|
+
cycle_id: number;
|
|
92
186
|
name: string;
|
|
93
187
|
description: string;
|
|
94
188
|
sale_type: string;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
189
|
+
style_garment_category_id: number;
|
|
190
|
+
measurement_unit?: string;
|
|
191
|
+
size_system_id: number;
|
|
192
|
+
vertical_size_system_id: number;
|
|
193
|
+
placement_measurement_location: string;
|
|
194
|
+
placement_offset_y: number;
|
|
195
|
+
is_vto: boolean;
|
|
196
|
+
}
|
|
197
|
+
export interface PutStyle {
|
|
198
|
+
brand_style_id: string;
|
|
199
|
+
name: string;
|
|
200
|
+
description: string;
|
|
201
|
+
sale_type: string;
|
|
202
|
+
style_garment_category_id: number;
|
|
203
|
+
measurement_unit: string;
|
|
204
|
+
size_system_id: number;
|
|
205
|
+
vertical_size_system_id: number;
|
|
206
|
+
placement_measurement_location: string;
|
|
207
|
+
placement_offset_y: number;
|
|
208
|
+
is_vto: boolean;
|
|
98
209
|
}
|
|
99
210
|
export interface StylePatch {
|
|
100
211
|
publish: boolean;
|
|
101
212
|
}
|
|
213
|
+
export interface StyleBaseBodyAdjustment {
|
|
214
|
+
measurement_location: string;
|
|
215
|
+
value: number;
|
|
216
|
+
}
|
|
217
|
+
export interface StyleBaseBodyAdjustments {
|
|
218
|
+
adjustments: StyleBaseBodyAdjustment[];
|
|
219
|
+
}
|
|
220
|
+
export interface StyleCategory {
|
|
221
|
+
name: string;
|
|
222
|
+
is_global: boolean;
|
|
223
|
+
label: string;
|
|
224
|
+
measurement_locations_female: string[];
|
|
225
|
+
measurement_locations_male: string[];
|
|
226
|
+
}
|
|
227
|
+
export interface PatchStyleCategory {
|
|
228
|
+
label: string;
|
|
229
|
+
measurement_locations_female: string[];
|
|
230
|
+
measurement_locations_male: string[];
|
|
231
|
+
}
|
|
232
|
+
export interface StyleGarmentCategory {
|
|
233
|
+
is_global: boolean;
|
|
234
|
+
style_category_name: string;
|
|
235
|
+
garment_category_name: string;
|
|
236
|
+
}
|
|
102
237
|
export interface User {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
238
|
+
full_name: string;
|
|
239
|
+
is_gte_18: boolean;
|
|
240
|
+
is_tos_accepted: boolean;
|
|
106
241
|
job: string;
|
|
107
242
|
}
|
|
243
|
+
export interface PatchUser {
|
|
244
|
+
brand_id?: number;
|
|
245
|
+
}
|
|
108
246
|
export interface InvitedUser {
|
|
247
|
+
User: User;
|
|
109
248
|
token: string;
|
|
110
249
|
password: string;
|
|
111
250
|
}
|
|
112
251
|
export interface Joint {
|
|
113
|
-
id: number;
|
|
114
252
|
name: string;
|
|
115
253
|
side: string;
|
|
116
254
|
x: number;
|
|
117
255
|
y: number;
|
|
118
256
|
z: number;
|
|
119
257
|
}
|
|
120
|
-
export interface Joints {
|
|
121
|
-
right_hip_x: number;
|
|
122
|
-
right_hip_y: number;
|
|
123
|
-
right_hip_z: number;
|
|
124
|
-
left_hip_x: number;
|
|
125
|
-
left_hip_y: number;
|
|
126
|
-
left_hip_z: number;
|
|
127
|
-
right_waist_x: number;
|
|
128
|
-
right_waist_y: number;
|
|
129
|
-
right_waist_z: number;
|
|
130
|
-
left_waist_x: number;
|
|
131
|
-
left_waist_y: number;
|
|
132
|
-
left_waist_z: number;
|
|
133
|
-
right_shoulder_x: number;
|
|
134
|
-
right_shoulder_y: number;
|
|
135
|
-
right_shoulder_z: number;
|
|
136
|
-
left_shoulder_x: number;
|
|
137
|
-
left_shoulder_y: number;
|
|
138
|
-
left_shoulder_z: number;
|
|
139
|
-
}
|
|
140
258
|
export interface FramesRequest {
|
|
141
259
|
user_id: string;
|
|
142
260
|
avatar_id: number;
|
|
@@ -144,12 +262,16 @@ export interface FramesRequest {
|
|
|
144
262
|
garment_id: number;
|
|
145
263
|
colorway_id: number;
|
|
146
264
|
size_id: number;
|
|
147
|
-
|
|
265
|
+
avatar_storage_path: string;
|
|
266
|
+
sdf_storage_path: string;
|
|
148
267
|
garment: string;
|
|
149
|
-
material: string;
|
|
150
|
-
textures: string;
|
|
151
268
|
hex_value: string;
|
|
152
269
|
color_value: number;
|
|
153
270
|
frame_count: number;
|
|
154
|
-
joints:
|
|
271
|
+
joints: Joint[];
|
|
272
|
+
u3ma: string;
|
|
273
|
+
style_category_name: any;
|
|
274
|
+
garment_category_name: any;
|
|
275
|
+
placement_measurement_location: string;
|
|
276
|
+
placement_offset_y: number;
|
|
155
277
|
}
|