@digital8/lighting-illusions-ts-sdk 0.0.519 → 0.0.521
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 +10 -0
- package/README.md +7 -2
- package/dist/apis/GoogleCategoryApi.d.ts +29 -0
- package/dist/apis/GoogleCategoryApi.js +125 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllGoogleCategoryRequest.d.ts +92 -0
- package/dist/models/GetAllGoogleCategoryRequest.js +80 -0
- package/dist/models/GoogleCategoryResource.d.ts +38 -0
- package/dist/models/GoogleCategoryResource.js +55 -0
- package/dist/models/GoogleCategoryResourceArrayResponse.d.ts +33 -0
- package/dist/models/GoogleCategoryResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedGoogleCategoryResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedGoogleCategoryResourceResponse.js +57 -0
- package/dist/models/ProductResource.d.ts +7 -0
- package/dist/models/ProductResource.js +5 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/GetAllGoogleCategoryRequest.md +48 -0
- package/docs/GoogleCategoryApi.md +74 -0
- package/docs/GoogleCategoryResource.md +36 -0
- package/docs/GoogleCategoryResourceArrayResponse.md +34 -0
- package/docs/PaginatedGoogleCategoryResourceResponse.md +36 -0
- package/docs/ProductResource.md +2 -0
- package/package.json +1 -1
- package/src/apis/GoogleCategoryApi.ts +69 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllGoogleCategoryRequest.ts +143 -0
- package/src/models/GoogleCategoryResource.ts +75 -0
- package/src/models/GoogleCategoryResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedGoogleCategoryResourceResponse.ts +90 -0
- package/src/models/ProductResource.ts +16 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { GoogleCategoryResource } from './GoogleCategoryResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedGoogleCategoryResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedGoogleCategoryResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<GoogleCategoryResource>}
|
|
23
|
+
* @memberof PaginatedGoogleCategoryResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<GoogleCategoryResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedGoogleCategoryResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedGoogleCategoryResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedGoogleCategoryResourceResponse(value: object): value is PaginatedGoogleCategoryResourceResponse;
|
|
37
|
+
export declare function PaginatedGoogleCategoryResourceResponseFromJSON(json: any): PaginatedGoogleCategoryResourceResponse;
|
|
38
|
+
export declare function PaginatedGoogleCategoryResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGoogleCategoryResourceResponse;
|
|
39
|
+
export declare function PaginatedGoogleCategoryResourceResponseToJSON(json: any): PaginatedGoogleCategoryResourceResponse;
|
|
40
|
+
export declare function PaginatedGoogleCategoryResourceResponseToJSONTyped(value?: PaginatedGoogleCategoryResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedGoogleCategoryResourceResponse = instanceOfPaginatedGoogleCategoryResourceResponse;
|
|
17
|
+
exports.PaginatedGoogleCategoryResourceResponseFromJSON = PaginatedGoogleCategoryResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedGoogleCategoryResourceResponseFromJSONTyped = PaginatedGoogleCategoryResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedGoogleCategoryResourceResponseToJSON = PaginatedGoogleCategoryResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedGoogleCategoryResourceResponseToJSONTyped = PaginatedGoogleCategoryResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var GoogleCategoryResource_1 = require("./GoogleCategoryResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedGoogleCategoryResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedGoogleCategoryResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedGoogleCategoryResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedGoogleCategoryResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedGoogleCategoryResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(GoogleCategoryResource_1.GoogleCategoryResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedGoogleCategoryResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedGoogleCategoryResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedGoogleCategoryResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(GoogleCategoryResource_1.GoogleCategoryResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ProductTypeLiteResource } from './ProductTypeLiteResource';
|
|
13
|
+
import type { GoogleCategoryResource } from './GoogleCategoryResource';
|
|
13
14
|
import type { SupplierLiteResource } from './SupplierLiteResource';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -59,6 +60,12 @@ export interface ProductResource {
|
|
|
59
60
|
* @memberof ProductResource
|
|
60
61
|
*/
|
|
61
62
|
isDisabled: boolean;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {GoogleCategoryResource}
|
|
66
|
+
* @memberof ProductResource
|
|
67
|
+
*/
|
|
68
|
+
googleCategory: GoogleCategoryResource | null;
|
|
62
69
|
/**
|
|
63
70
|
*
|
|
64
71
|
* @type {SupplierLiteResource}
|
|
@@ -19,6 +19,7 @@ exports.ProductResourceFromJSONTyped = ProductResourceFromJSONTyped;
|
|
|
19
19
|
exports.ProductResourceToJSON = ProductResourceToJSON;
|
|
20
20
|
exports.ProductResourceToJSONTyped = ProductResourceToJSONTyped;
|
|
21
21
|
var ProductTypeLiteResource_1 = require("./ProductTypeLiteResource");
|
|
22
|
+
var GoogleCategoryResource_1 = require("./GoogleCategoryResource");
|
|
22
23
|
var SupplierLiteResource_1 = require("./SupplierLiteResource");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the ProductResource interface.
|
|
@@ -38,6 +39,8 @@ function instanceOfProductResource(value) {
|
|
|
38
39
|
return false;
|
|
39
40
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined)
|
|
40
41
|
return false;
|
|
42
|
+
if (!('googleCategory' in value) || value['googleCategory'] === undefined)
|
|
43
|
+
return false;
|
|
41
44
|
if (!('supplier' in value) || value['supplier'] === undefined)
|
|
42
45
|
return false;
|
|
43
46
|
if (!('productType' in value) || value['productType'] === undefined)
|
|
@@ -63,6 +66,7 @@ function ProductResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
66
|
'warranty': json['warranty'],
|
|
64
67
|
'categoryIDs': json['categoryIDs'],
|
|
65
68
|
'isDisabled': json['isDisabled'],
|
|
69
|
+
'googleCategory': (0, GoogleCategoryResource_1.GoogleCategoryResourceFromJSON)(json['googleCategory']),
|
|
66
70
|
'supplier': (0, SupplierLiteResource_1.SupplierLiteResourceFromJSON)(json['supplier']),
|
|
67
71
|
'productType': (0, ProductTypeLiteResource_1.ProductTypeLiteResourceFromJSON)(json['productType']),
|
|
68
72
|
'sites': json['sites'],
|
|
@@ -85,6 +89,7 @@ function ProductResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
89
|
'warranty': value['warranty'],
|
|
86
90
|
'categoryIDs': value['categoryIDs'],
|
|
87
91
|
'isDisabled': value['isDisabled'],
|
|
92
|
+
'googleCategory': (0, GoogleCategoryResource_1.GoogleCategoryResourceToJSON)(value['googleCategory']),
|
|
88
93
|
'supplier': (0, SupplierLiteResource_1.SupplierLiteResourceToJSON)(value['supplier']),
|
|
89
94
|
'productType': (0, ProductTypeLiteResource_1.ProductTypeLiteResourceToJSON)(value['productType']),
|
|
90
95
|
'sites': value['sites'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -47,11 +47,14 @@ export * from './ExternalApiSyncStatus';
|
|
|
47
47
|
export * from './GenericResponse';
|
|
48
48
|
export * from './GetAllAttributeRequest';
|
|
49
49
|
export * from './GetAllDocumentRequest';
|
|
50
|
+
export * from './GetAllGoogleCategoryRequest';
|
|
50
51
|
export * from './GetAllOverlayTemplateRequest';
|
|
51
52
|
export * from './GetAllProductChildRequest';
|
|
52
53
|
export * from './GetAllProductRequest';
|
|
53
54
|
export * from './GetAllProductTypeRequest';
|
|
54
55
|
export * from './GetAllSupplierRequest';
|
|
56
|
+
export * from './GoogleCategoryResource';
|
|
57
|
+
export * from './GoogleCategoryResourceArrayResponse';
|
|
55
58
|
export * from './IndexAttributeRequest';
|
|
56
59
|
export * from './IndexDocumentRequest';
|
|
57
60
|
export * from './IndexExternalApiLogRequest';
|
|
@@ -81,6 +84,7 @@ export * from './PaginatedAttributeResourceResponse';
|
|
|
81
84
|
export * from './PaginatedDocumentResourceResponse';
|
|
82
85
|
export * from './PaginatedExternalApiLogListResourceResponse';
|
|
83
86
|
export * from './PaginatedExternalApiLogResourceResponse';
|
|
87
|
+
export * from './PaginatedGoogleCategoryResourceResponse';
|
|
84
88
|
export * from './PaginatedOverlayTemplateListResourceResponse';
|
|
85
89
|
export * from './PaginatedOverlayTemplateLiteResourceResponse';
|
|
86
90
|
export * from './PaginatedOverlayTemplateResourceResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -65,11 +65,14 @@ __exportStar(require("./ExternalApiSyncStatus"), exports);
|
|
|
65
65
|
__exportStar(require("./GenericResponse"), exports);
|
|
66
66
|
__exportStar(require("./GetAllAttributeRequest"), exports);
|
|
67
67
|
__exportStar(require("./GetAllDocumentRequest"), exports);
|
|
68
|
+
__exportStar(require("./GetAllGoogleCategoryRequest"), exports);
|
|
68
69
|
__exportStar(require("./GetAllOverlayTemplateRequest"), exports);
|
|
69
70
|
__exportStar(require("./GetAllProductChildRequest"), exports);
|
|
70
71
|
__exportStar(require("./GetAllProductRequest"), exports);
|
|
71
72
|
__exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
72
73
|
__exportStar(require("./GetAllSupplierRequest"), exports);
|
|
74
|
+
__exportStar(require("./GoogleCategoryResource"), exports);
|
|
75
|
+
__exportStar(require("./GoogleCategoryResourceArrayResponse"), exports);
|
|
73
76
|
__exportStar(require("./IndexAttributeRequest"), exports);
|
|
74
77
|
__exportStar(require("./IndexDocumentRequest"), exports);
|
|
75
78
|
__exportStar(require("./IndexExternalApiLogRequest"), exports);
|
|
@@ -99,6 +102,7 @@ __exportStar(require("./PaginatedAttributeResourceResponse"), exports);
|
|
|
99
102
|
__exportStar(require("./PaginatedDocumentResourceResponse"), exports);
|
|
100
103
|
__exportStar(require("./PaginatedExternalApiLogListResourceResponse"), exports);
|
|
101
104
|
__exportStar(require("./PaginatedExternalApiLogResourceResponse"), exports);
|
|
105
|
+
__exportStar(require("./PaginatedGoogleCategoryResourceResponse"), exports);
|
|
102
106
|
__exportStar(require("./PaginatedOverlayTemplateListResourceResponse"), exports);
|
|
103
107
|
__exportStar(require("./PaginatedOverlayTemplateLiteResourceResponse"), exports);
|
|
104
108
|
__exportStar(require("./PaginatedOverlayTemplateResourceResponse"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# GetAllGoogleCategoryRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`perPage` | number
|
|
13
|
+
`page` | number
|
|
14
|
+
`relatedId` | number
|
|
15
|
+
`relatedType` | string
|
|
16
|
+
`includesRelations` | boolean
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { GetAllGoogleCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"search": null,
|
|
26
|
+
"sortBy": null,
|
|
27
|
+
"sortDirection": null,
|
|
28
|
+
"perPage": null,
|
|
29
|
+
"page": null,
|
|
30
|
+
"relatedId": null,
|
|
31
|
+
"relatedType": null,
|
|
32
|
+
"includesRelations": null,
|
|
33
|
+
} satisfies GetAllGoogleCategoryRequest
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetAllGoogleCategoryRequest
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# GoogleCategoryApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getAllGoogleCategory**](GoogleCategoryApi.md#getallgooglecategoryoperation) | **POST** /admin-api/google-category/all | Auto-generated: getAllGoogleCategory |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## getAllGoogleCategory
|
|
12
|
+
|
|
13
|
+
> GoogleCategoryResourceArrayResponse getAllGoogleCategory(getAllGoogleCategoryRequest)
|
|
14
|
+
|
|
15
|
+
Auto-generated: getAllGoogleCategory
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import {
|
|
21
|
+
Configuration,
|
|
22
|
+
GoogleCategoryApi,
|
|
23
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
24
|
+
import type { GetAllGoogleCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
25
|
+
|
|
26
|
+
async function example() {
|
|
27
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
28
|
+
const api = new GoogleCategoryApi();
|
|
29
|
+
|
|
30
|
+
const body = {
|
|
31
|
+
// GetAllGoogleCategoryRequest (optional)
|
|
32
|
+
getAllGoogleCategoryRequest: ...,
|
|
33
|
+
} satisfies GetAllGoogleCategoryOperationRequest;
|
|
34
|
+
|
|
35
|
+
try {
|
|
36
|
+
const data = await api.getAllGoogleCategory(body);
|
|
37
|
+
console.log(data);
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.error(error);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Run the test
|
|
44
|
+
example().catch(console.error);
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Parameters
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
| Name | Type | Description | Notes |
|
|
51
|
+
|------------- | ------------- | ------------- | -------------|
|
|
52
|
+
| **getAllGoogleCategoryRequest** | [GetAllGoogleCategoryRequest](GetAllGoogleCategoryRequest.md) | | [Optional] |
|
|
53
|
+
|
|
54
|
+
### Return type
|
|
55
|
+
|
|
56
|
+
[**GoogleCategoryResourceArrayResponse**](GoogleCategoryResourceArrayResponse.md)
|
|
57
|
+
|
|
58
|
+
### Authorization
|
|
59
|
+
|
|
60
|
+
No authorization required
|
|
61
|
+
|
|
62
|
+
### HTTP request headers
|
|
63
|
+
|
|
64
|
+
- **Content-Type**: `application/json`
|
|
65
|
+
- **Accept**: `application/json`
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### HTTP response details
|
|
69
|
+
| Status code | Description | Response headers |
|
|
70
|
+
|-------------|-------------|------------------|
|
|
71
|
+
| **200** | Successful resource response | - |
|
|
72
|
+
|
|
73
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
74
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# GoogleCategoryResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GoogleCategoryResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"id": null,
|
|
20
|
+
"name": null,
|
|
21
|
+
} satisfies GoogleCategoryResource
|
|
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 GoogleCategoryResource
|
|
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
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# GoogleCategoryResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<GoogleCategoryResource>](GoogleCategoryResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { GoogleCategoryResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies GoogleCategoryResourceArrayResponse
|
|
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 GoogleCategoryResourceArrayResponse
|
|
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
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedGoogleCategoryResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<GoogleCategoryResource>](GoogleCategoryResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedGoogleCategoryResourceResponse } 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 PaginatedGoogleCategoryResourceResponse
|
|
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 PaginatedGoogleCategoryResourceResponse
|
|
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/ProductResource.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`warranty` | string
|
|
14
14
|
`categoryIDs` | Array<boolean>
|
|
15
15
|
`isDisabled` | boolean
|
|
16
|
+
`googleCategory` | [GoogleCategoryResource](GoogleCategoryResource.md)
|
|
16
17
|
`supplier` | [SupplierLiteResource](SupplierLiteResource.md)
|
|
17
18
|
`productType` | [ProductTypeLiteResource](ProductTypeLiteResource.md)
|
|
18
19
|
`sites` | object
|
|
@@ -32,6 +33,7 @@ const example = {
|
|
|
32
33
|
"warranty": null,
|
|
33
34
|
"categoryIDs": null,
|
|
34
35
|
"isDisabled": null,
|
|
36
|
+
"googleCategory": null,
|
|
35
37
|
"supplier": null,
|
|
36
38
|
"productType": null,
|
|
37
39
|
"sites": null,
|
package/package.json
CHANGED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
GetAllGoogleCategoryRequest,
|
|
19
|
+
GoogleCategoryResourceArrayResponse,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
GetAllGoogleCategoryRequestFromJSON,
|
|
23
|
+
GetAllGoogleCategoryRequestToJSON,
|
|
24
|
+
GoogleCategoryResourceArrayResponseFromJSON,
|
|
25
|
+
GoogleCategoryResourceArrayResponseToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface GetAllGoogleCategoryOperationRequest {
|
|
29
|
+
getAllGoogleCategoryRequest?: GetAllGoogleCategoryRequest;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export class GoogleCategoryApi extends runtime.BaseAPI {
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Auto-generated: getAllGoogleCategory
|
|
39
|
+
*/
|
|
40
|
+
async getAllGoogleCategoryRaw(requestParameters: GetAllGoogleCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleCategoryResourceArrayResponse>> {
|
|
41
|
+
const queryParameters: any = {};
|
|
42
|
+
|
|
43
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
44
|
+
|
|
45
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
let urlPath = `/admin-api/google-category/all`;
|
|
49
|
+
|
|
50
|
+
const response = await this.request({
|
|
51
|
+
path: urlPath,
|
|
52
|
+
method: 'POST',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
body: GetAllGoogleCategoryRequestToJSON(requestParameters['getAllGoogleCategoryRequest']),
|
|
56
|
+
}, initOverrides);
|
|
57
|
+
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleCategoryResourceArrayResponseFromJSON(jsonValue));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Auto-generated: getAllGoogleCategory
|
|
63
|
+
*/
|
|
64
|
+
async getAllGoogleCategory(requestParameters: GetAllGoogleCategoryOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleCategoryResourceArrayResponse> {
|
|
65
|
+
const response = await this.getAllGoogleCategoryRaw(requestParameters, initOverrides);
|
|
66
|
+
return await response.value();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './AssetApi';
|
|
|
4
4
|
export * from './AttributeApi';
|
|
5
5
|
export * from './DocumentApi';
|
|
6
6
|
export * from './ExternalApiLogApi';
|
|
7
|
+
export * from './GoogleCategoryApi';
|
|
7
8
|
export * from './OverlayTemplateApi';
|
|
8
9
|
export * from './ProductApi';
|
|
9
10
|
export * from './ProductChildSiteDetailApi';
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ 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;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|