@digital8/lighting-illusions-ts-sdk 0.0.1806 → 0.0.1808

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.1806
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1808
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -679,7 +679,7 @@ and is automatically generated by the
679
679
  [OpenAPI Generator](https://openapi-generator.tech) project:
680
680
 
681
681
  - API version: `1.0.0`
682
- - Package version: `0.0.1806`
682
+ - Package version: `0.0.1808`
683
683
  - Generator version: `7.21.0`
684
684
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
685
685
 
@@ -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'],
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
- if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
- return false;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -87,6 +87,12 @@ export interface IndexExternalApiLogRequest {
87
87
  * @memberof IndexExternalApiLogRequest
88
88
  */
89
89
  productChildId?: Array<string>;
90
+ /**
91
+ *
92
+ * @type {Array<string>}
93
+ * @memberof IndexExternalApiLogRequest
94
+ */
95
+ productRegistrationId?: Array<string>;
90
96
  /**
91
97
  *
92
98
  * @type {Array<string>}
@@ -64,6 +64,7 @@ function IndexExternalApiLogRequestFromJSONTyped(json, ignoreDiscriminator) {
64
64
  'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
65
65
  'siteId': json['site_id'] == null ? undefined : json['site_id'],
66
66
  'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
67
+ 'productRegistrationId': json['product_registration_id'] == null ? undefined : json['product_registration_id'],
67
68
  'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
68
69
  'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
69
70
  'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
@@ -93,6 +94,7 @@ function IndexExternalApiLogRequestToJSONTyped(value, ignoreDiscriminator) {
93
94
  'external_api_loggable_id': value['externalApiLoggableId'],
94
95
  'site_id': value['siteId'],
95
96
  'product_child_id': value['productChildId'],
97
+ 'product_registration_id': value['productRegistrationId'],
96
98
  'endpoint': value['endpoint'],
97
99
  'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
98
100
  'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
@@ -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'],
@@ -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}
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website?: string | null;
72
+ website: string;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -33,8 +33,12 @@ 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;
40
+ if (!('website' in value) || value['website'] === undefined)
41
+ return false;
38
42
  return true;
39
43
  }
40
44
  function StoreListResourceFromJSON(json) {
@@ -51,9 +55,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
51
55
  'phone': json['phone'],
52
56
  'longitude': json['longitude'],
53
57
  'latitude': json['latitude'],
54
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
58
+ 'tagLine': json['tag_line'],
55
59
  'email': json['email'],
56
- 'website': json['website'] == null ? undefined : json['website'],
60
+ 'website': json['website'],
57
61
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
58
62
  };
59
63
  }
@@ -18,6 +18,7 @@ Name | Type
18
18
  `externalApiLoggableId` | Array&lt;string&gt;
19
19
  `siteId` | Array&lt;string&gt;
20
20
  `productChildId` | Array&lt;string&gt;
21
+ `productRegistrationId` | Array&lt;string&gt;
21
22
  `endpoint` | Array&lt;string&gt;
22
23
  `beforeCreatedAt` | Date
23
24
  `afterCreatedAt` | Date
@@ -44,6 +45,7 @@ const example = {
44
45
  "externalApiLoggableId": null,
45
46
  "siteId": null,
46
47
  "productChildId": null,
48
+ "productRegistrationId": null,
47
49
  "endpoint": null,
48
50
  "beforeCreatedAt": null,
49
51
  "afterCreatedAt": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1806",
3
+ "version": "0.0.1808",
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'],
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
- if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -91,6 +91,12 @@ export interface IndexExternalApiLogRequest {
91
91
  * @memberof IndexExternalApiLogRequest
92
92
  */
93
93
  productChildId?: Array<string>;
94
+ /**
95
+ *
96
+ * @type {Array<string>}
97
+ * @memberof IndexExternalApiLogRequest
98
+ */
99
+ productRegistrationId?: Array<string>;
94
100
  /**
95
101
  *
96
102
  * @type {Array<string>}
@@ -183,6 +189,7 @@ export function IndexExternalApiLogRequestFromJSONTyped(json: any, ignoreDiscrim
183
189
  'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
184
190
  'siteId': json['site_id'] == null ? undefined : json['site_id'],
185
191
  'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
192
+ 'productRegistrationId': json['product_registration_id'] == null ? undefined : json['product_registration_id'],
186
193
  'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
187
194
  'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
188
195
  'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
@@ -215,6 +222,7 @@ export function IndexExternalApiLogRequestToJSONTyped(value?: IndexExternalApiLo
215
222
  'external_api_loggable_id': value['externalApiLoggableId'],
216
223
  'site_id': value['siteId'],
217
224
  'product_child_id': value['productChildId'],
225
+ 'product_registration_id': value['productRegistrationId'],
218
226
  'endpoint': value['endpoint'],
219
227
  'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
220
228
  'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
@@ -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'],
@@ -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}
@@ -80,7 +80,7 @@ export interface StoreListResource {
80
80
  * @type {string}
81
81
  * @memberof StoreListResource
82
82
  */
83
- website?: string | null;
83
+ website: string;
84
84
  /**
85
85
  *
86
86
  * @type {string}
@@ -98,7 +98,9 @@ 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;
101
102
  if (!('email' in value) || value['email'] === undefined) return false;
103
+ if (!('website' in value) || value['website'] === undefined) return false;
102
104
  return true;
103
105
  }
104
106
 
@@ -118,9 +120,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
118
120
  'phone': json['phone'],
119
121
  'longitude': json['longitude'],
120
122
  'latitude': json['latitude'],
121
- 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
123
+ 'tagLine': json['tag_line'],
122
124
  'email': json['email'],
123
- 'website': json['website'] == null ? undefined : json['website'],
125
+ 'website': json['website'],
124
126
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
125
127
  };
126
128
  }