@digital8/lighting-illusions-ts-sdk 0.0.2923 → 0.0.2924

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.2923
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2924
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.2923 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2924 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -38,7 +38,7 @@ export interface AddressFrontendResource {
38
38
  * @type {string}
39
39
  * @memberof AddressFrontendResource
40
40
  */
41
- company?: string | null;
41
+ company: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -50,7 +50,7 @@ export interface AddressFrontendResource {
50
50
  * @type {string}
51
51
  * @memberof AddressFrontendResource
52
52
  */
53
- line2?: string | null;
53
+ line2: string;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -24,8 +24,12 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
24
24
  function instanceOfAddressFrontendResource(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;
27
29
  if (!('line1' in value) || value['line1'] === undefined)
28
30
  return false;
31
+ if (!('line2' in value) || value['line2'] === undefined)
32
+ return false;
29
33
  if (!('postcode' in value) || value['postcode'] === undefined)
30
34
  return false;
31
35
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -49,9 +53,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
49
53
  'id': json['id'] == null ? undefined : json['id'],
50
54
  'type': json['type'] == null ? undefined : json['type'],
51
55
  'addresseeName': json['addresseeName'],
52
- 'company': json['company'] == null ? undefined : json['company'],
56
+ 'company': json['company'],
53
57
  'line1': json['line1'],
54
- 'line2': json['line2'] == null ? undefined : json['line2'],
58
+ 'line2': json['line2'],
55
59
  'postcode': json['postcode'],
56
60
  'suburb': json['suburb'],
57
61
  'country': json['country'],
@@ -69,7 +69,7 @@ export interface ExternalApiLogResource {
69
69
  * @type {string}
70
70
  * @memberof ExternalApiLogResource
71
71
  */
72
- requestPayload: string;
72
+ requestPayload?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -39,8 +39,6 @@ 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;
44
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
45
43
  return false;
46
44
  if (!('site' in value) || value['site'] === undefined)
@@ -63,7 +61,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
63
61
  'endpoint': json['endpoint'],
64
62
  'responseCode': json['responseCode'],
65
63
  'isSuccess': json['isSuccess'],
66
- 'requestPayload': json['requestPayload'],
64
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
67
65
  'responsePayload': json['responsePayload'],
68
66
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
69
67
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -46,13 +46,13 @@ export interface OrderFulfillmentResource {
46
46
  * @type {string}
47
47
  * @memberof OrderFulfillmentResource
48
48
  */
49
- trackingUrl: string;
49
+ trackingUrl?: string | null;
50
50
  /**
51
51
  *
52
52
  * @type {string}
53
53
  * @memberof OrderFulfillmentResource
54
54
  */
55
- trackingCompany: string;
55
+ trackingCompany?: string | null;
56
56
  /**
57
57
  *
58
58
  * @type {string}
@@ -30,10 +30,6 @@ function instanceOfOrderFulfillmentResource(value) {
30
30
  return false;
31
31
  if (!('dateShipped' in value) || value['dateShipped'] === undefined)
32
32
  return false;
33
- if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
34
- return false;
35
- if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
36
- return false;
37
33
  if (!('docnum' in value) || value['docnum'] === undefined)
38
34
  return false;
39
35
  if (!('status' in value) || value['status'] === undefined)
@@ -56,8 +52,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
56
52
  'orderId': json['orderId'],
57
53
  'dateShipped': (new Date(json['dateShipped'])),
58
54
  'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
59
- 'trackingUrl': json['trackingUrl'],
60
- 'trackingCompany': json['trackingCompany'],
55
+ 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
56
+ 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
61
57
  'docnum': json['docnum'],
62
58
  'status': (0, OrderFulfillmentStatus_1.OrderFulfillmentStatusFromJSON)(json['status']),
63
59
  'netsuiteId': json['netsuiteId'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2923",
3
+ "version": "0.0.2924",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -42,7 +42,7 @@ export interface AddressFrontendResource {
42
42
  * @type {string}
43
43
  * @memberof AddressFrontendResource
44
44
  */
45
- company?: string | null;
45
+ company: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -54,7 +54,7 @@ export interface AddressFrontendResource {
54
54
  * @type {string}
55
55
  * @memberof AddressFrontendResource
56
56
  */
57
- line2?: string | null;
57
+ line2: string;
58
58
  /**
59
59
  *
60
60
  * @type {string}
@@ -92,7 +92,9 @@ export interface AddressFrontendResource {
92
92
  */
93
93
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
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;
97
+ if (!('line2' in value) || value['line2'] === undefined) return false;
96
98
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
97
99
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
98
100
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -114,9 +116,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
114
116
  'id': json['id'] == null ? undefined : json['id'],
115
117
  'type': json['type'] == null ? undefined : json['type'],
116
118
  'addresseeName': json['addresseeName'],
117
- 'company': json['company'] == null ? undefined : json['company'],
119
+ 'company': json['company'],
118
120
  'line1': json['line1'],
119
- 'line2': json['line2'] == null ? undefined : json['line2'],
121
+ 'line2': json['line2'],
120
122
  'postcode': json['postcode'],
121
123
  'suburb': json['suburb'],
122
124
  'country': json['country'],
@@ -80,7 +80,7 @@ export interface ExternalApiLogResource {
80
80
  * @type {string}
81
81
  * @memberof ExternalApiLogResource
82
82
  */
83
- requestPayload: string;
83
+ requestPayload?: string | null;
84
84
  /**
85
85
  *
86
86
  * @type {string}
@@ -113,7 +113,6 @@ 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;
117
116
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
118
117
  if (!('site' in value) || value['site'] === undefined) return false;
119
118
  return true;
@@ -137,7 +136,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
137
136
  'endpoint': json['endpoint'],
138
137
  'responseCode': json['responseCode'],
139
138
  'isSuccess': json['isSuccess'],
140
- 'requestPayload': json['requestPayload'],
139
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
141
140
  'responsePayload': json['responsePayload'],
142
141
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
143
142
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -63,13 +63,13 @@ export interface OrderFulfillmentResource {
63
63
  * @type {string}
64
64
  * @memberof OrderFulfillmentResource
65
65
  */
66
- trackingUrl: string;
66
+ trackingUrl?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
70
70
  * @memberof OrderFulfillmentResource
71
71
  */
72
- trackingCompany: string;
72
+ trackingCompany?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -117,8 +117,6 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
117
117
  if (!('id' in value) || value['id'] === undefined) return false;
118
118
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
119
119
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
120
- if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
121
- if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
122
120
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
123
121
  if (!('status' in value) || value['status'] === undefined) return false;
124
122
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -140,8 +138,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
140
138
  'orderId': json['orderId'],
141
139
  'dateShipped': (new Date(json['dateShipped'])),
142
140
  'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
143
- 'trackingUrl': json['trackingUrl'],
144
- 'trackingCompany': json['trackingCompany'],
141
+ 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
142
+ 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
145
143
  'docnum': json['docnum'],
146
144
  'status': OrderFulfillmentStatusFromJSON(json['status']),
147
145
  'netsuiteId': json['netsuiteId'],