@digital8/lighting-illusions-ts-sdk 0.0.1413 → 0.0.1414
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 +20 -90
- package/README.md +18 -64
- package/dist/apis/AttributeApi.d.ts +1 -16
- package/dist/apis/AttributeApi.js +0 -58
- package/dist/apis/LabelApi.d.ts +109 -0
- package/dist/apis/LabelApi.js +433 -0
- package/dist/apis/ProductApi.js +1 -1
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AssetLiteResource.d.ts +0 -12
- package/dist/models/AssetLiteResource.js +0 -6
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -2
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.js +1 -2
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -2
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.js +1 -2
- package/dist/models/GetAllDocumentRequest.d.ts +1 -2
- package/dist/models/GetAllDocumentRequest.js +1 -2
- package/dist/models/GetAllProductChildRequest.d.ts +0 -1
- package/dist/models/GetAllProductChildRequest.js +0 -1
- package/dist/models/IndexAttributeRequest.d.ts +0 -2
- package/dist/models/IndexAttributeRequest.js +1 -3
- package/dist/models/IndexDocumentRequest.d.ts +1 -2
- package/dist/models/IndexDocumentRequest.js +1 -2
- package/dist/models/IndexLabelRequest.d.ts +109 -0
- package/dist/models/{IndexProductRangeRequest.js → IndexLabelRequest.js} +29 -23
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/LabelListResource.d.ts +75 -0
- package/dist/models/LabelListResource.js +74 -0
- package/dist/models/LabelListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LabelListResourceArrayResponse.js +50 -0
- package/dist/models/LabelLiteResource.d.ts +56 -0
- package/dist/models/LabelLiteResource.js +65 -0
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/LabelLiteResourceArrayResponse.js +50 -0
- package/dist/models/LabelResource.d.ts +23 -4
- package/dist/models/LabelResource.js +19 -8
- package/dist/models/ModelAttributeResource.d.ts +0 -6
- package/dist/models/ModelAttributeResource.js +0 -2
- package/dist/models/PaginatedLabelListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLabelListResourceResponse.js +57 -0
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- package/dist/models/StoreAssetForAssetableRequest.d.ts +0 -2
- package/dist/models/StoreAssetForAssetableRequest.js +1 -3
- package/dist/models/StoreLabelRequest.d.ts +74 -0
- package/dist/models/StoreLabelRequest.js +71 -0
- package/dist/models/UpdateLabelRequest.d.ts +74 -0
- package/dist/models/UpdateLabelRequest.js +63 -0
- package/dist/models/UpdateProductTypeRequest.d.ts +9 -9
- package/dist/models/UpdateProductTypeRequest.js +9 -9
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.d.ts +38 -0
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.js +51 -0
- package/dist/models/index.d.ts +9 -44
- package/dist/models/index.js +9 -44
- package/docs/AssetLiteResource.md +0 -4
- package/docs/AttributeApi.md +0 -66
- package/docs/{IndexModelAttributeRequest.md → IndexLabelRequest.md} +6 -10
- package/docs/LabelApi.md +407 -0
- package/docs/{ProductRangeFrontendListResource.md → LabelListResource.md} +18 -14
- package/docs/{ProductRangeResourceArrayResponse.md → LabelListResourceArrayResponse.md} +5 -5
- package/docs/{ProductRangeSiteDetailLiteResource.md → LabelLiteResource.md} +12 -8
- package/docs/{ProductRangeLiteResource.md → LabelLiteResourceArrayResponse.md} +6 -8
- package/docs/LabelResource.md +12 -6
- package/docs/ModelAttributeResource.md +0 -2
- package/docs/{PaginatedProductRangeResourceResponse.md → PaginatedLabelListResourceResponse.md} +5 -5
- package/docs/ProductApi.md +1 -1
- package/docs/ProductSearchResultResource.md +0 -2
- package/docs/{AttachDocumentsProductRangeRequest.md → StoreLabelRequest.md} +20 -6
- package/docs/{ProductRangeSortBy.md → UpdateLabelRequest.md} +20 -4
- package/docs/UpdateProductTypeRequest.md +4 -4
- package/docs/{UpdateProductRangeRequestAttributesInner.md → UpdateProductTypeRequestPerformanceValuesInner.md} +4 -4
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +0 -50
- package/src/apis/LabelApi.ts +328 -0
- package/src/apis/ProductApi.ts +1 -1
- package/src/apis/index.ts +1 -1
- package/src/models/AssetLiteResource.ts +0 -17
- package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -2
- package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -2
- package/src/models/GetAllDocumentRequest.ts +1 -2
- package/src/models/GetAllProductChildRequest.ts +0 -1
- package/src/models/IndexAttributeRequest.ts +1 -3
- package/src/models/IndexDocumentRequest.ts +1 -2
- package/src/models/IndexLabelRequest.ts +163 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/LabelListResource.ts +134 -0
- package/src/models/LabelListResourceArrayResponse.ts +73 -0
- package/src/models/LabelLiteResource.ts +101 -0
- package/src/models/LabelLiteResourceArrayResponse.ts +73 -0
- package/src/models/LabelResource.ts +46 -12
- package/src/models/ModelAttributeResource.ts +0 -8
- package/src/models/PaginatedLabelListResourceResponse.ts +90 -0
- package/src/models/ProductSearchResultResource.ts +0 -9
- package/src/models/StoreAssetForAssetableRequest.ts +1 -3
- package/src/models/StoreLabelRequest.ts +125 -0
- package/src/models/UpdateLabelRequest.ts +121 -0
- package/src/models/UpdateProductTypeRequest.ts +22 -22
- package/src/models/UpdateProductTypeRequestPerformanceValuesInner.ts +73 -0
- package/src/models/index.ts +9 -44
- package/dist/apis/ProductRangeApi.d.ts +0 -269
- package/dist/apis/ProductRangeApi.js +0 -1043
- package/dist/models/AttachAccessoriesProductRangeRequest.d.ts +0 -32
- package/dist/models/AttachAccessoriesProductRangeRequest.js +0 -51
- package/dist/models/AttachAttributesProductRangeRequest.d.ts +0 -33
- package/dist/models/AttachAttributesProductRangeRequest.js +0 -52
- package/dist/models/AttachAttributesProductRangeRequestAttributesInner.d.ts +0 -38
- package/dist/models/AttachAttributesProductRangeRequestAttributesInner.js +0 -53
- package/dist/models/AttachDocumentsProductRangeRequest.d.ts +0 -33
- package/dist/models/AttachDocumentsProductRangeRequest.js +0 -52
- package/dist/models/DetachAccessoriesProductRangeRequest.d.ts +0 -32
- package/dist/models/DetachAccessoriesProductRangeRequest.js +0 -51
- package/dist/models/DetachAttributesProductRangeRequest.d.ts +0 -32
- package/dist/models/DetachAttributesProductRangeRequest.js +0 -51
- package/dist/models/DetachDocumentsProductRangeRequest.d.ts +0 -32
- package/dist/models/DetachDocumentsProductRangeRequest.js +0 -51
- package/dist/models/GetAllProductRangeRequest.d.ts +0 -98
- package/dist/models/GetAllProductRangeRequest.js +0 -82
- package/dist/models/IndexModelAttributeRequest.d.ts +0 -118
- package/dist/models/IndexModelAttributeRequest.js +0 -93
- package/dist/models/IndexProductRangeRequest.d.ts +0 -110
- package/dist/models/ModelAttributeListResource.d.ts +0 -64
- package/dist/models/ModelAttributeListResource.js +0 -71
- package/dist/models/ModelAttributeListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ModelAttributeListResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedModelAttributeListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedModelAttributeListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRangeListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRangeListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRangeLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRangeLiteResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRangeResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRangeResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRangeSearchResultResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRangeSearchResultResourceResponse.js +0 -57
- package/dist/models/ProductRangeAggregationResource.d.ts +0 -44
- package/dist/models/ProductRangeAggregationResource.js +0 -59
- package/dist/models/ProductRangeAggregationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeAggregationResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeFrontendListResource.d.ts +0 -62
- package/dist/models/ProductRangeFrontendListResource.js +0 -71
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeFrontendResource.d.ts +0 -117
- package/dist/models/ProductRangeFrontendResource.js +0 -106
- package/dist/models/ProductRangeFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeFrontendResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeListResource.d.ts +0 -66
- package/dist/models/ProductRangeListResource.js +0 -75
- package/dist/models/ProductRangeListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeLiteResource.d.ts +0 -38
- package/dist/models/ProductRangeLiteResource.js +0 -55
- package/dist/models/ProductRangeLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeResource.d.ts +0 -89
- package/dist/models/ProductRangeResource.js +0 -86
- package/dist/models/ProductRangeResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeSearchResponseResource.d.ts +0 -47
- package/dist/models/ProductRangeSearchResponseResource.js +0 -62
- package/dist/models/ProductRangeSearchResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeSearchResponseResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeSearchResponseResourceMeta.d.ts +0 -50
- package/dist/models/ProductRangeSearchResponseResourceMeta.js +0 -63
- package/dist/models/ProductRangeSearchResultResource.d.ts +0 -80
- package/dist/models/ProductRangeSearchResultResource.js +0 -83
- package/dist/models/ProductRangeSearchResultResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeSearchResultResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeSiteDetailLiteResource.d.ts +0 -44
- package/dist/models/ProductRangeSiteDetailLiteResource.js +0 -59
- package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeSiteDetailResource.d.ts +0 -101
- package/dist/models/ProductRangeSiteDetailResource.js +0 -98
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.js +0 -50
- package/dist/models/ProductRangeSortBy.d.ts +0 -27
- package/dist/models/ProductRangeSortBy.js +0 -53
- package/dist/models/StoreProductRangeRequest.d.ts +0 -52
- package/dist/models/StoreProductRangeRequest.js +0 -59
- package/dist/models/StoreProductRangeRequestSitesInner.d.ts +0 -92
- package/dist/models/StoreProductRangeRequestSitesInner.js +0 -75
- package/dist/models/UpdateProductRangeRequest.d.ts +0 -59
- package/dist/models/UpdateProductRangeRequest.js +0 -62
- package/dist/models/UpdateProductRangeRequestAttributesInner.d.ts +0 -38
- package/dist/models/UpdateProductRangeRequestAttributesInner.js +0 -51
- package/docs/AttachAccessoriesProductRangeRequest.md +0 -34
- package/docs/AttachAttributesProductRangeRequest.md +0 -34
- package/docs/AttachAttributesProductRangeRequestAttributesInner.md +0 -36
- package/docs/DetachAccessoriesProductRangeRequest.md +0 -34
- package/docs/DetachAttributesProductRangeRequest.md +0 -34
- package/docs/DetachDocumentsProductRangeRequest.md +0 -34
- package/docs/GetAllProductRangeRequest.md +0 -50
- package/docs/IndexProductRangeRequest.md +0 -54
- package/docs/ModelAttributeListResource.md +0 -44
- package/docs/ModelAttributeListResourceArrayResponse.md +0 -34
- package/docs/PaginatedModelAttributeListResourceResponse.md +0 -36
- package/docs/PaginatedProductRangeFrontendListResourceResponse.md +0 -36
- package/docs/PaginatedProductRangeListResourceResponse.md +0 -36
- package/docs/PaginatedProductRangeLiteResourceResponse.md +0 -36
- package/docs/PaginatedProductRangeSearchResultResourceResponse.md +0 -36
- package/docs/ProductRangeAggregationResource.md +0 -38
- package/docs/ProductRangeAggregationResourceArrayResponse.md +0 -34
- package/docs/ProductRangeApi.md +0 -1097
- package/docs/ProductRangeFrontendListResourceArrayResponse.md +0 -34
- package/docs/ProductRangeFrontendResource.md +0 -62
- package/docs/ProductRangeFrontendResourceArrayResponse.md +0 -34
- package/docs/ProductRangeListResource.md +0 -44
- package/docs/ProductRangeListResourceArrayResponse.md +0 -34
- package/docs/ProductRangeLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRangeResource.md +0 -52
- package/docs/ProductRangeSearchResponseResource.md +0 -38
- package/docs/ProductRangeSearchResponseResourceArrayResponse.md +0 -34
- package/docs/ProductRangeSearchResponseResourceMeta.md +0 -40
- package/docs/ProductRangeSearchResultResource.md +0 -50
- package/docs/ProductRangeSearchResultResourceArrayResponse.md +0 -34
- package/docs/ProductRangeSiteDetailLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRangeSiteDetailResource.md +0 -56
- package/docs/ProductRangeSiteDetailResourceArrayResponse.md +0 -34
- package/docs/StoreProductRangeRequest.md +0 -40
- package/docs/StoreProductRangeRequestSitesInner.md +0 -54
- package/docs/UpdateProductRangeRequest.md +0 -42
- package/src/apis/ProductRangeApi.ts +0 -888
- package/src/models/AttachAccessoriesProductRangeRequest.ts +0 -66
- package/src/models/AttachAttributesProductRangeRequest.ts +0 -74
- package/src/models/AttachAttributesProductRangeRequestAttributesInner.ts +0 -74
- package/src/models/AttachDocumentsProductRangeRequest.ts +0 -74
- package/src/models/DetachAccessoriesProductRangeRequest.ts +0 -66
- package/src/models/DetachAttributesProductRangeRequest.ts +0 -66
- package/src/models/DetachDocumentsProductRangeRequest.ts +0 -66
- package/src/models/GetAllProductRangeRequest.ts +0 -151
- package/src/models/IndexModelAttributeRequest.ts +0 -176
- package/src/models/IndexProductRangeRequest.ts +0 -167
- package/src/models/ModelAttributeListResource.ts +0 -125
- package/src/models/ModelAttributeListResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedModelAttributeListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRangeFrontendListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRangeListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRangeLiteResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRangeResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRangeSearchResultResourceResponse.ts +0 -90
- package/src/models/ProductRangeAggregationResource.ts +0 -84
- package/src/models/ProductRangeAggregationResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeFrontendListResource.ts +0 -111
- package/src/models/ProductRangeFrontendListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeFrontendResource.ts +0 -199
- package/src/models/ProductRangeFrontendResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeListResource.ts +0 -140
- package/src/models/ProductRangeListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeLiteResource.ts +0 -75
- package/src/models/ProductRangeLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeResource.ts +0 -167
- package/src/models/ProductRangeResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeSearchResponseResource.ts +0 -106
- package/src/models/ProductRangeSearchResponseResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeSearchResponseResourceMeta.ts +0 -93
- package/src/models/ProductRangeSearchResultResource.ts +0 -138
- package/src/models/ProductRangeSearchResultResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeSiteDetailLiteResource.ts +0 -84
- package/src/models/ProductRangeSiteDetailLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeSiteDetailResource.ts +0 -187
- package/src/models/ProductRangeSiteDetailResourceArrayResponse.ts +0 -73
- package/src/models/ProductRangeSortBy.ts +0 -55
- package/src/models/StoreProductRangeRequest.ts +0 -105
- package/src/models/StoreProductRangeRequestSitesInner.ts +0 -148
- package/src/models/UpdateProductRangeRequest.ts +0 -120
- package/src/models/UpdateProductRangeRequestAttributesInner.ts +0 -73
|
@@ -25,12 +25,6 @@ export interface AssetLiteResource {
|
|
|
25
25
|
* @memberof AssetLiteResource
|
|
26
26
|
*/
|
|
27
27
|
id: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof AssetLiteResource
|
|
32
|
-
*/
|
|
33
|
-
fileId?: string | null;
|
|
34
28
|
/**
|
|
35
29
|
*
|
|
36
30
|
* @type {string}
|
|
@@ -43,12 +37,6 @@ export interface AssetLiteResource {
|
|
|
43
37
|
* @memberof AssetLiteResource
|
|
44
38
|
*/
|
|
45
39
|
fileName: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof AssetLiteResource
|
|
50
|
-
*/
|
|
51
|
-
mimeType: string;
|
|
52
40
|
/**
|
|
53
41
|
*
|
|
54
42
|
* @type {string}
|
|
@@ -64,7 +52,6 @@ export function instanceOfAssetLiteResource(value: object): value is AssetLiteRe
|
|
|
64
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
53
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
66
54
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
67
|
-
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
68
55
|
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
69
56
|
return true;
|
|
70
57
|
}
|
|
@@ -80,10 +67,8 @@ export function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
80
67
|
return {
|
|
81
68
|
|
|
82
69
|
'id': json['id'],
|
|
83
|
-
'fileId': json['fileId'] == null ? undefined : json['fileId'],
|
|
84
70
|
'filePath': json['filePath'],
|
|
85
71
|
'fileName': json['fileName'],
|
|
86
|
-
'mimeType': json['mimeType'],
|
|
87
72
|
'altText': json['altText'],
|
|
88
73
|
};
|
|
89
74
|
}
|
|
@@ -100,10 +85,8 @@ export function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, i
|
|
|
100
85
|
return {
|
|
101
86
|
|
|
102
87
|
'id': value['id'],
|
|
103
|
-
'fileId': value['fileId'],
|
|
104
88
|
'filePath': value['filePath'],
|
|
105
89
|
'fileName': value['fileName'],
|
|
106
|
-
'mimeType': value['mimeType'],
|
|
107
90
|
'altText': value['altText'],
|
|
108
91
|
};
|
|
109
92
|
}
|
|
@@ -45,8 +45,7 @@ export interface AttachDocumentablesDocumentRequestDocumentablesInner {
|
|
|
45
45
|
*/
|
|
46
46
|
export const AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = {
|
|
47
47
|
AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
|
|
48
|
-
|
|
49
|
-
AppModelsProductRangesProductRangeSiteDetail: 'App\\Models\\ProductRanges\\ProductRangeSiteDetail'
|
|
48
|
+
AppModelsProductRangeSite: 'App\\Models\\ProductRangeSite'
|
|
50
49
|
} as const;
|
|
51
50
|
export type AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = typeof AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum[keyof typeof AttachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum];
|
|
52
51
|
|
|
@@ -39,8 +39,7 @@ export interface DetachDocumentablesDocumentRequestDocumentablesInner {
|
|
|
39
39
|
*/
|
|
40
40
|
export const DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = {
|
|
41
41
|
AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
|
|
42
|
-
|
|
43
|
-
AppModelsProductRangesProductRangeSiteDetail: 'App\\Models\\ProductRanges\\ProductRangeSiteDetail'
|
|
42
|
+
AppModelsProductRangeSite: 'App\\Models\\ProductRangeSite'
|
|
44
43
|
} as const;
|
|
45
44
|
export type DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum = typeof DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum[keyof typeof DetachDocumentablesDocumentRequestDocumentablesInnerDocumentableTypeEnum];
|
|
46
45
|
|
|
@@ -89,8 +89,7 @@ export type GetAllDocumentRequestSortDirectionEnum = typeof GetAllDocumentReques
|
|
|
89
89
|
*/
|
|
90
90
|
export const GetAllDocumentRequestRelatedTypeEnum = {
|
|
91
91
|
ProductChild: 'productChild',
|
|
92
|
-
|
|
93
|
-
ProductRangeSiteDetail: 'productRangeSiteDetail'
|
|
92
|
+
ProductRangeSite: 'productRangeSite'
|
|
94
93
|
} as const;
|
|
95
94
|
export type GetAllDocumentRequestRelatedTypeEnum = typeof GetAllDocumentRequestRelatedTypeEnum[keyof typeof GetAllDocumentRequestRelatedTypeEnum];
|
|
96
95
|
|
|
@@ -163,7 +163,6 @@ export type GetAllProductChildRequestSortDirectionEnum = typeof GetAllProductChi
|
|
|
163
163
|
*/
|
|
164
164
|
export const GetAllProductChildRequestRelatedTypeEnum = {
|
|
165
165
|
OverlayTemplate: 'overlayTemplate',
|
|
166
|
-
ProductRange: 'productRange',
|
|
167
166
|
Supplier: 'supplier',
|
|
168
167
|
Tag: 'tag',
|
|
169
168
|
Document: 'document'
|
|
@@ -113,9 +113,7 @@ export type IndexAttributeRequestSortDirectionEnum = typeof IndexAttributeReques
|
|
|
113
113
|
* @export
|
|
114
114
|
*/
|
|
115
115
|
export const IndexAttributeRequestRelatedTypeEnum = {
|
|
116
|
-
ProductType: 'productType'
|
|
117
|
-
ProductRange: 'productRange',
|
|
118
|
-
Category: 'category'
|
|
116
|
+
ProductType: 'productType'
|
|
119
117
|
} as const;
|
|
120
118
|
export type IndexAttributeRequestRelatedTypeEnum = typeof IndexAttributeRequestRelatedTypeEnum[keyof typeof IndexAttributeRequestRelatedTypeEnum];
|
|
121
119
|
|
|
@@ -101,8 +101,7 @@ export type IndexDocumentRequestSortDirectionEnum = typeof IndexDocumentRequestS
|
|
|
101
101
|
*/
|
|
102
102
|
export const IndexDocumentRequestRelatedTypeEnum = {
|
|
103
103
|
ProductChild: 'productChild',
|
|
104
|
-
|
|
105
|
-
ProductRangeSiteDetail: 'productRangeSiteDetail'
|
|
104
|
+
ProductRangeSite: 'productRangeSite'
|
|
106
105
|
} as const;
|
|
107
106
|
export type IndexDocumentRequestRelatedTypeEnum = typeof IndexDocumentRequestRelatedTypeEnum[keyof typeof IndexDocumentRequestRelatedTypeEnum];
|
|
108
107
|
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IndexLabelRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IndexLabelRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndexLabelRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {IndexLabelRequestSortByEnum}
|
|
31
|
+
* @memberof IndexLabelRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: IndexLabelRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {IndexLabelRequestSortDirectionEnum}
|
|
37
|
+
* @memberof IndexLabelRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: IndexLabelRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IndexLabelRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IndexLabelRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof IndexLabelRequest
|
|
56
|
+
*/
|
|
57
|
+
siteId?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof IndexLabelRequest
|
|
62
|
+
*/
|
|
63
|
+
relatedId?: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {IndexLabelRequestRelatedTypeEnum}
|
|
67
|
+
* @memberof IndexLabelRequest
|
|
68
|
+
*/
|
|
69
|
+
relatedType?: IndexLabelRequestRelatedTypeEnum;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof IndexLabelRequest
|
|
74
|
+
*/
|
|
75
|
+
includesRelations?: boolean;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export const IndexLabelRequestSortByEnum = {
|
|
83
|
+
Id: 'id',
|
|
84
|
+
ShortName: 'short_name',
|
|
85
|
+
LongName: 'long_name',
|
|
86
|
+
StartDate: 'start_date',
|
|
87
|
+
EndDate: 'end_date',
|
|
88
|
+
CreatedAt: 'created_at',
|
|
89
|
+
UpdatedAt: 'updated_at'
|
|
90
|
+
} as const;
|
|
91
|
+
export type IndexLabelRequestSortByEnum = typeof IndexLabelRequestSortByEnum[keyof typeof IndexLabelRequestSortByEnum];
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export const IndexLabelRequestSortDirectionEnum = {
|
|
97
|
+
Asc: 'asc',
|
|
98
|
+
Desc: 'desc'
|
|
99
|
+
} as const;
|
|
100
|
+
export type IndexLabelRequestSortDirectionEnum = typeof IndexLabelRequestSortDirectionEnum[keyof typeof IndexLabelRequestSortDirectionEnum];
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export const IndexLabelRequestRelatedTypeEnum = {
|
|
106
|
+
Site: 'site',
|
|
107
|
+
ProductChild: 'productChild'
|
|
108
|
+
} as const;
|
|
109
|
+
export type IndexLabelRequestRelatedTypeEnum = typeof IndexLabelRequestRelatedTypeEnum[keyof typeof IndexLabelRequestRelatedTypeEnum];
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Check if a given object implements the IndexLabelRequest interface.
|
|
114
|
+
*/
|
|
115
|
+
export function instanceOfIndexLabelRequest(value: object): value is IndexLabelRequest {
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function IndexLabelRequestFromJSON(json: any): IndexLabelRequest {
|
|
120
|
+
return IndexLabelRequestFromJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function IndexLabelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexLabelRequest {
|
|
124
|
+
if (json == null) {
|
|
125
|
+
return json;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
130
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
131
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
132
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
133
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
134
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
135
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
136
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
137
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function IndexLabelRequestToJSON(json: any): IndexLabelRequest {
|
|
142
|
+
return IndexLabelRequestToJSONTyped(json, false);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function IndexLabelRequestToJSONTyped(value?: IndexLabelRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
146
|
+
if (value == null) {
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
|
|
152
|
+
'search': value['search'],
|
|
153
|
+
'sortBy': value['sortBy'],
|
|
154
|
+
'sortDirection': value['sortDirection'],
|
|
155
|
+
'per_page': value['perPage'],
|
|
156
|
+
'page': value['page'],
|
|
157
|
+
'site_id': value['siteId'],
|
|
158
|
+
'related_id': value['relatedId'],
|
|
159
|
+
'related_type': value['relatedType'],
|
|
160
|
+
'includes_relations': value['includesRelations'],
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
@@ -183,9 +183,9 @@ export const IndexProductChildRequestRelatedTypeEnum = {
|
|
|
183
183
|
Document: 'document',
|
|
184
184
|
OverlayTemplate: 'overlayTemplate',
|
|
185
185
|
ProductType: 'productType',
|
|
186
|
-
ProductRange: 'productRange',
|
|
187
186
|
Supplier: 'supplier',
|
|
188
187
|
Tag: 'tag',
|
|
188
|
+
Label: 'label',
|
|
189
189
|
Site: 'site'
|
|
190
190
|
} as const;
|
|
191
191
|
export type IndexProductChildRequestRelatedTypeEnum = typeof IndexProductChildRequestRelatedTypeEnum[keyof typeof IndexProductChildRequestRelatedTypeEnum];
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
SiteLiteResourceFromJSON,
|
|
19
|
+
SiteLiteResourceFromJSONTyped,
|
|
20
|
+
SiteLiteResourceToJSON,
|
|
21
|
+
SiteLiteResourceToJSONTyped,
|
|
22
|
+
} from './SiteLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LabelListResource
|
|
28
|
+
*/
|
|
29
|
+
export interface LabelListResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LabelListResource
|
|
34
|
+
*/
|
|
35
|
+
id?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LabelListResource
|
|
40
|
+
*/
|
|
41
|
+
shortName: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof LabelListResource
|
|
46
|
+
*/
|
|
47
|
+
longName: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof LabelListResource
|
|
52
|
+
*/
|
|
53
|
+
colour: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof LabelListResource
|
|
58
|
+
*/
|
|
59
|
+
textColour: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof LabelListResource
|
|
64
|
+
*/
|
|
65
|
+
startDate?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof LabelListResource
|
|
70
|
+
*/
|
|
71
|
+
endDate?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {SiteLiteResource}
|
|
75
|
+
* @memberof LabelListResource
|
|
76
|
+
*/
|
|
77
|
+
site: SiteLiteResource | null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the LabelListResource interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfLabelListResource(value: object): value is LabelListResource {
|
|
84
|
+
if (!('shortName' in value) || value['shortName'] === undefined) return false;
|
|
85
|
+
if (!('longName' in value) || value['longName'] === undefined) return false;
|
|
86
|
+
if (!('colour' in value) || value['colour'] === undefined) return false;
|
|
87
|
+
if (!('textColour' in value) || value['textColour'] === undefined) return false;
|
|
88
|
+
if (!('site' in value) || value['site'] === undefined) return false;
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function LabelListResourceFromJSON(json: any): LabelListResource {
|
|
93
|
+
return LabelListResourceFromJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function LabelListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LabelListResource {
|
|
97
|
+
if (json == null) {
|
|
98
|
+
return json;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
+
'shortName': json['shortName'],
|
|
104
|
+
'longName': json['longName'],
|
|
105
|
+
'colour': json['colour'],
|
|
106
|
+
'textColour': json['textColour'],
|
|
107
|
+
'startDate': json['startDate'] == null ? undefined : json['startDate'],
|
|
108
|
+
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
109
|
+
'site': SiteLiteResourceFromJSON(json['site']),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function LabelListResourceToJSON(json: any): LabelListResource {
|
|
114
|
+
return LabelListResourceToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function LabelListResourceToJSONTyped(value?: LabelListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'id': value['id'],
|
|
125
|
+
'shortName': value['shortName'],
|
|
126
|
+
'longName': value['longName'],
|
|
127
|
+
'colour': value['colour'],
|
|
128
|
+
'textColour': value['textColour'],
|
|
129
|
+
'startDate': value['startDate'],
|
|
130
|
+
'endDate': value['endDate'],
|
|
131
|
+
'site': SiteLiteResourceToJSON(value['site']),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LabelListResource } from './LabelListResource';
|
|
17
|
+
import {
|
|
18
|
+
LabelListResourceFromJSON,
|
|
19
|
+
LabelListResourceFromJSONTyped,
|
|
20
|
+
LabelListResourceToJSON,
|
|
21
|
+
LabelListResourceToJSONTyped,
|
|
22
|
+
} from './LabelListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LabelListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface LabelListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LabelListResource>}
|
|
33
|
+
* @memberof LabelListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<LabelListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the LabelListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfLabelListResourceArrayResponse(value: object): value is LabelListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LabelListResourceArrayResponseFromJSON(json: any): LabelListResourceArrayResponse {
|
|
46
|
+
return LabelListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LabelListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LabelListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LabelListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LabelListResourceArrayResponseToJSON(json: any): LabelListResourceArrayResponse {
|
|
60
|
+
return LabelListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function LabelListResourceArrayResponseToJSONTyped(value?: LabelListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(LabelListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LabelLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface LabelLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof LabelLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LabelLiteResource
|
|
32
|
+
*/
|
|
33
|
+
shortName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LabelLiteResource
|
|
38
|
+
*/
|
|
39
|
+
longName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof LabelLiteResource
|
|
44
|
+
*/
|
|
45
|
+
colour: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof LabelLiteResource
|
|
50
|
+
*/
|
|
51
|
+
textColour: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the LabelLiteResource interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfLabelLiteResource(value: object): value is LabelLiteResource {
|
|
58
|
+
if (!('shortName' in value) || value['shortName'] === undefined) return false;
|
|
59
|
+
if (!('longName' in value) || value['longName'] === undefined) return false;
|
|
60
|
+
if (!('colour' in value) || value['colour'] === undefined) return false;
|
|
61
|
+
if (!('textColour' in value) || value['textColour'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function LabelLiteResourceFromJSON(json: any): LabelLiteResource {
|
|
66
|
+
return LabelLiteResourceFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function LabelLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LabelLiteResource {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
76
|
+
'shortName': json['shortName'],
|
|
77
|
+
'longName': json['longName'],
|
|
78
|
+
'colour': json['colour'],
|
|
79
|
+
'textColour': json['textColour'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function LabelLiteResourceToJSON(json: any): LabelLiteResource {
|
|
84
|
+
return LabelLiteResourceToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function LabelLiteResourceToJSONTyped(value?: LabelLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'id': value['id'],
|
|
95
|
+
'shortName': value['shortName'],
|
|
96
|
+
'longName': value['longName'],
|
|
97
|
+
'colour': value['colour'],
|
|
98
|
+
'textColour': value['textColour'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LabelLiteResource } from './LabelLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
LabelLiteResourceFromJSON,
|
|
19
|
+
LabelLiteResourceFromJSONTyped,
|
|
20
|
+
LabelLiteResourceToJSON,
|
|
21
|
+
LabelLiteResourceToJSONTyped,
|
|
22
|
+
} from './LabelLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LabelLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface LabelLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LabelLiteResource>}
|
|
33
|
+
* @memberof LabelLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<LabelLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the LabelLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfLabelLiteResourceArrayResponse(value: object): value is LabelLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LabelLiteResourceArrayResponseFromJSON(json: any): LabelLiteResourceArrayResponse {
|
|
46
|
+
return LabelLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LabelLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LabelLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LabelLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LabelLiteResourceArrayResponseToJSON(json: any): LabelLiteResourceArrayResponse {
|
|
60
|
+
return LabelLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function LabelLiteResourceArrayResponseToJSONTyped(value?: LabelLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(LabelLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|