@digital8/lighting-illusions-ts-sdk 0.0.2912 → 0.0.2913

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.2912
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2913
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.2912 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2913 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- addresseeName: string;
35
+ addresseeName?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -50,7 +50,7 @@ export interface AddressFrontendResource {
50
50
  * @type {string}
51
51
  * @memberof AddressFrontendResource
52
52
  */
53
- line2: string;
53
+ line2?: string | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -22,14 +22,10 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressFrontendResource interface.
23
23
  */
24
24
  function instanceOfAddressFrontendResource(value) {
25
- if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
- return false;
27
25
  if (!('company' in value) || value['company'] === undefined)
28
26
  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)
@@ -52,10 +48,10 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
52
48
  return {
53
49
  'id': json['id'] == null ? undefined : json['id'],
54
50
  'type': json['type'] == null ? undefined : json['type'],
55
- 'addresseeName': json['addresseeName'],
51
+ 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
56
52
  'company': json['company'],
57
53
  'line1': json['line1'],
58
- 'line2': json['line2'],
54
+ 'line2': json['line2'] == null ? undefined : json['line2'],
59
55
  'postcode': json['postcode'],
60
56
  'suburb': json['suburb'],
61
57
  'country': json['country'],
@@ -56,7 +56,7 @@ export interface AddressResource {
56
56
  * @type {string}
57
57
  * @memberof AddressResource
58
58
  */
59
- company: string;
59
+ company?: string | null;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -26,8 +26,6 @@ function instanceOfAddressResource(value) {
26
26
  return false;
27
27
  if (!('addresseePhone' in value) || value['addresseePhone'] === undefined)
28
28
  return false;
29
- if (!('company' in value) || value['company'] === undefined)
30
- return false;
31
29
  if (!('line1' in value) || value['line1'] === undefined)
32
30
  return false;
33
31
  if (!('line2' in value) || value['line2'] === undefined)
@@ -58,7 +56,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
58
56
  'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
59
57
  'addresseeName': json['addresseeName'],
60
58
  'addresseePhone': json['addresseePhone'],
61
- 'company': json['company'],
59
+ 'company': json['company'] == null ? undefined : json['company'],
62
60
  'line1': json['line1'],
63
61
  'line2': json['line2'],
64
62
  'postcode': json['postcode'],
@@ -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']),
@@ -40,19 +40,19 @@ export interface OrderFulfillmentResource {
40
40
  * @type {string}
41
41
  * @memberof OrderFulfillmentResource
42
42
  */
43
- trackingNumber?: string | null;
43
+ trackingNumber: string;
44
44
  /**
45
45
  *
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 | null;
55
+ trackingCompany: string;
56
56
  /**
57
57
  *
58
58
  * @type {string}
@@ -30,7 +30,9 @@ 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)
33
+ if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
34
+ return false;
35
+ if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
34
36
  return false;
35
37
  if (!('docnum' in value) || value['docnum'] === undefined)
36
38
  return false;
@@ -53,9 +55,9 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'id': json['id'],
54
56
  'orderId': json['orderId'],
55
57
  'dateShipped': (new Date(json['dateShipped'])),
56
- 'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
57
- 'trackingUrl': json['trackingUrl'],
58
- 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
58
+ 'trackingNumber': json['trackingNumber'],
59
+ 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
60
+ 'trackingCompany': json['trackingCompany'],
59
61
  'docnum': json['docnum'],
60
62
  'status': (0, OrderFulfillmentStatus_1.OrderFulfillmentStatusFromJSON)(json['status']),
61
63
  'netsuiteId': json['netsuiteId'],
@@ -74,7 +74,7 @@ export interface SearchProductRangesRequest {
74
74
  * @type {string}
75
75
  * @memberof SearchProductRangesRequest
76
76
  */
77
- relatedType?: string;
77
+ relatedType?: SearchProductRangesRequestRelatedTypeEnum;
78
78
  /**
79
79
  *
80
80
  * @type {boolean}
@@ -100,6 +100,13 @@ export declare const SearchProductRangesRequestSortDirectionEnum: {
100
100
  readonly Desc: "desc";
101
101
  };
102
102
  export type SearchProductRangesRequestSortDirectionEnum = typeof SearchProductRangesRequestSortDirectionEnum[keyof typeof SearchProductRangesRequestSortDirectionEnum];
103
+ /**
104
+ * @export
105
+ */
106
+ export declare const SearchProductRangesRequestRelatedTypeEnum: {
107
+ readonly AttributeValue: "attributeValue";
108
+ };
109
+ export type SearchProductRangesRequestRelatedTypeEnum = typeof SearchProductRangesRequestRelatedTypeEnum[keyof typeof SearchProductRangesRequestRelatedTypeEnum];
103
110
  /**
104
111
  * Check if a given object implements the SearchProductRangesRequest interface.
105
112
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SearchProductRangesRequestSortDirectionEnum = exports.SearchProductRangesRequestSortByEnum = void 0;
16
+ exports.SearchProductRangesRequestRelatedTypeEnum = exports.SearchProductRangesRequestSortDirectionEnum = exports.SearchProductRangesRequestSortByEnum = void 0;
17
17
  exports.instanceOfSearchProductRangesRequest = instanceOfSearchProductRangesRequest;
18
18
  exports.SearchProductRangesRequestFromJSON = SearchProductRangesRequestFromJSON;
19
19
  exports.SearchProductRangesRequestFromJSONTyped = SearchProductRangesRequestFromJSONTyped;
@@ -35,6 +35,12 @@ exports.SearchProductRangesRequestSortDirectionEnum = {
35
35
  Asc: 'asc',
36
36
  Desc: 'desc'
37
37
  };
38
+ /**
39
+ * @export
40
+ */
41
+ exports.SearchProductRangesRequestRelatedTypeEnum = {
42
+ AttributeValue: 'attributeValue'
43
+ };
38
44
  /**
39
45
  * Check if a given object implements the SearchProductRangesRequest interface.
40
46
  */
@@ -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.2912",
3
+ "version": "0.0.2913",
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
- addresseeName: string;
39
+ addresseeName?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -54,7 +54,7 @@ export interface AddressFrontendResource {
54
54
  * @type {string}
55
55
  * @memberof AddressFrontendResource
56
56
  */
57
- line2: string;
57
+ line2?: string | null;
58
58
  /**
59
59
  *
60
60
  * @type {string}
@@ -91,10 +91,8 @@ export interface AddressFrontendResource {
91
91
  * Check if a given object implements the AddressFrontendResource interface.
92
92
  */
93
93
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
94
- if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
95
94
  if (!('company' in value) || value['company'] === undefined) return false;
96
95
  if (!('line1' in value) || value['line1'] === undefined) return false;
97
- if (!('line2' in value) || value['line2'] === undefined) return false;
98
96
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
99
97
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
100
98
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -115,10 +113,10 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
115
113
 
116
114
  'id': json['id'] == null ? undefined : json['id'],
117
115
  'type': json['type'] == null ? undefined : json['type'],
118
- 'addresseeName': json['addresseeName'],
116
+ 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
119
117
  'company': json['company'],
120
118
  'line1': json['line1'],
121
- 'line2': json['line2'],
119
+ 'line2': json['line2'] == null ? undefined : json['line2'],
122
120
  'postcode': json['postcode'],
123
121
  'suburb': json['suburb'],
124
122
  'country': json['country'],
@@ -60,7 +60,7 @@ export interface AddressResource {
60
60
  * @type {string}
61
61
  * @memberof AddressResource
62
62
  */
63
- company: string;
63
+ company?: string | null;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -111,7 +111,6 @@ export interface AddressResource {
111
111
  export function instanceOfAddressResource(value: object): value is AddressResource {
112
112
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
113
113
  if (!('addresseePhone' in value) || value['addresseePhone'] === undefined) return false;
114
- if (!('company' in value) || value['company'] === undefined) return false;
115
114
  if (!('line1' in value) || value['line1'] === undefined) return false;
116
115
  if (!('line2' in value) || value['line2'] === undefined) return false;
117
116
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
@@ -138,7 +137,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
138
137
  'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
139
138
  'addresseeName': json['addresseeName'],
140
139
  'addresseePhone': json['addresseePhone'],
141
- 'company': json['company'],
140
+ 'company': json['company'] == null ? undefined : json['company'],
142
141
  'line1': json['line1'],
143
142
  'line2': json['line2'],
144
143
  'postcode': json['postcode'],
@@ -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']),
@@ -57,19 +57,19 @@ export interface OrderFulfillmentResource {
57
57
  * @type {string}
58
58
  * @memberof OrderFulfillmentResource
59
59
  */
60
- trackingNumber?: string | null;
60
+ trackingNumber: string;
61
61
  /**
62
62
  *
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 | null;
72
+ trackingCompany: string;
73
73
  /**
74
74
  *
75
75
  * @type {string}
@@ -117,7 +117,8 @@ 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;
120
+ if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
121
+ if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
121
122
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
122
123
  if (!('status' in value) || value['status'] === undefined) return false;
123
124
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -138,9 +139,9 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
138
139
  'id': json['id'],
139
140
  'orderId': json['orderId'],
140
141
  'dateShipped': (new Date(json['dateShipped'])),
141
- 'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
142
- 'trackingUrl': json['trackingUrl'],
143
- 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
142
+ 'trackingNumber': json['trackingNumber'],
143
+ 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
144
+ 'trackingCompany': json['trackingCompany'],
144
145
  'docnum': json['docnum'],
145
146
  'status': OrderFulfillmentStatusFromJSON(json['status']),
146
147
  'netsuiteId': json['netsuiteId'],
@@ -78,7 +78,7 @@ export interface SearchProductRangesRequest {
78
78
  * @type {string}
79
79
  * @memberof SearchProductRangesRequest
80
80
  */
81
- relatedType?: string;
81
+ relatedType?: SearchProductRangesRequestRelatedTypeEnum;
82
82
  /**
83
83
  *
84
84
  * @type {boolean}
@@ -108,6 +108,14 @@ export const SearchProductRangesRequestSortDirectionEnum = {
108
108
  } as const;
109
109
  export type SearchProductRangesRequestSortDirectionEnum = typeof SearchProductRangesRequestSortDirectionEnum[keyof typeof SearchProductRangesRequestSortDirectionEnum];
110
110
 
111
+ /**
112
+ * @export
113
+ */
114
+ export const SearchProductRangesRequestRelatedTypeEnum = {
115
+ AttributeValue: 'attributeValue'
116
+ } as const;
117
+ export type SearchProductRangesRequestRelatedTypeEnum = typeof SearchProductRangesRequestRelatedTypeEnum[keyof typeof SearchProductRangesRequestRelatedTypeEnum];
118
+
111
119
 
112
120
  /**
113
121
  * Check if a given object implements the SearchProductRangesRequest interface.
@@ -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'],