@thefittingroom/sdk 0.0.5 → 0.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.
@@ -4,33 +4,33 @@ export declare enum AvatarState {
4
4
  CREATED = "CREATED",
5
5
  PENDING = "PENDING"
6
6
  }
7
- export type FirestoreColorwaySizeAsset = {
7
+ export interface FirestoreColorwaySizeAsset {
8
8
  id: number;
9
9
  size_id: number;
10
10
  style_id: number;
11
11
  colorway_id: number;
12
12
  colorway_name: string;
13
13
  sku: string;
14
- };
15
- export type FirestoreGarmentMeasurement = {
14
+ }
15
+ export interface FirestoreGarmentMeasurement {
16
16
  id: number;
17
17
  garment_measurement_location: string;
18
18
  tolerance: number;
19
19
  value: number;
20
- };
21
- export type FirestoreSize = {
20
+ }
21
+ export interface FirestoreSize {
22
22
  id: number;
23
23
  size: string;
24
24
  label: string;
25
25
  size_system: string;
26
26
  size_value_id: string;
27
27
  garment_measurements: Map<string, FirestoreGarmentMeasurement>;
28
- };
29
- export type FirestoreColorway = {
28
+ }
29
+ export interface FirestoreColorway {
30
30
  id: number;
31
31
  name: string;
32
- };
33
- export type FirestoreStyle = {
32
+ }
33
+ export interface FirestoreStyle {
34
34
  id: number;
35
35
  brand_id: number;
36
36
  brand_style_id: string;
@@ -45,4 +45,23 @@ export type FirestoreStyle = {
45
45
  sizes: {
46
46
  [key: number]: FirestoreSize;
47
47
  };
48
- };
48
+ }
49
+ export interface FirestoreFrames {
50
+ colorway_size_asset_id: number;
51
+ frames: TryOnFrames;
52
+ }
53
+ export interface FirestoreVTO {
54
+ [key: number]: Record<string, FirestoreFrames>;
55
+ }
56
+ export interface FirestoreUser {
57
+ avatar_frames: string[];
58
+ avatar_status: AvatarState;
59
+ brand_id: number;
60
+ date_of_birth: string;
61
+ first_name: string;
62
+ is_admin: boolean;
63
+ is_approved: boolean;
64
+ job: string;
65
+ last_name: string;
66
+ vto: FirestoreVTO;
67
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thefittingroom/sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "the fitting room SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",
@@ -10,7 +10,8 @@
10
10
  "clean:all": "rm -rf dist && rm -rf build && rm -rf .rollup.cache",
11
11
  "build": "npm run clean && rollup --config",
12
12
  "watch": "npm run clean && rollup --config -w",
13
- "postinstall": "patch-package"
13
+ "postinstall": "patch-package",
14
+ "pub": "npm run build && npm publish --access public"
14
15
  },
15
16
  "engines": {
16
17
  "node": ">=10"