@digital8/lighting-illusions-ts-sdk 0.0.473 → 0.0.474
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 +72 -10
- package/README.md +56 -20
- package/dist/apis/AttributeApi.d.ts +33 -33
- package/dist/apis/AttributeApi.js +92 -92
- package/dist/apis/OverlayTemplateApi.d.ts +39 -39
- package/dist/apis/OverlayTemplateApi.js +110 -110
- package/dist/apis/ProductApi.d.ts +78 -17
- package/dist/apis/ProductApi.js +271 -24
- package/dist/apis/ProductTypeApi.d.ts +33 -33
- package/dist/apis/ProductTypeApi.js +89 -89
- package/dist/apis/SiteApi.d.ts +5 -5
- package/dist/apis/SiteApi.js +2 -2
- package/dist/apis/SupplierApi.d.ts +3 -3
- package/dist/apis/SupplierApi.js +1 -1
- package/dist/apis/TagApi.d.ts +27 -27
- package/dist/apis/TagApi.js +81 -81
- package/dist/models/AssetLiteResource.d.ts +6 -0
- package/dist/models/AssetLiteResource.js +4 -0
- package/dist/models/AttachAccessoriesProductChildRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductChildRequest.js +51 -0
- package/dist/models/AttachAssetsOverlayTemplateRequest.d.ts +32 -0
- package/dist/models/AttachAssetsOverlayTemplateRequest.js +51 -0
- package/dist/models/AttachAttributeProductTypeRequest.d.ts +48 -0
- package/dist/models/AttachAttributeProductTypeRequest.js +65 -0
- package/dist/models/AttachProductTypeAttributeRequest.d.ts +48 -0
- package/dist/models/AttachProductTypeAttributeRequest.js +65 -0
- 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/DetachAssetableOverlayTemplateRequest.d.ts +51 -0
- package/dist/models/DetachAssetableOverlayTemplateRequest.js +64 -0
- package/dist/models/ExternalApiLogListResource.d.ts +56 -0
- package/dist/models/ExternalApiLogListResource.js +63 -0
- package/dist/models/ExternalApiLogListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ExternalApiLogListResourceArrayResponse.js +50 -0
- package/dist/models/GetAllAttributeRequest.d.ts +15 -9
- package/dist/models/GetAllAttributeRequest.js +6 -4
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +12 -6
- package/dist/models/GetAllOverlayTemplateRequest.js +4 -2
- package/dist/models/GetAllProductChildRequest.d.ts +6 -0
- package/dist/models/GetAllProductChildRequest.js +2 -0
- package/dist/models/GetAllProductRequest.d.ts +36 -0
- package/dist/models/GetAllProductRequest.js +12 -0
- package/dist/models/GetAllProductTypeRequest.d.ts +6 -0
- package/dist/models/GetAllProductTypeRequest.js +2 -0
- package/dist/models/GetAllSupplierRequest.d.ts +6 -0
- package/dist/models/GetAllSupplierRequest.js +2 -0
- package/dist/models/IndexAttributeRequest.d.ts +25 -0
- package/dist/models/IndexAttributeRequest.js +13 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +21 -3
- package/dist/models/IndexExternalApiLogRequest.js +10 -4
- package/dist/models/IndexOverlayTemplateRequest.d.ts +25 -0
- package/dist/models/IndexOverlayTemplateRequest.js +13 -1
- package/dist/models/IndexProductChildRequest.d.ts +6 -0
- package/dist/models/IndexProductChildRequest.js +2 -0
- package/dist/models/IndexProductRequest.d.ts +130 -0
- package/dist/models/IndexProductRequest.js +97 -0
- package/dist/models/IndexProductTypeRequest.d.ts +25 -0
- package/dist/models/IndexProductTypeRequest.js +13 -1
- package/dist/models/IndexSiteNotificationRequest.d.ts +18 -0
- package/dist/models/IndexSiteNotificationRequest.js +6 -0
- package/dist/models/IndexSiteRequest.d.ts +18 -0
- package/dist/models/IndexSiteRequest.js +6 -0
- package/dist/models/IndexSupplierRequest.d.ts +25 -0
- package/dist/models/IndexSupplierRequest.js +13 -1
- package/dist/models/IndexTagRequest.d.ts +25 -0
- package/dist/models/IndexTagRequest.js +13 -1
- package/dist/models/OverlayTemplateListResource.d.ts +45 -0
- package/dist/models/OverlayTemplateListResource.js +60 -0
- package/dist/models/OverlayTemplateListResourceArrayResponse.d.ts +33 -0
- package/dist/models/OverlayTemplateListResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedAttributeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAttributeListResourceResponse.js +57 -0
- package/dist/models/PaginatedExternalApiLogListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedExternalApiLogListResourceResponse.js +57 -0
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductChildListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductChildListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.js +57 -0
- package/dist/models/PaginatedSiteListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteListResourceResponse.js +57 -0
- package/dist/models/PaginatedSiteNotificationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteNotificationListResourceResponse.js +57 -0
- package/dist/models/PaginatedSupplierListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSupplierListResourceResponse.js +57 -0
- package/dist/models/PaginatedTagListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTagListResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +63 -0
- package/dist/models/ProductChildListResource.js +72 -0
- package/dist/models/ProductChildListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildListResourceArrayResponse.js +50 -0
- package/dist/models/ProductListResource.d.ts +38 -0
- package/dist/models/ProductListResource.js +55 -0
- package/dist/models/ProductListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductListResourceArrayResponse.js +50 -0
- package/dist/models/ProductTypeListResource.d.ts +44 -0
- package/dist/models/ProductTypeListResource.js +59 -0
- package/dist/models/ProductTypeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductTypeListResourceArrayResponse.js +50 -0
- package/dist/models/SiteListResource.d.ts +50 -0
- package/dist/models/SiteListResource.js +63 -0
- package/dist/models/SiteListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteListResourceArrayResponse.js +50 -0
- package/dist/models/SiteNotificationListResource.d.ts +87 -0
- package/dist/models/SiteNotificationListResource.js +84 -0
- package/dist/models/SiteNotificationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteNotificationListResourceArrayResponse.js +50 -0
- package/dist/models/SupplierListResource.d.ts +57 -0
- package/dist/models/SupplierListResource.js +68 -0
- package/dist/models/SupplierListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SupplierListResourceArrayResponse.js +50 -0
- package/dist/models/TagListResource.d.ts +57 -0
- package/dist/models/TagListResource.js +68 -0
- package/dist/models/TagListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TagListResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +36 -5
- package/dist/models/index.js +36 -5
- package/docs/AssetLiteResource.md +2 -0
- package/docs/{LinkProductChildrenTagRequest.md → AttachAccessoriesProductChildRequest.md} +4 -4
- package/docs/{LinkAssetsOverlayTemplateRequest.md → AttachAssetsOverlayTemplateRequest.md} +4 -4
- package/docs/{LinkAttributeProductTypeRequest.md → AttachAttributeProductTypeRequest.md} +4 -4
- package/docs/{LinkProductTypeAttributeRequest.md → AttachProductTypeAttributeRequest.md} +4 -4
- package/docs/AttributeApi.md +117 -117
- package/docs/AttributeListResource.md +42 -0
- package/docs/AttributeListResourceArrayResponse.md +34 -0
- package/docs/{UnlinkAssetableOverlayTemplateRequest.md → DetachAssetableOverlayTemplateRequest.md} +6 -4
- package/docs/ExternalApiLogListResource.md +42 -0
- package/docs/ExternalApiLogListResourceArrayResponse.md +34 -0
- package/docs/GetAllAttributeRequest.md +6 -4
- package/docs/GetAllOverlayTemplateRequest.md +4 -2
- package/docs/GetAllProductChildRequest.md +2 -0
- package/docs/GetAllProductRequest.md +12 -0
- package/docs/GetAllProductTypeRequest.md +2 -0
- package/docs/GetAllSupplierRequest.md +2 -0
- package/docs/IndexAttributeRequest.md +6 -0
- package/docs/IndexExternalApiLogRequest.md +10 -4
- package/docs/IndexOverlayTemplateRequest.md +6 -0
- package/docs/IndexProductChildRequest.md +2 -0
- package/docs/IndexProductRequest.md +58 -0
- package/docs/IndexProductTypeRequest.md +6 -0
- package/docs/IndexSiteNotificationRequest.md +6 -0
- package/docs/IndexSiteRequest.md +6 -0
- package/docs/IndexSupplierRequest.md +6 -0
- package/docs/IndexTagRequest.md +6 -0
- package/docs/OverlayTemplateApi.md +115 -115
- package/docs/OverlayTemplateListResource.md +38 -0
- package/docs/OverlayTemplateListResourceArrayResponse.md +34 -0
- package/docs/PaginatedAttributeListResourceResponse.md +36 -0
- package/docs/PaginatedExternalApiLogListResourceResponse.md +36 -0
- package/docs/PaginatedOverlayTemplateListResourceResponse.md +36 -0
- package/docs/PaginatedProductChildListResourceResponse.md +36 -0
- package/docs/PaginatedProductListResourceResponse.md +36 -0
- package/docs/PaginatedProductTypeListResourceResponse.md +36 -0
- package/docs/PaginatedSiteListResourceResponse.md +36 -0
- package/docs/PaginatedSiteNotificationListResourceResponse.md +36 -0
- package/docs/PaginatedSupplierListResourceResponse.md +36 -0
- package/docs/PaginatedTagListResourceResponse.md +36 -0
- package/docs/ProductApi.md +377 -29
- package/docs/ProductChildListResource.md +44 -0
- package/docs/ProductChildListResourceArrayResponse.md +34 -0
- package/docs/ProductListResource.md +36 -0
- package/docs/ProductListResourceArrayResponse.md +34 -0
- package/docs/ProductTypeApi.md +94 -94
- package/docs/ProductTypeListResource.md +38 -0
- package/docs/ProductTypeListResourceArrayResponse.md +34 -0
- package/docs/SiteApi.md +6 -6
- package/docs/SiteListResource.md +40 -0
- package/docs/SiteListResourceArrayResponse.md +34 -0
- package/docs/SiteNotificationListResource.md +52 -0
- package/docs/SiteNotificationListResourceArrayResponse.md +34 -0
- package/docs/SupplierApi.md +3 -3
- package/docs/SupplierListResource.md +42 -0
- package/docs/SupplierListResourceArrayResponse.md +34 -0
- package/docs/TagApi.md +84 -84
- package/docs/TagListResource.md +42 -0
- package/docs/TagListResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +108 -108
- package/src/apis/OverlayTemplateApi.ts +141 -141
- package/src/apis/ProductApi.ts +282 -32
- package/src/apis/ProductTypeApi.ts +104 -104
- package/src/apis/SiteApi.ts +12 -12
- package/src/apis/SupplierApi.ts +6 -6
- package/src/apis/TagApi.ts +94 -94
- package/src/models/AssetLiteResource.ts +9 -0
- package/src/models/AttachAccessoriesProductChildRequest.ts +66 -0
- package/src/models/AttachAssetsOverlayTemplateRequest.ts +66 -0
- package/src/models/AttachAttributeProductTypeRequest.ts +88 -0
- package/src/models/AttachProductTypeAttributeRequest.ts +88 -0
- package/src/models/AttributeListResource.ts +102 -0
- package/src/models/AttributeListResourceArrayResponse.ts +73 -0
- package/src/models/DetachAssetableOverlayTemplateRequest.ts +93 -0
- package/src/models/ExternalApiLogListResource.ts +100 -0
- package/src/models/ExternalApiLogListResourceArrayResponse.ts +73 -0
- package/src/models/GetAllAttributeRequest.ts +21 -13
- package/src/models/GetAllOverlayTemplateRequest.ts +16 -8
- package/src/models/GetAllProductChildRequest.ts +8 -0
- package/src/models/GetAllProductRequest.ts +48 -0
- package/src/models/GetAllProductTypeRequest.ts +8 -0
- package/src/models/GetAllSupplierRequest.ts +8 -0
- package/src/models/IndexAttributeRequest.ts +32 -0
- package/src/models/IndexExternalApiLogRequest.ts +31 -7
- package/src/models/IndexOverlayTemplateRequest.ts +32 -0
- package/src/models/IndexProductChildRequest.ts +8 -0
- package/src/models/IndexProductRequest.ts +192 -0
- package/src/models/IndexProductTypeRequest.ts +32 -0
- package/src/models/IndexSiteNotificationRequest.ts +24 -0
- package/src/models/IndexSiteRequest.ts +24 -0
- package/src/models/IndexSupplierRequest.ts +32 -0
- package/src/models/IndexTagRequest.ts +32 -0
- package/src/models/OverlayTemplateListResource.ts +92 -0
- package/src/models/OverlayTemplateListResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedExternalApiLogListResourceResponse.ts +90 -0
- package/src/models/PaginatedOverlayTemplateListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductChildListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
- package/src/models/PaginatedSiteListResourceResponse.ts +90 -0
- package/src/models/PaginatedSiteNotificationListResourceResponse.ts +90 -0
- package/src/models/PaginatedSupplierListResourceResponse.ts +90 -0
- package/src/models/PaginatedTagListResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +119 -0
- package/src/models/ProductChildListResourceArrayResponse.ts +73 -0
- package/src/models/ProductListResource.ts +75 -0
- package/src/models/ProductListResourceArrayResponse.ts +73 -0
- package/src/models/ProductTypeListResource.ts +84 -0
- package/src/models/ProductTypeListResourceArrayResponse.ts +73 -0
- package/src/models/SiteListResource.ts +93 -0
- package/src/models/SiteListResourceArrayResponse.ts +73 -0
- package/src/models/SiteNotificationListResource.ts +153 -0
- package/src/models/SiteNotificationListResourceArrayResponse.ts +73 -0
- package/src/models/SupplierListResource.ts +110 -0
- package/src/models/SupplierListResourceArrayResponse.ts +73 -0
- package/src/models/TagListResource.ts +110 -0
- package/src/models/TagListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +36 -5
- package/dist/models/LinkAssetsOverlayTemplateRequest.d.ts +0 -32
- package/dist/models/LinkAssetsOverlayTemplateRequest.js +0 -51
- package/dist/models/LinkAttributeProductTypeRequest.d.ts +0 -48
- package/dist/models/LinkAttributeProductTypeRequest.js +0 -65
- package/dist/models/LinkProductChildrenTagRequest.d.ts +0 -32
- package/dist/models/LinkProductChildrenTagRequest.js +0 -51
- package/dist/models/LinkProductTypeAttributeRequest.d.ts +0 -48
- package/dist/models/LinkProductTypeAttributeRequest.js +0 -65
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.d.ts +0 -45
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.js +0 -62
- package/src/models/LinkAssetsOverlayTemplateRequest.ts +0 -66
- package/src/models/LinkAttributeProductTypeRequest.ts +0 -88
- package/src/models/LinkProductChildrenTagRequest.ts +0 -66
- package/src/models/LinkProductTypeAttributeRequest.ts +0 -88
- package/src/models/UnlinkAssetableOverlayTemplateRequest.ts +0 -85
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# TagListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`slug` | string
|
|
12
|
+
`type` | string
|
|
13
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { TagListResource } 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
|
+
"slug": null,
|
|
25
|
+
"type": null,
|
|
26
|
+
"site": null,
|
|
27
|
+
} satisfies TagListResource
|
|
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 TagListResource
|
|
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
|
+
# TagListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<TagListResource>](TagListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { TagListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies TagListResourceArrayResponse
|
|
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 TagListResourceArrayResponse
|
|
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
|
+
|
package/package.json
CHANGED
package/src/apis/AttributeApi.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AttachProductTypeAttributeRequest,
|
|
18
19
|
AttributeLiteResourceArrayResponse,
|
|
19
20
|
AttributeResource,
|
|
20
21
|
AttributeResourceArrayResponse,
|
|
@@ -22,9 +23,8 @@ import type {
|
|
|
22
23
|
GenericResponse,
|
|
23
24
|
GetAllAttributeRequest,
|
|
24
25
|
IndexAttributeRequest,
|
|
25
|
-
LinkProductTypeAttributeRequest,
|
|
26
26
|
ModelAttributeResourceArrayResponse,
|
|
27
|
-
|
|
27
|
+
PaginatedAttributeListResourceResponse,
|
|
28
28
|
StoreAttributeRequest,
|
|
29
29
|
StoreAttributeValueRequest,
|
|
30
30
|
UpdateAttributeRequest,
|
|
@@ -33,6 +33,8 @@ import type {
|
|
|
33
33
|
UpdateModelAttributeRequest,
|
|
34
34
|
} from '../models/index';
|
|
35
35
|
import {
|
|
36
|
+
AttachProductTypeAttributeRequestFromJSON,
|
|
37
|
+
AttachProductTypeAttributeRequestToJSON,
|
|
36
38
|
AttributeLiteResourceArrayResponseFromJSON,
|
|
37
39
|
AttributeLiteResourceArrayResponseToJSON,
|
|
38
40
|
AttributeResourceFromJSON,
|
|
@@ -47,12 +49,10 @@ import {
|
|
|
47
49
|
GetAllAttributeRequestToJSON,
|
|
48
50
|
IndexAttributeRequestFromJSON,
|
|
49
51
|
IndexAttributeRequestToJSON,
|
|
50
|
-
LinkProductTypeAttributeRequestFromJSON,
|
|
51
|
-
LinkProductTypeAttributeRequestToJSON,
|
|
52
52
|
ModelAttributeResourceArrayResponseFromJSON,
|
|
53
53
|
ModelAttributeResourceArrayResponseToJSON,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
PaginatedAttributeListResourceResponseFromJSON,
|
|
55
|
+
PaginatedAttributeListResourceResponseToJSON,
|
|
56
56
|
StoreAttributeRequestFromJSON,
|
|
57
57
|
StoreAttributeRequestToJSON,
|
|
58
58
|
StoreAttributeValueRequestFromJSON,
|
|
@@ -67,6 +67,11 @@ import {
|
|
|
67
67
|
UpdateModelAttributeRequestToJSON,
|
|
68
68
|
} from '../models/index';
|
|
69
69
|
|
|
70
|
+
export interface AttachProductTypeAttributeOperationRequest {
|
|
71
|
+
attribute: number;
|
|
72
|
+
attachProductTypeAttributeRequest?: AttachProductTypeAttributeRequest;
|
|
73
|
+
}
|
|
74
|
+
|
|
70
75
|
export interface DestroyAttributeRequest {
|
|
71
76
|
attribute: number;
|
|
72
77
|
}
|
|
@@ -76,6 +81,11 @@ export interface DestroyAttributeValueOperationRequest {
|
|
|
76
81
|
destroyAttributeValueRequest?: DestroyAttributeValueRequest;
|
|
77
82
|
}
|
|
78
83
|
|
|
84
|
+
export interface DetachProductTypeAttributeRequest {
|
|
85
|
+
attribute: number;
|
|
86
|
+
productType: number;
|
|
87
|
+
}
|
|
88
|
+
|
|
79
89
|
export interface GetAllAttributeOperationRequest {
|
|
80
90
|
getAllAttributeRequest?: GetAllAttributeRequest;
|
|
81
91
|
}
|
|
@@ -84,11 +94,6 @@ export interface IndexAttributeOperationRequest {
|
|
|
84
94
|
indexAttributeRequest?: IndexAttributeRequest;
|
|
85
95
|
}
|
|
86
96
|
|
|
87
|
-
export interface LinkProductTypeAttributeOperationRequest {
|
|
88
|
-
attribute: number;
|
|
89
|
-
linkProductTypeAttributeRequest?: LinkProductTypeAttributeRequest;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
97
|
export interface ShowAttributeRequest {
|
|
93
98
|
attribute: number;
|
|
94
99
|
}
|
|
@@ -101,9 +106,9 @@ export interface StoreAttributeValueOperationRequest {
|
|
|
101
106
|
storeAttributeValueRequest?: StoreAttributeValueRequest;
|
|
102
107
|
}
|
|
103
108
|
|
|
104
|
-
export interface
|
|
109
|
+
export interface UpdateAttachedProductTypeAttributeRequest {
|
|
105
110
|
attribute: number;
|
|
106
|
-
|
|
111
|
+
attachProductTypeAttributeRequest?: AttachProductTypeAttributeRequest;
|
|
107
112
|
}
|
|
108
113
|
|
|
109
114
|
export interface UpdateAttributeOperationRequest {
|
|
@@ -120,11 +125,6 @@ export interface UpdateFilterOrderAttributeOperationRequest {
|
|
|
120
125
|
updateFilterOrderAttributeRequest?: UpdateFilterOrderAttributeRequest;
|
|
121
126
|
}
|
|
122
127
|
|
|
123
|
-
export interface UpdateLinkedProductTypeAttributeRequest {
|
|
124
|
-
attribute: number;
|
|
125
|
-
linkProductTypeAttributeRequest?: LinkProductTypeAttributeRequest;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
128
|
export interface UpdateModelAttributeOperationRequest {
|
|
129
129
|
modelAttribute: number;
|
|
130
130
|
updateModelAttributeRequest?: UpdateModelAttributeRequest;
|
|
@@ -135,6 +135,46 @@ export interface UpdateModelAttributeOperationRequest {
|
|
|
135
135
|
*/
|
|
136
136
|
export class AttributeApi extends runtime.BaseAPI {
|
|
137
137
|
|
|
138
|
+
/**
|
|
139
|
+
* Auto-generated: attachProductTypeAttribute
|
|
140
|
+
*/
|
|
141
|
+
async attachProductTypeAttributeRaw(requestParameters: AttachProductTypeAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeResource>> {
|
|
142
|
+
if (requestParameters['attribute'] == null) {
|
|
143
|
+
throw new runtime.RequiredError(
|
|
144
|
+
'attribute',
|
|
145
|
+
'Required parameter "attribute" was null or undefined when calling attachProductTypeAttribute().'
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const queryParameters: any = {};
|
|
150
|
+
|
|
151
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
152
|
+
|
|
153
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
let urlPath = `/admin-api/attribute/{attribute}/attach-product-type`;
|
|
157
|
+
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
158
|
+
|
|
159
|
+
const response = await this.request({
|
|
160
|
+
path: urlPath,
|
|
161
|
+
method: 'POST',
|
|
162
|
+
headers: headerParameters,
|
|
163
|
+
query: queryParameters,
|
|
164
|
+
body: AttachProductTypeAttributeRequestToJSON(requestParameters['attachProductTypeAttributeRequest']),
|
|
165
|
+
}, initOverrides);
|
|
166
|
+
|
|
167
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AttributeResourceFromJSON(jsonValue));
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Auto-generated: attachProductTypeAttribute
|
|
172
|
+
*/
|
|
173
|
+
async attachProductTypeAttribute(requestParameters: AttachProductTypeAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeResource> {
|
|
174
|
+
const response = await this.attachProductTypeAttributeRaw(requestParameters, initOverrides);
|
|
175
|
+
return await response.value();
|
|
176
|
+
}
|
|
177
|
+
|
|
138
178
|
/**
|
|
139
179
|
* Auto-generated: destroyAttribute
|
|
140
180
|
*/
|
|
@@ -213,41 +253,54 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
213
253
|
}
|
|
214
254
|
|
|
215
255
|
/**
|
|
216
|
-
* Auto-generated:
|
|
256
|
+
* Auto-generated: detachProductTypeAttribute
|
|
217
257
|
*/
|
|
218
|
-
async
|
|
258
|
+
async detachProductTypeAttributeRaw(requestParameters: DetachProductTypeAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeResource>> {
|
|
259
|
+
if (requestParameters['attribute'] == null) {
|
|
260
|
+
throw new runtime.RequiredError(
|
|
261
|
+
'attribute',
|
|
262
|
+
'Required parameter "attribute" was null or undefined when calling detachProductTypeAttribute().'
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (requestParameters['productType'] == null) {
|
|
267
|
+
throw new runtime.RequiredError(
|
|
268
|
+
'productType',
|
|
269
|
+
'Required parameter "productType" was null or undefined when calling detachProductTypeAttribute().'
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
|
|
219
273
|
const queryParameters: any = {};
|
|
220
274
|
|
|
221
275
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
222
276
|
|
|
223
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
224
|
-
|
|
225
277
|
|
|
226
|
-
let urlPath = `/admin-api/attribute/
|
|
278
|
+
let urlPath = `/admin-api/attribute/{attribute}/detach-product-type/{productType}`;
|
|
279
|
+
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
280
|
+
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
227
281
|
|
|
228
282
|
const response = await this.request({
|
|
229
283
|
path: urlPath,
|
|
230
284
|
method: 'POST',
|
|
231
285
|
headers: headerParameters,
|
|
232
286
|
query: queryParameters,
|
|
233
|
-
body: GetAllAttributeRequestToJSON(requestParameters['getAllAttributeRequest']),
|
|
234
287
|
}, initOverrides);
|
|
235
288
|
|
|
236
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
289
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AttributeResourceFromJSON(jsonValue));
|
|
237
290
|
}
|
|
238
291
|
|
|
239
292
|
/**
|
|
240
|
-
* Auto-generated:
|
|
293
|
+
* Auto-generated: detachProductTypeAttribute
|
|
241
294
|
*/
|
|
242
|
-
async
|
|
243
|
-
const response = await this.
|
|
295
|
+
async detachProductTypeAttribute(requestParameters: DetachProductTypeAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeResource> {
|
|
296
|
+
const response = await this.detachProductTypeAttributeRaw(requestParameters, initOverrides);
|
|
244
297
|
return await response.value();
|
|
245
298
|
}
|
|
246
299
|
|
|
247
300
|
/**
|
|
248
|
-
* Auto-generated:
|
|
301
|
+
* Auto-generated: getAllAttribute
|
|
249
302
|
*/
|
|
250
|
-
async
|
|
303
|
+
async getAllAttributeRaw(requestParameters: GetAllAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeLiteResourceArrayResponse>> {
|
|
251
304
|
const queryParameters: any = {};
|
|
252
305
|
|
|
253
306
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -255,38 +308,31 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
255
308
|
headerParameters['Content-Type'] = 'application/json';
|
|
256
309
|
|
|
257
310
|
|
|
258
|
-
let urlPath = `/admin-api/attribute/
|
|
311
|
+
let urlPath = `/admin-api/attribute/all`;
|
|
259
312
|
|
|
260
313
|
const response = await this.request({
|
|
261
314
|
path: urlPath,
|
|
262
315
|
method: 'POST',
|
|
263
316
|
headers: headerParameters,
|
|
264
317
|
query: queryParameters,
|
|
265
|
-
body:
|
|
318
|
+
body: GetAllAttributeRequestToJSON(requestParameters['getAllAttributeRequest']),
|
|
266
319
|
}, initOverrides);
|
|
267
320
|
|
|
268
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
321
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AttributeLiteResourceArrayResponseFromJSON(jsonValue));
|
|
269
322
|
}
|
|
270
323
|
|
|
271
324
|
/**
|
|
272
|
-
* Auto-generated:
|
|
325
|
+
* Auto-generated: getAllAttribute
|
|
273
326
|
*/
|
|
274
|
-
async
|
|
275
|
-
const response = await this.
|
|
327
|
+
async getAllAttribute(requestParameters: GetAllAttributeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeLiteResourceArrayResponse> {
|
|
328
|
+
const response = await this.getAllAttributeRaw(requestParameters, initOverrides);
|
|
276
329
|
return await response.value();
|
|
277
330
|
}
|
|
278
331
|
|
|
279
332
|
/**
|
|
280
|
-
* Auto-generated:
|
|
333
|
+
* Auto-generated: indexAttribute
|
|
281
334
|
*/
|
|
282
|
-
async
|
|
283
|
-
if (requestParameters['attribute'] == null) {
|
|
284
|
-
throw new runtime.RequiredError(
|
|
285
|
-
'attribute',
|
|
286
|
-
'Required parameter "attribute" was null or undefined when calling linkProductTypeAttribute().'
|
|
287
|
-
);
|
|
288
|
-
}
|
|
289
|
-
|
|
335
|
+
async indexAttributeRaw(requestParameters: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeListResourceResponse>> {
|
|
290
336
|
const queryParameters: any = {};
|
|
291
337
|
|
|
292
338
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -294,25 +340,24 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
294
340
|
headerParameters['Content-Type'] = 'application/json';
|
|
295
341
|
|
|
296
342
|
|
|
297
|
-
let urlPath = `/admin-api/attribute/
|
|
298
|
-
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
343
|
+
let urlPath = `/admin-api/attribute/list`;
|
|
299
344
|
|
|
300
345
|
const response = await this.request({
|
|
301
346
|
path: urlPath,
|
|
302
347
|
method: 'POST',
|
|
303
348
|
headers: headerParameters,
|
|
304
349
|
query: queryParameters,
|
|
305
|
-
body:
|
|
350
|
+
body: IndexAttributeRequestToJSON(requestParameters['indexAttributeRequest']),
|
|
306
351
|
}, initOverrides);
|
|
307
352
|
|
|
308
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
353
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAttributeListResourceResponseFromJSON(jsonValue));
|
|
309
354
|
}
|
|
310
355
|
|
|
311
356
|
/**
|
|
312
|
-
* Auto-generated:
|
|
357
|
+
* Auto-generated: indexAttribute
|
|
313
358
|
*/
|
|
314
|
-
async
|
|
315
|
-
const response = await this.
|
|
359
|
+
async indexAttribute(requestParameters: IndexAttributeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeListResourceResponse> {
|
|
360
|
+
const response = await this.indexAttributeRaw(requestParameters, initOverrides);
|
|
316
361
|
return await response.value();
|
|
317
362
|
}
|
|
318
363
|
|
|
@@ -418,20 +463,13 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
418
463
|
}
|
|
419
464
|
|
|
420
465
|
/**
|
|
421
|
-
* Auto-generated:
|
|
466
|
+
* Auto-generated: updateAttachedProductTypeAttribute
|
|
422
467
|
*/
|
|
423
|
-
async
|
|
468
|
+
async updateAttachedProductTypeAttributeRaw(requestParameters: UpdateAttachedProductTypeAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeResource>> {
|
|
424
469
|
if (requestParameters['attribute'] == null) {
|
|
425
470
|
throw new runtime.RequiredError(
|
|
426
471
|
'attribute',
|
|
427
|
-
'Required parameter "attribute" was null or undefined when calling
|
|
428
|
-
);
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
if (requestParameters['productType'] == null) {
|
|
432
|
-
throw new runtime.RequiredError(
|
|
433
|
-
'productType',
|
|
434
|
-
'Required parameter "productType" was null or undefined when calling unlinkProductTypeAttribute().'
|
|
472
|
+
'Required parameter "attribute" was null or undefined when calling updateAttachedProductTypeAttribute().'
|
|
435
473
|
);
|
|
436
474
|
}
|
|
437
475
|
|
|
@@ -439,26 +477,28 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
439
477
|
|
|
440
478
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
441
479
|
|
|
480
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
481
|
+
|
|
442
482
|
|
|
443
|
-
let urlPath = `/admin-api/attribute/{attribute}/
|
|
483
|
+
let urlPath = `/admin-api/attribute/{attribute}/update-product-type`;
|
|
444
484
|
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
445
|
-
urlPath = urlPath.replace(`{${"productType"}}`, encodeURIComponent(String(requestParameters['productType'])));
|
|
446
485
|
|
|
447
486
|
const response = await this.request({
|
|
448
487
|
path: urlPath,
|
|
449
|
-
method: '
|
|
488
|
+
method: 'PUT',
|
|
450
489
|
headers: headerParameters,
|
|
451
490
|
query: queryParameters,
|
|
491
|
+
body: AttachProductTypeAttributeRequestToJSON(requestParameters['attachProductTypeAttributeRequest']),
|
|
452
492
|
}, initOverrides);
|
|
453
493
|
|
|
454
494
|
return new runtime.JSONApiResponse(response, (jsonValue) => AttributeResourceFromJSON(jsonValue));
|
|
455
495
|
}
|
|
456
496
|
|
|
457
497
|
/**
|
|
458
|
-
* Auto-generated:
|
|
498
|
+
* Auto-generated: updateAttachedProductTypeAttribute
|
|
459
499
|
*/
|
|
460
|
-
async
|
|
461
|
-
const response = await this.
|
|
500
|
+
async updateAttachedProductTypeAttribute(requestParameters: UpdateAttachedProductTypeAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeResource> {
|
|
501
|
+
const response = await this.updateAttachedProductTypeAttributeRaw(requestParameters, initOverrides);
|
|
462
502
|
return await response.value();
|
|
463
503
|
}
|
|
464
504
|
|
|
@@ -574,46 +614,6 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
574
614
|
return await response.value();
|
|
575
615
|
}
|
|
576
616
|
|
|
577
|
-
/**
|
|
578
|
-
* Auto-generated: updateLinkedProductTypeAttribute
|
|
579
|
-
*/
|
|
580
|
-
async updateLinkedProductTypeAttributeRaw(requestParameters: UpdateLinkedProductTypeAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeResource>> {
|
|
581
|
-
if (requestParameters['attribute'] == null) {
|
|
582
|
-
throw new runtime.RequiredError(
|
|
583
|
-
'attribute',
|
|
584
|
-
'Required parameter "attribute" was null or undefined when calling updateLinkedProductTypeAttribute().'
|
|
585
|
-
);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
const queryParameters: any = {};
|
|
589
|
-
|
|
590
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
591
|
-
|
|
592
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
let urlPath = `/admin-api/attribute/{attribute}/update-product-type`;
|
|
596
|
-
urlPath = urlPath.replace(`{${"attribute"}}`, encodeURIComponent(String(requestParameters['attribute'])));
|
|
597
|
-
|
|
598
|
-
const response = await this.request({
|
|
599
|
-
path: urlPath,
|
|
600
|
-
method: 'PUT',
|
|
601
|
-
headers: headerParameters,
|
|
602
|
-
query: queryParameters,
|
|
603
|
-
body: LinkProductTypeAttributeRequestToJSON(requestParameters['linkProductTypeAttributeRequest']),
|
|
604
|
-
}, initOverrides);
|
|
605
|
-
|
|
606
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AttributeResourceFromJSON(jsonValue));
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* Auto-generated: updateLinkedProductTypeAttribute
|
|
611
|
-
*/
|
|
612
|
-
async updateLinkedProductTypeAttribute(requestParameters: UpdateLinkedProductTypeAttributeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeResource> {
|
|
613
|
-
const response = await this.updateLinkedProductTypeAttributeRaw(requestParameters, initOverrides);
|
|
614
|
-
return await response.value();
|
|
615
|
-
}
|
|
616
|
-
|
|
617
617
|
/**
|
|
618
618
|
* Auto-generated: updateModelAttribute
|
|
619
619
|
*/
|