@digital8/lighting-illusions-ts-sdk 0.0.2554 → 0.0.2555

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.
Files changed (33) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/dist/models/AddressFrontendResource.d.ts +1 -1
  4. package/dist/models/AddressFrontendResource.js +3 -1
  5. package/dist/models/AdminOrderResource.d.ts +0 -6
  6. package/dist/models/AdminOrderResource.js +0 -4
  7. package/dist/models/OrderFulfillmentResource.d.ts +2 -2
  8. package/dist/models/OrderFulfillmentResource.js +6 -2
  9. package/dist/models/OrderOmnisendEvent.d.ts +0 -1
  10. package/dist/models/OrderOmnisendEvent.js +1 -2
  11. package/dist/models/StoreFrontendResource.d.ts +2 -2
  12. package/dist/models/StoreFrontendResource.js +2 -6
  13. package/dist/models/StoreListResource.d.ts +2 -2
  14. package/dist/models/StoreListResource.js +6 -2
  15. package/dist/models/StoreLocationResource.d.ts +38 -0
  16. package/dist/models/StoreLocationResource.js +55 -0
  17. package/dist/models/StoreLocationResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/StoreLocationResourceArrayResponse.js +50 -0
  19. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  20. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  21. package/dist/models/index.d.ts +2 -0
  22. package/dist/models/index.js +2 -0
  23. package/package.json +1 -1
  24. package/src/models/AddressFrontendResource.ts +3 -2
  25. package/src/models/AdminOrderResource.ts +0 -9
  26. package/src/models/OrderFulfillmentResource.ts +6 -4
  27. package/src/models/OrderOmnisendEvent.ts +1 -2
  28. package/src/models/StoreFrontendResource.ts +4 -6
  29. package/src/models/StoreListResource.ts +6 -4
  30. package/src/models/StoreLocationResource.ts +75 -0
  31. package/src/models/StoreLocationResourceArrayResponse.ts +73 -0
  32. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  33. package/src/models/index.ts +2 -0
@@ -603,6 +603,8 @@ src/models/StoreListResource.ts
603
603
  src/models/StoreListResourceArrayResponse.ts
604
604
  src/models/StoreLiteResource.ts
605
605
  src/models/StoreLiteResourceArrayResponse.ts
606
+ src/models/StoreLocationResource.ts
607
+ src/models/StoreLocationResourceArrayResponse.ts
606
608
  src/models/StoreResource.ts
607
609
  src/models/StoreResourceArrayResponse.ts
608
610
  src/models/StoreSpecialDateFrontendResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/lighting-illusions-ts-sdk@0.0.2554
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2555
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.2554 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2555 --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
- line2?: string | null;
35
+ line2: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -24,6 +24,8 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
24
24
  function instanceOfAddressFrontendResource(value) {
25
25
  if (!('line1' in value) || value['line1'] === undefined)
26
26
  return false;
27
+ if (!('line2' in value) || value['line2'] === undefined)
28
+ return false;
27
29
  if (!('postcode' in value) || value['postcode'] === undefined)
28
30
  return false;
29
31
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -46,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
48
  return {
47
49
  'company': json['company'] == null ? undefined : json['company'],
48
50
  'line1': json['line1'],
49
- 'line2': json['line2'] == null ? undefined : json['line2'],
51
+ 'line2': json['line2'],
50
52
  'postcode': json['postcode'],
51
53
  'suburb': json['suburb'],
52
54
  'country': json['country'],
@@ -121,12 +121,6 @@ export interface AdminOrderResource {
121
121
  * @memberof AdminOrderResource
122
122
  */
123
123
  isNetsuiteLocked: boolean;
124
- /**
125
- *
126
- * @type {boolean}
127
- * @memberof AdminOrderResource
128
- */
129
- isNetsuiteSyncing: boolean;
130
124
  /**
131
125
  *
132
126
  * @type {boolean}
@@ -54,8 +54,6 @@ function instanceOfAdminOrderResource(value) {
54
54
  return false;
55
55
  if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined)
56
56
  return false;
57
- if (!('isNetsuiteSyncing' in value) || value['isNetsuiteSyncing'] === undefined)
58
- return false;
59
57
  if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined)
60
58
  return false;
61
59
  if (!('subtotal' in value) || value['subtotal'] === undefined)
@@ -142,7 +140,6 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
142
140
  'useAsBillingAddress': json['useAsBillingAddress'],
143
141
  'netsuiteId': json['netsuiteId'],
144
142
  'isNetsuiteLocked': json['isNetsuiteLocked'],
145
- 'isNetsuiteSyncing': json['isNetsuiteSyncing'],
146
143
  'isPrivilegedAdmin': json['isPrivilegedAdmin'],
147
144
  'subtotal': json['subtotal'],
148
145
  'productDiscountAmount': json['productDiscountAmount'],
@@ -201,7 +198,6 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
201
198
  'useAsBillingAddress': value['useAsBillingAddress'],
202
199
  'netsuiteId': value['netsuiteId'],
203
200
  'isNetsuiteLocked': value['isNetsuiteLocked'],
204
- 'isNetsuiteSyncing': value['isNetsuiteSyncing'],
205
201
  'isPrivilegedAdmin': value['isPrivilegedAdmin'],
206
202
  'subtotal': value['subtotal'],
207
203
  'productDiscountAmount': value['productDiscountAmount'],
@@ -39,7 +39,7 @@ export interface OrderFulfillmentResource {
39
39
  * @type {string}
40
40
  * @memberof OrderFulfillmentResource
41
41
  */
42
- trackingNumber?: string | null;
42
+ trackingNumber: string;
43
43
  /**
44
44
  *
45
45
  * @type {string}
@@ -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,10 @@ function instanceOfOrderFulfillmentResource(value) {
29
29
  return false;
30
30
  if (!('dateShipped' in value) || value['dateShipped'] === undefined)
31
31
  return false;
32
+ if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
33
+ return false;
34
+ if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
35
+ return false;
32
36
  if (!('docnum' in value) || value['docnum'] === undefined)
33
37
  return false;
34
38
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
@@ -48,9 +52,9 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
48
52
  'id': json['id'],
49
53
  'orderId': json['orderId'],
50
54
  'dateShipped': (new Date(json['dateShipped'])),
51
- 'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
55
+ 'trackingNumber': json['trackingNumber'],
52
56
  'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
53
- 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
57
+ 'trackingCompany': json['trackingCompany'],
54
58
  'docnum': json['docnum'],
55
59
  'netsuiteId': json['netsuiteId'],
56
60
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -16,7 +16,6 @@
16
16
  export declare const OrderOmnisendEvent: {
17
17
  readonly PlacedOrder: "placed order";
18
18
  readonly PaidForOrder: "paid for order";
19
- readonly OrderFulfilled: "order fulfilled";
20
19
  };
21
20
  export type OrderOmnisendEvent = typeof OrderOmnisendEvent[keyof typeof OrderOmnisendEvent];
22
21
  export declare function instanceOfOrderOmnisendEvent(value: any): boolean;
@@ -25,8 +25,7 @@ exports.OrderOmnisendEventToJSONTyped = OrderOmnisendEventToJSONTyped;
25
25
  */
26
26
  exports.OrderOmnisendEvent = {
27
27
  PlacedOrder: 'placed order',
28
- PaidForOrder: 'paid for order',
29
- OrderFulfilled: 'order fulfilled'
28
+ PaidForOrder: 'paid for order'
30
29
  };
31
30
  function instanceOfOrderOmnisendEvent(value) {
32
31
  for (var key in exports.OrderOmnisendEvent) {
@@ -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'],
@@ -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 | null;
72
+ website: string;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -33,8 +33,12 @@ function instanceOfStoreListResource(value) {
33
33
  return false;
34
34
  if (!('latitude' in value) || value['latitude'] === undefined)
35
35
  return false;
36
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
37
+ return false;
36
38
  if (!('email' in value) || value['email'] === undefined)
37
39
  return false;
40
+ if (!('website' in value) || value['website'] === undefined)
41
+ return false;
38
42
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
39
43
  return false;
40
44
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -55,9 +59,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
55
59
  'phone': json['phone'],
56
60
  'longitude': json['longitude'],
57
61
  'latitude': json['latitude'],
58
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
62
+ 'tagLine': json['tagLine'],
59
63
  'email': json['email'],
60
- 'website': json['website'] == null ? undefined : json['website'],
64
+ 'website': json['website'],
61
65
  'netsuiteId': json['netsuiteId'],
62
66
  'displayNetsuiteId': json['displayNetsuiteId'],
63
67
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -0,0 +1,38 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface StoreLocationResource
16
+ */
17
+ export interface StoreLocationResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof StoreLocationResource
22
+ */
23
+ latitude: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof StoreLocationResource
28
+ */
29
+ longitude: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the StoreLocationResource interface.
33
+ */
34
+ export declare function instanceOfStoreLocationResource(value: object): value is StoreLocationResource;
35
+ export declare function StoreLocationResourceFromJSON(json: any): StoreLocationResource;
36
+ export declare function StoreLocationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResource;
37
+ export declare function StoreLocationResourceToJSON(json: any): StoreLocationResource;
38
+ export declare function StoreLocationResourceToJSONTyped(value?: StoreLocationResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfStoreLocationResource = instanceOfStoreLocationResource;
17
+ exports.StoreLocationResourceFromJSON = StoreLocationResourceFromJSON;
18
+ exports.StoreLocationResourceFromJSONTyped = StoreLocationResourceFromJSONTyped;
19
+ exports.StoreLocationResourceToJSON = StoreLocationResourceToJSON;
20
+ exports.StoreLocationResourceToJSONTyped = StoreLocationResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StoreLocationResource interface.
23
+ */
24
+ function instanceOfStoreLocationResource(value) {
25
+ if (!('latitude' in value) || value['latitude'] === undefined)
26
+ return false;
27
+ if (!('longitude' in value) || value['longitude'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function StoreLocationResourceFromJSON(json) {
32
+ return StoreLocationResourceFromJSONTyped(json, false);
33
+ }
34
+ function StoreLocationResourceFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'latitude': json['latitude'],
40
+ 'longitude': json['longitude'],
41
+ };
42
+ }
43
+ function StoreLocationResourceToJSON(json) {
44
+ return StoreLocationResourceToJSONTyped(json, false);
45
+ }
46
+ function StoreLocationResourceToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'latitude': value['latitude'],
53
+ 'longitude': value['longitude'],
54
+ };
55
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { StoreLocationResource } from './StoreLocationResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface StoreLocationResourceArrayResponse
17
+ */
18
+ export interface StoreLocationResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<StoreLocationResource>}
22
+ * @memberof StoreLocationResourceArrayResponse
23
+ */
24
+ data?: Array<StoreLocationResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the StoreLocationResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfStoreLocationResourceArrayResponse(value: object): value is StoreLocationResourceArrayResponse;
30
+ export declare function StoreLocationResourceArrayResponseFromJSON(json: any): StoreLocationResourceArrayResponse;
31
+ export declare function StoreLocationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResourceArrayResponse;
32
+ export declare function StoreLocationResourceArrayResponseToJSON(json: any): StoreLocationResourceArrayResponse;
33
+ export declare function StoreLocationResourceArrayResponseToJSONTyped(value?: StoreLocationResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfStoreLocationResourceArrayResponse = instanceOfStoreLocationResourceArrayResponse;
17
+ exports.StoreLocationResourceArrayResponseFromJSON = StoreLocationResourceArrayResponseFromJSON;
18
+ exports.StoreLocationResourceArrayResponseFromJSONTyped = StoreLocationResourceArrayResponseFromJSONTyped;
19
+ exports.StoreLocationResourceArrayResponseToJSON = StoreLocationResourceArrayResponseToJSON;
20
+ exports.StoreLocationResourceArrayResponseToJSONTyped = StoreLocationResourceArrayResponseToJSONTyped;
21
+ var StoreLocationResource_1 = require("./StoreLocationResource");
22
+ /**
23
+ * Check if a given object implements the StoreLocationResourceArrayResponse interface.
24
+ */
25
+ function instanceOfStoreLocationResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function StoreLocationResourceArrayResponseFromJSON(json) {
29
+ return StoreLocationResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function StoreLocationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(StoreLocationResource_1.StoreLocationResourceFromJSON)),
37
+ };
38
+ }
39
+ function StoreLocationResourceArrayResponseToJSON(json) {
40
+ return StoreLocationResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function StoreLocationResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(StoreLocationResource_1.StoreLocationResourceToJSON)),
49
+ };
50
+ }
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
35
35
  hours: string;
36
36
  /**
37
37
  *
38
- * @type {string}
38
+ * @type {object}
39
39
  * @memberof StoreSpecialDateFrontendResource
40
40
  */
41
- date?: string | null;
41
+ date: object;
42
42
  /**
43
43
  *
44
44
  * @type {boolean}
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
26
26
  return false;
27
27
  if (!('hours' in value) || value['hours'] === undefined)
28
28
  return false;
29
+ if (!('date' in value) || value['date'] === undefined)
30
+ return false;
29
31
  if (!('closed' in value) || value['closed'] === undefined)
30
32
  return false;
31
33
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
45
47
  'id': json['id'] == null ? undefined : json['id'],
46
48
  'name': json['name'],
47
49
  'hours': json['hours'],
48
- 'date': json['date'] == null ? undefined : json['date'],
50
+ 'date': json['date'],
49
51
  'closed': json['closed'],
50
52
  'displayStartDate': json['displayStartDate'],
51
53
  'displayEndDate': json['displayEndDate'],
@@ -564,6 +564,8 @@ export * from './StoreListResource';
564
564
  export * from './StoreListResourceArrayResponse';
565
565
  export * from './StoreLiteResource';
566
566
  export * from './StoreLiteResourceArrayResponse';
567
+ export * from './StoreLocationResource';
568
+ export * from './StoreLocationResourceArrayResponse';
567
569
  export * from './StoreResource';
568
570
  export * from './StoreResourceArrayResponse';
569
571
  export * from './StoreSpecialDateFrontendResource';
@@ -582,6 +582,8 @@ __exportStar(require("./StoreListResource"), exports);
582
582
  __exportStar(require("./StoreListResourceArrayResponse"), exports);
583
583
  __exportStar(require("./StoreLiteResource"), exports);
584
584
  __exportStar(require("./StoreLiteResourceArrayResponse"), exports);
585
+ __exportStar(require("./StoreLocationResource"), exports);
586
+ __exportStar(require("./StoreLocationResourceArrayResponse"), exports);
585
587
  __exportStar(require("./StoreResource"), exports);
586
588
  __exportStar(require("./StoreResourceArrayResponse"), exports);
587
589
  __exportStar(require("./StoreSpecialDateFrontendResource"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2554",
3
+ "version": "0.0.2555",
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
- line2?: string | null;
39
+ line2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -74,6 +74,7 @@ export interface AddressFrontendResource {
74
74
  */
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
76
  if (!('line1' in value) || value['line1'] === undefined) return false;
77
+ if (!('line2' in value) || value['line2'] === undefined) return false;
77
78
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
78
79
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
79
80
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -94,7 +95,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
94
95
 
95
96
  'company': json['company'] == null ? undefined : json['company'],
96
97
  'line1': json['line1'],
97
- 'line2': json['line2'] == null ? undefined : json['line2'],
98
+ 'line2': json['line2'],
98
99
  'postcode': json['postcode'],
99
100
  'suburb': json['suburb'],
100
101
  'country': json['country'],
@@ -186,12 +186,6 @@ export interface AdminOrderResource {
186
186
  * @memberof AdminOrderResource
187
187
  */
188
188
  isNetsuiteLocked: boolean;
189
- /**
190
- *
191
- * @type {boolean}
192
- * @memberof AdminOrderResource
193
- */
194
- isNetsuiteSyncing: boolean;
195
189
  /**
196
190
  *
197
191
  * @type {boolean}
@@ -389,7 +383,6 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
389
383
  if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
390
384
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
391
385
  if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined) return false;
392
- if (!('isNetsuiteSyncing' in value) || value['isNetsuiteSyncing'] === undefined) return false;
393
386
  if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined) return false;
394
387
  if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
395
388
  if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined) return false;
@@ -449,7 +442,6 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
449
442
  'useAsBillingAddress': json['useAsBillingAddress'],
450
443
  'netsuiteId': json['netsuiteId'],
451
444
  'isNetsuiteLocked': json['isNetsuiteLocked'],
452
- 'isNetsuiteSyncing': json['isNetsuiteSyncing'],
453
445
  'isPrivilegedAdmin': json['isPrivilegedAdmin'],
454
446
  'subtotal': json['subtotal'],
455
447
  'productDiscountAmount': json['productDiscountAmount'],
@@ -510,7 +502,6 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
510
502
  'useAsBillingAddress': value['useAsBillingAddress'],
511
503
  'netsuiteId': value['netsuiteId'],
512
504
  'isNetsuiteLocked': value['isNetsuiteLocked'],
513
- 'isNetsuiteSyncing': value['isNetsuiteSyncing'],
514
505
  'isPrivilegedAdmin': value['isPrivilegedAdmin'],
515
506
  'subtotal': value['subtotal'],
516
507
  'productDiscountAmount': value['productDiscountAmount'],
@@ -50,7 +50,7 @@ export interface OrderFulfillmentResource {
50
50
  * @type {string}
51
51
  * @memberof OrderFulfillmentResource
52
52
  */
53
- trackingNumber?: string | null;
53
+ trackingNumber: string;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -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,8 @@ 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 (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
106
+ if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
105
107
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
106
108
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
107
109
  if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
@@ -121,9 +123,9 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
121
123
  'id': json['id'],
122
124
  'orderId': json['orderId'],
123
125
  'dateShipped': (new Date(json['dateShipped'])),
124
- 'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
126
+ 'trackingNumber': json['trackingNumber'],
125
127
  'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
126
- 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
128
+ 'trackingCompany': json['trackingCompany'],
127
129
  'docnum': json['docnum'],
128
130
  'netsuiteId': json['netsuiteId'],
129
131
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -19,8 +19,7 @@
19
19
  */
20
20
  export const OrderOmnisendEvent = {
21
21
  PlacedOrder: 'placed order',
22
- PaidForOrder: 'paid for order',
23
- OrderFulfilled: 'order fulfilled'
22
+ PaidForOrder: 'paid for order'
24
23
  } as const;
25
24
  export type OrderOmnisendEvent = typeof OrderOmnisendEvent[keyof typeof OrderOmnisendEvent];
26
25
 
@@ -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'],
@@ -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 | null;
83
+ website: string;
84
84
  /**
85
85
  *
86
86
  * @type {number}
@@ -110,7 +110,9 @@ 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;
115
+ if (!('website' in value) || value['website'] === undefined) return false;
114
116
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
115
117
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
116
118
  return true;
@@ -132,9 +134,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
132
134
  'phone': json['phone'],
133
135
  'longitude': json['longitude'],
134
136
  'latitude': json['latitude'],
135
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
137
+ 'tagLine': json['tagLine'],
136
138
  'email': json['email'],
137
- 'website': json['website'] == null ? undefined : json['website'],
139
+ 'website': json['website'],
138
140
  'netsuiteId': json['netsuiteId'],
139
141
  'displayNetsuiteId': json['displayNetsuiteId'],
140
142
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface StoreLocationResource
20
+ */
21
+ export interface StoreLocationResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof StoreLocationResource
26
+ */
27
+ latitude: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof StoreLocationResource
32
+ */
33
+ longitude: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the StoreLocationResource interface.
38
+ */
39
+ export function instanceOfStoreLocationResource(value: object): value is StoreLocationResource {
40
+ if (!('latitude' in value) || value['latitude'] === undefined) return false;
41
+ if (!('longitude' in value) || value['longitude'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function StoreLocationResourceFromJSON(json: any): StoreLocationResource {
46
+ return StoreLocationResourceFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function StoreLocationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResource {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'latitude': json['latitude'],
56
+ 'longitude': json['longitude'],
57
+ };
58
+ }
59
+
60
+ export function StoreLocationResourceToJSON(json: any): StoreLocationResource {
61
+ return StoreLocationResourceToJSONTyped(json, false);
62
+ }
63
+
64
+ export function StoreLocationResourceToJSONTyped(value?: StoreLocationResource | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'latitude': value['latitude'],
72
+ 'longitude': value['longitude'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { StoreLocationResource } from './StoreLocationResource';
17
+ import {
18
+ StoreLocationResourceFromJSON,
19
+ StoreLocationResourceFromJSONTyped,
20
+ StoreLocationResourceToJSON,
21
+ StoreLocationResourceToJSONTyped,
22
+ } from './StoreLocationResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface StoreLocationResourceArrayResponse
28
+ */
29
+ export interface StoreLocationResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<StoreLocationResource>}
33
+ * @memberof StoreLocationResourceArrayResponse
34
+ */
35
+ data?: Array<StoreLocationResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the StoreLocationResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfStoreLocationResourceArrayResponse(value: object): value is StoreLocationResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function StoreLocationResourceArrayResponseFromJSON(json: any): StoreLocationResourceArrayResponse {
46
+ return StoreLocationResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function StoreLocationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(StoreLocationResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function StoreLocationResourceArrayResponseToJSON(json: any): StoreLocationResourceArrayResponse {
60
+ return StoreLocationResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function StoreLocationResourceArrayResponseToJSONTyped(value?: StoreLocationResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(StoreLocationResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {object}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date?: string | null;
45
+ date: object;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
69
69
  export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
+ if (!('date' in value) || value['date'] === undefined) return false;
72
73
  if (!('closed' in value) || value['closed'] === undefined) return false;
73
74
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
74
75
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
88
89
  'id': json['id'] == null ? undefined : json['id'],
89
90
  'name': json['name'],
90
91
  'hours': json['hours'],
91
- 'date': json['date'] == null ? undefined : json['date'],
92
+ 'date': json['date'],
92
93
  'closed': json['closed'],
93
94
  'displayStartDate': json['displayStartDate'],
94
95
  'displayEndDate': json['displayEndDate'],
@@ -566,6 +566,8 @@ export * from './StoreListResource';
566
566
  export * from './StoreListResourceArrayResponse';
567
567
  export * from './StoreLiteResource';
568
568
  export * from './StoreLiteResourceArrayResponse';
569
+ export * from './StoreLocationResource';
570
+ export * from './StoreLocationResourceArrayResponse';
569
571
  export * from './StoreResource';
570
572
  export * from './StoreResourceArrayResponse';
571
573
  export * from './StoreSpecialDateFrontendResource';