@digital8/lighting-illusions-ts-sdk 0.0.2381 → 0.0.2382

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.2381
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.2382
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -942,7 +942,7 @@ and is automatically generated by the
942
942
  [OpenAPI Generator](https://openapi-generator.tech) project:
943
943
 
944
944
  - API version: `1.0.0`
945
- - Package version: `0.0.2381`
945
+ - Package version: `0.0.2382`
946
946
  - Generator version: `7.22.0`
947
947
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
948
948
 
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
20
20
  * @type {string}
21
21
  * @memberof AddressFrontendResource
22
22
  */
23
- company?: string | null;
23
+ company: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
@@ -22,6 +22,8 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressFrontendResource interface.
23
23
  */
24
24
  function instanceOfAddressFrontendResource(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;
27
29
  if (!('line2' in value) || value['line2'] === undefined)
@@ -46,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
48
  return json;
47
49
  }
48
50
  return {
49
- 'company': json['company'] == null ? undefined : json['company'],
51
+ 'company': json['company'],
50
52
  'line1': json['line1'],
51
53
  'line2': json['line2'],
52
54
  'postcode': json['postcode'],
@@ -44,7 +44,7 @@ export interface AddressResource {
44
44
  * @type {string}
45
45
  * @memberof AddressResource
46
46
  */
47
- company: string;
47
+ company?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -56,7 +56,7 @@ export interface AddressResource {
56
56
  * @type {string}
57
57
  * @memberof AddressResource
58
58
  */
59
- line2: string;
59
+ line2?: string | null;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -24,12 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
24
24
  function instanceOfAddressResource(value) {
25
25
  if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
26
  return false;
27
- if (!('company' in value) || value['company'] === undefined)
28
- return false;
29
27
  if (!('line1' in value) || value['line1'] === undefined)
30
28
  return false;
31
- if (!('line2' in value) || value['line2'] === undefined)
32
- return false;
33
29
  if (!('postcode' in value) || value['postcode'] === undefined)
34
30
  return false;
35
31
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -54,9 +50,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
54
50
  'type': json['type'] == null ? undefined : json['type'],
55
51
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
56
52
  'addresseeName': json['addresseeName'],
57
- 'company': json['company'],
53
+ 'company': json['company'] == null ? undefined : json['company'],
58
54
  'line1': json['line1'],
59
- 'line2': json['line2'],
55
+ 'line2': json['line2'] == null ? undefined : json['line2'],
60
56
  'postcode': json['postcode'],
61
57
  'suburb': json['suburb'],
62
58
  'country': json['country'],
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website: string;
47
+ website?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -28,8 +28,6 @@ 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;
33
31
  if (!('phone' in value) || value['phone'] === undefined)
34
32
  return false;
35
33
  if (!('latitude' in value) || value['latitude'] === undefined)
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
56
54
  'siteId': json['siteId'],
57
55
  'name': json['name'],
58
56
  'email': json['email'],
59
- 'website': json['website'],
57
+ 'website': json['website'] == null ? undefined : json['website'],
60
58
  'phone': json['phone'],
61
59
  'address': json['address'] == null ? undefined : json['address'],
62
60
  'latitude': json['latitude'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2381",
3
+ "version": "0.0.2382",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
24
24
  * @type {string}
25
25
  * @memberof AddressFrontendResource
26
26
  */
27
- company?: string | null;
27
+ company: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -73,6 +73,7 @@ export interface AddressFrontendResource {
73
73
  * Check if a given object implements the AddressFrontendResource interface.
74
74
  */
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
+ if (!('company' in value) || value['company'] === undefined) return false;
76
77
  if (!('line1' in value) || value['line1'] === undefined) return false;
77
78
  if (!('line2' in value) || value['line2'] === undefined) return false;
78
79
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
@@ -93,7 +94,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
93
94
  }
94
95
  return {
95
96
 
96
- 'company': json['company'] == null ? undefined : json['company'],
97
+ 'company': json['company'],
97
98
  'line1': json['line1'],
98
99
  'line2': json['line2'],
99
100
  'postcode': json['postcode'],
@@ -48,7 +48,7 @@ export interface AddressResource {
48
48
  * @type {string}
49
49
  * @memberof AddressResource
50
50
  */
51
- company: string;
51
+ company?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -60,7 +60,7 @@ export interface AddressResource {
60
60
  * @type {string}
61
61
  * @memberof AddressResource
62
62
  */
63
- line2: string;
63
+ line2?: string | null;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -98,9 +98,7 @@ export interface AddressResource {
98
98
  */
99
99
  export function instanceOfAddressResource(value: object): value is AddressResource {
100
100
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
101
- if (!('company' in value) || value['company'] === undefined) return false;
102
101
  if (!('line1' in value) || value['line1'] === undefined) return false;
103
- if (!('line2' in value) || value['line2'] === undefined) return false;
104
102
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
105
103
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
106
104
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -123,9 +121,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
123
121
  'type': json['type'] == null ? undefined : json['type'],
124
122
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
125
123
  'addresseeName': json['addresseeName'],
126
- 'company': json['company'],
124
+ 'company': json['company'] == null ? undefined : json['company'],
127
125
  'line1': json['line1'],
128
- 'line2': json['line2'],
126
+ 'line2': json['line2'] == null ? undefined : json['line2'],
129
127
  'postcode': json['postcode'],
130
128
  'suburb': json['suburb'],
131
129
  'country': json['country'],
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
48
48
  * @type {string}
49
49
  * @memberof StoreFrontendResource
50
50
  */
51
- website: string;
51
+ website?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -106,7 +106,6 @@ 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;
110
109
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
110
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
112
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
130
129
  'siteId': json['siteId'],
131
130
  'name': json['name'],
132
131
  'email': json['email'],
133
- 'website': json['website'],
132
+ 'website': json['website'] == null ? undefined : json['website'],
134
133
  'phone': json['phone'],
135
134
  'address': json['address'] == null ? undefined : json['address'],
136
135
  'latitude': json['latitude'],