@digital8/lighting-illusions-ts-sdk 0.0.2777 → 0.0.2778

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.2777
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2778
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.2777 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2778 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -49,10 +49,10 @@ export interface CreatePageRequest {
49
49
  enabled?: boolean;
50
50
  /**
51
51
  *
52
- * @type {string}
52
+ * @type {Date}
53
53
  * @memberof CreatePageRequest
54
54
  */
55
- startDate?: string | null;
55
+ startDate?: Date | null;
56
56
  /**
57
57
  *
58
58
  * @type {CreatePageRequestBlog}
@@ -58,7 +58,7 @@ function CreatePageRequestFromJSONTyped(json, ignoreDiscriminator) {
58
58
  'slug': json['slug'],
59
59
  'type': json['type'],
60
60
  'enabled': json['enabled'] == null ? undefined : json['enabled'],
61
- 'startDate': json['start_date'] == null ? undefined : json['start_date'],
61
+ 'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
62
62
  'blog': json['blog'] == null ? undefined : (0, CreatePageRequestBlog_1.CreatePageRequestBlogFromJSON)(json['blog']),
63
63
  'seo': (json['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerFromJSON)),
64
64
  };
@@ -67,6 +67,7 @@ function CreatePageRequestToJSON(json) {
67
67
  return CreatePageRequestToJSONTyped(json, false);
68
68
  }
69
69
  function CreatePageRequestToJSONTyped(value, ignoreDiscriminator) {
70
+ var _a;
70
71
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
71
72
  if (value == null) {
72
73
  return value;
@@ -77,7 +78,7 @@ function CreatePageRequestToJSONTyped(value, ignoreDiscriminator) {
77
78
  'slug': value['slug'],
78
79
  'type': value['type'],
79
80
  'enabled': value['enabled'],
80
- 'start_date': value['startDate'],
81
+ 'start_date': value['startDate'] === null ? null : ((_a = value['startDate']) === null || _a === void 0 ? void 0 : _a.toISOString()),
81
82
  'blog': (0, CreatePageRequestBlog_1.CreatePageRequestBlogToJSON)(value['blog']),
82
83
  'seo': (value['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerToJSON)),
83
84
  };
@@ -51,7 +51,7 @@ export interface OrderFulfillmentResource {
51
51
  * @type {string}
52
52
  * @memberof OrderFulfillmentResource
53
53
  */
54
- trackingCompany?: string | null;
54
+ trackingCompany: string;
55
55
  /**
56
56
  *
57
57
  * @type {string}
@@ -29,6 +29,8 @@ function instanceOfOrderFulfillmentResource(value) {
29
29
  return false;
30
30
  if (!('dateShipped' in value) || value['dateShipped'] === undefined)
31
31
  return false;
32
+ if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
33
+ return false;
32
34
  if (!('docnum' in value) || value['docnum'] === undefined)
33
35
  return false;
34
36
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
@@ -50,7 +52,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'dateShipped': (new Date(json['dateShipped'])),
51
53
  'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
52
54
  'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
53
- 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
55
+ 'trackingCompany': json['trackingCompany'],
54
56
  'docnum': json['docnum'],
55
57
  'netsuiteId': json['netsuiteId'],
56
58
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -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;
72
+ website?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -33,9 +33,9 @@ function instanceOfStoreListResource(value) {
33
33
  return false;
34
34
  if (!('latitude' in value) || value['latitude'] === undefined)
35
35
  return false;
36
- if (!('email' in value) || value['email'] === undefined)
36
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
37
37
  return false;
38
- if (!('website' in value) || value['website'] === undefined)
38
+ if (!('email' in value) || value['email'] === undefined)
39
39
  return false;
40
40
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
41
41
  return false;
@@ -57,9 +57,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'phone': json['phone'],
58
58
  'longitude': json['longitude'],
59
59
  'latitude': json['latitude'],
60
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
60
+ 'tagLine': json['tagLine'],
61
61
  'email': json['email'],
62
- 'website': json['website'],
62
+ 'website': json['website'] == null ? undefined : json['website'],
63
63
  'netsuiteId': json['netsuiteId'],
64
64
  'displayNetsuiteId': json['displayNetsuiteId'],
65
65
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -60,7 +60,7 @@ export interface StoreResource {
60
60
  * @type {string}
61
61
  * @memberof StoreResource
62
62
  */
63
- tagLine: string;
63
+ tagLine?: string | null;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -36,8 +36,6 @@ function instanceOfStoreResource(value) {
36
36
  return false;
37
37
  if (!('latitude' in value) || value['latitude'] === undefined)
38
38
  return false;
39
- if (!('tagLine' in value) || value['tagLine'] === undefined)
40
- return false;
41
39
  if (!('email' in value) || value['email'] === undefined)
42
40
  return false;
43
41
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
@@ -66,7 +64,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
66
64
  'phone': json['phone'],
67
65
  'longitude': json['longitude'],
68
66
  'latitude': json['latitude'],
69
- 'tagLine': json['tagLine'],
67
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
70
68
  'email': json['email'],
71
69
  'website': json['website'] == null ? undefined : json['website'],
72
70
  'netsuiteId': json['netsuiteId'],
@@ -38,10 +38,10 @@ export interface UpdatePageRequest {
38
38
  enabled?: boolean;
39
39
  /**
40
40
  *
41
- * @type {string}
41
+ * @type {Date}
42
42
  * @memberof UpdatePageRequest
43
43
  */
44
- startDate?: string | null;
44
+ startDate?: Date | null;
45
45
  /**
46
46
  *
47
47
  * @type {CreatePageRequestBlog}
@@ -44,7 +44,7 @@ function UpdatePageRequestFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'name': json['name'],
45
45
  'slug': json['slug'],
46
46
  'enabled': json['enabled'] == null ? undefined : json['enabled'],
47
- 'startDate': json['start_date'] == null ? undefined : json['start_date'],
47
+ 'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
48
48
  'blog': json['blog'] == null ? undefined : (0, CreatePageRequestBlog_1.CreatePageRequestBlogFromJSON)(json['blog']),
49
49
  'componentOrder': json['component_order'] == null ? undefined : (json['component_order'].map(UpdatePageRequestComponentOrderInner_1.UpdatePageRequestComponentOrderInnerFromJSON)),
50
50
  'seo': (json['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerFromJSON)),
@@ -54,6 +54,7 @@ function UpdatePageRequestToJSON(json) {
54
54
  return UpdatePageRequestToJSONTyped(json, false);
55
55
  }
56
56
  function UpdatePageRequestToJSONTyped(value, ignoreDiscriminator) {
57
+ var _a;
57
58
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
59
  if (value == null) {
59
60
  return value;
@@ -62,7 +63,7 @@ function UpdatePageRequestToJSONTyped(value, ignoreDiscriminator) {
62
63
  'name': value['name'],
63
64
  'slug': value['slug'],
64
65
  'enabled': value['enabled'],
65
- 'start_date': value['startDate'],
66
+ 'start_date': value['startDate'] === null ? null : ((_a = value['startDate']) === null || _a === void 0 ? void 0 : _a.toISOString()),
66
67
  'blog': (0, CreatePageRequestBlog_1.CreatePageRequestBlogToJSON)(value['blog']),
67
68
  'component_order': value['componentOrder'] == null ? undefined : (value['componentOrder'].map(UpdatePageRequestComponentOrderInner_1.UpdatePageRequestComponentOrderInnerToJSON)),
68
69
  'seo': (value['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerToJSON)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2777",
3
+ "version": "0.0.2778",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -66,10 +66,10 @@ export interface CreatePageRequest {
66
66
  enabled?: boolean;
67
67
  /**
68
68
  *
69
- * @type {string}
69
+ * @type {Date}
70
70
  * @memberof CreatePageRequest
71
71
  */
72
- startDate?: string | null;
72
+ startDate?: Date | null;
73
73
  /**
74
74
  *
75
75
  * @type {CreatePageRequestBlog}
@@ -123,7 +123,7 @@ export function CreatePageRequestFromJSONTyped(json: any, ignoreDiscriminator: b
123
123
  'slug': json['slug'],
124
124
  'type': json['type'],
125
125
  'enabled': json['enabled'] == null ? undefined : json['enabled'],
126
- 'startDate': json['start_date'] == null ? undefined : json['start_date'],
126
+ 'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
127
127
  'blog': json['blog'] == null ? undefined : CreatePageRequestBlogFromJSON(json['blog']),
128
128
  'seo': ((json['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerFromJSON)),
129
129
  };
@@ -145,7 +145,7 @@ export function CreatePageRequestToJSONTyped(value?: CreatePageRequest | null, i
145
145
  'slug': value['slug'],
146
146
  'type': value['type'],
147
147
  'enabled': value['enabled'],
148
- 'start_date': value['startDate'],
148
+ 'start_date': value['startDate'] === null ? null : ((value['startDate'] as any)?.toISOString()),
149
149
  'blog': CreatePageRequestBlogToJSON(value['blog']),
150
150
  'seo': ((value['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerToJSON)),
151
151
  };
@@ -62,7 +62,7 @@ export interface OrderFulfillmentResource {
62
62
  * @type {string}
63
63
  * @memberof OrderFulfillmentResource
64
64
  */
65
- trackingCompany?: string | null;
65
+ trackingCompany: string;
66
66
  /**
67
67
  *
68
68
  * @type {string}
@@ -102,6 +102,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
102
102
  if (!('id' in value) || value['id'] === undefined) return false;
103
103
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
104
104
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
105
+ if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
105
106
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
106
107
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
107
108
  if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
@@ -123,7 +124,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
123
124
  'dateShipped': (new Date(json['dateShipped'])),
124
125
  'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
125
126
  'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
126
- 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
127
+ 'trackingCompany': json['trackingCompany'],
127
128
  'docnum': json['docnum'],
128
129
  'netsuiteId': json['netsuiteId'],
129
130
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -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;
83
+ website?: string | null;
84
84
  /**
85
85
  *
86
86
  * @type {number}
@@ -110,8 +110,8 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
110
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
112
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
113
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
114
  if (!('email' in value) || value['email'] === undefined) return false;
114
- if (!('website' in value) || value['website'] === undefined) return false;
115
115
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
116
116
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
117
117
  return true;
@@ -133,9 +133,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
133
133
  'phone': json['phone'],
134
134
  'longitude': json['longitude'],
135
135
  'latitude': json['latitude'],
136
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
136
+ 'tagLine': json['tagLine'],
137
137
  'email': json['email'],
138
- 'website': json['website'],
138
+ 'website': json['website'] == null ? undefined : json['website'],
139
139
  'netsuiteId': json['netsuiteId'],
140
140
  'displayNetsuiteId': json['displayNetsuiteId'],
141
141
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine: string;
92
+ tagLine?: string | null;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -149,7 +149,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
149
149
  if (!('phone' in value) || value['phone'] === undefined) return false;
150
150
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
153
152
  if (!('email' in value) || value['email'] === undefined) return false;
154
153
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
155
154
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
@@ -175,7 +174,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
175
174
  'phone': json['phone'],
176
175
  'longitude': json['longitude'],
177
176
  'latitude': json['latitude'],
178
- 'tagLine': json['tagLine'],
177
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
179
178
  'email': json['email'],
180
179
  'website': json['website'] == null ? undefined : json['website'],
181
180
  'netsuiteId': json['netsuiteId'],
@@ -61,10 +61,10 @@ export interface UpdatePageRequest {
61
61
  enabled?: boolean;
62
62
  /**
63
63
  *
64
- * @type {string}
64
+ * @type {Date}
65
65
  * @memberof UpdatePageRequest
66
66
  */
67
- startDate?: string | null;
67
+ startDate?: Date | null;
68
68
  /**
69
69
  *
70
70
  * @type {CreatePageRequestBlog}
@@ -108,7 +108,7 @@ export function UpdatePageRequestFromJSONTyped(json: any, ignoreDiscriminator: b
108
108
  'name': json['name'],
109
109
  'slug': json['slug'],
110
110
  'enabled': json['enabled'] == null ? undefined : json['enabled'],
111
- 'startDate': json['start_date'] == null ? undefined : json['start_date'],
111
+ 'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
112
112
  'blog': json['blog'] == null ? undefined : CreatePageRequestBlogFromJSON(json['blog']),
113
113
  'componentOrder': json['component_order'] == null ? undefined : ((json['component_order'] as Array<any>).map(UpdatePageRequestComponentOrderInnerFromJSON)),
114
114
  'seo': ((json['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerFromJSON)),
@@ -129,7 +129,7 @@ export function UpdatePageRequestToJSONTyped(value?: UpdatePageRequest | null, i
129
129
  'name': value['name'],
130
130
  'slug': value['slug'],
131
131
  'enabled': value['enabled'],
132
- 'start_date': value['startDate'],
132
+ 'start_date': value['startDate'] === null ? null : ((value['startDate'] as any)?.toISOString()),
133
133
  'blog': CreatePageRequestBlogToJSON(value['blog']),
134
134
  'component_order': value['componentOrder'] == null ? undefined : ((value['componentOrder'] as Array<any>).map(UpdatePageRequestComponentOrderInnerToJSON)),
135
135
  'seo': ((value['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerToJSON)),