@digital8/lighting-illusions-ts-sdk 0.0.1510 → 0.0.1511
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 +2 -2
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/ProductRegistrationAssetResource.d.ts +2 -2
- package/dist/models/ProductRegistrationResource.d.ts +6 -4
- package/dist/models/ProductRegistrationResource.js +6 -4
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/docs/ProductRegistrationAssetResource.md +1 -1
- package/docs/ProductRegistrationResource.md +2 -2
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +5 -5
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/ProductRegistrationAssetResource.ts +2 -2
- package/src/models/ProductRegistrationResource.ts +22 -8
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +3 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1511
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -628,7 +628,7 @@ and is automatically generated by the
|
|
|
628
628
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
629
629
|
|
|
630
630
|
- API version: `1.0.0`
|
|
631
|
-
- Package version: `0.0.
|
|
631
|
+
- Package version: `0.0.1511`
|
|
632
632
|
- Generator version: `7.20.0`
|
|
633
633
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
634
634
|
|
|
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AddressFrontendResource
|
|
22
22
|
*/
|
|
23
|
-
company
|
|
23
|
+
company: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AddressFrontendResource
|
|
34
34
|
*/
|
|
35
|
-
line2
|
|
35
|
+
line2?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -22,9 +22,9 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -46,9 +46,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
return json;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'company': json['company']
|
|
49
|
+
'company': json['company'],
|
|
50
50
|
'line1': json['line1'],
|
|
51
|
-
'line2': json['line2'],
|
|
51
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
52
52
|
'postcode': json['postcode'],
|
|
53
53
|
'suburb': json['suburb'],
|
|
54
54
|
'country': json['country'],
|
|
@@ -26,7 +26,7 @@ export interface AddressResource {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof AddressResource
|
|
28
28
|
*/
|
|
29
|
-
company
|
|
29
|
+
company?: string | null;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
@@ -38,7 +38,7 @@ export interface AddressResource {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressResource
|
|
40
40
|
*/
|
|
41
|
-
line2
|
|
41
|
+
line2: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -22,10 +22,10 @@ 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;
|
|
27
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
28
|
+
return false;
|
|
29
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
30
|
return false;
|
|
31
31
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -47,9 +47,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
-
'company': json['company'],
|
|
50
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
51
51
|
'line1': json['line_1'],
|
|
52
|
-
'line2': json['line_2']
|
|
52
|
+
'line2': json['line_2'],
|
|
53
53
|
'postcode': json['postcode'],
|
|
54
54
|
'suburb': json['suburb'],
|
|
55
55
|
'country': json['country'],
|
|
@@ -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']),
|
|
@@ -24,10 +24,10 @@ export interface ProductRegistrationAssetResource {
|
|
|
24
24
|
id?: number | null;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {string}
|
|
28
28
|
* @memberof ProductRegistrationAssetResource
|
|
29
29
|
*/
|
|
30
|
-
type:
|
|
30
|
+
type: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {AssetResource}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ProductRegistrationAssetResource } from './ProductRegistrationAssetResource';
|
|
13
|
+
import type { ProductRegistrationProductChildResource } from './ProductRegistrationProductChildResource';
|
|
12
14
|
import type { AddressResource } from './AddressResource';
|
|
13
15
|
import type { ProductRegistrationCustomerResource } from './ProductRegistrationCustomerResource';
|
|
14
16
|
/**
|
|
@@ -43,16 +45,16 @@ export interface ProductRegistrationResource {
|
|
|
43
45
|
address: AddressResource | null;
|
|
44
46
|
/**
|
|
45
47
|
*
|
|
46
|
-
* @type {
|
|
48
|
+
* @type {Array<ProductRegistrationProductChildResource>}
|
|
47
49
|
* @memberof ProductRegistrationResource
|
|
48
50
|
*/
|
|
49
|
-
productChildren:
|
|
51
|
+
productChildren: Array<ProductRegistrationProductChildResource> | null;
|
|
50
52
|
/**
|
|
51
53
|
*
|
|
52
|
-
* @type {
|
|
54
|
+
* @type {Array<ProductRegistrationAssetResource>}
|
|
53
55
|
* @memberof ProductRegistrationResource
|
|
54
56
|
*/
|
|
55
|
-
assets:
|
|
57
|
+
assets: Array<ProductRegistrationAssetResource> | null;
|
|
56
58
|
/**
|
|
57
59
|
*
|
|
58
60
|
* @type {string}
|
|
@@ -18,6 +18,8 @@ exports.ProductRegistrationResourceFromJSON = ProductRegistrationResourceFromJSO
|
|
|
18
18
|
exports.ProductRegistrationResourceFromJSONTyped = ProductRegistrationResourceFromJSONTyped;
|
|
19
19
|
exports.ProductRegistrationResourceToJSON = ProductRegistrationResourceToJSON;
|
|
20
20
|
exports.ProductRegistrationResourceToJSONTyped = ProductRegistrationResourceToJSONTyped;
|
|
21
|
+
var ProductRegistrationAssetResource_1 = require("./ProductRegistrationAssetResource");
|
|
22
|
+
var ProductRegistrationProductChildResource_1 = require("./ProductRegistrationProductChildResource");
|
|
21
23
|
var AddressResource_1 = require("./AddressResource");
|
|
22
24
|
var ProductRegistrationCustomerResource_1 = require("./ProductRegistrationCustomerResource");
|
|
23
25
|
/**
|
|
@@ -48,8 +50,8 @@ function ProductRegistrationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
'purchasedDate': (new Date(json['purchasedDate'])),
|
|
49
51
|
'customer': (0, ProductRegistrationCustomerResource_1.ProductRegistrationCustomerResourceFromJSON)(json['customer']),
|
|
50
52
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
51
|
-
'productChildren': json['productChildren'],
|
|
52
|
-
'assets': json['assets'],
|
|
53
|
+
'productChildren': (json['productChildren'] == null ? null : json['productChildren'].map(ProductRegistrationProductChildResource_1.ProductRegistrationProductChildResourceFromJSON)),
|
|
54
|
+
'assets': (json['assets'] == null ? null : json['assets'].map(ProductRegistrationAssetResource_1.ProductRegistrationAssetResourceFromJSON)),
|
|
53
55
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
54
56
|
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
55
57
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -69,8 +71,8 @@ function ProductRegistrationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
69
71
|
'purchasedDate': value['purchasedDate'].toISOString(),
|
|
70
72
|
'customer': (0, ProductRegistrationCustomerResource_1.ProductRegistrationCustomerResourceToJSON)(value['customer']),
|
|
71
73
|
'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
|
|
72
|
-
'productChildren': value['productChildren'],
|
|
73
|
-
'assets': value['assets'],
|
|
74
|
+
'productChildren': (value['productChildren'] == null ? null : value['productChildren'].map(ProductRegistrationProductChildResource_1.ProductRegistrationProductChildResourceToJSON)),
|
|
75
|
+
'assets': (value['assets'] == null ? null : value['assets'].map(ProductRegistrationAssetResource_1.ProductRegistrationAssetResourceToJSON)),
|
|
74
76
|
'omnisendId': value['omnisendId'],
|
|
75
77
|
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
76
78
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
@@ -34,6 +34,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -56,7 +58,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
58
|
'address': json['address'] == null ? undefined : json['address'],
|
|
57
59
|
'latitude': json['latitude'],
|
|
58
60
|
'longitude': json['longitude'],
|
|
59
|
-
'tagLine': json['tagLine']
|
|
61
|
+
'tagLine': json['tagLine'],
|
|
60
62
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
61
63
|
'specialDates': json['specialDates'],
|
|
62
64
|
'suppliers': json['suppliers'],
|
|
@@ -33,8 +33,6 @@ 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;
|
|
38
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
37
|
return false;
|
|
40
38
|
return true;
|
|
@@ -53,7 +51,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
51
|
'phone': json['phone'],
|
|
54
52
|
'longitude': json['longitude'],
|
|
55
53
|
'latitude': json['latitude'],
|
|
56
|
-
'tagLine': json['tag_line'],
|
|
54
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
57
55
|
'email': json['email'],
|
|
58
56
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
59
57
|
};
|
|
@@ -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 (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -62,7 +60,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
60
|
'phone': json['phone'],
|
|
63
61
|
'longitude': json['longitude'],
|
|
64
62
|
'latitude': json['latitude'],
|
|
65
|
-
'tagLine': json['tag_line'],
|
|
63
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
66
64
|
'email': json['email'],
|
|
67
65
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
68
66
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateResource(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;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['display_start_date'],
|
|
53
51
|
'displayEndDate': json['display_end_date'],
|
|
@@ -10,8 +10,8 @@ Name | Type
|
|
|
10
10
|
`purchasedDate` | Date
|
|
11
11
|
`customer` | [ProductRegistrationCustomerResource](ProductRegistrationCustomerResource.md)
|
|
12
12
|
`address` | [AddressResource](AddressResource.md)
|
|
13
|
-
`productChildren` |
|
|
14
|
-
`assets` |
|
|
13
|
+
`productChildren` | [Array<ProductRegistrationProductChildResource>](ProductRegistrationProductChildResource.md)
|
|
14
|
+
`assets` | [Array<ProductRegistrationAssetResource>](ProductRegistrationAssetResource.md)
|
|
15
15
|
`omnisendId` | string
|
|
16
16
|
`omnisendSyncStatus` | string
|
|
17
17
|
`createdAt` | Date
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -73,8 +73,8 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
76
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
77
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
78
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
79
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
80
80
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -93,9 +93,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
93
93
|
}
|
|
94
94
|
return {
|
|
95
95
|
|
|
96
|
-
'company': json['company']
|
|
96
|
+
'company': json['company'],
|
|
97
97
|
'line1': json['line1'],
|
|
98
|
-
'line2': json['line2'],
|
|
98
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
99
99
|
'postcode': json['postcode'],
|
|
100
100
|
'suburb': json['suburb'],
|
|
101
101
|
'country': json['country'],
|
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -42,7 +42,7 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
line2
|
|
45
|
+
line2: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -79,8 +79,8 @@ 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;
|
|
83
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
84
84
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
85
85
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
86
86
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -100,9 +100,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
100
100
|
return {
|
|
101
101
|
|
|
102
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
-
'company': json['company'],
|
|
103
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
104
104
|
'line1': json['line_1'],
|
|
105
|
-
'line2': json['line_2']
|
|
105
|
+
'line2': json['line_2'],
|
|
106
106
|
'postcode': json['postcode'],
|
|
107
107
|
'suburb': json['suburb'],
|
|
108
108
|
'country': json['country'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
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']),
|
|
@@ -35,10 +35,10 @@ export interface ProductRegistrationAssetResource {
|
|
|
35
35
|
id?: number | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof ProductRegistrationAssetResource
|
|
40
40
|
*/
|
|
41
|
-
type:
|
|
41
|
+
type: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {AssetResource}
|
|
@@ -13,6 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ProductRegistrationAssetResource } from './ProductRegistrationAssetResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductRegistrationAssetResourceFromJSON,
|
|
19
|
+
ProductRegistrationAssetResourceFromJSONTyped,
|
|
20
|
+
ProductRegistrationAssetResourceToJSON,
|
|
21
|
+
ProductRegistrationAssetResourceToJSONTyped,
|
|
22
|
+
} from './ProductRegistrationAssetResource';
|
|
23
|
+
import type { ProductRegistrationProductChildResource } from './ProductRegistrationProductChildResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductRegistrationProductChildResourceFromJSON,
|
|
26
|
+
ProductRegistrationProductChildResourceFromJSONTyped,
|
|
27
|
+
ProductRegistrationProductChildResourceToJSON,
|
|
28
|
+
ProductRegistrationProductChildResourceToJSONTyped,
|
|
29
|
+
} from './ProductRegistrationProductChildResource';
|
|
16
30
|
import type { AddressResource } from './AddressResource';
|
|
17
31
|
import {
|
|
18
32
|
AddressResourceFromJSON,
|
|
@@ -60,16 +74,16 @@ export interface ProductRegistrationResource {
|
|
|
60
74
|
address: AddressResource | null;
|
|
61
75
|
/**
|
|
62
76
|
*
|
|
63
|
-
* @type {
|
|
77
|
+
* @type {Array<ProductRegistrationProductChildResource>}
|
|
64
78
|
* @memberof ProductRegistrationResource
|
|
65
79
|
*/
|
|
66
|
-
productChildren:
|
|
80
|
+
productChildren: Array<ProductRegistrationProductChildResource> | null;
|
|
67
81
|
/**
|
|
68
82
|
*
|
|
69
|
-
* @type {
|
|
83
|
+
* @type {Array<ProductRegistrationAssetResource>}
|
|
70
84
|
* @memberof ProductRegistrationResource
|
|
71
85
|
*/
|
|
72
|
-
assets:
|
|
86
|
+
assets: Array<ProductRegistrationAssetResource> | null;
|
|
73
87
|
/**
|
|
74
88
|
*
|
|
75
89
|
* @type {string}
|
|
@@ -122,8 +136,8 @@ export function ProductRegistrationResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
122
136
|
'purchasedDate': (new Date(json['purchasedDate'])),
|
|
123
137
|
'customer': ProductRegistrationCustomerResourceFromJSON(json['customer']),
|
|
124
138
|
'address': AddressResourceFromJSON(json['address']),
|
|
125
|
-
'productChildren': json['productChildren'],
|
|
126
|
-
'assets': json['assets'],
|
|
139
|
+
'productChildren': (json['productChildren'] == null ? null : (json['productChildren'] as Array<any>).map(ProductRegistrationProductChildResourceFromJSON)),
|
|
140
|
+
'assets': (json['assets'] == null ? null : (json['assets'] as Array<any>).map(ProductRegistrationAssetResourceFromJSON)),
|
|
127
141
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
128
142
|
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
129
143
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -146,8 +160,8 @@ export function ProductRegistrationResourceToJSONTyped(value?: ProductRegistrati
|
|
|
146
160
|
'purchasedDate': value['purchasedDate'].toISOString(),
|
|
147
161
|
'customer': ProductRegistrationCustomerResourceToJSON(value['customer']),
|
|
148
162
|
'address': AddressResourceToJSON(value['address']),
|
|
149
|
-
'productChildren': value['productChildren'],
|
|
150
|
-
'assets': value['assets'],
|
|
163
|
+
'productChildren': (value['productChildren'] == null ? null : (value['productChildren'] as Array<any>).map(ProductRegistrationProductChildResourceToJSON)),
|
|
164
|
+
'assets': (value['assets'] == null ? null : (value['assets'] as Array<any>).map(ProductRegistrationAssetResourceToJSON)),
|
|
151
165
|
'omnisendId': value['omnisendId'],
|
|
152
166
|
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
153
167
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
@@ -72,7 +72,7 @@ export interface StoreFrontendResource {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof StoreFrontendResource
|
|
74
74
|
*/
|
|
75
|
-
tagLine
|
|
75
|
+
tagLine: string;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {string}
|
|
@@ -103,6 +103,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
103
103
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
104
104
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
105
105
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
106
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
106
107
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
107
108
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
108
109
|
return true;
|
|
@@ -126,7 +127,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
126
127
|
'address': json['address'] == null ? undefined : json['address'],
|
|
127
128
|
'latitude': json['latitude'],
|
|
128
129
|
'longitude': json['longitude'],
|
|
129
|
-
'tagLine': json['tagLine']
|
|
130
|
+
'tagLine': json['tagLine'],
|
|
130
131
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
131
132
|
'specialDates': json['specialDates'],
|
|
132
133
|
'suppliers': json['suppliers'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -92,7 +92,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
92
92
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
93
93
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
94
94
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
95
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
96
95
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
97
96
|
return true;
|
|
98
97
|
}
|
|
@@ -113,7 +112,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
113
112
|
'phone': json['phone'],
|
|
114
113
|
'longitude': json['longitude'],
|
|
115
114
|
'latitude': json['latitude'],
|
|
116
|
-
'tagLine': json['tag_line'],
|
|
115
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
117
116
|
'email': json['email'],
|
|
118
117
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
119
118
|
};
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -131,7 +131,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
131
131
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
132
132
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
133
133
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
134
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
135
134
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
136
135
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
137
136
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
@@ -155,7 +154,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
155
154
|
'phone': json['phone'],
|
|
156
155
|
'longitude': json['longitude'],
|
|
157
156
|
'latitude': json['latitude'],
|
|
158
|
-
'tagLine': json['tag_line'],
|
|
157
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
159
158
|
'email': json['email'],
|
|
160
159
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
161
160
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
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;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['display_start_date'],
|
|
95
94
|
'displayEndDate': json['display_end_date'],
|