@digital8/lighting-illusions-ts-sdk 0.0.1527 → 0.0.1529
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 -0
- package/README.md +25 -2
- package/dist/apis/ProductRegistrationApi.d.ts +79 -0
- package/dist/apis/ProductRegistrationApi.js +316 -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 +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/GetAllProductRegistrationRequest.d.ts +88 -0
- package/dist/models/GetAllProductRegistrationRequest.js +80 -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/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/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/docs/GetAllProductRegistrationRequest.md +46 -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/ProductRangeFrontendResource.md +0 -2
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/ProductRegistrationAssetResource.md +38 -0
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationAssetType.md +32 -0
- 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/ProductRegistrationResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +2 -3
- package/src/models/GetAllProductRegistrationRequest.ts +137 -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/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/StoreFrontendResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/index.ts +19 -0
|
@@ -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 { ProductRegistrationProductChildResource } from './ProductRegistrationProductChildResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductRegistrationProductChildResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductRegistrationProductChildResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductRegistrationProductChildResource>}
|
|
22
|
+
* @memberof ProductRegistrationProductChildResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductRegistrationProductChildResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductRegistrationProductChildResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductRegistrationProductChildResourceArrayResponse(value: object): value is ProductRegistrationProductChildResourceArrayResponse;
|
|
30
|
+
export declare function ProductRegistrationProductChildResourceArrayResponseFromJSON(json: any): ProductRegistrationProductChildResourceArrayResponse;
|
|
31
|
+
export declare function ProductRegistrationProductChildResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationProductChildResourceArrayResponse;
|
|
32
|
+
export declare function ProductRegistrationProductChildResourceArrayResponseToJSON(json: any): ProductRegistrationProductChildResourceArrayResponse;
|
|
33
|
+
export declare function ProductRegistrationProductChildResourceArrayResponseToJSONTyped(value?: ProductRegistrationProductChildResourceArrayResponse | 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.instanceOfProductRegistrationProductChildResourceArrayResponse = instanceOfProductRegistrationProductChildResourceArrayResponse;
|
|
17
|
+
exports.ProductRegistrationProductChildResourceArrayResponseFromJSON = ProductRegistrationProductChildResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductRegistrationProductChildResourceArrayResponseFromJSONTyped = ProductRegistrationProductChildResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductRegistrationProductChildResourceArrayResponseToJSON = ProductRegistrationProductChildResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductRegistrationProductChildResourceArrayResponseToJSONTyped = ProductRegistrationProductChildResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductRegistrationProductChildResource_1 = require("./ProductRegistrationProductChildResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductRegistrationProductChildResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductRegistrationProductChildResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductRegistrationProductChildResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductRegistrationProductChildResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductRegistrationProductChildResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductRegistrationProductChildResource_1.ProductRegistrationProductChildResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductRegistrationProductChildResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductRegistrationProductChildResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductRegistrationProductChildResourceArrayResponseToJSONTyped(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(ProductRegistrationProductChildResource_1.ProductRegistrationProductChildResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { ProductRegistrationAssetResource } from './ProductRegistrationAssetResource';
|
|
13
|
+
import type { ProductRegistrationProductChildResource } from './ProductRegistrationProductChildResource';
|
|
14
|
+
import type { AddressResource } from './AddressResource';
|
|
15
|
+
import type { ProductRegistrationCustomerResource } from './ProductRegistrationCustomerResource';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ProductRegistrationResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductRegistrationResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ProductRegistrationResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof ProductRegistrationResource
|
|
32
|
+
*/
|
|
33
|
+
purchasedDate: Date;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ProductRegistrationCustomerResource}
|
|
37
|
+
* @memberof ProductRegistrationResource
|
|
38
|
+
*/
|
|
39
|
+
customer: ProductRegistrationCustomerResource | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {AddressResource}
|
|
43
|
+
* @memberof ProductRegistrationResource
|
|
44
|
+
*/
|
|
45
|
+
address: AddressResource | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<ProductRegistrationProductChildResource>}
|
|
49
|
+
* @memberof ProductRegistrationResource
|
|
50
|
+
*/
|
|
51
|
+
productChildren: Array<ProductRegistrationProductChildResource> | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<ProductRegistrationAssetResource>}
|
|
55
|
+
* @memberof ProductRegistrationResource
|
|
56
|
+
*/
|
|
57
|
+
assets: Array<ProductRegistrationAssetResource> | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ProductRegistrationResource
|
|
62
|
+
*/
|
|
63
|
+
omnisendId?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ProductRegistrationResource
|
|
68
|
+
*/
|
|
69
|
+
omnisendSyncStatus?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof ProductRegistrationResource
|
|
74
|
+
*/
|
|
75
|
+
createdAt?: Date | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof ProductRegistrationResource
|
|
80
|
+
*/
|
|
81
|
+
updatedAt?: Date | null;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the ProductRegistrationResource interface.
|
|
85
|
+
*/
|
|
86
|
+
export declare function instanceOfProductRegistrationResource(value: object): value is ProductRegistrationResource;
|
|
87
|
+
export declare function ProductRegistrationResourceFromJSON(json: any): ProductRegistrationResource;
|
|
88
|
+
export declare function ProductRegistrationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationResource;
|
|
89
|
+
export declare function ProductRegistrationResourceToJSON(json: any): ProductRegistrationResource;
|
|
90
|
+
export declare function ProductRegistrationResourceToJSONTyped(value?: ProductRegistrationResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
}
|
|
@@ -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'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,8 +26,6 @@ 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;
|
|
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 StoreSpecialDateFrontendResourceFromJSONTyped(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['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
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,6 +132,7 @@ export * from './LabelLiteResource';
|
|
|
130
132
|
export * from './LabelLiteResourceArrayResponse';
|
|
131
133
|
export * from './LabelResource';
|
|
132
134
|
export * from './LabelResourceArrayResponse';
|
|
135
|
+
export * from './ListAssetsProductRegistrationRequest';
|
|
133
136
|
export * from './ModelAttributeListResource';
|
|
134
137
|
export * from './ModelAttributeListResourceArrayResponse';
|
|
135
138
|
export * from './ModelAttributeResource';
|
|
@@ -176,6 +179,9 @@ export * from './PaginatedProductRangeListResourceResponse';
|
|
|
176
179
|
export * from './PaginatedProductRangeLiteResourceResponse';
|
|
177
180
|
export * from './PaginatedProductRangeResourceResponse';
|
|
178
181
|
export * from './PaginatedProductRangeSearchResultResourceResponse';
|
|
182
|
+
export * from './PaginatedProductRegistrationAssetResourceResponse';
|
|
183
|
+
export * from './PaginatedProductRegistrationListResourceResponse';
|
|
184
|
+
export * from './PaginatedProductRegistrationResourceResponse';
|
|
179
185
|
export * from './PaginatedProductResourceResponse';
|
|
180
186
|
export * from './PaginatedProductSearchResultResourceResponse';
|
|
181
187
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
@@ -258,6 +264,19 @@ export * from './ProductRangeSiteDetailResource';
|
|
|
258
264
|
export * from './ProductRangeSiteDetailResourceArrayResponse';
|
|
259
265
|
export * from './ProductRangeSortBy';
|
|
260
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';
|
|
261
280
|
export * from './ProductResource';
|
|
262
281
|
export * from './ProductResourceArrayResponse';
|
|
263
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,6 +150,7 @@ __exportStar(require("./LabelLiteResource"), exports);
|
|
|
148
150
|
__exportStar(require("./LabelLiteResourceArrayResponse"), exports);
|
|
149
151
|
__exportStar(require("./LabelResource"), exports);
|
|
150
152
|
__exportStar(require("./LabelResourceArrayResponse"), exports);
|
|
153
|
+
__exportStar(require("./ListAssetsProductRegistrationRequest"), exports);
|
|
151
154
|
__exportStar(require("./ModelAttributeListResource"), exports);
|
|
152
155
|
__exportStar(require("./ModelAttributeListResourceArrayResponse"), exports);
|
|
153
156
|
__exportStar(require("./ModelAttributeResource"), exports);
|
|
@@ -194,6 +197,9 @@ __exportStar(require("./PaginatedProductRangeListResourceResponse"), exports);
|
|
|
194
197
|
__exportStar(require("./PaginatedProductRangeLiteResourceResponse"), exports);
|
|
195
198
|
__exportStar(require("./PaginatedProductRangeResourceResponse"), exports);
|
|
196
199
|
__exportStar(require("./PaginatedProductRangeSearchResultResourceResponse"), exports);
|
|
200
|
+
__exportStar(require("./PaginatedProductRegistrationAssetResourceResponse"), exports);
|
|
201
|
+
__exportStar(require("./PaginatedProductRegistrationListResourceResponse"), exports);
|
|
202
|
+
__exportStar(require("./PaginatedProductRegistrationResourceResponse"), exports);
|
|
197
203
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
198
204
|
__exportStar(require("./PaginatedProductSearchResultResourceResponse"), exports);
|
|
199
205
|
__exportStar(require("./PaginatedProductTypeListResourceResponse"), exports);
|
|
@@ -276,6 +282,19 @@ __exportStar(require("./ProductRangeSiteDetailResource"), exports);
|
|
|
276
282
|
__exportStar(require("./ProductRangeSiteDetailResourceArrayResponse"), exports);
|
|
277
283
|
__exportStar(require("./ProductRangeSortBy"), exports);
|
|
278
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);
|
|
279
298
|
__exportStar(require("./ProductResource"), exports);
|
|
280
299
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
281
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
|
+
|
|
@@ -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
|
+
|