@digital8/lighting-illusions-ts-sdk 0.0.444 → 0.0.446
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 +6 -0
- package/README.md +6 -2
- package/dist/apis/TagApi.d.ts +14 -3
- package/dist/apis/TagApi.js +46 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllAttributeRequest.d.ts +10 -1
- package/dist/models/GetAllAttributeRequest.js +9 -1
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +8 -1
- package/dist/models/GetAllOverlayTemplateRequest.js +7 -1
- package/dist/models/GetAllProductChildRequest.d.ts +10 -1
- package/dist/models/GetAllProductChildRequest.js +9 -1
- package/dist/models/GetAllProductRequest.d.ts +9 -1
- package/dist/models/GetAllProductRequest.js +8 -1
- package/dist/models/GetAllProductTypeRequest.d.ts +9 -1
- package/dist/models/GetAllProductTypeRequest.js +8 -1
- package/dist/models/GetAllSupplierRequest.d.ts +8 -1
- package/dist/models/GetAllSupplierRequest.js +7 -1
- package/dist/models/IndexAttributeRequest.d.ts +12 -0
- package/dist/models/IndexAttributeRequest.js +4 -0
- package/dist/models/IndexExternalApiLogRequest.d.ts +12 -0
- package/dist/models/IndexExternalApiLogRequest.js +4 -0
- package/dist/models/IndexOverlayTemplateRequest.d.ts +12 -0
- package/dist/models/IndexOverlayTemplateRequest.js +4 -0
- package/dist/models/IndexProductChildRequest.d.ts +4 -4
- package/dist/models/IndexProductChildRequest.js +2 -2
- package/dist/models/IndexProductTypeRequest.d.ts +19 -0
- package/dist/models/IndexProductTypeRequest.js +11 -1
- package/dist/models/IndexSiteNotificationRequest.d.ts +12 -0
- package/dist/models/IndexSiteNotificationRequest.js +4 -0
- package/dist/models/IndexSiteRequest.d.ts +12 -0
- package/dist/models/IndexSiteRequest.js +4 -0
- package/dist/models/IndexSupplierRequest.d.ts +12 -0
- package/dist/models/IndexSupplierRequest.js +4 -0
- package/dist/models/IndexTagRequest.d.ts +19 -0
- package/dist/models/IndexTagRequest.js +11 -1
- package/dist/models/PaginatedTagListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTagListResourceResponse.js +57 -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/TagLiteResource.d.ts +0 -7
- package/dist/models/TagLiteResource.js +0 -5
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/IndexAttributeRequest.md +4 -0
- package/docs/IndexExternalApiLogRequest.md +4 -0
- package/docs/IndexOverlayTemplateRequest.md +4 -0
- package/docs/IndexProductChildRequest.md +2 -2
- package/docs/IndexProductTypeRequest.md +4 -0
- package/docs/IndexSiteNotificationRequest.md +4 -0
- package/docs/IndexSiteRequest.md +4 -0
- package/docs/IndexSupplierRequest.md +4 -0
- package/docs/IndexTagRequest.md +4 -0
- package/docs/PaginatedTagListResourceResponse.md +36 -0
- package/docs/TagApi.md +69 -3
- package/docs/TagListResource.md +42 -0
- package/docs/TagListResourceArrayResponse.md +34 -0
- package/docs/TagLiteResource.md +0 -2
- package/package.json +1 -1
- package/src/apis/TagApi.ts +42 -6
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllAttributeRequest.ts +11 -1
- package/src/models/GetAllOverlayTemplateRequest.ts +9 -1
- package/src/models/GetAllProductChildRequest.ts +11 -1
- package/src/models/GetAllProductRequest.ts +10 -1
- package/src/models/GetAllProductTypeRequest.ts +10 -1
- package/src/models/GetAllSupplierRequest.ts +9 -1
- package/src/models/IndexAttributeRequest.ts +16 -0
- package/src/models/IndexExternalApiLogRequest.ts +16 -0
- package/src/models/IndexOverlayTemplateRequest.ts +16 -0
- package/src/models/IndexProductChildRequest.ts +6 -6
- package/src/models/IndexProductTypeRequest.ts +24 -0
- package/src/models/IndexSiteNotificationRequest.ts +16 -0
- package/src/models/IndexSiteRequest.ts +16 -0
- package/src/models/IndexSupplierRequest.ts +16 -0
- package/src/models/IndexTagRequest.ts +24 -0
- package/src/models/PaginatedTagListResourceResponse.ts +90 -0
- package/src/models/TagListResource.ts +110 -0
- package/src/models/TagListResourceArrayResponse.ts +73 -0
- package/src/models/TagLiteResource.ts +0 -17
- package/src/models/index.ts +3 -0
|
@@ -17,6 +17,8 @@ Name | Type
|
|
|
17
17
|
`externalApiLoggableType` | Array<string>
|
|
18
18
|
`externalApiLoggableId` | Array<string>
|
|
19
19
|
`siteId` | Array<string>
|
|
20
|
+
`relatedId` | number
|
|
21
|
+
`relatedType` | string
|
|
20
22
|
|
|
21
23
|
## Example
|
|
22
24
|
|
|
@@ -36,6 +38,8 @@ const example = {
|
|
|
36
38
|
"externalApiLoggableType": null,
|
|
37
39
|
"externalApiLoggableId": null,
|
|
38
40
|
"siteId": null,
|
|
41
|
+
"relatedId": null,
|
|
42
|
+
"relatedType": null,
|
|
39
43
|
} satisfies IndexExternalApiLogRequest
|
|
40
44
|
|
|
41
45
|
console.log(example)
|
|
@@ -12,6 +12,8 @@ Name | Type
|
|
|
12
12
|
`perPage` | number
|
|
13
13
|
`page` | number
|
|
14
14
|
`sitesId` | Array<string>
|
|
15
|
+
`relatedId` | number
|
|
16
|
+
`relatedType` | string
|
|
15
17
|
|
|
16
18
|
## Example
|
|
17
19
|
|
|
@@ -26,6 +28,8 @@ const example = {
|
|
|
26
28
|
"perPage": null,
|
|
27
29
|
"page": null,
|
|
28
30
|
"sitesId": null,
|
|
31
|
+
"relatedId": null,
|
|
32
|
+
"relatedType": null,
|
|
29
33
|
} satisfies IndexOverlayTemplateRequest
|
|
30
34
|
|
|
31
35
|
console.log(example)
|
|
@@ -16,8 +16,8 @@ Name | Type
|
|
|
16
16
|
`siteDetailsSiteId` | Array<string>
|
|
17
17
|
`isDisabled` | Array<string>
|
|
18
18
|
`hasNetsuiteId` | Array<string>
|
|
19
|
-
`relatedType` | string
|
|
20
19
|
`relatedId` | number
|
|
20
|
+
`relatedType` | string
|
|
21
21
|
|
|
22
22
|
## Example
|
|
23
23
|
|
|
@@ -36,8 +36,8 @@ const example = {
|
|
|
36
36
|
"siteDetailsSiteId": null,
|
|
37
37
|
"isDisabled": null,
|
|
38
38
|
"hasNetsuiteId": null,
|
|
39
|
-
"relatedType": null,
|
|
40
39
|
"relatedId": null,
|
|
40
|
+
"relatedType": null,
|
|
41
41
|
} satisfies IndexProductChildRequest
|
|
42
42
|
|
|
43
43
|
console.log(example)
|
|
@@ -11,6 +11,8 @@ Name | Type
|
|
|
11
11
|
`sortDirection` | string
|
|
12
12
|
`perPage` | number
|
|
13
13
|
`page` | number
|
|
14
|
+
`relatedId` | number
|
|
15
|
+
`relatedType` | string
|
|
14
16
|
|
|
15
17
|
## Example
|
|
16
18
|
|
|
@@ -24,6 +26,8 @@ const example = {
|
|
|
24
26
|
"sortDirection": null,
|
|
25
27
|
"perPage": null,
|
|
26
28
|
"page": null,
|
|
29
|
+
"relatedId": null,
|
|
30
|
+
"relatedType": null,
|
|
27
31
|
} satisfies IndexProductTypeRequest
|
|
28
32
|
|
|
29
33
|
console.log(example)
|
|
@@ -12,6 +12,8 @@ Name | Type
|
|
|
12
12
|
`perPage` | number
|
|
13
13
|
`page` | number
|
|
14
14
|
`siteId` | Array<string>
|
|
15
|
+
`relatedId` | number
|
|
16
|
+
`relatedType` | string
|
|
15
17
|
|
|
16
18
|
## Example
|
|
17
19
|
|
|
@@ -26,6 +28,8 @@ const example = {
|
|
|
26
28
|
"perPage": null,
|
|
27
29
|
"page": null,
|
|
28
30
|
"siteId": null,
|
|
31
|
+
"relatedId": null,
|
|
32
|
+
"relatedType": null,
|
|
29
33
|
} satisfies IndexSiteNotificationRequest
|
|
30
34
|
|
|
31
35
|
console.log(example)
|
package/docs/IndexSiteRequest.md
CHANGED
|
@@ -11,6 +11,8 @@ Name | Type
|
|
|
11
11
|
`sortDirection` | string
|
|
12
12
|
`perPage` | number
|
|
13
13
|
`page` | number
|
|
14
|
+
`relatedId` | number
|
|
15
|
+
`relatedType` | string
|
|
14
16
|
|
|
15
17
|
## Example
|
|
16
18
|
|
|
@@ -24,6 +26,8 @@ const example = {
|
|
|
24
26
|
"sortDirection": null,
|
|
25
27
|
"perPage": null,
|
|
26
28
|
"page": null,
|
|
29
|
+
"relatedId": null,
|
|
30
|
+
"relatedType": null,
|
|
27
31
|
} satisfies IndexSiteRequest
|
|
28
32
|
|
|
29
33
|
console.log(example)
|
|
@@ -11,6 +11,8 @@ Name | Type
|
|
|
11
11
|
`sortDirection` | string
|
|
12
12
|
`perPage` | number
|
|
13
13
|
`page` | number
|
|
14
|
+
`relatedId` | number
|
|
15
|
+
`relatedType` | string
|
|
14
16
|
|
|
15
17
|
## Example
|
|
16
18
|
|
|
@@ -24,6 +26,8 @@ const example = {
|
|
|
24
26
|
"sortDirection": null,
|
|
25
27
|
"perPage": null,
|
|
26
28
|
"page": null,
|
|
29
|
+
"relatedId": null,
|
|
30
|
+
"relatedType": null,
|
|
27
31
|
} satisfies IndexSupplierRequest
|
|
28
32
|
|
|
29
33
|
console.log(example)
|
package/docs/IndexTagRequest.md
CHANGED
|
@@ -13,6 +13,8 @@ Name | Type
|
|
|
13
13
|
`page` | number
|
|
14
14
|
`siteId` | Array<string>
|
|
15
15
|
`type` | Array<string>
|
|
16
|
+
`relatedId` | number
|
|
17
|
+
`relatedType` | string
|
|
16
18
|
|
|
17
19
|
## Example
|
|
18
20
|
|
|
@@ -28,6 +30,8 @@ const example = {
|
|
|
28
30
|
"page": null,
|
|
29
31
|
"siteId": null,
|
|
30
32
|
"type": null,
|
|
33
|
+
"relatedId": null,
|
|
34
|
+
"relatedType": null,
|
|
31
35
|
} satisfies IndexTagRequest
|
|
32
36
|
|
|
33
37
|
console.log(example)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedTagListResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<TagListResource>](TagListResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedTagListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedTagListResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedTagListResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/TagApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
8
8
|
| [**getAllTag**](TagApi.md#getalltag) | **POST** /admin-api/tag/all | Auto-generated: getAllTag |
|
|
9
9
|
| [**indexTag**](TagApi.md#indextagoperation) | **POST** /admin-api/tag/list | Auto-generated: indexTag |
|
|
10
10
|
| [**linkProductChildrenTag**](TagApi.md#linkproductchildrentagoperation) | **POST** /admin-api/tag/{tag}/link-product-children | Auto-generated: linkProductChildrenTag |
|
|
11
|
+
| [**searchExcludingRelationsTag**](TagApi.md#searchexcludingrelationstag) | **POST** /admin-api/tag/search-excluding-relations | Auto-generated: searchExcludingRelationsTag |
|
|
11
12
|
| [**showTag**](TagApi.md#showtag) | **GET** /admin-api/tag/{tag} | Auto-generated: showTag |
|
|
12
13
|
| [**storeTag**](TagApi.md#storetagoperation) | **POST** /admin-api/tag/create | Auto-generated: storeTag |
|
|
13
14
|
| [**unlinkProductChildTag**](TagApi.md#unlinkproductchildtag) | **POST** /admin-api/tag/{tag}/remove-product-child/{productChild} | Auto-generated: unlinkProductChildTag |
|
|
@@ -147,7 +148,7 @@ No authorization required
|
|
|
147
148
|
|
|
148
149
|
## indexTag
|
|
149
150
|
|
|
150
|
-
>
|
|
151
|
+
> PaginatedTagListResourceResponse indexTag(indexTagRequest)
|
|
151
152
|
|
|
152
153
|
Auto-generated: indexTag
|
|
153
154
|
|
|
@@ -190,7 +191,7 @@ example().catch(console.error);
|
|
|
190
191
|
|
|
191
192
|
### Return type
|
|
192
193
|
|
|
193
|
-
[**
|
|
194
|
+
[**PaginatedTagListResourceResponse**](PaginatedTagListResourceResponse.md)
|
|
194
195
|
|
|
195
196
|
### Authorization
|
|
196
197
|
|
|
@@ -205,7 +206,7 @@ No authorization required
|
|
|
205
206
|
### HTTP response details
|
|
206
207
|
| Status code | Description | Response headers |
|
|
207
208
|
|-------------|-------------|------------------|
|
|
208
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\
|
|
209
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\TagListResource[]>> | - |
|
|
209
210
|
|
|
210
211
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
211
212
|
|
|
@@ -278,6 +279,71 @@ No authorization required
|
|
|
278
279
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
279
280
|
|
|
280
281
|
|
|
282
|
+
## searchExcludingRelationsTag
|
|
283
|
+
|
|
284
|
+
> PaginatedTagListResourceResponse searchExcludingRelationsTag(indexTagRequest)
|
|
285
|
+
|
|
286
|
+
Auto-generated: searchExcludingRelationsTag
|
|
287
|
+
|
|
288
|
+
### Example
|
|
289
|
+
|
|
290
|
+
```ts
|
|
291
|
+
import {
|
|
292
|
+
Configuration,
|
|
293
|
+
TagApi,
|
|
294
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
295
|
+
import type { SearchExcludingRelationsTagRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
296
|
+
|
|
297
|
+
async function example() {
|
|
298
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
299
|
+
const api = new TagApi();
|
|
300
|
+
|
|
301
|
+
const body = {
|
|
302
|
+
// IndexTagRequest (optional)
|
|
303
|
+
indexTagRequest: ...,
|
|
304
|
+
} satisfies SearchExcludingRelationsTagRequest;
|
|
305
|
+
|
|
306
|
+
try {
|
|
307
|
+
const data = await api.searchExcludingRelationsTag(body);
|
|
308
|
+
console.log(data);
|
|
309
|
+
} catch (error) {
|
|
310
|
+
console.error(error);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// Run the test
|
|
315
|
+
example().catch(console.error);
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Parameters
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
| Name | Type | Description | Notes |
|
|
322
|
+
|------------- | ------------- | ------------- | -------------|
|
|
323
|
+
| **indexTagRequest** | [IndexTagRequest](IndexTagRequest.md) | | [Optional] |
|
|
324
|
+
|
|
325
|
+
### Return type
|
|
326
|
+
|
|
327
|
+
[**PaginatedTagListResourceResponse**](PaginatedTagListResourceResponse.md)
|
|
328
|
+
|
|
329
|
+
### Authorization
|
|
330
|
+
|
|
331
|
+
No authorization required
|
|
332
|
+
|
|
333
|
+
### HTTP request headers
|
|
334
|
+
|
|
335
|
+
- **Content-Type**: `application/json`
|
|
336
|
+
- **Accept**: `application/json`
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
### HTTP response details
|
|
340
|
+
| Status code | Description | Response headers |
|
|
341
|
+
|-------------|-------------|------------------|
|
|
342
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\TagListResource[]>> | - |
|
|
343
|
+
|
|
344
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
345
|
+
|
|
346
|
+
|
|
281
347
|
## showTag
|
|
282
348
|
|
|
283
349
|
> TagResource showTag(tag)
|
|
@@ -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/docs/TagLiteResource.md
CHANGED
|
@@ -8,7 +8,6 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
|
-
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
12
11
|
|
|
13
12
|
## Example
|
|
14
13
|
|
|
@@ -19,7 +18,6 @@ import type { TagLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
19
18
|
const example = {
|
|
20
19
|
"id": null,
|
|
21
20
|
"name": null,
|
|
22
|
-
"site": null,
|
|
23
21
|
} satisfies TagLiteResource
|
|
24
22
|
|
|
25
23
|
console.log(example)
|
package/package.json
CHANGED
package/src/apis/TagApi.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
GenericResponse,
|
|
19
19
|
IndexTagRequest,
|
|
20
20
|
LinkProductChildrenTagRequest,
|
|
21
|
-
|
|
21
|
+
PaginatedTagListResourceResponse,
|
|
22
22
|
ProductChildRelationResourceArrayResponse,
|
|
23
23
|
StoreTagRequest,
|
|
24
24
|
TagLiteResourceArrayResponse,
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
IndexTagRequestToJSON,
|
|
33
33
|
LinkProductChildrenTagRequestFromJSON,
|
|
34
34
|
LinkProductChildrenTagRequestToJSON,
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
PaginatedTagListResourceResponseFromJSON,
|
|
36
|
+
PaginatedTagListResourceResponseToJSON,
|
|
37
37
|
ProductChildRelationResourceArrayResponseFromJSON,
|
|
38
38
|
ProductChildRelationResourceArrayResponseToJSON,
|
|
39
39
|
StoreTagRequestFromJSON,
|
|
@@ -63,6 +63,10 @@ export interface LinkProductChildrenTagOperationRequest {
|
|
|
63
63
|
linkProductChildrenTagRequest?: LinkProductChildrenTagRequest;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
export interface SearchExcludingRelationsTagRequest {
|
|
67
|
+
indexTagRequest?: IndexTagRequest;
|
|
68
|
+
}
|
|
69
|
+
|
|
66
70
|
export interface ShowTagRequest {
|
|
67
71
|
tag: number;
|
|
68
72
|
}
|
|
@@ -158,7 +162,7 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
158
162
|
/**
|
|
159
163
|
* Auto-generated: indexTag
|
|
160
164
|
*/
|
|
161
|
-
async indexTagRaw(requestParameters: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
165
|
+
async indexTagRaw(requestParameters: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTagListResourceResponse>> {
|
|
162
166
|
const queryParameters: any = {};
|
|
163
167
|
|
|
164
168
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -176,13 +180,13 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
176
180
|
body: IndexTagRequestToJSON(requestParameters['indexTagRequest']),
|
|
177
181
|
}, initOverrides);
|
|
178
182
|
|
|
179
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
183
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTagListResourceResponseFromJSON(jsonValue));
|
|
180
184
|
}
|
|
181
185
|
|
|
182
186
|
/**
|
|
183
187
|
* Auto-generated: indexTag
|
|
184
188
|
*/
|
|
185
|
-
async indexTag(requestParameters: IndexTagOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
189
|
+
async indexTag(requestParameters: IndexTagOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTagListResourceResponse> {
|
|
186
190
|
const response = await this.indexTagRaw(requestParameters, initOverrides);
|
|
187
191
|
return await response.value();
|
|
188
192
|
}
|
|
@@ -227,6 +231,38 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
227
231
|
return await response.value();
|
|
228
232
|
}
|
|
229
233
|
|
|
234
|
+
/**
|
|
235
|
+
* Auto-generated: searchExcludingRelationsTag
|
|
236
|
+
*/
|
|
237
|
+
async searchExcludingRelationsTagRaw(requestParameters: SearchExcludingRelationsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTagListResourceResponse>> {
|
|
238
|
+
const queryParameters: any = {};
|
|
239
|
+
|
|
240
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
241
|
+
|
|
242
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
let urlPath = `/admin-api/tag/search-excluding-relations`;
|
|
246
|
+
|
|
247
|
+
const response = await this.request({
|
|
248
|
+
path: urlPath,
|
|
249
|
+
method: 'POST',
|
|
250
|
+
headers: headerParameters,
|
|
251
|
+
query: queryParameters,
|
|
252
|
+
body: IndexTagRequestToJSON(requestParameters['indexTagRequest']),
|
|
253
|
+
}, initOverrides);
|
|
254
|
+
|
|
255
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTagListResourceResponseFromJSON(jsonValue));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Auto-generated: searchExcludingRelationsTag
|
|
260
|
+
*/
|
|
261
|
+
async searchExcludingRelationsTag(requestParameters: SearchExcludingRelationsTagRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTagListResourceResponse> {
|
|
262
|
+
const response = await this.searchExcludingRelationsTagRaw(requestParameters, initOverrides);
|
|
263
|
+
return await response.value();
|
|
264
|
+
}
|
|
265
|
+
|
|
230
266
|
/**
|
|
231
267
|
* Auto-generated: showTag
|
|
232
268
|
*/
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -48,7 +48,7 @@ export interface GetAllAttributeRequest {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof GetAllAttributeRequest
|
|
50
50
|
*/
|
|
51
|
-
relatedType?:
|
|
51
|
+
relatedType?: GetAllAttributeRequestRelatedTypeEnum;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {Array<string>}
|
|
@@ -90,6 +90,16 @@ export const GetAllAttributeRequestSortDirectionEnum = {
|
|
|
90
90
|
} as const;
|
|
91
91
|
export type GetAllAttributeRequestSortDirectionEnum = typeof GetAllAttributeRequestSortDirectionEnum[keyof typeof GetAllAttributeRequestSortDirectionEnum];
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export const GetAllAttributeRequestRelatedTypeEnum = {
|
|
97
|
+
ProductType: 'productType',
|
|
98
|
+
Category: 'category',
|
|
99
|
+
ProductRange: 'productRange'
|
|
100
|
+
} as const;
|
|
101
|
+
export type GetAllAttributeRequestRelatedTypeEnum = typeof GetAllAttributeRequestRelatedTypeEnum[keyof typeof GetAllAttributeRequestRelatedTypeEnum];
|
|
102
|
+
|
|
93
103
|
|
|
94
104
|
/**
|
|
95
105
|
* Check if a given object implements the GetAllAttributeRequest interface.
|
|
@@ -48,7 +48,7 @@ export interface GetAllOverlayTemplateRequest {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof GetAllOverlayTemplateRequest
|
|
50
50
|
*/
|
|
51
|
-
relatedType?:
|
|
51
|
+
relatedType?: GetAllOverlayTemplateRequestRelatedTypeEnum;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {Array<string>}
|
|
@@ -78,6 +78,14 @@ export const GetAllOverlayTemplateRequestSortDirectionEnum = {
|
|
|
78
78
|
} as const;
|
|
79
79
|
export type GetAllOverlayTemplateRequestSortDirectionEnum = typeof GetAllOverlayTemplateRequestSortDirectionEnum[keyof typeof GetAllOverlayTemplateRequestSortDirectionEnum];
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export const GetAllOverlayTemplateRequestRelatedTypeEnum = {
|
|
85
|
+
Asset: 'asset'
|
|
86
|
+
} as const;
|
|
87
|
+
export type GetAllOverlayTemplateRequestRelatedTypeEnum = typeof GetAllOverlayTemplateRequestRelatedTypeEnum[keyof typeof GetAllOverlayTemplateRequestRelatedTypeEnum];
|
|
88
|
+
|
|
81
89
|
|
|
82
90
|
/**
|
|
83
91
|
* Check if a given object implements the GetAllOverlayTemplateRequest interface.
|
|
@@ -48,7 +48,7 @@ export interface GetAllProductChildRequest {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof GetAllProductChildRequest
|
|
50
50
|
*/
|
|
51
|
-
relatedType?:
|
|
51
|
+
relatedType?: GetAllProductChildRequestRelatedTypeEnum;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {Array<string>}
|
|
@@ -111,6 +111,16 @@ export const GetAllProductChildRequestSortDirectionEnum = {
|
|
|
111
111
|
} as const;
|
|
112
112
|
export type GetAllProductChildRequestSortDirectionEnum = typeof GetAllProductChildRequestSortDirectionEnum[keyof typeof GetAllProductChildRequestSortDirectionEnum];
|
|
113
113
|
|
|
114
|
+
/**
|
|
115
|
+
* @export
|
|
116
|
+
*/
|
|
117
|
+
export const GetAllProductChildRequestRelatedTypeEnum = {
|
|
118
|
+
OverlayTemplate: 'overlayTemplate',
|
|
119
|
+
Supplier: 'supplier',
|
|
120
|
+
Tag: 'tag'
|
|
121
|
+
} as const;
|
|
122
|
+
export type GetAllProductChildRequestRelatedTypeEnum = typeof GetAllProductChildRequestRelatedTypeEnum[keyof typeof GetAllProductChildRequestRelatedTypeEnum];
|
|
123
|
+
|
|
114
124
|
|
|
115
125
|
/**
|
|
116
126
|
* Check if a given object implements the GetAllProductChildRequest interface.
|
|
@@ -48,7 +48,7 @@ export interface GetAllProductRequest {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof GetAllProductRequest
|
|
50
50
|
*/
|
|
51
|
-
relatedType?:
|
|
51
|
+
relatedType?: GetAllProductRequestRelatedTypeEnum;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {Array<string>}
|
|
@@ -103,6 +103,15 @@ export const GetAllProductRequestSortDirectionEnum = {
|
|
|
103
103
|
} as const;
|
|
104
104
|
export type GetAllProductRequestSortDirectionEnum = typeof GetAllProductRequestSortDirectionEnum[keyof typeof GetAllProductRequestSortDirectionEnum];
|
|
105
105
|
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const GetAllProductRequestRelatedTypeEnum = {
|
|
110
|
+
Supplier: 'supplier',
|
|
111
|
+
ProductType: 'productType'
|
|
112
|
+
} as const;
|
|
113
|
+
export type GetAllProductRequestRelatedTypeEnum = typeof GetAllProductRequestRelatedTypeEnum[keyof typeof GetAllProductRequestRelatedTypeEnum];
|
|
114
|
+
|
|
106
115
|
|
|
107
116
|
/**
|
|
108
117
|
* Check if a given object implements the GetAllProductRequest interface.
|
|
@@ -48,7 +48,7 @@ export interface GetAllProductTypeRequest {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof GetAllProductTypeRequest
|
|
50
50
|
*/
|
|
51
|
-
relatedType?:
|
|
51
|
+
relatedType?: GetAllProductTypeRequestRelatedTypeEnum;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
|
|
@@ -72,6 +72,15 @@ export const GetAllProductTypeRequestSortDirectionEnum = {
|
|
|
72
72
|
} as const;
|
|
73
73
|
export type GetAllProductTypeRequestSortDirectionEnum = typeof GetAllProductTypeRequestSortDirectionEnum[keyof typeof GetAllProductTypeRequestSortDirectionEnum];
|
|
74
74
|
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const GetAllProductTypeRequestRelatedTypeEnum = {
|
|
79
|
+
Attribute: 'attribute',
|
|
80
|
+
Product: 'product'
|
|
81
|
+
} as const;
|
|
82
|
+
export type GetAllProductTypeRequestRelatedTypeEnum = typeof GetAllProductTypeRequestRelatedTypeEnum[keyof typeof GetAllProductTypeRequestRelatedTypeEnum];
|
|
83
|
+
|
|
75
84
|
|
|
76
85
|
/**
|
|
77
86
|
* Check if a given object implements the GetAllProductTypeRequest interface.
|
|
@@ -48,7 +48,7 @@ export interface GetAllSupplierRequest {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof GetAllSupplierRequest
|
|
50
50
|
*/
|
|
51
|
-
relatedType?:
|
|
51
|
+
relatedType?: GetAllSupplierRequestRelatedTypeEnum;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
|
|
@@ -74,6 +74,14 @@ export const GetAllSupplierRequestSortDirectionEnum = {
|
|
|
74
74
|
} as const;
|
|
75
75
|
export type GetAllSupplierRequestSortDirectionEnum = typeof GetAllSupplierRequestSortDirectionEnum[keyof typeof GetAllSupplierRequestSortDirectionEnum];
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export const GetAllSupplierRequestRelatedTypeEnum = {
|
|
81
|
+
Product: 'product'
|
|
82
|
+
} as const;
|
|
83
|
+
export type GetAllSupplierRequestRelatedTypeEnum = typeof GetAllSupplierRequestRelatedTypeEnum[keyof typeof GetAllSupplierRequestRelatedTypeEnum];
|
|
84
|
+
|
|
77
85
|
|
|
78
86
|
/**
|
|
79
87
|
* Check if a given object implements the GetAllSupplierRequest interface.
|