@digital8/lighting-illusions-ts-sdk 0.0.2713 → 0.0.2714

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.2713
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2714
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @digital8/lighting-illusions-ts-sdk@0.0.2713 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2714 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,7 +44,7 @@ export interface AddressResource {
44
44
  * @type {string}
45
45
  * @memberof AddressResource
46
46
  */
47
- addresseeName?: string | null;
47
+ addresseeName: string;
48
48
  /**
49
49
  *
50
50
  * @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 (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
+ return false;
25
27
  if (!('company' in value) || value['company'] === undefined)
26
28
  return false;
27
29
  if (!('line1' in value) || value['line1'] === undefined)
@@ -52,7 +54,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
52
54
  'type': json['type'] == null ? undefined : json['type'],
53
55
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
54
56
  'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
55
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
57
+ 'addresseeName': json['addresseeName'],
56
58
  'company': json['company'],
57
59
  'line1': json['line1'],
58
60
  'line2': json['line2'],
@@ -69,7 +69,7 @@ export interface ExternalApiLogResource {
69
69
  * @type {string}
70
70
  * @memberof ExternalApiLogResource
71
71
  */
72
- requestPayload?: string | null;
72
+ requestPayload: string;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -39,6 +39,8 @@ function instanceOfExternalApiLogResource(value) {
39
39
  return false;
40
40
  if (!('isSuccess' in value) || value['isSuccess'] === undefined)
41
41
  return false;
42
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined)
43
+ return false;
42
44
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
45
  return false;
44
46
  if (!('site' in value) || value['site'] === undefined)
@@ -61,7 +63,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
61
63
  'endpoint': json['endpoint'],
62
64
  'responseCode': json['responseCode'],
63
65
  'isSuccess': json['isSuccess'],
64
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
66
+ 'requestPayload': json['requestPayload'],
65
67
  'responsePayload': json['responsePayload'],
66
68
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
67
69
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -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}
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine: string;
77
+ tagLine?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -28,16 +28,12 @@ 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)
36
34
  return false;
37
35
  if (!('longitude' in value) || value['longitude'] === undefined)
38
36
  return false;
39
- if (!('tagLine' in value) || value['tagLine'] === undefined)
40
- return false;
41
37
  if (!('specialDates' in value) || value['specialDates'] === undefined)
42
38
  return false;
43
39
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -56,12 +52,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
56
52
  'siteId': json['siteId'],
57
53
  'name': json['name'],
58
54
  'email': json['email'],
59
- 'website': json['website'],
55
+ 'website': json['website'] == null ? undefined : json['website'],
60
56
  'phone': json['phone'],
61
57
  'address': json['address'] == null ? undefined : json['address'],
62
58
  'latitude': json['latitude'],
63
59
  'longitude': json['longitude'],
64
- 'tagLine': json['tagLine'],
60
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
65
61
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
66
62
  'specialDates': json['specialDates'],
67
63
  'suppliers': json['suppliers'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2713",
3
+ "version": "0.0.2714",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -48,7 +48,7 @@ export interface AddressResource {
48
48
  * @type {string}
49
49
  * @memberof AddressResource
50
50
  */
51
- addresseeName?: string | null;
51
+ addresseeName: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -103,6 +103,7 @@ export interface AddressResource {
103
103
  * Check if a given object implements the AddressResource interface.
104
104
  */
105
105
  export function instanceOfAddressResource(value: object): value is AddressResource {
106
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
106
107
  if (!('company' in value) || value['company'] === undefined) return false;
107
108
  if (!('line1' in value) || value['line1'] === undefined) return false;
108
109
  if (!('line2' in value) || value['line2'] === undefined) return false;
@@ -128,7 +129,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
128
129
  'type': json['type'] == null ? undefined : json['type'],
129
130
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
130
131
  'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
131
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
132
+ 'addresseeName': json['addresseeName'],
132
133
  'company': json['company'],
133
134
  'line1': json['line1'],
134
135
  'line2': json['line2'],
@@ -80,7 +80,7 @@ export interface ExternalApiLogResource {
80
80
  * @type {string}
81
81
  * @memberof ExternalApiLogResource
82
82
  */
83
- requestPayload?: string | null;
83
+ requestPayload: string;
84
84
  /**
85
85
  *
86
86
  * @type {string}
@@ -113,6 +113,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
113
113
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
114
114
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
115
115
  if (!('isSuccess' in value) || value['isSuccess'] === undefined) return false;
116
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
116
117
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
117
118
  if (!('site' in value) || value['site'] === undefined) return false;
118
119
  return true;
@@ -136,7 +137,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
136
137
  'endpoint': json['endpoint'],
137
138
  'responseCode': json['responseCode'],
138
139
  'isSuccess': json['isSuccess'],
139
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
140
+ 'requestPayload': json['requestPayload'],
140
141
  'responsePayload': json['responsePayload'],
141
142
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
142
143
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -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}
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine: string;
81
+ tagLine?: string | null;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -106,11 +106,9 @@ 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;
113
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
114
112
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
115
113
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
116
114
  return true;
@@ -130,12 +128,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
130
128
  'siteId': json['siteId'],
131
129
  'name': json['name'],
132
130
  'email': json['email'],
133
- 'website': json['website'],
131
+ 'website': json['website'] == null ? undefined : json['website'],
134
132
  'phone': json['phone'],
135
133
  'address': json['address'] == null ? undefined : json['address'],
136
134
  'latitude': json['latitude'],
137
135
  'longitude': json['longitude'],
138
- 'tagLine': json['tagLine'],
136
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
139
137
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
140
138
  'specialDates': json['specialDates'],
141
139
  'suppliers': json['suppliers'],