@digital8/lighting-illusions-ts-sdk 0.0.1458 → 0.0.1459

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.1458
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1459
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -574,7 +574,7 @@ and is automatically generated by the
574
574
  [OpenAPI Generator](https://openapi-generator.tech) project:
575
575
 
576
576
  - API version: `1.0.0`
577
- - Package version: `0.0.1458`
577
+ - Package version: `0.0.1459`
578
578
  - Generator version: `7.20.0`
579
579
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
580
580
 
@@ -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}
@@ -22,6 +22,8 @@ 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;
27
29
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -45,7 +47,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
45
47
  }
46
48
  return {
47
49
  'id': json['id'] == null ? undefined : json['id'],
48
- 'company': json['company'] == null ? undefined : json['company'],
50
+ 'company': json['company'],
49
51
  'line1': json['line1'],
50
52
  'line2': json['line2'] == null ? undefined : json['line2'],
51
53
  'postcode': json['postcode'],
@@ -33,6 +33,12 @@ export interface ProductRegistrationCustomerLiteResource {
33
33
  * @memberof ProductRegistrationCustomerLiteResource
34
34
  */
35
35
  email: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ProductRegistrationCustomerLiteResource
40
+ */
41
+ phone: string;
36
42
  }
37
43
  /**
38
44
  * Check if a given object implements the ProductRegistrationCustomerLiteResource interface.
@@ -26,6 +26,8 @@ function instanceOfProductRegistrationCustomerLiteResource(value) {
26
26
  return false;
27
27
  if (!('email' in value) || value['email'] === undefined)
28
28
  return false;
29
+ if (!('phone' in value) || value['phone'] === undefined)
30
+ return false;
29
31
  return true;
30
32
  }
31
33
  function ProductRegistrationCustomerLiteResourceFromJSON(json) {
@@ -39,6 +41,7 @@ function ProductRegistrationCustomerLiteResourceFromJSONTyped(json, ignoreDiscri
39
41
  'id': json['id'] == null ? undefined : json['id'],
40
42
  'name': json['name'],
41
43
  'email': json['email'],
44
+ 'phone': json['phone'],
42
45
  };
43
46
  }
44
47
  function ProductRegistrationCustomerLiteResourceToJSON(json) {
@@ -53,5 +56,6 @@ function ProductRegistrationCustomerLiteResourceToJSONTyped(value, ignoreDiscrim
53
56
  'id': value['id'],
54
57
  'name': value['name'],
55
58
  'email': value['email'],
59
+ 'phone': value['phone'],
56
60
  };
57
61
  }
@@ -9,6 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `email` | string
12
+ `phone` | string
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "id": null,
21
22
  "name": null,
22
23
  "email": null,
24
+ "phone": null,
23
25
  } satisfies ProductRegistrationCustomerLiteResource
24
26
 
25
27
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1458",
3
+ "version": "0.0.1459",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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}
@@ -79,6 +79,7 @@ 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;
83
84
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
84
85
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
@@ -99,7 +100,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
99
100
  return {
100
101
 
101
102
  'id': json['id'] == null ? undefined : json['id'],
102
- 'company': json['company'] == null ? undefined : json['company'],
103
+ 'company': json['company'],
103
104
  'line1': json['line1'],
104
105
  'line2': json['line2'] == null ? undefined : json['line2'],
105
106
  'postcode': json['postcode'],
@@ -37,6 +37,12 @@ export interface ProductRegistrationCustomerLiteResource {
37
37
  * @memberof ProductRegistrationCustomerLiteResource
38
38
  */
39
39
  email: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ProductRegistrationCustomerLiteResource
44
+ */
45
+ phone: string;
40
46
  }
41
47
 
42
48
  /**
@@ -45,6 +51,7 @@ export interface ProductRegistrationCustomerLiteResource {
45
51
  export function instanceOfProductRegistrationCustomerLiteResource(value: object): value is ProductRegistrationCustomerLiteResource {
46
52
  if (!('name' in value) || value['name'] === undefined) return false;
47
53
  if (!('email' in value) || value['email'] === undefined) return false;
54
+ if (!('phone' in value) || value['phone'] === undefined) return false;
48
55
  return true;
49
56
  }
50
57
 
@@ -61,6 +68,7 @@ export function ProductRegistrationCustomerLiteResourceFromJSONTyped(json: any,
61
68
  'id': json['id'] == null ? undefined : json['id'],
62
69
  'name': json['name'],
63
70
  'email': json['email'],
71
+ 'phone': json['phone'],
64
72
  };
65
73
  }
66
74
 
@@ -78,6 +86,7 @@ export function ProductRegistrationCustomerLiteResourceToJSONTyped(value?: Produ
78
86
  'id': value['id'],
79
87
  'name': value['name'],
80
88
  'email': value['email'],
89
+ 'phone': value['phone'],
81
90
  };
82
91
  }
83
92