@shushed/helpers 0.0.246 → 0.0.247-airtable-helper-views-20260130114235

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,23 +4,38 @@ export type Country = ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "
4
4
  export interface Product {
5
5
  product_id: string;
6
6
  slug?: string;
7
+ style_slug?: string;
7
8
  style_id: string;
8
9
  colour_id?: string;
9
10
  style_name?: string;
10
- display_name: string;
11
+ product_name: string;
12
+ display_name?: (string | null);
11
13
  buffer_quantity?: number;
12
14
  display_type?: ("Out-of-stock" | "Permanently-unavailable");
13
15
  available_to_sell_from?: (string | null);
16
+ online_from: (string | null);
17
+ online_to?: (string | null);
18
+ first_online_at?: (string | null);
19
+ last_online_at?: (string | null);
20
+ first_purchased_at?: string;
21
+ first_markdown_at?: (string | null);
14
22
  created_at?: string;
15
23
  last_modified_at?: string;
16
24
  colour_family_name?: string;
25
+ colour_code?: string;
17
26
  colour_name?: string;
18
27
  display_tags?: DisplayTags;
19
28
  sizerange_code?: string;
29
+ sizerange_name?: string;
20
30
  variants?: {
21
31
  code: string;
22
32
  name: string;
23
- ean?: (string | null);
33
+ [k: string]: unknown;
34
+ }[];
35
+ images?: {
36
+ type: ("Campaign" | "Ecom" | "Flatlay" | "UGC" | "AI");
37
+ url: string;
38
+ description?: string;
24
39
  [k: string]: unknown;
25
40
  }[];
26
41
  vat_rate_uk?: (number | null);
@@ -29,40 +44,47 @@ export interface Product {
29
44
  commodity_code_ref?: string;
30
45
  country_of_origin?: Country;
31
46
  port_of_origin?: string;
47
+ supplier_id?: string;
48
+ supplier_name?: string;
49
+ factory_id?: string;
32
50
  packing_method?: (("Standard" | "Hanging") | null);
33
51
  is_bought_in_product?: boolean;
34
52
  [k: string]: unknown;
35
53
  };
36
54
  merch?: {
37
55
  strategy_type?: string;
56
+ product_type?: string;
57
+ stock_type?: string;
38
58
  category?: string;
39
59
  subcategory?: string;
60
+ range?: (("Main Collection" | "Seasonal") | null);
61
+ channels_availability?: ("DIRECT-UK" | "DIRECT-INT" | "DIRECT-US" | "JL-STORES" | "JL-WEB" | "NEXT" | "MS" | "FENWICK" | "MORLEYS")[];
62
+ collections?: string;
40
63
  seasons?: string[];
41
64
  drops?: string[];
65
+ fashionability?: (string | null);
42
66
  [k: string]: unknown;
43
67
  };
44
- category_assignments?: {
45
- display_path?: string[];
46
- path?: string[];
47
- name?: string;
48
- id?: string;
49
- [k: string]: unknown;
50
- }[];
51
68
  attributes?: Attributes;
52
- markets?: string[];
53
- markets_overrides?: {
69
+ presentations?: {
54
70
  [k: string]: {
55
71
  locale: string;
56
- market: string;
72
+ presentation_type: string;
57
73
  slug?: string;
74
+ style_slug?: string;
58
75
  style_name?: string;
59
- display_name?: string;
76
+ display_name?: (string | null);
60
77
  display_type?: ("Out-of-stock" | "Permanently-unavailable");
61
78
  available_to_sell_from?: (string | null);
79
+ online_from?: (string | null);
80
+ online_to?: (string | null);
81
+ last_online_at?: (string | null);
82
+ first_purchased_at?: string;
83
+ first_markdown_at?: (string | null);
62
84
  colour_family_name?: string;
63
85
  colour_name?: string;
64
86
  display_tags?: DisplayTags;
65
- last_online_at?: (string | null);
87
+ sizerange_name?: string;
66
88
  variants?: {
67
89
  code: string;
68
90
  name: string;
@@ -73,34 +95,49 @@ export interface Product {
73
95
  };
74
96
  }
75
97
  export interface Attributes {
76
- stock_quantity_score?: number;
77
- stock_availability?: number;
78
- measurement_chart?: (string | null);
79
- sizeguide_type?: (string | null);
80
- brand?: (string | null);
81
- shoes_type?: (string | null);
82
98
  seo_url_name?: string;
99
+ embellishment?: (string | null);
83
100
  seo_title?: (string | null);
84
101
  seo_description?: (string | null);
85
102
  fit_description?: (string | null);
86
103
  description?: (string | null);
87
104
  fabric_care?: (string | null);
105
+ delivery_returns?: (string | null);
88
106
  weight?: (number | null);
107
+ weight_statement?: (string | null);
89
108
  main_fibre?: (string | null);
90
109
  main_metal?: (string | null);
110
+ extra_selling_points?: string[];
111
+ length_measurement?: (string | null);
112
+ measurement_table_code?: string;
113
+ fit?: (string | null);
114
+ pockets?: (string | null);
115
+ pleats_gathers?: (string | null);
116
+ lining?: (string | null);
117
+ bias_cut?: (string | null);
91
118
  designer?: (string | null);
119
+ fabric?: (string | null);
120
+ fabric_composition?: (string | null);
92
121
  certificate_code?: (string | null);
122
+ shape?: (string | null);
123
+ development_type?: string;
124
+ occasion?: (string | null);
125
+ design?: (string | null);
126
+ block?: (string | null);
93
127
  pattern_name?: (string | null);
94
128
  fit_type?: (string | null);
95
- trousers_fit?: (string | null);
96
- trousers_length?: (string | null);
97
- dresses_skirts_length?: (string | null);
98
- coats_jackets_type?: (string | null);
99
- dresses_skirts_type?: (string | null);
100
- bag_type?: (string | null);
101
- product_category?: (string | null);
102
- product_type?: (string | null);
103
- metal?: (string | null);
129
+ neckline?: (string | null);
130
+ sleeve_length?: (string | null);
131
+ sleeve_type?: (string | null);
132
+ heel_height?: (string | null);
133
+ heel_shape?: (string | null);
134
+ toe_shape?: (string | null);
135
+ trouser_fit?: (string | null);
136
+ leg_length?: (string | null);
137
+ handle_straps?: (string | null);
138
+ straps_features?: (string | null);
139
+ fastening?: ((string[] | null) | null);
140
+ sole_material?: (string | null);
104
141
  care_instructions?: string[];
105
142
  [k: string]: unknown;
106
143
  }
@@ -84,7 +84,6 @@ export interface __MainSchema {
84
84
  strategy_type?: (string | null);
85
85
  pattern_name?: (string | null);
86
86
  neckline?: (string | null);
87
- neckline_statement?: (string | null);
88
87
  sleeve_length?: (string | null);
89
88
  leg_length?: (string | null);
90
89
  heel_height?: (string | null);
@@ -99,7 +98,6 @@ export interface __MainSchema {
99
98
  weight_statement?: (string | null);
100
99
  weight?: (number | null);
101
100
  extra_selling_points?: string[];
102
- length_statement?: (string | null);
103
101
  length_measurement?: (string | null);
104
102
  fabric_composition?: (string | null);
105
103
  };
@@ -3,23 +3,38 @@ export type Country = ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "
3
3
  export interface __MainSchema {
4
4
  product_id: string;
5
5
  slug?: string;
6
+ style_slug?: string;
6
7
  style_id: string;
7
8
  colour_id?: string;
8
9
  style_name?: string;
9
- display_name: string;
10
+ product_name: string;
11
+ display_name?: (string | null);
10
12
  buffer_quantity?: number;
11
13
  display_type?: ("Out-of-stock" | "Permanently-unavailable");
12
14
  available_to_sell_from?: (string | null);
15
+ online_from: (string | null);
16
+ online_to?: (string | null);
17
+ first_online_at?: (string | null);
18
+ last_online_at?: (string | null);
19
+ first_purchased_at?: string;
20
+ first_markdown_at?: (string | null);
13
21
  created_at?: string;
14
22
  last_modified_at?: string;
15
23
  colour_family_name?: string;
24
+ colour_code?: string;
16
25
  colour_name?: string;
17
26
  display_tags?: DisplayTags;
18
27
  sizerange_code?: string;
28
+ sizerange_name?: string;
19
29
  variants?: {
20
30
  code: string;
21
31
  name: string;
22
- ean?: (string | null);
32
+ [k: string]: unknown;
33
+ }[];
34
+ images?: {
35
+ type: ("Campaign" | "Ecom" | "Flatlay" | "UGC" | "AI");
36
+ url: string;
37
+ description?: string;
23
38
  [k: string]: unknown;
24
39
  }[];
25
40
  vat_rate_uk?: (number | null);
@@ -28,40 +43,47 @@ export interface __MainSchema {
28
43
  commodity_code_ref?: string;
29
44
  country_of_origin?: Country;
30
45
  port_of_origin?: string;
46
+ supplier_id?: string;
47
+ supplier_name?: string;
48
+ factory_id?: string;
31
49
  packing_method?: (("Standard" | "Hanging") | null);
32
50
  is_bought_in_product?: boolean;
33
51
  [k: string]: unknown;
34
52
  };
35
53
  merch?: {
36
54
  strategy_type?: string;
55
+ product_type?: string;
56
+ stock_type?: string;
37
57
  category?: string;
38
58
  subcategory?: string;
59
+ range?: (("Main Collection" | "Seasonal") | null);
60
+ channels_availability?: ("DIRECT-UK" | "DIRECT-INT" | "DIRECT-US" | "JL-STORES" | "JL-WEB" | "NEXT" | "MS" | "FENWICK" | "MORLEYS")[];
61
+ collections?: string;
39
62
  seasons?: string[];
40
63
  drops?: string[];
64
+ fashionability?: (string | null);
41
65
  [k: string]: unknown;
42
66
  };
43
- category_assignments?: {
44
- display_path?: string[];
45
- path?: string[];
46
- name?: string;
47
- id?: string;
48
- [k: string]: unknown;
49
- }[];
50
67
  attributes?: Attributes;
51
- markets?: string[];
52
- markets_overrides?: {
68
+ presentations?: {
53
69
  [k: string]: {
54
70
  locale: string;
55
- market: string;
71
+ presentation_type: string;
56
72
  slug?: string;
73
+ style_slug?: string;
57
74
  style_name?: string;
58
- display_name?: string;
75
+ display_name?: (string | null);
59
76
  display_type?: ("Out-of-stock" | "Permanently-unavailable");
60
77
  available_to_sell_from?: (string | null);
78
+ online_from?: (string | null);
79
+ online_to?: (string | null);
80
+ last_online_at?: (string | null);
81
+ first_purchased_at?: string;
82
+ first_markdown_at?: (string | null);
61
83
  colour_family_name?: string;
62
84
  colour_name?: string;
63
85
  display_tags?: DisplayTags;
64
- last_online_at?: (string | null);
86
+ sizerange_name?: string;
65
87
  variants?: {
66
88
  code: string;
67
89
  name: string;
@@ -72,34 +94,49 @@ export interface __MainSchema {
72
94
  };
73
95
  }
74
96
  export interface Attributes {
75
- stock_quantity_score?: number;
76
- stock_availability?: number;
77
- measurement_chart?: (string | null);
78
- sizeguide_type?: (string | null);
79
- brand?: (string | null);
80
- shoes_type?: (string | null);
81
97
  seo_url_name?: string;
98
+ embellishment?: (string | null);
82
99
  seo_title?: (string | null);
83
100
  seo_description?: (string | null);
84
101
  fit_description?: (string | null);
85
102
  description?: (string | null);
86
103
  fabric_care?: (string | null);
104
+ delivery_returns?: (string | null);
87
105
  weight?: (number | null);
106
+ weight_statement?: (string | null);
88
107
  main_fibre?: (string | null);
89
108
  main_metal?: (string | null);
109
+ extra_selling_points?: string[];
110
+ length_measurement?: (string | null);
111
+ measurement_table_code?: string;
112
+ fit?: (string | null);
113
+ pockets?: (string | null);
114
+ pleats_gathers?: (string | null);
115
+ lining?: (string | null);
116
+ bias_cut?: (string | null);
90
117
  designer?: (string | null);
118
+ fabric?: (string | null);
119
+ fabric_composition?: (string | null);
91
120
  certificate_code?: (string | null);
121
+ shape?: (string | null);
122
+ development_type?: string;
123
+ occasion?: (string | null);
124
+ design?: (string | null);
125
+ block?: (string | null);
92
126
  pattern_name?: (string | null);
93
127
  fit_type?: (string | null);
94
- trousers_fit?: (string | null);
95
- trousers_length?: (string | null);
96
- dresses_skirts_length?: (string | null);
97
- coats_jackets_type?: (string | null);
98
- dresses_skirts_type?: (string | null);
99
- bag_type?: (string | null);
100
- product_category?: (string | null);
101
- product_type?: (string | null);
102
- metal?: (string | null);
128
+ neckline?: (string | null);
129
+ sleeve_length?: (string | null);
130
+ sleeve_type?: (string | null);
131
+ heel_height?: (string | null);
132
+ heel_shape?: (string | null);
133
+ toe_shape?: (string | null);
134
+ trouser_fit?: (string | null);
135
+ leg_length?: (string | null);
136
+ handle_straps?: (string | null);
137
+ straps_features?: (string | null);
138
+ fastening?: ((string[] | null) | null);
139
+ sole_material?: (string | null);
103
140
  care_instructions?: string[];
104
141
  [k: string]: unknown;
105
142
  }
@@ -12,6 +12,7 @@ declare class AirtableHelper<T extends Record<string, string>, K extends keyof T
12
12
  dictionary: T;
13
13
  primaryKeyFieldName: K;
14
14
  primaryKeyWritable: boolean;
15
+ viewId?: string;
15
16
  constructor(opts: RuntimeOpts, airtableOpts: {
16
17
  baseId: string;
17
18
  tableId: string;
@@ -19,6 +20,7 @@ declare class AirtableHelper<T extends Record<string, string>, K extends keyof T
19
20
  dictionary: T;
20
21
  primaryKeyFieldName: K;
21
22
  primaryKeyWritable?: boolean;
23
+ viewId?: string;
22
24
  });
23
25
  static translateFields<T extends Record<string, string>, S extends {
24
26
  fields: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.246",
3
+ "version": "0.0.247-airtable-helper-views-20260130114235",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",