@digital8/lighting-illusions-ts-sdk 0.0.488 → 0.0.490
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 -22
- package/README.md +10 -15
- package/dist/apis/DocumentApi.d.ts +24 -1
- package/dist/apis/DocumentApi.js +96 -2
- package/dist/models/DescriptionResource.d.ts +50 -0
- package/dist/models/DescriptionResource.js +63 -0
- package/dist/models/DescriptionResourceArrayResponse.d.ts +33 -0
- package/dist/models/DescriptionResourceArrayResponse.js +50 -0
- package/dist/models/GetAllDocumentRequest.d.ts +26 -0
- package/dist/models/GetAllDocumentRequest.js +14 -1
- package/dist/models/GetAllProductChildRequest.d.ts +1 -0
- package/dist/models/GetAllProductChildRequest.js +2 -1
- package/dist/models/IndexDocumentRequest.d.ts +26 -0
- package/dist/models/IndexDocumentRequest.js +14 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +0 -6
- package/dist/models/IndexExternalApiLogRequest.js +0 -2
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/ProductChildSiteDetailResource.d.ts +2 -8
- package/dist/models/ProductChildSiteDetailResource.js +4 -4
- package/dist/models/SEOResource.d.ts +2 -20
- package/dist/models/SEOResource.js +8 -20
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +3 -15
- package/dist/models/StoreProductChildRequestSitesInner.js +7 -9
- package/dist/models/StoreSupplierRequest.d.ts +7 -0
- package/dist/models/StoreSupplierRequest.js +5 -0
- package/dist/models/StoreSupplierRequestDescriptionsInner.d.ts +44 -0
- package/dist/models/StoreSupplierRequestDescriptionsInner.js +55 -0
- package/dist/models/StoreSupplierRequestSeoInner.d.ts +2 -20
- package/dist/models/StoreSupplierRequestSeoInner.js +4 -10
- package/dist/models/StoreTagRequest.d.ts +3 -9
- package/dist/models/StoreTagRequest.js +6 -8
- package/dist/models/SupplierFrontendResource.d.ts +7 -0
- package/dist/models/SupplierFrontendResource.js +5 -0
- package/dist/models/SupplierResource.d.ts +7 -0
- package/dist/models/SupplierResource.js +5 -0
- package/dist/models/TagResource.d.ts +7 -0
- package/dist/models/TagResource.js +5 -0
- package/dist/models/UpdateDocumentRequest.d.ts +44 -0
- package/dist/models/UpdateDocumentRequest.js +57 -0
- package/dist/models/UpdateSupplierRequest.d.ts +7 -0
- package/dist/models/UpdateSupplierRequest.js +5 -0
- package/dist/models/UpdateTagRequest.d.ts +3 -9
- package/dist/models/UpdateTagRequest.js +6 -8
- package/dist/models/index.d.ts +4 -11
- package/dist/models/index.js +4 -11
- package/docs/{ProductAggregationResourceArrayResponse.md → DescriptionResource.md} +12 -6
- package/docs/{ProductRating.md → DescriptionResourceArrayResponse.md} +6 -4
- package/docs/DocumentApi.md +137 -2
- package/docs/GetAllDocumentRequest.md +6 -0
- package/docs/IndexDocumentRequest.md +6 -0
- package/docs/IndexExternalApiLogRequest.md +0 -2
- package/docs/ProductChildSiteDetailResource.md +2 -4
- package/docs/SEOResource.md +4 -10
- package/docs/StoreProductChildRequestSitesInner.md +4 -8
- package/docs/StoreSupplierRequest.md +2 -0
- package/docs/{ProductSearchResponseResourceMeta.md → StoreSupplierRequestDescriptionsInner.md} +10 -12
- package/docs/StoreSupplierRequestSeoInner.md +4 -10
- package/docs/StoreTagRequest.md +6 -8
- package/docs/SupplierFrontendResource.md +2 -0
- package/docs/SupplierResource.md +2 -0
- package/docs/TagResource.md +2 -0
- package/docs/{ProductSortBy.md → UpdateDocumentRequest.md} +10 -4
- package/docs/UpdateSupplierRequest.md +2 -0
- package/docs/UpdateTagRequest.md +6 -8
- package/package.json +1 -1
- package/src/apis/DocumentApi.ts +91 -2
- package/src/models/DescriptionResource.ts +93 -0
- package/src/models/DescriptionResourceArrayResponse.ts +73 -0
- package/src/models/GetAllDocumentRequest.ts +33 -0
- package/src/models/GetAllProductChildRequest.ts +2 -1
- package/src/models/IndexDocumentRequest.ts +33 -0
- package/src/models/IndexExternalApiLogRequest.ts +0 -8
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/ProductChildSiteDetailResource.ts +5 -12
- package/src/models/SEOResource.ts +10 -37
- package/src/models/StoreProductChildRequestSitesInner.ts +9 -24
- package/src/models/StoreSupplierRequest.ts +16 -0
- package/src/models/StoreSupplierRequestDescriptionsInner.ts +82 -0
- package/src/models/StoreSupplierRequestSeoInner.ts +6 -30
- package/src/models/StoreTagRequest.ts +9 -17
- package/src/models/SupplierFrontendResource.ts +16 -0
- package/src/models/SupplierResource.ts +16 -0
- package/src/models/TagResource.ts +16 -0
- package/src/models/UpdateDocumentRequest.ts +83 -0
- package/src/models/UpdateSupplierRequest.ts +16 -0
- package/src/models/UpdateTagRequest.ts +9 -17
- package/src/models/index.ts +4 -11
- package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +0 -57
- package/dist/models/ProductAggregationResource.d.ts +0 -50
- package/dist/models/ProductAggregationResource.js +0 -63
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductAggregationResourceArrayResponse.js +0 -50
- package/dist/models/ProductRating.d.ts +0 -26
- package/dist/models/ProductRating.js +0 -52
- package/dist/models/ProductSearchResponseResource.d.ts +0 -54
- package/dist/models/ProductSearchResponseResource.js +0 -67
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.js +0 -63
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +0 -63
- package/dist/models/ProductSearchResultResource.d.ts +0 -116
- package/dist/models/ProductSearchResultResource.js +0 -105
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResultResourceArrayResponse.js +0 -50
- package/dist/models/ProductSortBy.d.ts +0 -32
- package/dist/models/ProductSortBy.js +0 -58
- package/docs/PaginatedProductSearchResultResourceResponse.md +0 -36
- package/docs/ProductAggregationResource.md +0 -40
- package/docs/ProductSearchResponseResource.md +0 -40
- package/docs/ProductSearchResponseResourceArrayResponse.md +0 -34
- package/docs/ProductSearchResponseResourcePriceInfo.md +0 -40
- package/docs/ProductSearchResultResource.md +0 -62
- package/docs/ProductSearchResultResourceArrayResponse.md +0 -34
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +0 -90
- package/src/models/ProductAggregationResource.ts +0 -93
- package/src/models/ProductAggregationResourceArrayResponse.ts +0 -73
- package/src/models/ProductRating.ts +0 -54
- package/src/models/ProductSearchResponseResource.ts +0 -122
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +0 -73
- package/src/models/ProductSearchResponseResourceMeta.ts +0 -93
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +0 -93
- package/src/models/ProductSearchResultResource.ts +0 -191
- package/src/models/ProductSearchResultResourceArrayResponse.ts +0 -73
- package/src/models/ProductSortBy.ts +0 -60
package/docs/DocumentApi.md
CHANGED
|
@@ -5,12 +5,14 @@ All URIs are relative to *http://localhost/api*
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
| [**attachDocumentablesDocument**](DocumentApi.md#attachdocumentablesdocumentoperation) | **POST** /admin-api/document/{document}/attach-documentables | Auto-generated: attachDocumentablesDocument |
|
|
8
|
-
| [**destroyDocument**](DocumentApi.md#destroydocument) | **DELETE** /admin-api/document/{document} | Auto-generated: destroyDocument |
|
|
8
|
+
| [**destroyDocument**](DocumentApi.md#destroydocument) | **DELETE** /admin-api/document/{document}/delete | Auto-generated: destroyDocument |
|
|
9
9
|
| [**detachDocumentablesDocument**](DocumentApi.md#detachdocumentablesdocumentoperation) | **POST** /admin-api/document/{document}/detach-documentables | Auto-generated: detachDocumentablesDocument |
|
|
10
10
|
| [**getAllDocument**](DocumentApi.md#getalldocumentoperation) | **POST** /admin-api/document/all | Auto-generated: getAllDocument |
|
|
11
11
|
| [**indexDocument**](DocumentApi.md#indexdocumentoperation) | **POST** /admin-api/document/list | Auto-generated: indexDocument |
|
|
12
|
-
| [**
|
|
12
|
+
| [**showDocument**](DocumentApi.md#showdocument) | **GET** /admin-api/document/{document} | Auto-generated: showDocument |
|
|
13
|
+
| [**storeDocument**](DocumentApi.md#storedocumentoperation) | **POST** /admin-api/document/create | Auto-generated: storeDocument |
|
|
13
14
|
| [**storeDocumentFile**](DocumentApi.md#storedocumentfileoperation) | **POST** /admin-api/document/files | Auto-generated: storeDocumentFile |
|
|
15
|
+
| [**updateDocument**](DocumentApi.md#updatedocumentoperation) | **PUT** /admin-api/document/{document}/update | Auto-generated: updateDocument |
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
|
|
@@ -345,6 +347,71 @@ No authorization required
|
|
|
345
347
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
346
348
|
|
|
347
349
|
|
|
350
|
+
## showDocument
|
|
351
|
+
|
|
352
|
+
> DocumentResource showDocument(document)
|
|
353
|
+
|
|
354
|
+
Auto-generated: showDocument
|
|
355
|
+
|
|
356
|
+
### Example
|
|
357
|
+
|
|
358
|
+
```ts
|
|
359
|
+
import {
|
|
360
|
+
Configuration,
|
|
361
|
+
DocumentApi,
|
|
362
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
363
|
+
import type { ShowDocumentRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
364
|
+
|
|
365
|
+
async function example() {
|
|
366
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
367
|
+
const api = new DocumentApi();
|
|
368
|
+
|
|
369
|
+
const body = {
|
|
370
|
+
// number | The id of the document
|
|
371
|
+
document: 56,
|
|
372
|
+
} satisfies ShowDocumentRequest;
|
|
373
|
+
|
|
374
|
+
try {
|
|
375
|
+
const data = await api.showDocument(body);
|
|
376
|
+
console.log(data);
|
|
377
|
+
} catch (error) {
|
|
378
|
+
console.error(error);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// Run the test
|
|
383
|
+
example().catch(console.error);
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
### Parameters
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
| Name | Type | Description | Notes |
|
|
390
|
+
|------------- | ------------- | ------------- | -------------|
|
|
391
|
+
| **document** | `number` | The id of the document | [Defaults to `undefined`] |
|
|
392
|
+
|
|
393
|
+
### Return type
|
|
394
|
+
|
|
395
|
+
[**DocumentResource**](DocumentResource.md)
|
|
396
|
+
|
|
397
|
+
### Authorization
|
|
398
|
+
|
|
399
|
+
No authorization required
|
|
400
|
+
|
|
401
|
+
### HTTP request headers
|
|
402
|
+
|
|
403
|
+
- **Content-Type**: Not defined
|
|
404
|
+
- **Accept**: `application/json`
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
### HTTP response details
|
|
408
|
+
| Status code | Description | Response headers |
|
|
409
|
+
|-------------|-------------|------------------|
|
|
410
|
+
| **200** | Successful resource response | - |
|
|
411
|
+
|
|
412
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
413
|
+
|
|
414
|
+
|
|
348
415
|
## storeDocument
|
|
349
416
|
|
|
350
417
|
> DocumentResource storeDocument(storeDocumentRequest)
|
|
@@ -474,3 +541,71 @@ No authorization required
|
|
|
474
541
|
|
|
475
542
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
476
543
|
|
|
544
|
+
|
|
545
|
+
## updateDocument
|
|
546
|
+
|
|
547
|
+
> DocumentResource updateDocument(document, updateDocumentRequest)
|
|
548
|
+
|
|
549
|
+
Auto-generated: updateDocument
|
|
550
|
+
|
|
551
|
+
### Example
|
|
552
|
+
|
|
553
|
+
```ts
|
|
554
|
+
import {
|
|
555
|
+
Configuration,
|
|
556
|
+
DocumentApi,
|
|
557
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
558
|
+
import type { UpdateDocumentOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
559
|
+
|
|
560
|
+
async function example() {
|
|
561
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
562
|
+
const api = new DocumentApi();
|
|
563
|
+
|
|
564
|
+
const body = {
|
|
565
|
+
// number | The id of the document
|
|
566
|
+
document: 56,
|
|
567
|
+
// UpdateDocumentRequest (optional)
|
|
568
|
+
updateDocumentRequest: ...,
|
|
569
|
+
} satisfies UpdateDocumentOperationRequest;
|
|
570
|
+
|
|
571
|
+
try {
|
|
572
|
+
const data = await api.updateDocument(body);
|
|
573
|
+
console.log(data);
|
|
574
|
+
} catch (error) {
|
|
575
|
+
console.error(error);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// Run the test
|
|
580
|
+
example().catch(console.error);
|
|
581
|
+
```
|
|
582
|
+
|
|
583
|
+
### Parameters
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
| Name | Type | Description | Notes |
|
|
587
|
+
|------------- | ------------- | ------------- | -------------|
|
|
588
|
+
| **document** | `number` | The id of the document | [Defaults to `undefined`] |
|
|
589
|
+
| **updateDocumentRequest** | [UpdateDocumentRequest](UpdateDocumentRequest.md) | | [Optional] |
|
|
590
|
+
|
|
591
|
+
### Return type
|
|
592
|
+
|
|
593
|
+
[**DocumentResource**](DocumentResource.md)
|
|
594
|
+
|
|
595
|
+
### Authorization
|
|
596
|
+
|
|
597
|
+
No authorization required
|
|
598
|
+
|
|
599
|
+
### HTTP request headers
|
|
600
|
+
|
|
601
|
+
- **Content-Type**: `application/json`
|
|
602
|
+
- **Accept**: `application/json`
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
### HTTP response details
|
|
606
|
+
| Status code | Description | Response headers |
|
|
607
|
+
|-------------|-------------|------------------|
|
|
608
|
+
| **200** | Successful resource response | - |
|
|
609
|
+
|
|
610
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
611
|
+
|
|
@@ -9,6 +9,9 @@ Name | Type
|
|
|
9
9
|
`search` | string
|
|
10
10
|
`sortBy` | string
|
|
11
11
|
`sortDirection` | string
|
|
12
|
+
`relatedId` | number
|
|
13
|
+
`relatedType` | string
|
|
14
|
+
`includesRelations` | boolean
|
|
12
15
|
|
|
13
16
|
## Example
|
|
14
17
|
|
|
@@ -20,6 +23,9 @@ const example = {
|
|
|
20
23
|
"search": null,
|
|
21
24
|
"sortBy": null,
|
|
22
25
|
"sortDirection": null,
|
|
26
|
+
"relatedId": null,
|
|
27
|
+
"relatedType": null,
|
|
28
|
+
"includesRelations": null,
|
|
23
29
|
} satisfies GetAllDocumentRequest
|
|
24
30
|
|
|
25
31
|
console.log(example)
|
|
@@ -11,6 +11,9 @@ Name | Type
|
|
|
11
11
|
`sortDirection` | string
|
|
12
12
|
`perPage` | number
|
|
13
13
|
`page` | number
|
|
14
|
+
`relatedId` | number
|
|
15
|
+
`relatedType` | string
|
|
16
|
+
`includesRelations` | boolean
|
|
14
17
|
|
|
15
18
|
## Example
|
|
16
19
|
|
|
@@ -24,6 +27,9 @@ const example = {
|
|
|
24
27
|
"sortDirection": null,
|
|
25
28
|
"perPage": null,
|
|
26
29
|
"page": null,
|
|
30
|
+
"relatedId": null,
|
|
31
|
+
"relatedType": null,
|
|
32
|
+
"includesRelations": null,
|
|
27
33
|
} satisfies IndexDocumentRequest
|
|
28
34
|
|
|
29
35
|
console.log(example)
|
|
@@ -17,7 +17,6 @@ Name | Type
|
|
|
17
17
|
`externalApiLoggableType` | Array<string>
|
|
18
18
|
`externalApiLoggableId` | Array<string>
|
|
19
19
|
`siteId` | Array<string>
|
|
20
|
-
`productChildId` | Array<string>
|
|
21
20
|
`relatedId` | number
|
|
22
21
|
`relatedType` | string
|
|
23
22
|
`includesRelations` | boolean
|
|
@@ -40,7 +39,6 @@ const example = {
|
|
|
40
39
|
"externalApiLoggableType": null,
|
|
41
40
|
"externalApiLoggableId": null,
|
|
42
41
|
"siteId": null,
|
|
43
|
-
"productChildId": null,
|
|
44
42
|
"relatedId": null,
|
|
45
43
|
"relatedType": null,
|
|
46
44
|
"includesRelations": null,
|
|
@@ -16,8 +16,7 @@ Name | Type
|
|
|
16
16
|
`salePrice` | number
|
|
17
17
|
`isDisabled` | boolean
|
|
18
18
|
`seo` | [SEOResource](SEOResource.md)
|
|
19
|
-
`
|
|
20
|
-
`omnisendSyncStatus` | string
|
|
19
|
+
`documents` | object
|
|
21
20
|
|
|
22
21
|
## Example
|
|
23
22
|
|
|
@@ -36,8 +35,7 @@ const example = {
|
|
|
36
35
|
"salePrice": null,
|
|
37
36
|
"isDisabled": null,
|
|
38
37
|
"seo": null,
|
|
39
|
-
"
|
|
40
|
-
"omnisendSyncStatus": null,
|
|
38
|
+
"documents": null,
|
|
41
39
|
} satisfies ProductChildSiteDetailResource
|
|
42
40
|
|
|
43
41
|
console.log(example)
|
package/docs/SEOResource.md
CHANGED
|
@@ -7,12 +7,9 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
-
`
|
|
11
|
-
`
|
|
12
|
-
`keywords` | string
|
|
10
|
+
`seoTitle` | string
|
|
11
|
+
`seoDescription` | string
|
|
13
12
|
`siteId` | number
|
|
14
|
-
`footerDescription` | string
|
|
15
|
-
`pageDescription` | string
|
|
16
13
|
|
|
17
14
|
## Example
|
|
18
15
|
|
|
@@ -22,12 +19,9 @@ import type { SEOResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
22
19
|
// TODO: Update the object below with actual values
|
|
23
20
|
const example = {
|
|
24
21
|
"id": null,
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"keywords": null,
|
|
22
|
+
"seoTitle": null,
|
|
23
|
+
"seoDescription": null,
|
|
28
24
|
"siteId": null,
|
|
29
|
-
"footerDescription": null,
|
|
30
|
-
"pageDescription": null,
|
|
31
25
|
} satisfies SEOResource
|
|
32
26
|
|
|
33
27
|
console.log(example)
|
|
@@ -14,10 +14,8 @@ Name | Type
|
|
|
14
14
|
`salePrice` | number
|
|
15
15
|
`slug` | string
|
|
16
16
|
`documents` | Array<number>
|
|
17
|
-
`
|
|
18
|
-
`
|
|
19
|
-
`footerDescription` | string
|
|
20
|
-
`pageDescription` | string
|
|
17
|
+
`seoTitle` | string
|
|
18
|
+
`seoDescription` | string
|
|
21
19
|
|
|
22
20
|
## Example
|
|
23
21
|
|
|
@@ -34,10 +32,8 @@ const example = {
|
|
|
34
32
|
"salePrice": null,
|
|
35
33
|
"slug": null,
|
|
36
34
|
"documents": null,
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"footerDescription": null,
|
|
40
|
-
"pageDescription": null,
|
|
35
|
+
"seoTitle": null,
|
|
36
|
+
"seoDescription": null,
|
|
41
37
|
} satisfies StoreProductChildRequestSitesInner
|
|
42
38
|
|
|
43
39
|
console.log(example)
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`altText` | string
|
|
14
14
|
`mimeType` | string
|
|
15
15
|
`assetFileId` | number
|
|
16
|
+
`descriptions` | [Array<StoreSupplierRequestDescriptionsInner>](StoreSupplierRequestDescriptionsInner.md)
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ const example = {
|
|
|
28
29
|
"altText": null,
|
|
29
30
|
"mimeType": null,
|
|
30
31
|
"assetFileId": null,
|
|
32
|
+
"descriptions": null,
|
|
31
33
|
} satisfies StoreSupplierRequest
|
|
32
34
|
|
|
33
35
|
console.log(example)
|
package/docs/{ProductSearchResponseResourceMeta.md → StoreSupplierRequestDescriptionsInner.md}
RENAMED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# StoreSupplierRequestDescriptionsInner
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
11
|
-
`
|
|
12
|
-
`lastPage` | number
|
|
9
|
+
`headerDescription` | string
|
|
10
|
+
`footerDescription` | string
|
|
11
|
+
`siteId` | number
|
|
13
12
|
|
|
14
13
|
## Example
|
|
15
14
|
|
|
16
15
|
```typescript
|
|
17
|
-
import type {
|
|
16
|
+
import type { StoreSupplierRequestDescriptionsInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
17
|
|
|
19
18
|
// TODO: Update the object below with actual values
|
|
20
19
|
const example = {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
} satisfies ProductSearchResponseResourceMeta
|
|
20
|
+
"headerDescription": null,
|
|
21
|
+
"footerDescription": null,
|
|
22
|
+
"siteId": null,
|
|
23
|
+
} satisfies StoreSupplierRequestDescriptionsInner
|
|
26
24
|
|
|
27
25
|
console.log(example)
|
|
28
26
|
|
|
@@ -31,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
31
29
|
console.log(exampleJSON)
|
|
32
30
|
|
|
33
31
|
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreSupplierRequestDescriptionsInner
|
|
35
33
|
console.log(exampleParsed)
|
|
36
34
|
```
|
|
37
35
|
|
|
@@ -6,11 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
11
|
-
`keywords` | string
|
|
12
|
-
`footerDescription` | string
|
|
13
|
-
`pageDescription` | string
|
|
9
|
+
`seoTitle` | string
|
|
10
|
+
`seoDescription` | string
|
|
14
11
|
`siteId` | number
|
|
15
12
|
|
|
16
13
|
## Example
|
|
@@ -20,11 +17,8 @@ import type { StoreSupplierRequestSeoInner } from '@digital8/lighting-illusions-
|
|
|
20
17
|
|
|
21
18
|
// TODO: Update the object below with actual values
|
|
22
19
|
const example = {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"keywords": null,
|
|
26
|
-
"footerDescription": null,
|
|
27
|
-
"pageDescription": null,
|
|
20
|
+
"seoTitle": null,
|
|
21
|
+
"seoDescription": null,
|
|
28
22
|
"siteId": null,
|
|
29
23
|
} satisfies StoreSupplierRequestSeoInner
|
|
30
24
|
|
package/docs/StoreTagRequest.md
CHANGED
|
@@ -10,11 +10,10 @@ Name | Type
|
|
|
10
10
|
`slug` | string
|
|
11
11
|
`siteId` | number
|
|
12
12
|
`type` | string
|
|
13
|
-
`
|
|
14
|
-
`
|
|
15
|
-
`
|
|
13
|
+
`seoTitle` | string
|
|
14
|
+
`seoDescription` | string
|
|
15
|
+
`headerDescription` | string
|
|
16
16
|
`footerDescription` | string
|
|
17
|
-
`pageDescription` | string
|
|
18
17
|
|
|
19
18
|
## Example
|
|
20
19
|
|
|
@@ -27,11 +26,10 @@ const example = {
|
|
|
27
26
|
"slug": null,
|
|
28
27
|
"siteId": null,
|
|
29
28
|
"type": null,
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
29
|
+
"seoTitle": null,
|
|
30
|
+
"seoDescription": null,
|
|
31
|
+
"headerDescription": null,
|
|
33
32
|
"footerDescription": null,
|
|
34
|
-
"pageDescription": null,
|
|
35
33
|
} satisfies StoreTagRequest
|
|
36
34
|
|
|
37
35
|
console.log(example)
|
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`thumbnail` | [AssetResource](AssetResource.md)
|
|
13
13
|
`supplierEta` | number
|
|
14
14
|
`seo` | [SEOResource](SEOResource.md)
|
|
15
|
+
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"thumbnail": null,
|
|
27
28
|
"supplierEta": null,
|
|
28
29
|
"seo": null,
|
|
30
|
+
"descriptions": null,
|
|
29
31
|
} satisfies SupplierFrontendResource
|
|
30
32
|
|
|
31
33
|
console.log(example)
|
package/docs/SupplierResource.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`thumbnail` | [AssetResource](AssetResource.md)
|
|
13
13
|
`supplierEta` | number
|
|
14
14
|
`seo` | [Array<SEOResource>](SEOResource.md)
|
|
15
|
+
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"thumbnail": null,
|
|
27
28
|
"supplierEta": null,
|
|
28
29
|
"seo": null,
|
|
30
|
+
"descriptions": null,
|
|
29
31
|
} satisfies SupplierResource
|
|
30
32
|
|
|
31
33
|
console.log(example)
|
package/docs/TagResource.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`type` | string
|
|
13
13
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
14
14
|
`seo` | [SEOResource](SEOResource.md)
|
|
15
|
+
`description` | [DescriptionResource](DescriptionResource.md)
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"type": null,
|
|
27
28
|
"site": null,
|
|
28
29
|
"seo": null,
|
|
30
|
+
"description": null,
|
|
29
31
|
} satisfies TagResource
|
|
30
32
|
|
|
31
33
|
console.log(example)
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# UpdateDocumentRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`documentFileId` | string
|
|
11
|
+
`siteIds` | Array<string>
|
|
9
12
|
|
|
10
13
|
## Example
|
|
11
14
|
|
|
12
15
|
```typescript
|
|
13
|
-
import type {
|
|
16
|
+
import type { UpdateDocumentRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
17
|
|
|
15
18
|
// TODO: Update the object below with actual values
|
|
16
19
|
const example = {
|
|
17
|
-
|
|
20
|
+
"name": null,
|
|
21
|
+
"documentFileId": null,
|
|
22
|
+
"siteIds": null,
|
|
23
|
+
} satisfies UpdateDocumentRequest
|
|
18
24
|
|
|
19
25
|
console.log(example)
|
|
20
26
|
|
|
@@ -23,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
23
29
|
console.log(exampleJSON)
|
|
24
30
|
|
|
25
31
|
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateDocumentRequest
|
|
27
33
|
console.log(exampleParsed)
|
|
28
34
|
```
|
|
29
35
|
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`altText` | string
|
|
14
14
|
`mimeType` | string
|
|
15
15
|
`assetFileId` | number
|
|
16
|
+
`descriptions` | [Array<StoreSupplierRequestDescriptionsInner>](StoreSupplierRequestDescriptionsInner.md)
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ const example = {
|
|
|
28
29
|
"altText": null,
|
|
29
30
|
"mimeType": null,
|
|
30
31
|
"assetFileId": null,
|
|
32
|
+
"descriptions": null,
|
|
31
33
|
} satisfies UpdateSupplierRequest
|
|
32
34
|
|
|
33
35
|
console.log(example)
|
package/docs/UpdateTagRequest.md
CHANGED
|
@@ -9,11 +9,10 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`slug` | string
|
|
11
11
|
`type` | string
|
|
12
|
-
`
|
|
13
|
-
`
|
|
14
|
-
`
|
|
12
|
+
`seoTitle` | string
|
|
13
|
+
`seoDescription` | string
|
|
14
|
+
`headerDescription` | string
|
|
15
15
|
`footerDescription` | string
|
|
16
|
-
`pageDescription` | string
|
|
17
16
|
|
|
18
17
|
## Example
|
|
19
18
|
|
|
@@ -25,11 +24,10 @@ const example = {
|
|
|
25
24
|
"name": null,
|
|
26
25
|
"slug": null,
|
|
27
26
|
"type": null,
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
27
|
+
"seoTitle": null,
|
|
28
|
+
"seoDescription": null,
|
|
29
|
+
"headerDescription": null,
|
|
31
30
|
"footerDescription": null,
|
|
32
|
-
"pageDescription": null,
|
|
33
31
|
} satisfies UpdateTagRequest
|
|
34
32
|
|
|
35
33
|
console.log(example)
|