@digital8/lighting-illusions-ts-sdk 0.0.1563 → 0.0.1565
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/.openapi-generator/FILES +40 -4
- package/README.md +26 -4
- package/dist/apis/ProductRegistrationApi.d.ts +95 -0
- package/dist/apis/ProductRegistrationApi.js +377 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/GetAllProductRegistrationRequest.d.ts +88 -0
- package/dist/models/GetAllProductRegistrationRequest.js +80 -0
- package/dist/models/GlobalSearchProductResource.d.ts +6 -0
- package/dist/models/GlobalSearchProductResource.js +4 -0
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRegistrationRequest.d.ts +131 -0
- package/dist/models/IndexProductRegistrationRequest.js +98 -0
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/ListAssetsProductRegistrationRequest.js +83 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +6 -0
- package/dist/models/ProductChildListResource.js +2 -0
- package/dist/models/ProductRangeFrontendResource.d.ts +0 -7
- package/dist/models/ProductRangeFrontendResource.js +0 -5
- package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
- package/dist/models/ProductRegistrationAssetResource.js +58 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
- package/dist/models/ProductRegistrationAssetType.js +51 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +62 -0
- package/dist/models/ProductRegistrationCustomerResource.js +65 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +57 -0
- package/dist/models/ProductRegistrationListResource.js +64 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
- package/dist/models/ProductRegistrationLiteResource.js +53 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationProductChildResource.d.ts +50 -0
- package/dist/models/ProductRegistrationProductChildResource.js +63 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationResource.d.ts +90 -0
- package/dist/models/ProductRegistrationResource.js +81 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResultResource.d.ts +6 -0
- package/dist/models/ProductSearchResultResource.js +4 -0
- 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 +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/index.d.ts +19 -2
- package/dist/models/index.js +19 -2
- package/docs/GetAllProductRegistrationRequest.md +46 -0
- package/docs/GlobalSearchProductResource.md +2 -0
- package/docs/IndexProductRegistrationRequest.md +58 -0
- package/docs/ListAssetsProductRegistrationRequest.md +52 -0
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/PaginatedProductRegistrationListResourceResponse.md +36 -0
- package/docs/PaginatedProductRegistrationResourceResponse.md +36 -0
- package/docs/ProductChildListResource.md +2 -0
- package/docs/ProductRangeFrontendResource.md +0 -2
- package/docs/ProductRegistrationApi.md +344 -0
- package/docs/ProductRegistrationAssetResource.md +38 -0
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +34 -0
- package/docs/{ModelAttributeFrontendResource.md → ProductRegistrationAssetType.md} +4 -8
- package/docs/ProductRegistrationCustomerResource.md +44 -0
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationListResource.md +42 -0
- package/docs/ProductRegistrationListResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationLiteResource.md +36 -0
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationProductChildResource.md +40 -0
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationResource.md +52 -0
- package/docs/{ModelAttributeFrontendResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/ProductSearchResultResource.md +2 -0
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +297 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/GetAllProductRegistrationRequest.ts +137 -0
- package/src/models/GlobalSearchProductResource.ts +9 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRegistrationRequest.ts +193 -0
- package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +8 -0
- package/src/models/ProductRangeFrontendResource.ts +0 -16
- package/src/models/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationAssetType.ts +53 -0
- package/src/models/ProductRegistrationCustomerResource.ts +108 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +108 -0
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationLiteResource.ts +74 -0
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationProductChildResource.ts +93 -0
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationResource.ts +171 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResultResource.ts +9 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +2 -3
- package/src/models/index.ts +19 -2
- package/dist/models/ModelAttributeFrontendResource.d.ts +0 -38
- package/dist/models/ModelAttributeFrontendResource.js +0 -55
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.js +0 -50
- package/src/models/ModelAttributeFrontendResource.ts +0 -75
- package/src/models/ModelAttributeFrontendResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,81 @@
|
|
|
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.instanceOfProductRegistrationResource = instanceOfProductRegistrationResource;
|
|
17
|
+
exports.ProductRegistrationResourceFromJSON = ProductRegistrationResourceFromJSON;
|
|
18
|
+
exports.ProductRegistrationResourceFromJSONTyped = ProductRegistrationResourceFromJSONTyped;
|
|
19
|
+
exports.ProductRegistrationResourceToJSON = ProductRegistrationResourceToJSON;
|
|
20
|
+
exports.ProductRegistrationResourceToJSONTyped = ProductRegistrationResourceToJSONTyped;
|
|
21
|
+
var ProductRegistrationAssetResource_1 = require("./ProductRegistrationAssetResource");
|
|
22
|
+
var ProductRegistrationProductChildResource_1 = require("./ProductRegistrationProductChildResource");
|
|
23
|
+
var AddressResource_1 = require("./AddressResource");
|
|
24
|
+
var ProductRegistrationCustomerResource_1 = require("./ProductRegistrationCustomerResource");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ProductRegistrationResource interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfProductRegistrationResource(value) {
|
|
29
|
+
if (!('purchasedDate' in value) || value['purchasedDate'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('customer' in value) || value['customer'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('productChildren' in value) || value['productChildren'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('assets' in value) || value['assets'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function ProductRegistrationResourceFromJSON(json) {
|
|
42
|
+
return ProductRegistrationResourceFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ProductRegistrationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
+
'purchasedDate': (new Date(json['purchasedDate'])),
|
|
51
|
+
'customer': (0, ProductRegistrationCustomerResource_1.ProductRegistrationCustomerResourceFromJSON)(json['customer']),
|
|
52
|
+
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
53
|
+
'productChildren': (json['productChildren'] == null ? null : json['productChildren'].map(ProductRegistrationProductChildResource_1.ProductRegistrationProductChildResourceFromJSON)),
|
|
54
|
+
'assets': (json['assets'] == null ? null : json['assets'].map(ProductRegistrationAssetResource_1.ProductRegistrationAssetResourceFromJSON)),
|
|
55
|
+
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
56
|
+
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
57
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
58
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function ProductRegistrationResourceToJSON(json) {
|
|
62
|
+
return ProductRegistrationResourceToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function ProductRegistrationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
65
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'purchasedDate': value['purchasedDate'].toISOString(),
|
|
72
|
+
'customer': (0, ProductRegistrationCustomerResource_1.ProductRegistrationCustomerResourceToJSON)(value['customer']),
|
|
73
|
+
'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
|
|
74
|
+
'productChildren': (value['productChildren'] == null ? null : value['productChildren'].map(ProductRegistrationProductChildResource_1.ProductRegistrationProductChildResourceToJSON)),
|
|
75
|
+
'assets': (value['assets'] == null ? null : value['assets'].map(ProductRegistrationAssetResource_1.ProductRegistrationAssetResourceToJSON)),
|
|
76
|
+
'omnisendId': value['omnisendId'],
|
|
77
|
+
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
78
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
79
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -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 { ProductRegistrationResource } from './ProductRegistrationResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductRegistrationResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductRegistrationResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductRegistrationResource>}
|
|
22
|
+
* @memberof ProductRegistrationResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductRegistrationResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductRegistrationResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductRegistrationResourceArrayResponse(value: object): value is ProductRegistrationResourceArrayResponse;
|
|
30
|
+
export declare function ProductRegistrationResourceArrayResponseFromJSON(json: any): ProductRegistrationResourceArrayResponse;
|
|
31
|
+
export declare function ProductRegistrationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationResourceArrayResponse;
|
|
32
|
+
export declare function ProductRegistrationResourceArrayResponseToJSON(json: any): ProductRegistrationResourceArrayResponse;
|
|
33
|
+
export declare function ProductRegistrationResourceArrayResponseToJSONTyped(value?: ProductRegistrationResourceArrayResponse | 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.instanceOfProductRegistrationResourceArrayResponse = instanceOfProductRegistrationResourceArrayResponse;
|
|
17
|
+
exports.ProductRegistrationResourceArrayResponseFromJSON = ProductRegistrationResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductRegistrationResourceArrayResponseFromJSONTyped = ProductRegistrationResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductRegistrationResourceArrayResponseToJSON = ProductRegistrationResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductRegistrationResourceArrayResponseToJSONTyped = ProductRegistrationResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductRegistrationResource_1 = require("./ProductRegistrationResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductRegistrationResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductRegistrationResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductRegistrationResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductRegistrationResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductRegistrationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductRegistrationResource_1.ProductRegistrationResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductRegistrationResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductRegistrationResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductRegistrationResourceArrayResponseToJSONTyped(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(ProductRegistrationResource_1.ProductRegistrationResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -28,6 +28,8 @@ function instanceOfProductSearchResultResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('model' in value) || value['model'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('modelRaw' in value) || value['modelRaw'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('barcode' in value) || value['barcode'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -69,6 +71,7 @@ function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
71
|
'id': json['id'],
|
|
70
72
|
'sku': json['sku'],
|
|
71
73
|
'model': json['model'],
|
|
74
|
+
'modelRaw': json['modelRaw'],
|
|
72
75
|
'barcode': json['barcode'],
|
|
73
76
|
'name': json['name'],
|
|
74
77
|
'slug': json['slug'],
|
|
@@ -98,6 +101,7 @@ function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
98
101
|
'id': value['id'],
|
|
99
102
|
'sku': value['sku'],
|
|
100
103
|
'model': value['model'],
|
|
104
|
+
'modelRaw': value['modelRaw'],
|
|
101
105
|
'barcode': value['barcode'],
|
|
102
106
|
'name': value['name'],
|
|
103
107
|
'slug': value['slug'],
|
|
@@ -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,6 +33,8 @@ 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;
|
|
38
40
|
return true;
|
|
@@ -51,7 +53,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
53
|
'phone': json['phone'],
|
|
52
54
|
'longitude': json['longitude'],
|
|
53
55
|
'latitude': json['latitude'],
|
|
54
|
-
'tagLine': json['tag_line']
|
|
56
|
+
'tagLine': json['tag_line'],
|
|
55
57
|
'email': json['email'],
|
|
56
58
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
57
59
|
};
|
|
@@ -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)),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export * from './GetAllOverlayTemplateRequest';
|
|
|
90
90
|
export * from './GetAllProductCategoryRequest';
|
|
91
91
|
export * from './GetAllProductChildRequest';
|
|
92
92
|
export * from './GetAllProductRangeRequest';
|
|
93
|
+
export * from './GetAllProductRegistrationRequest';
|
|
93
94
|
export * from './GetAllProductRequest';
|
|
94
95
|
export * from './GetAllProductTypeRequest';
|
|
95
96
|
export * from './GetAllStoreRequest';
|
|
@@ -117,6 +118,7 @@ export * from './IndexOverlayTemplateRequest';
|
|
|
117
118
|
export * from './IndexProductCategoryRequest';
|
|
118
119
|
export * from './IndexProductChildRequest';
|
|
119
120
|
export * from './IndexProductRangeRequest';
|
|
121
|
+
export * from './IndexProductRegistrationRequest';
|
|
120
122
|
export * from './IndexProductRequest';
|
|
121
123
|
export * from './IndexProductTypeRequest';
|
|
122
124
|
export * from './IndexSiteNotificationRequest';
|
|
@@ -130,8 +132,7 @@ export * from './LabelLiteResource';
|
|
|
130
132
|
export * from './LabelLiteResourceArrayResponse';
|
|
131
133
|
export * from './LabelResource';
|
|
132
134
|
export * from './LabelResourceArrayResponse';
|
|
133
|
-
export * from './
|
|
134
|
-
export * from './ModelAttributeFrontendResourceArrayResponse';
|
|
135
|
+
export * from './ListAssetsProductRegistrationRequest';
|
|
135
136
|
export * from './ModelAttributeListResource';
|
|
136
137
|
export * from './ModelAttributeListResourceArrayResponse';
|
|
137
138
|
export * from './ModelAttributeResource';
|
|
@@ -178,6 +179,9 @@ export * from './PaginatedProductRangeListResourceResponse';
|
|
|
178
179
|
export * from './PaginatedProductRangeLiteResourceResponse';
|
|
179
180
|
export * from './PaginatedProductRangeResourceResponse';
|
|
180
181
|
export * from './PaginatedProductRangeSearchResultResourceResponse';
|
|
182
|
+
export * from './PaginatedProductRegistrationAssetResourceResponse';
|
|
183
|
+
export * from './PaginatedProductRegistrationListResourceResponse';
|
|
184
|
+
export * from './PaginatedProductRegistrationResourceResponse';
|
|
181
185
|
export * from './PaginatedProductResourceResponse';
|
|
182
186
|
export * from './PaginatedProductSearchResultResourceResponse';
|
|
183
187
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
@@ -260,6 +264,19 @@ export * from './ProductRangeSiteDetailResource';
|
|
|
260
264
|
export * from './ProductRangeSiteDetailResourceArrayResponse';
|
|
261
265
|
export * from './ProductRangeSortBy';
|
|
262
266
|
export * from './ProductRating';
|
|
267
|
+
export * from './ProductRegistrationAssetResource';
|
|
268
|
+
export * from './ProductRegistrationAssetResourceArrayResponse';
|
|
269
|
+
export * from './ProductRegistrationAssetType';
|
|
270
|
+
export * from './ProductRegistrationCustomerResource';
|
|
271
|
+
export * from './ProductRegistrationCustomerResourceArrayResponse';
|
|
272
|
+
export * from './ProductRegistrationListResource';
|
|
273
|
+
export * from './ProductRegistrationListResourceArrayResponse';
|
|
274
|
+
export * from './ProductRegistrationLiteResource';
|
|
275
|
+
export * from './ProductRegistrationLiteResourceArrayResponse';
|
|
276
|
+
export * from './ProductRegistrationProductChildResource';
|
|
277
|
+
export * from './ProductRegistrationProductChildResourceArrayResponse';
|
|
278
|
+
export * from './ProductRegistrationResource';
|
|
279
|
+
export * from './ProductRegistrationResourceArrayResponse';
|
|
263
280
|
export * from './ProductResource';
|
|
264
281
|
export * from './ProductResourceArrayResponse';
|
|
265
282
|
export * from './ProductSearchResponseResource';
|
package/dist/models/index.js
CHANGED
|
@@ -108,6 +108,7 @@ __exportStar(require("./GetAllOverlayTemplateRequest"), exports);
|
|
|
108
108
|
__exportStar(require("./GetAllProductCategoryRequest"), exports);
|
|
109
109
|
__exportStar(require("./GetAllProductChildRequest"), exports);
|
|
110
110
|
__exportStar(require("./GetAllProductRangeRequest"), exports);
|
|
111
|
+
__exportStar(require("./GetAllProductRegistrationRequest"), exports);
|
|
111
112
|
__exportStar(require("./GetAllProductRequest"), exports);
|
|
112
113
|
__exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
113
114
|
__exportStar(require("./GetAllStoreRequest"), exports);
|
|
@@ -135,6 +136,7 @@ __exportStar(require("./IndexOverlayTemplateRequest"), exports);
|
|
|
135
136
|
__exportStar(require("./IndexProductCategoryRequest"), exports);
|
|
136
137
|
__exportStar(require("./IndexProductChildRequest"), exports);
|
|
137
138
|
__exportStar(require("./IndexProductRangeRequest"), exports);
|
|
139
|
+
__exportStar(require("./IndexProductRegistrationRequest"), exports);
|
|
138
140
|
__exportStar(require("./IndexProductRequest"), exports);
|
|
139
141
|
__exportStar(require("./IndexProductTypeRequest"), exports);
|
|
140
142
|
__exportStar(require("./IndexSiteNotificationRequest"), exports);
|
|
@@ -148,8 +150,7 @@ __exportStar(require("./LabelLiteResource"), exports);
|
|
|
148
150
|
__exportStar(require("./LabelLiteResourceArrayResponse"), exports);
|
|
149
151
|
__exportStar(require("./LabelResource"), exports);
|
|
150
152
|
__exportStar(require("./LabelResourceArrayResponse"), exports);
|
|
151
|
-
__exportStar(require("./
|
|
152
|
-
__exportStar(require("./ModelAttributeFrontendResourceArrayResponse"), exports);
|
|
153
|
+
__exportStar(require("./ListAssetsProductRegistrationRequest"), exports);
|
|
153
154
|
__exportStar(require("./ModelAttributeListResource"), exports);
|
|
154
155
|
__exportStar(require("./ModelAttributeListResourceArrayResponse"), exports);
|
|
155
156
|
__exportStar(require("./ModelAttributeResource"), exports);
|
|
@@ -196,6 +197,9 @@ __exportStar(require("./PaginatedProductRangeListResourceResponse"), exports);
|
|
|
196
197
|
__exportStar(require("./PaginatedProductRangeLiteResourceResponse"), exports);
|
|
197
198
|
__exportStar(require("./PaginatedProductRangeResourceResponse"), exports);
|
|
198
199
|
__exportStar(require("./PaginatedProductRangeSearchResultResourceResponse"), exports);
|
|
200
|
+
__exportStar(require("./PaginatedProductRegistrationAssetResourceResponse"), exports);
|
|
201
|
+
__exportStar(require("./PaginatedProductRegistrationListResourceResponse"), exports);
|
|
202
|
+
__exportStar(require("./PaginatedProductRegistrationResourceResponse"), exports);
|
|
199
203
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
200
204
|
__exportStar(require("./PaginatedProductSearchResultResourceResponse"), exports);
|
|
201
205
|
__exportStar(require("./PaginatedProductTypeListResourceResponse"), exports);
|
|
@@ -278,6 +282,19 @@ __exportStar(require("./ProductRangeSiteDetailResource"), exports);
|
|
|
278
282
|
__exportStar(require("./ProductRangeSiteDetailResourceArrayResponse"), exports);
|
|
279
283
|
__exportStar(require("./ProductRangeSortBy"), exports);
|
|
280
284
|
__exportStar(require("./ProductRating"), exports);
|
|
285
|
+
__exportStar(require("./ProductRegistrationAssetResource"), exports);
|
|
286
|
+
__exportStar(require("./ProductRegistrationAssetResourceArrayResponse"), exports);
|
|
287
|
+
__exportStar(require("./ProductRegistrationAssetType"), exports);
|
|
288
|
+
__exportStar(require("./ProductRegistrationCustomerResource"), exports);
|
|
289
|
+
__exportStar(require("./ProductRegistrationCustomerResourceArrayResponse"), exports);
|
|
290
|
+
__exportStar(require("./ProductRegistrationListResource"), exports);
|
|
291
|
+
__exportStar(require("./ProductRegistrationListResourceArrayResponse"), exports);
|
|
292
|
+
__exportStar(require("./ProductRegistrationLiteResource"), exports);
|
|
293
|
+
__exportStar(require("./ProductRegistrationLiteResourceArrayResponse"), exports);
|
|
294
|
+
__exportStar(require("./ProductRegistrationProductChildResource"), exports);
|
|
295
|
+
__exportStar(require("./ProductRegistrationProductChildResourceArrayResponse"), exports);
|
|
296
|
+
__exportStar(require("./ProductRegistrationResource"), exports);
|
|
297
|
+
__exportStar(require("./ProductRegistrationResourceArrayResponse"), exports);
|
|
281
298
|
__exportStar(require("./ProductResource"), exports);
|
|
282
299
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
283
300
|
__exportStar(require("./ProductSearchResponseResource"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# GetAllProductRegistrationRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`relatedId` | number
|
|
13
|
+
`relatedType` | string
|
|
14
|
+
`includesRelations` | boolean
|
|
15
|
+
`siteId` | Array<string>
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { GetAllProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"search": null,
|
|
25
|
+
"sortBy": null,
|
|
26
|
+
"sortDirection": null,
|
|
27
|
+
"relatedId": null,
|
|
28
|
+
"relatedType": null,
|
|
29
|
+
"includesRelations": null,
|
|
30
|
+
"siteId": null,
|
|
31
|
+
} satisfies GetAllProductRegistrationRequest
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetAllProductRegistrationRequest
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
11
|
`model` | string
|
|
12
|
+
`modelRaw` | string
|
|
12
13
|
`slug` | string
|
|
13
14
|
`sku` | string
|
|
14
15
|
`thumbnail` | string
|
|
@@ -28,6 +29,7 @@ const example = {
|
|
|
28
29
|
"id": null,
|
|
29
30
|
"name": null,
|
|
30
31
|
"model": null,
|
|
32
|
+
"modelRaw": null,
|
|
31
33
|
"slug": null,
|
|
32
34
|
"sku": null,
|
|
33
35
|
"thumbnail": null,
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
# IndexProductRegistrationRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`perPage` | number
|
|
13
|
+
`page` | number
|
|
14
|
+
`siteId` | Array<string>
|
|
15
|
+
`beforePurchasedDate` | Date
|
|
16
|
+
`afterPurchasedDate` | Date
|
|
17
|
+
`beforeCreatedAt` | Date
|
|
18
|
+
`afterCreatedAt` | Date
|
|
19
|
+
`relatedId` | number
|
|
20
|
+
`relatedType` | string
|
|
21
|
+
`includesRelations` | boolean
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import type { IndexProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
27
|
+
|
|
28
|
+
// TODO: Update the object below with actual values
|
|
29
|
+
const example = {
|
|
30
|
+
"search": null,
|
|
31
|
+
"sortBy": null,
|
|
32
|
+
"sortDirection": null,
|
|
33
|
+
"perPage": null,
|
|
34
|
+
"page": null,
|
|
35
|
+
"siteId": null,
|
|
36
|
+
"beforePurchasedDate": null,
|
|
37
|
+
"afterPurchasedDate": null,
|
|
38
|
+
"beforeCreatedAt": null,
|
|
39
|
+
"afterCreatedAt": null,
|
|
40
|
+
"relatedId": null,
|
|
41
|
+
"relatedType": null,
|
|
42
|
+
"includesRelations": null,
|
|
43
|
+
} satisfies IndexProductRegistrationRequest
|
|
44
|
+
|
|
45
|
+
console.log(example)
|
|
46
|
+
|
|
47
|
+
// Convert the instance to a JSON string
|
|
48
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
49
|
+
console.log(exampleJSON)
|
|
50
|
+
|
|
51
|
+
// Parse the JSON string back to an object
|
|
52
|
+
const exampleParsed = JSON.parse(exampleJSON) as IndexProductRegistrationRequest
|
|
53
|
+
console.log(exampleParsed)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
57
|
+
|
|
58
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
# ListAssetsProductRegistrationRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`perPage` | number
|
|
13
|
+
`page` | number
|
|
14
|
+
`productRegistrationId` | Array<string>
|
|
15
|
+
`type` | Array<string>
|
|
16
|
+
`relatedId` | number
|
|
17
|
+
`relatedType` | string
|
|
18
|
+
`includesRelations` | boolean
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { ListAssetsProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"search": null,
|
|
28
|
+
"sortBy": null,
|
|
29
|
+
"sortDirection": null,
|
|
30
|
+
"perPage": null,
|
|
31
|
+
"page": null,
|
|
32
|
+
"productRegistrationId": null,
|
|
33
|
+
"type": null,
|
|
34
|
+
"relatedId": null,
|
|
35
|
+
"relatedType": null,
|
|
36
|
+
"includesRelations": null,
|
|
37
|
+
} satisfies ListAssetsProductRegistrationRequest
|
|
38
|
+
|
|
39
|
+
console.log(example)
|
|
40
|
+
|
|
41
|
+
// Convert the instance to a JSON string
|
|
42
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
+
console.log(exampleJSON)
|
|
44
|
+
|
|
45
|
+
// Parse the JSON string back to an object
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as ListAssetsProductRegistrationRequest
|
|
47
|
+
console.log(exampleParsed)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedProductRegistrationAssetResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductRegistrationAssetResource>](ProductRegistrationAssetResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedProductRegistrationAssetResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedProductRegistrationAssetResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedProductRegistrationAssetResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedProductRegistrationListResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductRegistrationListResource>](ProductRegistrationListResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedProductRegistrationListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedProductRegistrationListResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedProductRegistrationListResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|