@digital8/lighting-illusions-ts-sdk 0.0.447 → 0.0.448
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 +12 -0
- package/README.md +10 -2
- package/dist/apis/AttributeApi.d.ts +14 -3
- package/dist/apis/AttributeApi.js +46 -1
- package/dist/apis/ProductTypeApi.d.ts +14 -3
- package/dist/apis/ProductTypeApi.js +46 -1
- package/dist/models/AttributeListResource.d.ts +56 -0
- package/dist/models/AttributeListResource.js +67 -0
- package/dist/models/AttributeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/AttributeListResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/IndexAttributeRequest.d.ts +8 -1
- package/dist/models/IndexAttributeRequest.js +7 -1
- package/dist/models/PaginatedAttributeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAttributeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.js +57 -0
- package/dist/models/ProductTypeListResource.d.ts +38 -0
- package/dist/models/ProductTypeListResource.js +55 -0
- package/dist/models/ProductTypeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductTypeListResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/AttributeApi.md +69 -3
- package/docs/AttributeListResource.md +42 -0
- package/docs/AttributeListResourceArrayResponse.md +34 -0
- package/docs/PaginatedAttributeListResourceResponse.md +36 -0
- package/docs/PaginatedProductTypeListResourceResponse.md +36 -0
- package/docs/ProductTypeApi.md +69 -3
- package/docs/ProductTypeListResource.md +36 -0
- package/docs/ProductTypeListResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +42 -6
- package/src/apis/ProductTypeApi.ts +42 -6
- package/src/models/AttributeListResource.ts +102 -0
- package/src/models/AttributeListResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/IndexAttributeRequest.ts +9 -1
- package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
- package/src/models/ProductTypeListResource.ts +75 -0
- package/src/models/ProductTypeListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,40 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { AttributeListResource } from './AttributeListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedAttributeListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedAttributeListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<AttributeListResource>}
|
|
23
|
+
* @memberof PaginatedAttributeListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<AttributeListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedAttributeListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedAttributeListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedAttributeListResourceResponse(value: object): value is PaginatedAttributeListResourceResponse;
|
|
37
|
+
export declare function PaginatedAttributeListResourceResponseFromJSON(json: any): PaginatedAttributeListResourceResponse;
|
|
38
|
+
export declare function PaginatedAttributeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAttributeListResourceResponse;
|
|
39
|
+
export declare function PaginatedAttributeListResourceResponseToJSON(json: any): PaginatedAttributeListResourceResponse;
|
|
40
|
+
export declare function PaginatedAttributeListResourceResponseToJSONTyped(value?: PaginatedAttributeListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedAttributeListResourceResponse = instanceOfPaginatedAttributeListResourceResponse;
|
|
17
|
+
exports.PaginatedAttributeListResourceResponseFromJSON = PaginatedAttributeListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedAttributeListResourceResponseFromJSONTyped = PaginatedAttributeListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedAttributeListResourceResponseToJSON = PaginatedAttributeListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedAttributeListResourceResponseToJSONTyped = PaginatedAttributeListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var AttributeListResource_1 = require("./AttributeListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedAttributeListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedAttributeListResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedAttributeListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedAttributeListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedAttributeListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(AttributeListResource_1.AttributeListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedAttributeListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedAttributeListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedAttributeListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(AttributeListResource_1.AttributeListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { ProductTypeListResource } from './ProductTypeListResource';
|
|
13
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedProductTypeListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedProductTypeListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<ProductTypeListResource>}
|
|
23
|
+
* @memberof PaginatedProductTypeListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<ProductTypeListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedProductTypeListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedProductTypeListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedProductTypeListResourceResponse(value: object): value is PaginatedProductTypeListResourceResponse;
|
|
37
|
+
export declare function PaginatedProductTypeListResourceResponseFromJSON(json: any): PaginatedProductTypeListResourceResponse;
|
|
38
|
+
export declare function PaginatedProductTypeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductTypeListResourceResponse;
|
|
39
|
+
export declare function PaginatedProductTypeListResourceResponseToJSON(json: any): PaginatedProductTypeListResourceResponse;
|
|
40
|
+
export declare function PaginatedProductTypeListResourceResponseToJSONTyped(value?: PaginatedProductTypeListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedProductTypeListResourceResponse = instanceOfPaginatedProductTypeListResourceResponse;
|
|
17
|
+
exports.PaginatedProductTypeListResourceResponseFromJSON = PaginatedProductTypeListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedProductTypeListResourceResponseFromJSONTyped = PaginatedProductTypeListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedProductTypeListResourceResponseToJSON = PaginatedProductTypeListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedProductTypeListResourceResponseToJSONTyped = PaginatedProductTypeListResourceResponseToJSONTyped;
|
|
21
|
+
var ProductTypeListResource_1 = require("./ProductTypeListResource");
|
|
22
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedProductTypeListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedProductTypeListResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedProductTypeListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedProductTypeListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedProductTypeListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(ProductTypeListResource_1.ProductTypeListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedProductTypeListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedProductTypeListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedProductTypeListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(ProductTypeListResource_1.ProductTypeListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProductTypeListResource
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductTypeListResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ProductTypeListResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductTypeListResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ProductTypeListResource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfProductTypeListResource(value: object): value is ProductTypeListResource;
|
|
35
|
+
export declare function ProductTypeListResourceFromJSON(json: any): ProductTypeListResource;
|
|
36
|
+
export declare function ProductTypeListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeListResource;
|
|
37
|
+
export declare function ProductTypeListResourceToJSON(json: any): ProductTypeListResource;
|
|
38
|
+
export declare function ProductTypeListResourceToJSONTyped(value?: ProductTypeListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProductTypeListResource = instanceOfProductTypeListResource;
|
|
17
|
+
exports.ProductTypeListResourceFromJSON = ProductTypeListResourceFromJSON;
|
|
18
|
+
exports.ProductTypeListResourceFromJSONTyped = ProductTypeListResourceFromJSONTyped;
|
|
19
|
+
exports.ProductTypeListResourceToJSON = ProductTypeListResourceToJSON;
|
|
20
|
+
exports.ProductTypeListResourceToJSONTyped = ProductTypeListResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProductTypeListResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProductTypeListResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ProductTypeListResourceFromJSON(json) {
|
|
32
|
+
return ProductTypeListResourceFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ProductTypeListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ProductTypeListResourceToJSON(json) {
|
|
44
|
+
return ProductTypeListResourceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ProductTypeListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ProductTypeListResource } from './ProductTypeListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductTypeListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductTypeListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductTypeListResource>}
|
|
22
|
+
* @memberof ProductTypeListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductTypeListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductTypeListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductTypeListResourceArrayResponse(value: object): value is ProductTypeListResourceArrayResponse;
|
|
30
|
+
export declare function ProductTypeListResourceArrayResponseFromJSON(json: any): ProductTypeListResourceArrayResponse;
|
|
31
|
+
export declare function ProductTypeListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeListResourceArrayResponse;
|
|
32
|
+
export declare function ProductTypeListResourceArrayResponseToJSON(json: any): ProductTypeListResourceArrayResponse;
|
|
33
|
+
export declare function ProductTypeListResourceArrayResponseToJSONTyped(value?: ProductTypeListResourceArrayResponse | 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.instanceOfProductTypeListResourceArrayResponse = instanceOfProductTypeListResourceArrayResponse;
|
|
17
|
+
exports.ProductTypeListResourceArrayResponseFromJSON = ProductTypeListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductTypeListResourceArrayResponseFromJSONTyped = ProductTypeListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductTypeListResourceArrayResponseToJSON = ProductTypeListResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductTypeListResourceArrayResponseToJSONTyped = ProductTypeListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductTypeListResource_1 = require("./ProductTypeListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductTypeListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductTypeListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductTypeListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductTypeListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductTypeListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductTypeListResource_1.ProductTypeListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductTypeListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductTypeListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductTypeListResourceArrayResponseToJSONTyped(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(ProductTypeListResource_1.ProductTypeListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export * from './AssetLiteResourceArrayResponse';
|
|
|
5
5
|
export * from './AssetResource';
|
|
6
6
|
export * from './AssetResourceArrayResponse';
|
|
7
7
|
export * from './AttributeFieldType';
|
|
8
|
+
export * from './AttributeListResource';
|
|
9
|
+
export * from './AttributeListResourceArrayResponse';
|
|
8
10
|
export * from './AttributeLiteResource';
|
|
9
11
|
export * from './AttributeLiteResourceArrayResponse';
|
|
10
12
|
export * from './AttributeProductTypeRelationResource';
|
|
@@ -49,6 +51,7 @@ export * from './OverlayTemplateLiteResource';
|
|
|
49
51
|
export * from './OverlayTemplateLiteResourceArrayResponse';
|
|
50
52
|
export * from './OverlayTemplateResource';
|
|
51
53
|
export * from './OverlayTemplateResourceArrayResponse';
|
|
54
|
+
export * from './PaginatedAttributeListResourceResponse';
|
|
52
55
|
export * from './PaginatedAttributeLiteResourceResponse';
|
|
53
56
|
export * from './PaginatedAttributeProductTypeRelationResourceResponse';
|
|
54
57
|
export * from './PaginatedAttributeResourceResponse';
|
|
@@ -61,6 +64,7 @@ export * from './PaginatedProductChildRelationResourceResponse';
|
|
|
61
64
|
export * from './PaginatedProductChildResourceResponse';
|
|
62
65
|
export * from './PaginatedProductLiteResourceResponse';
|
|
63
66
|
export * from './PaginatedProductResourceResponse';
|
|
67
|
+
export * from './PaginatedProductTypeListResourceResponse';
|
|
64
68
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
65
69
|
export * from './PaginatedProductTypeResourceResponse';
|
|
66
70
|
export * from './PaginatedSiteListResourceResponse';
|
|
@@ -89,6 +93,8 @@ export * from './ProductLiteResource';
|
|
|
89
93
|
export * from './ProductLiteResourceArrayResponse';
|
|
90
94
|
export * from './ProductResource';
|
|
91
95
|
export * from './ProductResourceArrayResponse';
|
|
96
|
+
export * from './ProductTypeListResource';
|
|
97
|
+
export * from './ProductTypeListResourceArrayResponse';
|
|
92
98
|
export * from './ProductTypeLiteResource';
|
|
93
99
|
export * from './ProductTypeLiteResourceArrayResponse';
|
|
94
100
|
export * from './ProductTypeResource';
|
package/dist/models/index.js
CHANGED
|
@@ -23,6 +23,8 @@ __exportStar(require("./AssetLiteResourceArrayResponse"), exports);
|
|
|
23
23
|
__exportStar(require("./AssetResource"), exports);
|
|
24
24
|
__exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
25
25
|
__exportStar(require("./AttributeFieldType"), exports);
|
|
26
|
+
__exportStar(require("./AttributeListResource"), exports);
|
|
27
|
+
__exportStar(require("./AttributeListResourceArrayResponse"), exports);
|
|
26
28
|
__exportStar(require("./AttributeLiteResource"), exports);
|
|
27
29
|
__exportStar(require("./AttributeLiteResourceArrayResponse"), exports);
|
|
28
30
|
__exportStar(require("./AttributeProductTypeRelationResource"), exports);
|
|
@@ -67,6 +69,7 @@ __exportStar(require("./OverlayTemplateLiteResource"), exports);
|
|
|
67
69
|
__exportStar(require("./OverlayTemplateLiteResourceArrayResponse"), exports);
|
|
68
70
|
__exportStar(require("./OverlayTemplateResource"), exports);
|
|
69
71
|
__exportStar(require("./OverlayTemplateResourceArrayResponse"), exports);
|
|
72
|
+
__exportStar(require("./PaginatedAttributeListResourceResponse"), exports);
|
|
70
73
|
__exportStar(require("./PaginatedAttributeLiteResourceResponse"), exports);
|
|
71
74
|
__exportStar(require("./PaginatedAttributeProductTypeRelationResourceResponse"), exports);
|
|
72
75
|
__exportStar(require("./PaginatedAttributeResourceResponse"), exports);
|
|
@@ -79,6 +82,7 @@ __exportStar(require("./PaginatedProductChildRelationResourceResponse"), exports
|
|
|
79
82
|
__exportStar(require("./PaginatedProductChildResourceResponse"), exports);
|
|
80
83
|
__exportStar(require("./PaginatedProductLiteResourceResponse"), exports);
|
|
81
84
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
85
|
+
__exportStar(require("./PaginatedProductTypeListResourceResponse"), exports);
|
|
82
86
|
__exportStar(require("./PaginatedProductTypeLiteResourceResponse"), exports);
|
|
83
87
|
__exportStar(require("./PaginatedProductTypeResourceResponse"), exports);
|
|
84
88
|
__exportStar(require("./PaginatedSiteListResourceResponse"), exports);
|
|
@@ -107,6 +111,8 @@ __exportStar(require("./ProductLiteResource"), exports);
|
|
|
107
111
|
__exportStar(require("./ProductLiteResourceArrayResponse"), exports);
|
|
108
112
|
__exportStar(require("./ProductResource"), exports);
|
|
109
113
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
114
|
+
__exportStar(require("./ProductTypeListResource"), exports);
|
|
115
|
+
__exportStar(require("./ProductTypeListResourceArrayResponse"), exports);
|
|
110
116
|
__exportStar(require("./ProductTypeLiteResource"), exports);
|
|
111
117
|
__exportStar(require("./ProductTypeLiteResourceArrayResponse"), exports);
|
|
112
118
|
__exportStar(require("./ProductTypeResource"), exports);
|
package/docs/AttributeApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
9
9
|
| [**getAllAttribute**](AttributeApi.md#getallattributeoperation) | **POST** /admin-api/attribute/all | Auto-generated: getAllAttribute |
|
|
10
10
|
| [**indexAttribute**](AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute |
|
|
11
11
|
| [**linkProductTypeAttribute**](AttributeApi.md#linkproducttypeattributeoperation) | **POST** /admin-api/attribute/{attribute}/link-product-type | Auto-generated: linkProductTypeAttribute |
|
|
12
|
+
| [**searchExcludingRelationsAttribute**](AttributeApi.md#searchexcludingrelationsattribute) | **POST** /admin-api/attribute/search-excluding-relations | Auto-generated: searchExcludingRelationsAttribute |
|
|
12
13
|
| [**showAttribute**](AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute |
|
|
13
14
|
| [**storeAttribute**](AttributeApi.md#storeattributeoperation) | **POST** /admin-api/attribute/create | Auto-generated: storeAttribute |
|
|
14
15
|
| [**storeAttributeValue**](AttributeApi.md#storeattributevalueoperation) | **POST** /admin-api/attribute/value/create | Auto-generated: storeAttributeValue |
|
|
@@ -221,7 +222,7 @@ No authorization required
|
|
|
221
222
|
|
|
222
223
|
## indexAttribute
|
|
223
224
|
|
|
224
|
-
>
|
|
225
|
+
> PaginatedAttributeListResourceResponse indexAttribute(indexAttributeRequest)
|
|
225
226
|
|
|
226
227
|
Auto-generated: indexAttribute
|
|
227
228
|
|
|
@@ -264,7 +265,7 @@ example().catch(console.error);
|
|
|
264
265
|
|
|
265
266
|
### Return type
|
|
266
267
|
|
|
267
|
-
[**
|
|
268
|
+
[**PaginatedAttributeListResourceResponse**](PaginatedAttributeListResourceResponse.md)
|
|
268
269
|
|
|
269
270
|
### Authorization
|
|
270
271
|
|
|
@@ -279,7 +280,7 @@ No authorization required
|
|
|
279
280
|
### HTTP response details
|
|
280
281
|
| Status code | Description | Response headers |
|
|
281
282
|
|-------------|-------------|------------------|
|
|
282
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\
|
|
283
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\AttributeListResource[]>> | - |
|
|
283
284
|
|
|
284
285
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
285
286
|
|
|
@@ -352,6 +353,71 @@ No authorization required
|
|
|
352
353
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
353
354
|
|
|
354
355
|
|
|
356
|
+
## searchExcludingRelationsAttribute
|
|
357
|
+
|
|
358
|
+
> PaginatedAttributeListResourceResponse searchExcludingRelationsAttribute(indexAttributeRequest)
|
|
359
|
+
|
|
360
|
+
Auto-generated: searchExcludingRelationsAttribute
|
|
361
|
+
|
|
362
|
+
### Example
|
|
363
|
+
|
|
364
|
+
```ts
|
|
365
|
+
import {
|
|
366
|
+
Configuration,
|
|
367
|
+
AttributeApi,
|
|
368
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
369
|
+
import type { SearchExcludingRelationsAttributeRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
370
|
+
|
|
371
|
+
async function example() {
|
|
372
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
373
|
+
const api = new AttributeApi();
|
|
374
|
+
|
|
375
|
+
const body = {
|
|
376
|
+
// IndexAttributeRequest (optional)
|
|
377
|
+
indexAttributeRequest: ...,
|
|
378
|
+
} satisfies SearchExcludingRelationsAttributeRequest;
|
|
379
|
+
|
|
380
|
+
try {
|
|
381
|
+
const data = await api.searchExcludingRelationsAttribute(body);
|
|
382
|
+
console.log(data);
|
|
383
|
+
} catch (error) {
|
|
384
|
+
console.error(error);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// Run the test
|
|
389
|
+
example().catch(console.error);
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
### Parameters
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
| Name | Type | Description | Notes |
|
|
396
|
+
|------------- | ------------- | ------------- | -------------|
|
|
397
|
+
| **indexAttributeRequest** | [IndexAttributeRequest](IndexAttributeRequest.md) | | [Optional] |
|
|
398
|
+
|
|
399
|
+
### Return type
|
|
400
|
+
|
|
401
|
+
[**PaginatedAttributeListResourceResponse**](PaginatedAttributeListResourceResponse.md)
|
|
402
|
+
|
|
403
|
+
### Authorization
|
|
404
|
+
|
|
405
|
+
No authorization required
|
|
406
|
+
|
|
407
|
+
### HTTP request headers
|
|
408
|
+
|
|
409
|
+
- **Content-Type**: `application/json`
|
|
410
|
+
- **Accept**: `application/json`
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
### HTTP response details
|
|
414
|
+
| Status code | Description | Response headers |
|
|
415
|
+
|-------------|-------------|------------------|
|
|
416
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\AttributeListResource[]>> | - |
|
|
417
|
+
|
|
418
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
419
|
+
|
|
420
|
+
|
|
355
421
|
## showAttribute
|
|
356
422
|
|
|
357
423
|
> AttributeResource showAttribute(attribute)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# AttributeListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`type` | string
|
|
12
|
+
`isFilterable` | boolean
|
|
13
|
+
`filterIndex` | number
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { AttributeListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"type": null,
|
|
25
|
+
"isFilterable": null,
|
|
26
|
+
"filterIndex": null,
|
|
27
|
+
} satisfies AttributeListResource
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as AttributeListResource
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# AttributeListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<AttributeListResource>](AttributeListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { AttributeListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies AttributeListResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as AttributeListResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedAttributeListResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<AttributeListResource>](AttributeListResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedAttributeListResourceResponse } 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 PaginatedAttributeListResourceResponse
|
|
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 PaginatedAttributeListResourceResponse
|
|
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
|
+
|