@digital8/lighting-illusions-ts-sdk 0.0.1623 → 0.0.1624

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1623
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1624
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -615,7 +615,7 @@ and is automatically generated by the
615
615
  [OpenAPI Generator](https://openapi-generator.tech) project:
616
616
 
617
617
  - API version: `1.0.0`
618
- - Package version: `0.0.1623`
618
+ - Package version: `0.0.1624`
619
619
  - Generator version: `7.21.0`
620
620
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
621
621
 
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- line2: string;
35
+ line2?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -24,8 +24,6 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
24
24
  function instanceOfAddressFrontendResource(value) {
25
25
  if (!('line1' in value) || value['line1'] === undefined)
26
26
  return false;
27
- if (!('line2' in value) || value['line2'] === undefined)
28
- return false;
29
27
  if (!('postcode' in value) || value['postcode'] === undefined)
30
28
  return false;
31
29
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -48,7 +46,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
48
46
  return {
49
47
  'company': json['company'] == null ? undefined : json['company'],
50
48
  'line1': json['line1'],
51
- 'line2': json['line2'],
49
+ 'line2': json['line2'] == null ? undefined : json['line2'],
52
50
  'postcode': json['postcode'],
53
51
  'suburb': json['suburb'],
54
52
  'country': json['country'],
@@ -26,7 +26,7 @@ export interface AddressResource {
26
26
  * @type {string}
27
27
  * @memberof AddressResource
28
28
  */
29
- company?: string | null;
29
+ company: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
@@ -38,7 +38,7 @@ export interface AddressResource {
38
38
  * @type {string}
39
39
  * @memberof AddressResource
40
40
  */
41
- line2?: string | null;
41
+ line2: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -22,8 +22,12 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressResource interface.
23
23
  */
24
24
  function instanceOfAddressResource(value) {
25
+ if (!('company' in value) || value['company'] === undefined)
26
+ return false;
25
27
  if (!('line1' in value) || value['line1'] === undefined)
26
28
  return false;
29
+ if (!('line2' in value) || value['line2'] === undefined)
30
+ return false;
27
31
  if (!('postcode' in value) || value['postcode'] === undefined)
28
32
  return false;
29
33
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -45,9 +49,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
45
49
  }
46
50
  return {
47
51
  'id': json['id'] == null ? undefined : json['id'],
48
- 'company': json['company'] == null ? undefined : json['company'],
52
+ 'company': json['company'],
49
53
  'line1': json['line_1'],
50
- 'line2': json['line_2'] == null ? undefined : json['line_2'],
54
+ 'line2': json['line_2'],
51
55
  'postcode': json['postcode'],
52
56
  'suburb': json['suburb'],
53
57
  'country': json['country'],
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine?: string | null;
60
+ tagLine: string;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -70,18 +70,6 @@ export interface StoreListResource {
70
70
  * @memberof StoreListResource
71
71
  */
72
72
  website: string;
73
- /**
74
- *
75
- * @type {string}
76
- * @memberof StoreListResource
77
- */
78
- netsuiteLocationId?: string | null;
79
- /**
80
- *
81
- * @type {string}
82
- * @memberof StoreListResource
83
- */
84
- displayNetsuiteLocationId?: string | null;
85
73
  /**
86
74
  *
87
75
  * @type {string}
@@ -33,6 +33,8 @@ function instanceOfStoreListResource(value) {
33
33
  return false;
34
34
  if (!('latitude' in value) || value['latitude'] === undefined)
35
35
  return false;
36
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
37
+ return false;
36
38
  if (!('email' in value) || value['email'] === undefined)
37
39
  return false;
38
40
  if (!('website' in value) || value['website'] === undefined)
@@ -53,11 +55,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'phone': json['phone'],
54
56
  'longitude': json['longitude'],
55
57
  'latitude': json['latitude'],
56
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
58
+ 'tagLine': json['tag_line'],
57
59
  'email': json['email'],
58
60
  'website': json['website'],
59
- 'netsuiteLocationId': json['netsuiteLocationId'] == null ? undefined : json['netsuiteLocationId'],
60
- 'displayNetsuiteLocationId': json['displayNetsuiteLocationId'] == null ? undefined : json['displayNetsuiteLocationId'],
61
61
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
62
62
  };
63
63
  }
@@ -79,8 +79,6 @@ function StoreListResourceToJSONTyped(value, ignoreDiscriminator) {
79
79
  'tag_line': value['tagLine'],
80
80
  'email': value['email'],
81
81
  'website': value['website'],
82
- 'netsuiteLocationId': value['netsuiteLocationId'],
83
- 'displayNetsuiteLocationId': value['displayNetsuiteLocationId'],
84
82
  'opening_hours': value['openingHours'],
85
83
  };
86
84
  }
@@ -72,19 +72,19 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website: string;
75
+ website?: string | null;
76
76
  /**
77
77
  *
78
78
  * @type {string}
79
79
  * @memberof StoreResource
80
80
  */
81
- netsuiteLocationId?: string | null;
81
+ netsuiteId?: string | null;
82
82
  /**
83
83
  *
84
84
  * @type {string}
85
85
  * @memberof StoreResource
86
86
  */
87
- displayNetsuiteLocationId?: string | null;
87
+ displayNetsuiteId?: string | null;
88
88
  /**
89
89
  *
90
90
  * @type {string}
@@ -40,8 +40,6 @@ function instanceOfStoreResource(value) {
40
40
  return false;
41
41
  if (!('email' in value) || value['email'] === undefined)
42
42
  return false;
43
- if (!('website' in value) || value['website'] === undefined)
44
- return false;
45
43
  if (!('suppliers' in value) || value['suppliers'] === undefined)
46
44
  return false;
47
45
  if (!('address' in value) || value['address'] === undefined)
@@ -66,9 +64,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
66
64
  'latitude': json['latitude'],
67
65
  'tagLine': json['tag_line'],
68
66
  'email': json['email'],
69
- 'website': json['website'],
70
- 'netsuiteLocationId': json['netsuiteLocationId'] == null ? undefined : json['netsuiteLocationId'],
71
- 'displayNetsuiteLocationId': json['displayNetsuiteLocationId'] == null ? undefined : json['displayNetsuiteLocationId'],
67
+ 'website': json['website'] == null ? undefined : json['website'],
68
+ 'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
69
+ 'displayNetsuiteId': json['displayNetsuiteId'] == null ? undefined : json['displayNetsuiteId'],
72
70
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
73
71
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
74
72
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
@@ -93,8 +91,8 @@ function StoreResourceToJSONTyped(value, ignoreDiscriminator) {
93
91
  'tag_line': value['tagLine'],
94
92
  'email': value['email'],
95
93
  'website': value['website'],
96
- 'netsuiteLocationId': value['netsuiteLocationId'],
97
- 'displayNetsuiteLocationId': value['displayNetsuiteLocationId'],
94
+ 'netsuiteId': value['netsuiteId'],
95
+ 'displayNetsuiteId': value['displayNetsuiteId'],
98
96
  'opening_hours': value['openingHours'],
99
97
  'suppliers': (value['suppliers'] == null ? null : value['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceToJSON)),
100
98
  'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
@@ -15,8 +15,6 @@ Name | Type
15
15
  `tagLine` | string
16
16
  `email` | string
17
17
  `website` | string
18
- `netsuiteLocationId` | string
19
- `displayNetsuiteLocationId` | string
20
18
  `openingHours` | string
21
19
 
22
20
  ## Example
@@ -35,8 +33,6 @@ const example = {
35
33
  "tagLine": null,
36
34
  "email": null,
37
35
  "website": null,
38
- "netsuiteLocationId": null,
39
- "displayNetsuiteLocationId": null,
40
36
  "openingHours": null,
41
37
  } satisfies StoreListResource
42
38
 
@@ -15,8 +15,8 @@ Name | Type
15
15
  `tagLine` | string
16
16
  `email` | string
17
17
  `website` | string
18
- `netsuiteLocationId` | string
19
- `displayNetsuiteLocationId` | string
18
+ `netsuiteId` | string
19
+ `displayNetsuiteId` | string
20
20
  `openingHours` | string
21
21
  `suppliers` | [Array<SupplierLiteResource>](SupplierLiteResource.md)
22
22
  `address` | [AddressResource](AddressResource.md)
@@ -38,8 +38,8 @@ const example = {
38
38
  "tagLine": null,
39
39
  "email": null,
40
40
  "website": null,
41
- "netsuiteLocationId": null,
42
- "displayNetsuiteLocationId": null,
41
+ "netsuiteId": null,
42
+ "displayNetsuiteId": null,
43
43
  "openingHours": null,
44
44
  "suppliers": null,
45
45
  "address": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1623",
3
+ "version": "0.0.1624",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- line2: string;
39
+ line2?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -74,7 +74,6 @@ export interface AddressFrontendResource {
74
74
  */
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
76
  if (!('line1' in value) || value['line1'] === undefined) return false;
77
- if (!('line2' in value) || value['line2'] === undefined) return false;
78
77
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
79
78
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
80
79
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -95,7 +94,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
95
94
 
96
95
  'company': json['company'] == null ? undefined : json['company'],
97
96
  'line1': json['line1'],
98
- 'line2': json['line2'],
97
+ 'line2': json['line2'] == null ? undefined : json['line2'],
99
98
  'postcode': json['postcode'],
100
99
  'suburb': json['suburb'],
101
100
  'country': json['country'],
@@ -30,7 +30,7 @@ export interface AddressResource {
30
30
  * @type {string}
31
31
  * @memberof AddressResource
32
32
  */
33
- company?: string | null;
33
+ company: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -42,7 +42,7 @@ export interface AddressResource {
42
42
  * @type {string}
43
43
  * @memberof AddressResource
44
44
  */
45
- line2?: string | null;
45
+ line2: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -79,7 +79,9 @@ export interface AddressResource {
79
79
  * Check if a given object implements the AddressResource interface.
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
+ if (!('company' in value) || value['company'] === undefined) return false;
82
83
  if (!('line1' in value) || value['line1'] === undefined) return false;
84
+ if (!('line2' in value) || value['line2'] === undefined) return false;
83
85
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
84
86
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
85
87
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -99,9 +101,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
99
101
  return {
100
102
 
101
103
  'id': json['id'] == null ? undefined : json['id'],
102
- 'company': json['company'] == null ? undefined : json['company'],
104
+ 'company': json['company'],
103
105
  'line1': json['line_1'],
104
- 'line2': json['line_2'] == null ? undefined : json['line_2'],
106
+ 'line2': json['line_2'],
105
107
  'postcode': json['postcode'],
106
108
  'suburb': json['suburb'],
107
109
  'country': json['country'],
@@ -68,7 +68,7 @@ export interface StoreListResource {
68
68
  * @type {string}
69
69
  * @memberof StoreListResource
70
70
  */
71
- tagLine?: string | null;
71
+ tagLine: string;
72
72
  /**
73
73
  *
74
74
  * @type {string}
@@ -81,18 +81,6 @@ export interface StoreListResource {
81
81
  * @memberof StoreListResource
82
82
  */
83
83
  website: string;
84
- /**
85
- *
86
- * @type {string}
87
- * @memberof StoreListResource
88
- */
89
- netsuiteLocationId?: string | null;
90
- /**
91
- *
92
- * @type {string}
93
- * @memberof StoreListResource
94
- */
95
- displayNetsuiteLocationId?: string | null;
96
84
  /**
97
85
  *
98
86
  * @type {string}
@@ -110,6 +98,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
110
98
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
99
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
100
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
101
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
102
  if (!('email' in value) || value['email'] === undefined) return false;
114
103
  if (!('website' in value) || value['website'] === undefined) return false;
115
104
  return true;
@@ -131,11 +120,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
131
120
  'phone': json['phone'],
132
121
  'longitude': json['longitude'],
133
122
  'latitude': json['latitude'],
134
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
123
+ 'tagLine': json['tag_line'],
135
124
  'email': json['email'],
136
125
  'website': json['website'],
137
- 'netsuiteLocationId': json['netsuiteLocationId'] == null ? undefined : json['netsuiteLocationId'],
138
- 'displayNetsuiteLocationId': json['displayNetsuiteLocationId'] == null ? undefined : json['displayNetsuiteLocationId'],
139
126
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
140
127
  };
141
128
  }
@@ -160,8 +147,6 @@ export function StoreListResourceToJSONTyped(value?: StoreListResource | null, i
160
147
  'tag_line': value['tagLine'],
161
148
  'email': value['email'],
162
149
  'website': value['website'],
163
- 'netsuiteLocationId': value['netsuiteLocationId'],
164
- 'displayNetsuiteLocationId': value['displayNetsuiteLocationId'],
165
150
  'opening_hours': value['openingHours'],
166
151
  };
167
152
  }
@@ -101,19 +101,19 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website: string;
104
+ website?: string | null;
105
105
  /**
106
106
  *
107
107
  * @type {string}
108
108
  * @memberof StoreResource
109
109
  */
110
- netsuiteLocationId?: string | null;
110
+ netsuiteId?: string | null;
111
111
  /**
112
112
  *
113
113
  * @type {string}
114
114
  * @memberof StoreResource
115
115
  */
116
- displayNetsuiteLocationId?: string | null;
116
+ displayNetsuiteId?: string | null;
117
117
  /**
118
118
  *
119
119
  * @type {string}
@@ -151,7 +151,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
152
  if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
153
153
  if (!('email' in value) || value['email'] === undefined) return false;
154
- if (!('website' in value) || value['website'] === undefined) return false;
155
154
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
156
155
  if (!('address' in value) || value['address'] === undefined) return false;
157
156
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
@@ -176,9 +175,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
176
175
  'latitude': json['latitude'],
177
176
  'tagLine': json['tag_line'],
178
177
  'email': json['email'],
179
- 'website': json['website'],
180
- 'netsuiteLocationId': json['netsuiteLocationId'] == null ? undefined : json['netsuiteLocationId'],
181
- 'displayNetsuiteLocationId': json['displayNetsuiteLocationId'] == null ? undefined : json['displayNetsuiteLocationId'],
178
+ 'website': json['website'] == null ? undefined : json['website'],
179
+ 'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
180
+ 'displayNetsuiteId': json['displayNetsuiteId'] == null ? undefined : json['displayNetsuiteId'],
182
181
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
183
182
  'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
184
183
  'address': AddressResourceFromJSON(json['address']),
@@ -206,8 +205,8 @@ export function StoreResourceToJSONTyped(value?: StoreResource | null, ignoreDis
206
205
  'tag_line': value['tagLine'],
207
206
  'email': value['email'],
208
207
  'website': value['website'],
209
- 'netsuiteLocationId': value['netsuiteLocationId'],
210
- 'displayNetsuiteLocationId': value['displayNetsuiteLocationId'],
208
+ 'netsuiteId': value['netsuiteId'],
209
+ 'displayNetsuiteId': value['displayNetsuiteId'],
211
210
  'opening_hours': value['openingHours'],
212
211
  'suppliers': (value['suppliers'] == null ? null : (value['suppliers'] as Array<any>).map(SupplierLiteResourceToJSON)),
213
212
  'address': AddressResourceToJSON(value['address']),