@digital8/lighting-illusions-ts-sdk 0.0.1621 → 0.0.1623

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 (39) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +3 -2
  3. package/dist/models/AddressResource.d.ts +1 -1
  4. package/dist/models/AddressResource.js +1 -3
  5. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  6. package/dist/models/ExternalApiLogResource.js +1 -3
  7. package/dist/models/ProductChildStoreStockType.d.ts +25 -0
  8. package/dist/models/ProductChildStoreStockType.js +51 -0
  9. package/dist/models/StoreFrontendResource.d.ts +1 -1
  10. package/dist/models/StoreFrontendResource.js +3 -1
  11. package/dist/models/StoreListResource.d.ts +13 -1
  12. package/dist/models/StoreListResource.js +7 -1
  13. package/dist/models/StoreResource.d.ts +13 -1
  14. package/dist/models/StoreResource.js +7 -1
  15. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  16. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  17. package/dist/models/StoreStoreRequest.d.ts +12 -0
  18. package/dist/models/StoreStoreRequest.js +4 -0
  19. package/dist/models/UpdateStoreRequest.d.ts +12 -0
  20. package/dist/models/UpdateStoreRequest.js +4 -0
  21. package/dist/models/index.d.ts +1 -0
  22. package/dist/models/index.js +1 -0
  23. package/docs/ProductChildStoreStockType.md +32 -0
  24. package/docs/StoreListResource.md +4 -0
  25. package/docs/StoreResource.md +4 -0
  26. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  27. package/docs/StoreStoreRequest.md +4 -0
  28. package/docs/UpdateStoreRequest.md +4 -0
  29. package/package.json +1 -1
  30. package/src/models/AddressResource.ts +2 -3
  31. package/src/models/ExternalApiLogResource.ts +2 -3
  32. package/src/models/ProductChildStoreStockType.ts +53 -0
  33. package/src/models/StoreFrontendResource.ts +3 -2
  34. package/src/models/StoreListResource.ts +19 -2
  35. package/src/models/StoreResource.ts +19 -2
  36. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  37. package/src/models/StoreStoreRequest.ts +16 -0
  38. package/src/models/UpdateStoreRequest.ts +16 -0
  39. package/src/models/index.ts +1 -0
@@ -246,6 +246,7 @@ docs/ProductChildSiteDetailLiteResource.md
246
246
  docs/ProductChildSiteDetailLiteResourceArrayResponse.md
247
247
  docs/ProductChildSiteDetailResource.md
248
248
  docs/ProductChildSiteDetailResourceArrayResponse.md
249
+ docs/ProductChildStoreStockType.md
249
250
  docs/ProductClassResource.md
250
251
  docs/ProductClassResourceArrayResponse.md
251
252
  docs/ProductCompareResource.md
@@ -662,6 +663,7 @@ src/models/ProductChildSiteDetailLiteResource.ts
662
663
  src/models/ProductChildSiteDetailLiteResourceArrayResponse.ts
663
664
  src/models/ProductChildSiteDetailResource.ts
664
665
  src/models/ProductChildSiteDetailResourceArrayResponse.ts
666
+ src/models/ProductChildStoreStockType.ts
665
667
  src/models/ProductClassResource.ts
666
668
  src/models/ProductClassResourceArrayResponse.ts
667
669
  src/models/ProductCompareResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1621
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1623
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -446,6 +446,7 @@ All URIs are relative to *http://localhost/api*
446
446
  - [ProductChildSiteDetailLiteResourceArrayResponse](docs/ProductChildSiteDetailLiteResourceArrayResponse.md)
447
447
  - [ProductChildSiteDetailResource](docs/ProductChildSiteDetailResource.md)
448
448
  - [ProductChildSiteDetailResourceArrayResponse](docs/ProductChildSiteDetailResourceArrayResponse.md)
449
+ - [ProductChildStoreStockType](docs/ProductChildStoreStockType.md)
449
450
  - [ProductClassResource](docs/ProductClassResource.md)
450
451
  - [ProductClassResourceArrayResponse](docs/ProductClassResourceArrayResponse.md)
451
452
  - [ProductCompareResource](docs/ProductCompareResource.md)
@@ -614,7 +615,7 @@ and is automatically generated by the
614
615
  [OpenAPI Generator](https://openapi-generator.tech) project:
615
616
 
616
617
  - API version: `1.0.0`
617
- - Package version: `0.0.1621`
618
+ - Package version: `0.0.1623`
618
619
  - Generator version: `7.21.0`
619
620
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
620
621
 
@@ -26,7 +26,7 @@ export interface AddressResource {
26
26
  * @type {string}
27
27
  * @memberof AddressResource
28
28
  */
29
- company: string;
29
+ company?: string | null;
30
30
  /**
31
31
  *
32
32
  * @type {string}
@@ -22,8 +22,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressResource interface.
23
23
  */
24
24
  function instanceOfAddressResource(value) {
25
- if (!('company' in value) || value['company'] === undefined)
26
- return false;
27
25
  if (!('line1' in value) || value['line1'] === undefined)
28
26
  return false;
29
27
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -47,7 +45,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
47
45
  }
48
46
  return {
49
47
  'id': json['id'] == null ? undefined : json['id'],
50
- 'company': json['company'],
48
+ 'company': json['company'] == null ? undefined : json['company'],
51
49
  'line1': json['line_1'],
52
50
  'line2': json['line_2'] == null ? undefined : json['line_2'],
53
51
  'postcode': json['postcode'],
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
- if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
- return false;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -0,0 +1,25 @@
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
+ */
16
+ export declare const ProductChildStoreStockType: {
17
+ readonly Display: "display";
18
+ readonly Available: "available";
19
+ };
20
+ export type ProductChildStoreStockType = typeof ProductChildStoreStockType[keyof typeof ProductChildStoreStockType];
21
+ export declare function instanceOfProductChildStoreStockType(value: any): boolean;
22
+ export declare function ProductChildStoreStockTypeFromJSON(json: any): ProductChildStoreStockType;
23
+ export declare function ProductChildStoreStockTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildStoreStockType;
24
+ export declare function ProductChildStoreStockTypeToJSON(value?: ProductChildStoreStockType | null): any;
25
+ export declare function ProductChildStoreStockTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductChildStoreStockType;
@@ -0,0 +1,51 @@
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.ProductChildStoreStockType = void 0;
17
+ exports.instanceOfProductChildStoreStockType = instanceOfProductChildStoreStockType;
18
+ exports.ProductChildStoreStockTypeFromJSON = ProductChildStoreStockTypeFromJSON;
19
+ exports.ProductChildStoreStockTypeFromJSONTyped = ProductChildStoreStockTypeFromJSONTyped;
20
+ exports.ProductChildStoreStockTypeToJSON = ProductChildStoreStockTypeToJSON;
21
+ exports.ProductChildStoreStockTypeToJSONTyped = ProductChildStoreStockTypeToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.ProductChildStoreStockType = {
27
+ Display: 'display',
28
+ Available: 'available'
29
+ };
30
+ function instanceOfProductChildStoreStockType(value) {
31
+ for (var key in exports.ProductChildStoreStockType) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.ProductChildStoreStockType, key)) {
33
+ if (exports.ProductChildStoreStockType[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function ProductChildStoreStockTypeFromJSON(json) {
41
+ return ProductChildStoreStockTypeFromJSONTyped(json, false);
42
+ }
43
+ function ProductChildStoreStockTypeFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function ProductChildStoreStockTypeToJSON(value) {
47
+ return value;
48
+ }
49
+ function ProductChildStoreStockTypeToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine?: string | null;
77
+ tagLine: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -36,6 +36,8 @@ function instanceOfStoreFrontendResource(value) {
36
36
  return false;
37
37
  if (!('longitude' in value) || value['longitude'] === undefined)
38
38
  return false;
39
+ if (!('tagLine' in value) || value['tagLine'] === undefined)
40
+ return false;
39
41
  if (!('specialDates' in value) || value['specialDates'] === undefined)
40
42
  return false;
41
43
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -59,7 +61,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
59
61
  'address': json['address'] == null ? undefined : json['address'],
60
62
  'latitude': json['latitude'],
61
63
  'longitude': json['longitude'],
62
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
64
+ 'tagLine': json['tagLine'],
63
65
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
64
66
  'specialDates': json['specialDates'],
65
67
  'suppliers': json['suppliers'],
@@ -69,7 +69,19 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website?: string | null;
72
+ website: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof StoreListResource
77
+ */
78
+ netsuiteLocationId?: string | null;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof StoreListResource
83
+ */
84
+ displayNetsuiteLocationId?: string | null;
73
85
  /**
74
86
  *
75
87
  * @type {string}
@@ -35,6 +35,8 @@ function instanceOfStoreListResource(value) {
35
35
  return false;
36
36
  if (!('email' in value) || value['email'] === undefined)
37
37
  return false;
38
+ if (!('website' in value) || value['website'] === undefined)
39
+ return false;
38
40
  return true;
39
41
  }
40
42
  function StoreListResourceFromJSON(json) {
@@ -53,7 +55,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'latitude': json['latitude'],
54
56
  'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
55
57
  'email': json['email'],
56
- 'website': json['website'] == null ? undefined : json['website'],
58
+ 'website': json['website'],
59
+ 'netsuiteLocationId': json['netsuiteLocationId'] == null ? undefined : json['netsuiteLocationId'],
60
+ 'displayNetsuiteLocationId': json['displayNetsuiteLocationId'] == null ? undefined : json['displayNetsuiteLocationId'],
57
61
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
58
62
  };
59
63
  }
@@ -75,6 +79,8 @@ function StoreListResourceToJSONTyped(value, ignoreDiscriminator) {
75
79
  'tag_line': value['tagLine'],
76
80
  'email': value['email'],
77
81
  'website': value['website'],
82
+ 'netsuiteLocationId': value['netsuiteLocationId'],
83
+ 'displayNetsuiteLocationId': value['displayNetsuiteLocationId'],
78
84
  'opening_hours': value['openingHours'],
79
85
  };
80
86
  }
@@ -72,7 +72,19 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website?: string | null;
75
+ website: string;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof StoreResource
80
+ */
81
+ netsuiteLocationId?: string | null;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof StoreResource
86
+ */
87
+ displayNetsuiteLocationId?: string | null;
76
88
  /**
77
89
  *
78
90
  * @type {string}
@@ -40,6 +40,8 @@ function instanceOfStoreResource(value) {
40
40
  return false;
41
41
  if (!('email' in value) || value['email'] === undefined)
42
42
  return false;
43
+ if (!('website' in value) || value['website'] === undefined)
44
+ return false;
43
45
  if (!('suppliers' in value) || value['suppliers'] === undefined)
44
46
  return false;
45
47
  if (!('address' in value) || value['address'] === undefined)
@@ -64,7 +66,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
64
66
  'latitude': json['latitude'],
65
67
  'tagLine': json['tag_line'],
66
68
  'email': json['email'],
67
- 'website': json['website'] == null ? undefined : json['website'],
69
+ 'website': json['website'],
70
+ 'netsuiteLocationId': json['netsuiteLocationId'] == null ? undefined : json['netsuiteLocationId'],
71
+ 'displayNetsuiteLocationId': json['displayNetsuiteLocationId'] == null ? undefined : json['displayNetsuiteLocationId'],
68
72
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
69
73
  'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
70
74
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
@@ -89,6 +93,8 @@ function StoreResourceToJSONTyped(value, ignoreDiscriminator) {
89
93
  'tag_line': value['tagLine'],
90
94
  'email': value['email'],
91
95
  'website': value['website'],
96
+ 'netsuiteLocationId': value['netsuiteLocationId'],
97
+ 'displayNetsuiteLocationId': value['displayNetsuiteLocationId'],
92
98
  'opening_hours': value['openingHours'],
93
99
  'suppliers': (value['suppliers'] == null ? null : value['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceToJSON)),
94
100
  'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
@@ -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'],
@@ -71,6 +71,18 @@ export interface StoreStoreRequest {
71
71
  * @memberof StoreStoreRequest
72
72
  */
73
73
  openingHours?: Array<string | null>;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof StoreStoreRequest
78
+ */
79
+ netsuiteId?: string | null;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof StoreStoreRequest
84
+ */
85
+ displayNetsuiteId?: string | null;
74
86
  /**
75
87
  *
76
88
  * @type {Array<number>}
@@ -55,6 +55,8 @@ function StoreStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'email': json['email'] == null ? undefined : json['email'],
56
56
  'website': json['website'] == null ? undefined : json['website'],
57
57
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
58
+ 'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
59
+ 'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
58
60
  'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
59
61
  'specialDates': json['special_dates'] == null ? undefined : (json['special_dates'].map(StoreStoreRequestSpecialDatesInner_1.StoreStoreRequestSpecialDatesInnerFromJSON)),
60
62
  'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressFromJSON)(json['address']),
@@ -78,6 +80,8 @@ function StoreStoreRequestToJSONTyped(value, ignoreDiscriminator) {
78
80
  'email': value['email'],
79
81
  'website': value['website'],
80
82
  'opening_hours': value['openingHours'],
83
+ 'netsuite_id': value['netsuiteId'],
84
+ 'display_netsuite_id': value['displayNetsuiteId'],
81
85
  'supplier_ids': value['supplierIds'],
82
86
  'special_dates': value['specialDates'] == null ? undefined : (value['specialDates'].map(StoreStoreRequestSpecialDatesInner_1.StoreStoreRequestSpecialDatesInnerToJSON)),
83
87
  'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressToJSON)(value['address']),
@@ -71,6 +71,18 @@ export interface UpdateStoreRequest {
71
71
  * @memberof UpdateStoreRequest
72
72
  */
73
73
  openingHours?: Array<string | null>;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof UpdateStoreRequest
78
+ */
79
+ netsuiteId?: string | null;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof UpdateStoreRequest
84
+ */
85
+ displayNetsuiteId?: string | null;
74
86
  /**
75
87
  *
76
88
  * @type {Array<number>}
@@ -55,6 +55,8 @@ function UpdateStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'email': json['email'] == null ? undefined : json['email'],
56
56
  'website': json['website'] == null ? undefined : json['website'],
57
57
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
58
+ 'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
59
+ 'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
58
60
  'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
59
61
  'specialDates': json['special_dates'] == null ? undefined : (json['special_dates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerFromJSON)),
60
62
  'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressFromJSON)(json['address']),
@@ -78,6 +80,8 @@ function UpdateStoreRequestToJSONTyped(value, ignoreDiscriminator) {
78
80
  'email': value['email'],
79
81
  'website': value['website'],
80
82
  'opening_hours': value['openingHours'],
83
+ 'netsuite_id': value['netsuiteId'],
84
+ 'display_netsuite_id': value['displayNetsuiteId'],
81
85
  'supplier_ids': value['supplierIds'],
82
86
  'special_dates': value['specialDates'] == null ? undefined : (value['specialDates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerToJSON)),
83
87
  'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressToJSON)(value['address']),
@@ -231,6 +231,7 @@ export * from './ProductChildSiteDetailLiteResource';
231
231
  export * from './ProductChildSiteDetailLiteResourceArrayResponse';
232
232
  export * from './ProductChildSiteDetailResource';
233
233
  export * from './ProductChildSiteDetailResourceArrayResponse';
234
+ export * from './ProductChildStoreStockType';
234
235
  export * from './ProductClassResource';
235
236
  export * from './ProductClassResourceArrayResponse';
236
237
  export * from './ProductCompareResource';
@@ -249,6 +249,7 @@ __exportStar(require("./ProductChildSiteDetailLiteResource"), exports);
249
249
  __exportStar(require("./ProductChildSiteDetailLiteResourceArrayResponse"), exports);
250
250
  __exportStar(require("./ProductChildSiteDetailResource"), exports);
251
251
  __exportStar(require("./ProductChildSiteDetailResourceArrayResponse"), exports);
252
+ __exportStar(require("./ProductChildStoreStockType"), exports);
252
253
  __exportStar(require("./ProductClassResource"), exports);
253
254
  __exportStar(require("./ProductClassResourceArrayResponse"), exports);
254
255
  __exportStar(require("./ProductCompareResource"), exports);
@@ -0,0 +1,32 @@
1
+
2
+ # ProductChildStoreStockType
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { ProductChildStoreStockType } from '@digital8/lighting-illusions-ts-sdk'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies ProductChildStoreStockType
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as ProductChildStoreStockType
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+
@@ -15,6 +15,8 @@ Name | Type
15
15
  `tagLine` | string
16
16
  `email` | string
17
17
  `website` | string
18
+ `netsuiteLocationId` | string
19
+ `displayNetsuiteLocationId` | string
18
20
  `openingHours` | string
19
21
 
20
22
  ## Example
@@ -33,6 +35,8 @@ const example = {
33
35
  "tagLine": null,
34
36
  "email": null,
35
37
  "website": null,
38
+ "netsuiteLocationId": null,
39
+ "displayNetsuiteLocationId": null,
36
40
  "openingHours": null,
37
41
  } satisfies StoreListResource
38
42
 
@@ -15,6 +15,8 @@ Name | Type
15
15
  `tagLine` | string
16
16
  `email` | string
17
17
  `website` | string
18
+ `netsuiteLocationId` | string
19
+ `displayNetsuiteLocationId` | string
18
20
  `openingHours` | string
19
21
  `suppliers` | [Array&lt;SupplierLiteResource&gt;](SupplierLiteResource.md)
20
22
  `address` | [AddressResource](AddressResource.md)
@@ -36,6 +38,8 @@ const example = {
36
38
  "tagLine": null,
37
39
  "email": null,
38
40
  "website": null,
41
+ "netsuiteLocationId": null,
42
+ "displayNetsuiteLocationId": null,
39
43
  "openingHours": null,
40
44
  "suppliers": null,
41
45
  "address": null,
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | string
12
+ `date` | object
13
13
  `closed` | boolean
14
14
  `displayStartDate` | object
15
15
  `displayEndDate` | object
@@ -15,6 +15,8 @@ Name | Type
15
15
  `email` | string
16
16
  `website` | string
17
17
  `openingHours` | Array&lt;string | null&gt;
18
+ `netsuiteId` | string
19
+ `displayNetsuiteId` | string
18
20
  `supplierIds` | Array&lt;number&gt;
19
21
  `specialDates` | [Array&lt;StoreStoreRequestSpecialDatesInner&gt;](StoreStoreRequestSpecialDatesInner.md)
20
22
  `address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
@@ -35,6 +37,8 @@ const example = {
35
37
  "email": null,
36
38
  "website": null,
37
39
  "openingHours": null,
40
+ "netsuiteId": null,
41
+ "displayNetsuiteId": null,
38
42
  "supplierIds": null,
39
43
  "specialDates": null,
40
44
  "address": null,
@@ -15,6 +15,8 @@ Name | Type
15
15
  `email` | string
16
16
  `website` | string
17
17
  `openingHours` | Array&lt;string | null&gt;
18
+ `netsuiteId` | string
19
+ `displayNetsuiteId` | string
18
20
  `supplierIds` | Array&lt;number&gt;
19
21
  `specialDates` | [Array&lt;UpdateStoreRequestSpecialDatesInner&gt;](UpdateStoreRequestSpecialDatesInner.md)
20
22
  `address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
@@ -35,6 +37,8 @@ const example = {
35
37
  "email": null,
36
38
  "website": null,
37
39
  "openingHours": null,
40
+ "netsuiteId": null,
41
+ "displayNetsuiteId": null,
38
42
  "supplierIds": null,
39
43
  "specialDates": null,
40
44
  "address": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1621",
3
+ "version": "0.0.1623",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -30,7 +30,7 @@ export interface AddressResource {
30
30
  * @type {string}
31
31
  * @memberof AddressResource
32
32
  */
33
- company: string;
33
+ company?: string | null;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -79,7 +79,6 @@ export interface AddressResource {
79
79
  * Check if a given object implements the AddressResource interface.
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
- if (!('company' in value) || value['company'] === undefined) return false;
83
82
  if (!('line1' in value) || value['line1'] === undefined) return false;
84
83
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
85
84
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
@@ -100,7 +99,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
100
99
  return {
101
100
 
102
101
  'id': json['id'] == null ? undefined : json['id'],
103
- 'company': json['company'],
102
+ 'company': json['company'] == null ? undefined : json['company'],
104
103
  'line1': json['line_1'],
105
104
  'line2': json['line_2'] == null ? undefined : json['line_2'],
106
105
  'postcode': json['postcode'],
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
- if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -0,0 +1,53 @@
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const ProductChildStoreStockType = {
21
+ Display: 'display',
22
+ Available: 'available'
23
+ } as const;
24
+ export type ProductChildStoreStockType = typeof ProductChildStoreStockType[keyof typeof ProductChildStoreStockType];
25
+
26
+
27
+ export function instanceOfProductChildStoreStockType(value: any): boolean {
28
+ for (const key in ProductChildStoreStockType) {
29
+ if (Object.prototype.hasOwnProperty.call(ProductChildStoreStockType, key)) {
30
+ if (ProductChildStoreStockType[key as keyof typeof ProductChildStoreStockType] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function ProductChildStoreStockTypeFromJSON(json: any): ProductChildStoreStockType {
39
+ return ProductChildStoreStockTypeFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ProductChildStoreStockTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildStoreStockType {
43
+ return json as ProductChildStoreStockType;
44
+ }
45
+
46
+ export function ProductChildStoreStockTypeToJSON(value?: ProductChildStoreStockType | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function ProductChildStoreStockTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductChildStoreStockType {
51
+ return value as ProductChildStoreStockType;
52
+ }
53
+
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine?: string | null;
81
+ tagLine: string;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -110,6 +110,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
110
110
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
111
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
112
112
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
113
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
114
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
114
115
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
115
116
  return true;
@@ -134,7 +135,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
134
135
  'address': json['address'] == null ? undefined : json['address'],
135
136
  'latitude': json['latitude'],
136
137
  'longitude': json['longitude'],
137
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
138
+ 'tagLine': json['tagLine'],
138
139
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
139
140
  'specialDates': json['specialDates'],
140
141
  'suppliers': json['suppliers'],
@@ -80,7 +80,19 @@ export interface StoreListResource {
80
80
  * @type {string}
81
81
  * @memberof StoreListResource
82
82
  */
83
- website?: string | null;
83
+ website: string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof StoreListResource
88
+ */
89
+ netsuiteLocationId?: string | null;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof StoreListResource
94
+ */
95
+ displayNetsuiteLocationId?: string | null;
84
96
  /**
85
97
  *
86
98
  * @type {string}
@@ -99,6 +111,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
99
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
100
112
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
101
113
  if (!('email' in value) || value['email'] === undefined) return false;
114
+ if (!('website' in value) || value['website'] === undefined) return false;
102
115
  return true;
103
116
  }
104
117
 
@@ -120,7 +133,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
120
133
  'latitude': json['latitude'],
121
134
  'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
122
135
  'email': json['email'],
123
- 'website': json['website'] == null ? undefined : json['website'],
136
+ 'website': json['website'],
137
+ 'netsuiteLocationId': json['netsuiteLocationId'] == null ? undefined : json['netsuiteLocationId'],
138
+ 'displayNetsuiteLocationId': json['displayNetsuiteLocationId'] == null ? undefined : json['displayNetsuiteLocationId'],
124
139
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
125
140
  };
126
141
  }
@@ -145,6 +160,8 @@ export function StoreListResourceToJSONTyped(value?: StoreListResource | null, i
145
160
  'tag_line': value['tagLine'],
146
161
  'email': value['email'],
147
162
  'website': value['website'],
163
+ 'netsuiteLocationId': value['netsuiteLocationId'],
164
+ 'displayNetsuiteLocationId': value['displayNetsuiteLocationId'],
148
165
  'opening_hours': value['openingHours'],
149
166
  };
150
167
  }
@@ -101,7 +101,19 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website?: string | null;
104
+ website: string;
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof StoreResource
109
+ */
110
+ netsuiteLocationId?: string | null;
111
+ /**
112
+ *
113
+ * @type {string}
114
+ * @memberof StoreResource
115
+ */
116
+ displayNetsuiteLocationId?: string | null;
105
117
  /**
106
118
  *
107
119
  * @type {string}
@@ -139,6 +151,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
139
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
140
152
  if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
141
153
  if (!('email' in value) || value['email'] === undefined) return false;
154
+ if (!('website' in value) || value['website'] === undefined) return false;
142
155
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
143
156
  if (!('address' in value) || value['address'] === undefined) return false;
144
157
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
@@ -163,7 +176,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
163
176
  'latitude': json['latitude'],
164
177
  'tagLine': json['tag_line'],
165
178
  'email': json['email'],
166
- 'website': json['website'] == null ? undefined : json['website'],
179
+ 'website': json['website'],
180
+ 'netsuiteLocationId': json['netsuiteLocationId'] == null ? undefined : json['netsuiteLocationId'],
181
+ 'displayNetsuiteLocationId': json['displayNetsuiteLocationId'] == null ? undefined : json['displayNetsuiteLocationId'],
167
182
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
168
183
  'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
169
184
  'address': AddressResourceFromJSON(json['address']),
@@ -191,6 +206,8 @@ export function StoreResourceToJSONTyped(value?: StoreResource | null, ignoreDis
191
206
  'tag_line': value['tagLine'],
192
207
  'email': value['email'],
193
208
  'website': value['website'],
209
+ 'netsuiteLocationId': value['netsuiteLocationId'],
210
+ 'displayNetsuiteLocationId': value['displayNetsuiteLocationId'],
194
211
  'opening_hours': value['openingHours'],
195
212
  'suppliers': (value['suppliers'] == null ? null : (value['suppliers'] as Array<any>).map(SupplierLiteResourceToJSON)),
196
213
  'address': AddressResourceToJSON(value['address']),
@@ -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'],
@@ -88,6 +88,18 @@ export interface StoreStoreRequest {
88
88
  * @memberof StoreStoreRequest
89
89
  */
90
90
  openingHours?: Array<string | null>;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof StoreStoreRequest
95
+ */
96
+ netsuiteId?: string | null;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof StoreStoreRequest
101
+ */
102
+ displayNetsuiteId?: string | null;
91
103
  /**
92
104
  *
93
105
  * @type {Array<number>}
@@ -140,6 +152,8 @@ export function StoreStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: b
140
152
  'email': json['email'] == null ? undefined : json['email'],
141
153
  'website': json['website'] == null ? undefined : json['website'],
142
154
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
155
+ 'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
156
+ 'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
143
157
  'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
144
158
  'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerFromJSON)),
145
159
  'address': StoreStoreRequestAddressFromJSON(json['address']),
@@ -166,6 +180,8 @@ export function StoreStoreRequestToJSONTyped(value?: StoreStoreRequest | null, i
166
180
  'email': value['email'],
167
181
  'website': value['website'],
168
182
  'opening_hours': value['openingHours'],
183
+ 'netsuite_id': value['netsuiteId'],
184
+ 'display_netsuite_id': value['displayNetsuiteId'],
169
185
  'supplier_ids': value['supplierIds'],
170
186
  'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerToJSON)),
171
187
  'address': StoreStoreRequestAddressToJSON(value['address']),
@@ -88,6 +88,18 @@ export interface UpdateStoreRequest {
88
88
  * @memberof UpdateStoreRequest
89
89
  */
90
90
  openingHours?: Array<string | null>;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof UpdateStoreRequest
95
+ */
96
+ netsuiteId?: string | null;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof UpdateStoreRequest
101
+ */
102
+ displayNetsuiteId?: string | null;
91
103
  /**
92
104
  *
93
105
  * @type {Array<number>}
@@ -140,6 +152,8 @@ export function UpdateStoreRequestFromJSONTyped(json: any, ignoreDiscriminator:
140
152
  'email': json['email'] == null ? undefined : json['email'],
141
153
  'website': json['website'] == null ? undefined : json['website'],
142
154
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
155
+ 'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
156
+ 'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
143
157
  'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
144
158
  'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerFromJSON)),
145
159
  'address': StoreStoreRequestAddressFromJSON(json['address']),
@@ -166,6 +180,8 @@ export function UpdateStoreRequestToJSONTyped(value?: UpdateStoreRequest | null,
166
180
  'email': value['email'],
167
181
  'website': value['website'],
168
182
  'opening_hours': value['openingHours'],
183
+ 'netsuite_id': value['netsuiteId'],
184
+ 'display_netsuite_id': value['displayNetsuiteId'],
169
185
  'supplier_ids': value['supplierIds'],
170
186
  'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerToJSON)),
171
187
  'address': StoreStoreRequestAddressToJSON(value['address']),
@@ -233,6 +233,7 @@ export * from './ProductChildSiteDetailLiteResource';
233
233
  export * from './ProductChildSiteDetailLiteResourceArrayResponse';
234
234
  export * from './ProductChildSiteDetailResource';
235
235
  export * from './ProductChildSiteDetailResourceArrayResponse';
236
+ export * from './ProductChildStoreStockType';
236
237
  export * from './ProductClassResource';
237
238
  export * from './ProductClassResourceArrayResponse';
238
239
  export * from './ProductCompareResource';