@digital8/lighting-illusions-ts-sdk 0.0.656 → 0.0.658
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 +8 -6
- package/README.md +7 -7
- package/dist/apis/ProductApi.d.ts +1 -25
- package/dist/apis/ProductApi.js +0 -96
- package/dist/apis/ProductChildSiteDetailApi.d.ts +42 -0
- package/dist/apis/ProductChildSiteDetailApi.js +176 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AttachDocumentsProductChildSiteDetailRequest.d.ts +33 -0
- package/dist/models/AttachDocumentsProductChildSiteDetailRequest.js +52 -0
- package/dist/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.d.ts +38 -0
- package/dist/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.js +53 -0
- package/dist/models/DetachDocumentsProductChildSiteDetailRequest.d.ts +32 -0
- package/dist/models/DetachDocumentsProductChildSiteDetailRequest.js +51 -0
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +3 -3
- package/docs/{AttachDocumentsProductChildRequest.md → AttachDocumentsProductChildSiteDetailRequest.md} +5 -5
- package/docs/{AttachDocumentsProductChildRequestDocumentsInner.md → AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md} +4 -4
- package/docs/{DetachDocumentsProductChildRequest.md → DetachDocumentsProductChildSiteDetailRequest.md} +4 -4
- package/docs/ProductApi.md +0 -138
- package/docs/ProductChildSiteDetailApi.md +146 -0
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +0 -96
- package/src/apis/ProductChildSiteDetailApi.ts +126 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AttachDocumentsProductChildSiteDetailRequest.ts +74 -0
- package/src/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.ts +74 -0
- package/src/models/DetachDocumentsProductChildSiteDetailRequest.ts +66 -0
- package/src/models/index.ts +3 -3
- package/dist/models/AttachDocumentsProductChildRequest.d.ts +0 -33
- package/dist/models/AttachDocumentsProductChildRequest.js +0 -52
- package/dist/models/AttachDocumentsProductChildRequestDocumentsInner.d.ts +0 -38
- package/dist/models/AttachDocumentsProductChildRequestDocumentsInner.js +0 -53
- package/dist/models/DetachDocumentsProductChildRequest.d.ts +0 -32
- package/dist/models/DetachDocumentsProductChildRequest.js +0 -51
- package/src/models/AttachDocumentsProductChildRequest.ts +0 -74
- package/src/models/AttachDocumentsProductChildRequestDocumentsInner.ts +0 -74
- package/src/models/DetachDocumentsProductChildRequest.ts +0 -66
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfAttachDocumentsProductChildSiteDetailRequestDocumentsInner = instanceOfAttachDocumentsProductChildSiteDetailRequestDocumentsInner;
|
|
17
|
+
exports.AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSON = AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSON;
|
|
18
|
+
exports.AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSONTyped = AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSONTyped;
|
|
19
|
+
exports.AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSON = AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSON;
|
|
20
|
+
exports.AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSONTyped = AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AttachDocumentsProductChildSiteDetailRequestDocumentsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAttachDocumentsProductChildSiteDetailRequestDocumentsInner(value) {
|
|
25
|
+
if (!('documentId' in value) || value['documentId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSON(json) {
|
|
30
|
+
return AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'documentId': json['document_id'],
|
|
38
|
+
'index': json['index'] == null ? undefined : json['index'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSON(json) {
|
|
42
|
+
return AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AttachDocumentsProductChildSiteDetailRequestDocumentsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'document_id': value['documentId'],
|
|
51
|
+
'index': value['index'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 DetachDocumentsProductChildSiteDetailRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DetachDocumentsProductChildSiteDetailRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof DetachDocumentsProductChildSiteDetailRequest
|
|
22
|
+
*/
|
|
23
|
+
documents: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DetachDocumentsProductChildSiteDetailRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDetachDocumentsProductChildSiteDetailRequest(value: object): value is DetachDocumentsProductChildSiteDetailRequest;
|
|
29
|
+
export declare function DetachDocumentsProductChildSiteDetailRequestFromJSON(json: any): DetachDocumentsProductChildSiteDetailRequest;
|
|
30
|
+
export declare function DetachDocumentsProductChildSiteDetailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachDocumentsProductChildSiteDetailRequest;
|
|
31
|
+
export declare function DetachDocumentsProductChildSiteDetailRequestToJSON(json: any): DetachDocumentsProductChildSiteDetailRequest;
|
|
32
|
+
export declare function DetachDocumentsProductChildSiteDetailRequestToJSONTyped(value?: DetachDocumentsProductChildSiteDetailRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfDetachDocumentsProductChildSiteDetailRequest = instanceOfDetachDocumentsProductChildSiteDetailRequest;
|
|
17
|
+
exports.DetachDocumentsProductChildSiteDetailRequestFromJSON = DetachDocumentsProductChildSiteDetailRequestFromJSON;
|
|
18
|
+
exports.DetachDocumentsProductChildSiteDetailRequestFromJSONTyped = DetachDocumentsProductChildSiteDetailRequestFromJSONTyped;
|
|
19
|
+
exports.DetachDocumentsProductChildSiteDetailRequestToJSON = DetachDocumentsProductChildSiteDetailRequestToJSON;
|
|
20
|
+
exports.DetachDocumentsProductChildSiteDetailRequestToJSONTyped = DetachDocumentsProductChildSiteDetailRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DetachDocumentsProductChildSiteDetailRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDetachDocumentsProductChildSiteDetailRequest(value) {
|
|
25
|
+
if (!('documents' in value) || value['documents'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DetachDocumentsProductChildSiteDetailRequestFromJSON(json) {
|
|
30
|
+
return DetachDocumentsProductChildSiteDetailRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DetachDocumentsProductChildSiteDetailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'documents': json['documents'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DetachDocumentsProductChildSiteDetailRequestToJSON(json) {
|
|
41
|
+
return DetachDocumentsProductChildSiteDetailRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DetachDocumentsProductChildSiteDetailRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'documents': value['documents'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export * from './AttachAssetsOverlayTemplateRequest';
|
|
|
11
11
|
export * from './AttachAttributeProductTypeRequest';
|
|
12
12
|
export * from './AttachDocumentablesDocumentRequest';
|
|
13
13
|
export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
14
|
+
export * from './AttachDocumentsProductChildSiteDetailRequest';
|
|
15
|
+
export * from './AttachDocumentsProductChildSiteDetailRequestDocumentsInner';
|
|
16
16
|
export * from './AttachProductTypeAttributeRequest';
|
|
17
17
|
export * from './AttachProductsProductCategoryRequest';
|
|
18
18
|
export * from './AttributeFieldType';
|
|
@@ -47,7 +47,7 @@ export * from './DestroyAttributeValueRequest';
|
|
|
47
47
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
48
48
|
export * from './DetachDocumentablesDocumentRequest';
|
|
49
49
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
50
|
-
export * from './
|
|
50
|
+
export * from './DetachDocumentsProductChildSiteDetailRequest';
|
|
51
51
|
export * from './DetachProductsProductCategoryRequest';
|
|
52
52
|
export * from './DocumentFileForUploadResource';
|
|
53
53
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -29,8 +29,8 @@ __exportStar(require("./AttachAssetsOverlayTemplateRequest"), exports);
|
|
|
29
29
|
__exportStar(require("./AttachAttributeProductTypeRequest"), exports);
|
|
30
30
|
__exportStar(require("./AttachDocumentablesDocumentRequest"), exports);
|
|
31
31
|
__exportStar(require("./AttachDocumentablesDocumentRequestDocumentablesInner"), exports);
|
|
32
|
-
__exportStar(require("./
|
|
33
|
-
__exportStar(require("./
|
|
32
|
+
__exportStar(require("./AttachDocumentsProductChildSiteDetailRequest"), exports);
|
|
33
|
+
__exportStar(require("./AttachDocumentsProductChildSiteDetailRequestDocumentsInner"), exports);
|
|
34
34
|
__exportStar(require("./AttachProductTypeAttributeRequest"), exports);
|
|
35
35
|
__exportStar(require("./AttachProductsProductCategoryRequest"), exports);
|
|
36
36
|
__exportStar(require("./AttributeFieldType"), exports);
|
|
@@ -65,7 +65,7 @@ __exportStar(require("./DestroyAttributeValueRequest"), exports);
|
|
|
65
65
|
__exportStar(require("./DetachAssetableOverlayTemplateRequest"), exports);
|
|
66
66
|
__exportStar(require("./DetachDocumentablesDocumentRequest"), exports);
|
|
67
67
|
__exportStar(require("./DetachDocumentablesDocumentRequestDocumentablesInner"), exports);
|
|
68
|
-
__exportStar(require("./
|
|
68
|
+
__exportStar(require("./DetachDocumentsProductChildSiteDetailRequest"), exports);
|
|
69
69
|
__exportStar(require("./DetachProductsProductCategoryRequest"), exports);
|
|
70
70
|
__exportStar(require("./DocumentFileForUploadResource"), exports);
|
|
71
71
|
__exportStar(require("./DocumentFileForUploadResourceArrayResponse"), exports);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# AttachDocumentsProductChildSiteDetailRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`documents` | [Array<
|
|
9
|
+
`documents` | [Array<AttachDocumentsProductChildSiteDetailRequestDocumentsInner>](AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { AttachDocumentsProductChildSiteDetailRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"documents": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies AttachDocumentsProductChildSiteDetailRequest
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as AttachDocumentsProductChildSiteDetailRequest
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# AttachDocumentsProductChildSiteDetailRequestDocumentsInner
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -12,13 +12,13 @@ Name | Type
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { AttachDocumentsProductChildSiteDetailRequestDocumentsInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"documentId": null,
|
|
20
20
|
"index": null,
|
|
21
|
-
} satisfies
|
|
21
|
+
} satisfies AttachDocumentsProductChildSiteDetailRequestDocumentsInner
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
27
|
console.log(exampleJSON)
|
|
28
28
|
|
|
29
29
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as AttachDocumentsProductChildSiteDetailRequestDocumentsInner
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# DetachDocumentsProductChildSiteDetailRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -11,12 +11,12 @@ Name | Type
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { DetachDocumentsProductChildSiteDetailRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"documents": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies DetachDocumentsProductChildSiteDetailRequest
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as DetachDocumentsProductChildSiteDetailRequest
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
package/docs/ProductApi.md
CHANGED
|
@@ -6,12 +6,10 @@ All URIs are relative to *http://localhost/api*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
| [**attachAccessoriesProductChild**](ProductApi.md#attachaccessoriesproductchildoperation) | **POST** /admin-api/product/children/{productChild}/accessory/attach | Auto-generated: attachAccessoriesProductChild |
|
|
8
8
|
| [**attachCompatibleProductsProductChild**](ProductApi.md#attachcompatibleproductsproductchild) | **POST** /admin-api/product/children/{productChild}/compatible-product/attach | Auto-generated: attachCompatibleProductsProductChild |
|
|
9
|
-
| [**attachDocumentsProductChild**](ProductApi.md#attachdocumentsproductchildoperation) | **POST** /admin-api/product/children/{productChild}/attach-documents | Auto-generated: attachDocumentsProductChild |
|
|
10
9
|
| [**destroyProduct**](ProductApi.md#destroyproduct) | **DELETE** /admin-api/product/parent/{product}/delete | Auto-generated: destroyProduct |
|
|
11
10
|
| [**destroyProductChild**](ProductApi.md#destroyproductchild) | **DELETE** /admin-api/product/children/{productChild}/delete | Auto-generated: destroyProductChild |
|
|
12
11
|
| [**detachAccessoryProductChild**](ProductApi.md#detachaccessoryproductchild) | **DELETE** /admin-api/product/children/{productChild}/accessory/detach/{accessory} | Auto-generated: detachAccessoryProductChild |
|
|
13
12
|
| [**detachCompatibleProductProductChild**](ProductApi.md#detachcompatibleproductproductchild) | **DELETE** /admin-api/product/children/{productChild}/compatible-product/detach/{compatibleProduct} | Auto-generated: detachCompatibleProductProductChild |
|
|
14
|
-
| [**detachDocumentsProductChild**](ProductApi.md#detachdocumentsproductchildoperation) | **POST** /admin-api/product/children/{productChild}/detach-documents | Auto-generated: detachDocumentsProductChild |
|
|
15
13
|
| [**getAccessoriesProductChild**](ProductApi.md#getaccessoriesproductchild) | **POST** /admin-api/product/children/{productChild}/accessory/list | Auto-generated: getAccessoriesProductChild |
|
|
16
14
|
| [**getAllProduct**](ProductApi.md#getallproductoperation) | **POST** /admin-api/product/parent/all | Auto-generated: getAllProduct |
|
|
17
15
|
| [**getAllProductChild**](ProductApi.md#getallproductchildoperation) | **POST** /admin-api/product/children/all | Auto-generated: getAllProductChild |
|
|
@@ -164,74 +162,6 @@ No authorization required
|
|
|
164
162
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
165
163
|
|
|
166
164
|
|
|
167
|
-
## attachDocumentsProductChild
|
|
168
|
-
|
|
169
|
-
> ProductChildResource attachDocumentsProductChild(productChild, attachDocumentsProductChildRequest)
|
|
170
|
-
|
|
171
|
-
Auto-generated: attachDocumentsProductChild
|
|
172
|
-
|
|
173
|
-
### Example
|
|
174
|
-
|
|
175
|
-
```ts
|
|
176
|
-
import {
|
|
177
|
-
Configuration,
|
|
178
|
-
ProductApi,
|
|
179
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
180
|
-
import type { AttachDocumentsProductChildOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
181
|
-
|
|
182
|
-
async function example() {
|
|
183
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
184
|
-
const api = new ProductApi();
|
|
185
|
-
|
|
186
|
-
const body = {
|
|
187
|
-
// number | The id of the productChild
|
|
188
|
-
productChild: 56,
|
|
189
|
-
// AttachDocumentsProductChildRequest (optional)
|
|
190
|
-
attachDocumentsProductChildRequest: ...,
|
|
191
|
-
} satisfies AttachDocumentsProductChildOperationRequest;
|
|
192
|
-
|
|
193
|
-
try {
|
|
194
|
-
const data = await api.attachDocumentsProductChild(body);
|
|
195
|
-
console.log(data);
|
|
196
|
-
} catch (error) {
|
|
197
|
-
console.error(error);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// Run the test
|
|
202
|
-
example().catch(console.error);
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
### Parameters
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
| Name | Type | Description | Notes |
|
|
209
|
-
|------------- | ------------- | ------------- | -------------|
|
|
210
|
-
| **productChild** | `number` | The id of the productChild | [Defaults to `undefined`] |
|
|
211
|
-
| **attachDocumentsProductChildRequest** | [AttachDocumentsProductChildRequest](AttachDocumentsProductChildRequest.md) | | [Optional] |
|
|
212
|
-
|
|
213
|
-
### Return type
|
|
214
|
-
|
|
215
|
-
[**ProductChildResource**](ProductChildResource.md)
|
|
216
|
-
|
|
217
|
-
### Authorization
|
|
218
|
-
|
|
219
|
-
No authorization required
|
|
220
|
-
|
|
221
|
-
### HTTP request headers
|
|
222
|
-
|
|
223
|
-
- **Content-Type**: `application/json`
|
|
224
|
-
- **Accept**: `application/json`
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
### HTTP response details
|
|
228
|
-
| Status code | Description | Response headers |
|
|
229
|
-
|-------------|-------------|------------------|
|
|
230
|
-
| **200** | Successful resource response | - |
|
|
231
|
-
|
|
232
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
233
|
-
|
|
234
|
-
|
|
235
165
|
## destroyProduct
|
|
236
166
|
|
|
237
167
|
> GenericResponse destroyProduct(product)
|
|
@@ -498,74 +428,6 @@ No authorization required
|
|
|
498
428
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
499
429
|
|
|
500
430
|
|
|
501
|
-
## detachDocumentsProductChild
|
|
502
|
-
|
|
503
|
-
> ProductChildResource detachDocumentsProductChild(productChild, detachDocumentsProductChildRequest)
|
|
504
|
-
|
|
505
|
-
Auto-generated: detachDocumentsProductChild
|
|
506
|
-
|
|
507
|
-
### Example
|
|
508
|
-
|
|
509
|
-
```ts
|
|
510
|
-
import {
|
|
511
|
-
Configuration,
|
|
512
|
-
ProductApi,
|
|
513
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
514
|
-
import type { DetachDocumentsProductChildOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
515
|
-
|
|
516
|
-
async function example() {
|
|
517
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
518
|
-
const api = new ProductApi();
|
|
519
|
-
|
|
520
|
-
const body = {
|
|
521
|
-
// number | The id of the productChild
|
|
522
|
-
productChild: 56,
|
|
523
|
-
// DetachDocumentsProductChildRequest (optional)
|
|
524
|
-
detachDocumentsProductChildRequest: ...,
|
|
525
|
-
} satisfies DetachDocumentsProductChildOperationRequest;
|
|
526
|
-
|
|
527
|
-
try {
|
|
528
|
-
const data = await api.detachDocumentsProductChild(body);
|
|
529
|
-
console.log(data);
|
|
530
|
-
} catch (error) {
|
|
531
|
-
console.error(error);
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
// Run the test
|
|
536
|
-
example().catch(console.error);
|
|
537
|
-
```
|
|
538
|
-
|
|
539
|
-
### Parameters
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
| Name | Type | Description | Notes |
|
|
543
|
-
|------------- | ------------- | ------------- | -------------|
|
|
544
|
-
| **productChild** | `number` | The id of the productChild | [Defaults to `undefined`] |
|
|
545
|
-
| **detachDocumentsProductChildRequest** | [DetachDocumentsProductChildRequest](DetachDocumentsProductChildRequest.md) | | [Optional] |
|
|
546
|
-
|
|
547
|
-
### Return type
|
|
548
|
-
|
|
549
|
-
[**ProductChildResource**](ProductChildResource.md)
|
|
550
|
-
|
|
551
|
-
### Authorization
|
|
552
|
-
|
|
553
|
-
No authorization required
|
|
554
|
-
|
|
555
|
-
### HTTP request headers
|
|
556
|
-
|
|
557
|
-
- **Content-Type**: `application/json`
|
|
558
|
-
- **Accept**: `application/json`
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
### HTTP response details
|
|
562
|
-
| Status code | Description | Response headers |
|
|
563
|
-
|-------------|-------------|------------------|
|
|
564
|
-
| **200** | Successful resource response | - |
|
|
565
|
-
|
|
566
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
567
|
-
|
|
568
|
-
|
|
569
431
|
## getAccessoriesProductChild
|
|
570
432
|
|
|
571
433
|
> PaginatedProductChildListResourceResponse getAccessoriesProductChild(productChild, indexProductChildRequest)
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# ProductChildSiteDetailApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**attachDocumentsProductChildSiteDetail**](ProductChildSiteDetailApi.md#attachdocumentsproductchildsitedetailoperation) | **POST** /admin-api/product-child-site-detail/{productChildSiteDetail}/attach-documents | Auto-generated: attachDocumentsProductChildSiteDetail |
|
|
8
|
+
| [**detachDocumentsProductChildSiteDetail**](ProductChildSiteDetailApi.md#detachdocumentsproductchildsitedetailoperation) | **POST** /admin-api/product-child-site-detail/{productChildSiteDetail}/detach-documents | Auto-generated: detachDocumentsProductChildSiteDetail |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## attachDocumentsProductChildSiteDetail
|
|
13
|
+
|
|
14
|
+
> ProductChildSiteDetailResource attachDocumentsProductChildSiteDetail(productChildSiteDetail, attachDocumentsProductChildSiteDetailRequest)
|
|
15
|
+
|
|
16
|
+
Auto-generated: attachDocumentsProductChildSiteDetail
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import {
|
|
22
|
+
Configuration,
|
|
23
|
+
ProductChildSiteDetailApi,
|
|
24
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
25
|
+
import type { AttachDocumentsProductChildSiteDetailOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
26
|
+
|
|
27
|
+
async function example() {
|
|
28
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
29
|
+
const api = new ProductChildSiteDetailApi();
|
|
30
|
+
|
|
31
|
+
const body = {
|
|
32
|
+
// number | The id of the productChildSiteDetail
|
|
33
|
+
productChildSiteDetail: 56,
|
|
34
|
+
// AttachDocumentsProductChildSiteDetailRequest (optional)
|
|
35
|
+
attachDocumentsProductChildSiteDetailRequest: ...,
|
|
36
|
+
} satisfies AttachDocumentsProductChildSiteDetailOperationRequest;
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
const data = await api.attachDocumentsProductChildSiteDetail(body);
|
|
40
|
+
console.log(data);
|
|
41
|
+
} catch (error) {
|
|
42
|
+
console.error(error);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Run the test
|
|
47
|
+
example().catch(console.error);
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Parameters
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
| Name | Type | Description | Notes |
|
|
54
|
+
|------------- | ------------- | ------------- | -------------|
|
|
55
|
+
| **productChildSiteDetail** | `number` | The id of the productChildSiteDetail | [Defaults to `undefined`] |
|
|
56
|
+
| **attachDocumentsProductChildSiteDetailRequest** | [AttachDocumentsProductChildSiteDetailRequest](AttachDocumentsProductChildSiteDetailRequest.md) | | [Optional] |
|
|
57
|
+
|
|
58
|
+
### Return type
|
|
59
|
+
|
|
60
|
+
[**ProductChildSiteDetailResource**](ProductChildSiteDetailResource.md)
|
|
61
|
+
|
|
62
|
+
### Authorization
|
|
63
|
+
|
|
64
|
+
No authorization required
|
|
65
|
+
|
|
66
|
+
### HTTP request headers
|
|
67
|
+
|
|
68
|
+
- **Content-Type**: `application/json`
|
|
69
|
+
- **Accept**: `application/json`
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### HTTP response details
|
|
73
|
+
| Status code | Description | Response headers |
|
|
74
|
+
|-------------|-------------|------------------|
|
|
75
|
+
| **200** | Successful resource response | - |
|
|
76
|
+
|
|
77
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## detachDocumentsProductChildSiteDetail
|
|
81
|
+
|
|
82
|
+
> ProductChildSiteDetailResource detachDocumentsProductChildSiteDetail(productChildSiteDetail, detachDocumentsProductChildSiteDetailRequest)
|
|
83
|
+
|
|
84
|
+
Auto-generated: detachDocumentsProductChildSiteDetail
|
|
85
|
+
|
|
86
|
+
### Example
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
import {
|
|
90
|
+
Configuration,
|
|
91
|
+
ProductChildSiteDetailApi,
|
|
92
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
93
|
+
import type { DetachDocumentsProductChildSiteDetailOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
94
|
+
|
|
95
|
+
async function example() {
|
|
96
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
97
|
+
const api = new ProductChildSiteDetailApi();
|
|
98
|
+
|
|
99
|
+
const body = {
|
|
100
|
+
// number | The id of the productChildSiteDetail
|
|
101
|
+
productChildSiteDetail: 56,
|
|
102
|
+
// DetachDocumentsProductChildSiteDetailRequest (optional)
|
|
103
|
+
detachDocumentsProductChildSiteDetailRequest: ...,
|
|
104
|
+
} satisfies DetachDocumentsProductChildSiteDetailOperationRequest;
|
|
105
|
+
|
|
106
|
+
try {
|
|
107
|
+
const data = await api.detachDocumentsProductChildSiteDetail(body);
|
|
108
|
+
console.log(data);
|
|
109
|
+
} catch (error) {
|
|
110
|
+
console.error(error);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Run the test
|
|
115
|
+
example().catch(console.error);
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Parameters
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
| Name | Type | Description | Notes |
|
|
122
|
+
|------------- | ------------- | ------------- | -------------|
|
|
123
|
+
| **productChildSiteDetail** | `number` | The id of the productChildSiteDetail | [Defaults to `undefined`] |
|
|
124
|
+
| **detachDocumentsProductChildSiteDetailRequest** | [DetachDocumentsProductChildSiteDetailRequest](DetachDocumentsProductChildSiteDetailRequest.md) | | [Optional] |
|
|
125
|
+
|
|
126
|
+
### Return type
|
|
127
|
+
|
|
128
|
+
[**ProductChildSiteDetailResource**](ProductChildSiteDetailResource.md)
|
|
129
|
+
|
|
130
|
+
### Authorization
|
|
131
|
+
|
|
132
|
+
No authorization required
|
|
133
|
+
|
|
134
|
+
### HTTP request headers
|
|
135
|
+
|
|
136
|
+
- **Content-Type**: `application/json`
|
|
137
|
+
- **Accept**: `application/json`
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### HTTP response details
|
|
141
|
+
| Status code | Description | Response headers |
|
|
142
|
+
|-------------|-------------|------------------|
|
|
143
|
+
| **200** | Successful resource response | - |
|
|
144
|
+
|
|
145
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
146
|
+
|