@digital8/lighting-illusions-ts-sdk 0.0.1973 → 0.0.1974

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.1973
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1974
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -791,7 +791,7 @@ and is automatically generated by the
791
791
  [OpenAPI Generator](https://openapi-generator.tech) project:
792
792
 
793
793
  - API version: `1.0.0`
794
- - Package version: `0.0.1973`
794
+ - Package version: `0.0.1974`
795
795
  - Generator version: `7.22.0`
796
796
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
797
797
 
@@ -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}
@@ -26,8 +26,6 @@ function instanceOfAddressFrontendResource(value) {
26
26
  return false;
27
27
  if (!('line1' in value) || value['line1'] === undefined)
28
28
  return false;
29
- if (!('line2' in value) || value['line2'] === undefined)
30
- return false;
31
29
  if (!('postcode' in value) || value['postcode'] === undefined)
32
30
  return false;
33
31
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -50,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
50
48
  return {
51
49
  'company': json['company'],
52
50
  'line1': json['line1'],
53
- 'line2': json['line2'],
51
+ 'line2': json['line2'] == null ? undefined : json['line2'],
54
52
  'postcode': json['postcode'],
55
53
  'suburb': json['suburb'],
56
54
  'country': json['country'],
@@ -38,7 +38,7 @@ export interface AddressResource {
38
38
  * @type {string}
39
39
  * @memberof AddressResource
40
40
  */
41
- company?: string | null;
41
+ company: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -50,7 +50,7 @@ export interface AddressResource {
50
50
  * @type {string}
51
51
  * @memberof AddressResource
52
52
  */
53
- line2: string;
53
+ line2?: string | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -24,9 +24,9 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
24
24
  function instanceOfAddressResource(value) {
25
25
  if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
26
  return false;
27
- if (!('line1' in value) || value['line1'] === undefined)
27
+ if (!('company' in value) || value['company'] === undefined)
28
28
  return false;
29
- if (!('line2' in value) || value['line2'] === undefined)
29
+ if (!('line1' in value) || value['line1'] === undefined)
30
30
  return false;
31
31
  if (!('postcode' in value) || value['postcode'] === undefined)
32
32
  return false;
@@ -51,9 +51,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'id': json['id'] == null ? undefined : json['id'],
52
52
  'sourceAddressId': json['source_address_id'] == null ? undefined : json['source_address_id'],
53
53
  'addresseeName': json['addressee_name'],
54
- 'company': json['company'] == null ? undefined : json['company'],
54
+ 'company': json['company'],
55
55
  'line1': json['line_1'],
56
- 'line2': json['line_2'],
56
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
57
57
  'postcode': json['postcode'],
58
58
  'suburb': json['suburb'],
59
59
  'country': json['country'],
@@ -50,7 +50,7 @@ export interface OrderFulfillmentResource {
50
50
  * @type {string}
51
51
  * @memberof OrderFulfillmentResource
52
52
  */
53
- trackingCompany: string;
53
+ trackingCompany?: string | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -30,8 +30,6 @@ function instanceOfOrderFulfillmentResource(value) {
30
30
  return false;
31
31
  if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
32
32
  return false;
33
- if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
34
- return false;
35
33
  if (!('docnum' in value) || value['docnum'] === undefined)
36
34
  return false;
37
35
  if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined)
@@ -51,7 +49,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
51
49
  'dateShipped': (new Date(json['date_shipped'])),
52
50
  'trackingNumber': json['tracking_number'] == null ? undefined : json['tracking_number'],
53
51
  'trackingUrl': json['tracking_url'],
54
- 'trackingCompany': json['tracking_company'],
52
+ 'trackingCompany': json['tracking_company'] == null ? undefined : json['tracking_company'],
55
53
  'docnum': json['docnum'],
56
54
  'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
57
55
  'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website?: string | null;
47
+ website: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine?: string | null;
77
+ tagLine: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -28,12 +28,16 @@ function instanceOfStoreFrontendResource(value) {
28
28
  return false;
29
29
  if (!('email' in value) || value['email'] === undefined)
30
30
  return false;
31
+ if (!('website' in value) || value['website'] === undefined)
32
+ return false;
31
33
  if (!('phone' in value) || value['phone'] === undefined)
32
34
  return false;
33
35
  if (!('latitude' in value) || value['latitude'] === undefined)
34
36
  return false;
35
37
  if (!('longitude' in value) || value['longitude'] === undefined)
36
38
  return false;
39
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
40
+ return false;
37
41
  if (!('specialDates' in value) || value['specialDates'] === undefined)
38
42
  return false;
39
43
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -52,12 +56,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
52
56
  'siteId': json['siteId'],
53
57
  'name': json['name'],
54
58
  'email': json['email'],
55
- 'website': json['website'] == null ? undefined : json['website'],
59
+ 'website': json['website'],
56
60
  'phone': json['phone'],
57
61
  'address': json['address'] == null ? undefined : json['address'],
58
62
  'latitude': json['latitude'],
59
63
  'longitude': json['longitude'],
60
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
64
+ 'tagLine': json['tagLine'],
61
65
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
62
66
  'specialDates': json['specialDates'],
63
67
  'suppliers': json['suppliers'],
@@ -57,7 +57,7 @@ export interface StoreListResource {
57
57
  * @type {string}
58
58
  * @memberof StoreListResource
59
59
  */
60
- tagLine: string;
60
+ tagLine?: string | null;
61
61
  /**
62
62
  *
63
63
  * @type {string}
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website: string;
72
+ website?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -33,12 +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;
38
36
  if (!('email' in value) || value['email'] === undefined)
39
37
  return false;
40
- if (!('website' in value) || value['website'] === undefined)
41
- return false;
42
38
  return true;
43
39
  }
44
40
  function StoreListResourceFromJSON(json) {
@@ -55,9 +51,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
55
51
  'phone': json['phone'],
56
52
  'longitude': json['longitude'],
57
53
  'latitude': json['latitude'],
58
- 'tagLine': json['tag_line'],
54
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
59
55
  'email': json['email'],
60
- 'website': json['website'],
56
+ 'website': json['website'] == null ? undefined : json['website'],
61
57
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
62
58
  };
63
59
  }
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine?: string | null;
63
+ tagLine: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -72,7 +72,7 @@ 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}
@@ -36,9 +36,9 @@ function instanceOfStoreResource(value) {
36
36
  return false;
37
37
  if (!('latitude' in value) || value['latitude'] === undefined)
38
38
  return false;
39
- if (!('email' in value) || value['email'] === undefined)
39
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
40
40
  return false;
41
- if (!('website' in value) || value['website'] === undefined)
41
+ if (!('email' in value) || value['email'] === undefined)
42
42
  return false;
43
43
  if (!('suppliers' in value) || value['suppliers'] === undefined)
44
44
  return false;
@@ -62,9 +62,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'phone': json['phone'],
63
63
  'longitude': json['longitude'],
64
64
  'latitude': json['latitude'],
65
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
65
+ 'tagLine': json['tag_line'],
66
66
  'email': json['email'],
67
- 'website': json['website'],
67
+ 'website': json['website'] == null ? undefined : json['website'],
68
68
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
69
69
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
70
70
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1973",
3
+ "version": "0.0.1974",
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}
@@ -75,7 +75,6 @@ export interface AddressFrontendResource {
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
76
  if (!('company' in value) || value['company'] === undefined) return false;
77
77
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
- if (!('line2' in value) || value['line2'] === undefined) return false;
79
78
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
80
79
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
81
80
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -96,7 +95,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
96
95
 
97
96
  'company': json['company'],
98
97
  'line1': json['line1'],
99
- 'line2': json['line2'],
98
+ 'line2': json['line2'] == null ? undefined : json['line2'],
100
99
  'postcode': json['postcode'],
101
100
  'suburb': json['suburb'],
102
101
  'country': json['country'],
@@ -42,7 +42,7 @@ export interface AddressResource {
42
42
  * @type {string}
43
43
  * @memberof AddressResource
44
44
  */
45
- company?: string | null;
45
+ company: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -54,7 +54,7 @@ export interface AddressResource {
54
54
  * @type {string}
55
55
  * @memberof AddressResource
56
56
  */
57
- line2: string;
57
+ line2?: string | null;
58
58
  /**
59
59
  *
60
60
  * @type {string}
@@ -92,8 +92,8 @@ export interface AddressResource {
92
92
  */
93
93
  export function instanceOfAddressResource(value: object): value is AddressResource {
94
94
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
95
+ if (!('company' in value) || value['company'] === undefined) return false;
95
96
  if (!('line1' in value) || value['line1'] === undefined) return false;
96
- if (!('line2' in value) || value['line2'] === undefined) return false;
97
97
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
98
98
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
99
99
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -115,9 +115,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
115
115
  'id': json['id'] == null ? undefined : json['id'],
116
116
  'sourceAddressId': json['source_address_id'] == null ? undefined : json['source_address_id'],
117
117
  'addresseeName': json['addressee_name'],
118
- 'company': json['company'] == null ? undefined : json['company'],
118
+ 'company': json['company'],
119
119
  'line1': json['line_1'],
120
- 'line2': json['line_2'],
120
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
121
121
  'postcode': json['postcode'],
122
122
  'suburb': json['suburb'],
123
123
  'country': json['country'],
@@ -54,7 +54,7 @@ export interface OrderFulfillmentResource {
54
54
  * @type {string}
55
55
  * @memberof OrderFulfillmentResource
56
56
  */
57
- trackingCompany: string;
57
+ trackingCompany?: string | null;
58
58
  /**
59
59
  *
60
60
  * @type {string}
@@ -89,7 +89,6 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
89
89
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
90
90
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
91
91
  if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
92
- if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
93
92
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
94
93
  if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
95
94
  return true;
@@ -110,7 +109,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
110
109
  'dateShipped': (new Date(json['date_shipped'])),
111
110
  'trackingNumber': json['tracking_number'] == null ? undefined : json['tracking_number'],
112
111
  'trackingUrl': json['tracking_url'],
113
- 'trackingCompany': json['tracking_company'],
112
+ 'trackingCompany': json['tracking_company'] == null ? undefined : json['tracking_company'],
114
113
  'docnum': json['docnum'],
115
114
  'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
116
115
  'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
48
48
  * @type {string}
49
49
  * @memberof StoreFrontendResource
50
50
  */
51
- website?: string | null;
51
+ website: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine?: string | null;
81
+ tagLine: string;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -106,9 +106,11 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
106
106
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
107
107
  if (!('name' in value) || value['name'] === undefined) return false;
108
108
  if (!('email' in value) || value['email'] === undefined) return false;
109
+ if (!('website' in value) || value['website'] === undefined) return false;
109
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
110
111
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
111
112
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
113
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
112
114
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
113
115
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
114
116
  return true;
@@ -128,12 +130,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
128
130
  'siteId': json['siteId'],
129
131
  'name': json['name'],
130
132
  'email': json['email'],
131
- 'website': json['website'] == null ? undefined : json['website'],
133
+ 'website': json['website'],
132
134
  'phone': json['phone'],
133
135
  'address': json['address'] == null ? undefined : json['address'],
134
136
  'latitude': json['latitude'],
135
137
  'longitude': json['longitude'],
136
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
138
+ 'tagLine': json['tagLine'],
137
139
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
138
140
  'specialDates': json['specialDates'],
139
141
  'suppliers': json['suppliers'],
@@ -68,7 +68,7 @@ export interface StoreListResource {
68
68
  * @type {string}
69
69
  * @memberof StoreListResource
70
70
  */
71
- tagLine: string;
71
+ tagLine?: string | null;
72
72
  /**
73
73
  *
74
74
  * @type {string}
@@ -80,7 +80,7 @@ export interface StoreListResource {
80
80
  * @type {string}
81
81
  * @memberof StoreListResource
82
82
  */
83
- website: string;
83
+ website?: string | null;
84
84
  /**
85
85
  *
86
86
  * @type {string}
@@ -98,9 +98,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
98
98
  if (!('phone' in value) || value['phone'] === undefined) return false;
99
99
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
100
100
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
101
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
102
101
  if (!('email' in value) || value['email'] === undefined) return false;
103
- if (!('website' in value) || value['website'] === undefined) return false;
104
102
  return true;
105
103
  }
106
104
 
@@ -120,9 +118,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
120
118
  'phone': json['phone'],
121
119
  'longitude': json['longitude'],
122
120
  'latitude': json['latitude'],
123
- 'tagLine': json['tag_line'],
121
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
124
122
  'email': json['email'],
125
- 'website': json['website'],
123
+ 'website': json['website'] == null ? undefined : json['website'],
126
124
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
127
125
  };
128
126
  }
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine?: string | null;
92
+ tagLine: string;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -101,7 +101,7 @@ 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}
@@ -137,8 +137,8 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
137
137
  if (!('phone' in value) || value['phone'] === undefined) return false;
138
138
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
139
139
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
140
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
140
141
  if (!('email' in value) || value['email'] === undefined) return false;
141
- if (!('website' in value) || value['website'] === undefined) return false;
142
142
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
143
143
  if (!('address' in value) || value['address'] === undefined) return false;
144
144
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
@@ -161,9 +161,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
161
161
  'phone': json['phone'],
162
162
  'longitude': json['longitude'],
163
163
  'latitude': json['latitude'],
164
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
164
+ 'tagLine': json['tag_line'],
165
165
  'email': json['email'],
166
- 'website': json['website'],
166
+ 'website': json['website'] == null ? undefined : json['website'],
167
167
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
168
168
  'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
169
169
  'address': AddressResourceFromJSON(json['address']),