@digital8/lighting-illusions-ts-sdk 0.0.520 → 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.
Files changed (33) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +7 -2
  3. package/dist/apis/GoogleCategoryApi.d.ts +29 -0
  4. package/dist/apis/GoogleCategoryApi.js +125 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/GetAllGoogleCategoryRequest.d.ts +92 -0
  8. package/dist/models/GetAllGoogleCategoryRequest.js +80 -0
  9. package/dist/models/GoogleCategoryResource.d.ts +38 -0
  10. package/dist/models/GoogleCategoryResource.js +55 -0
  11. package/dist/models/GoogleCategoryResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/GoogleCategoryResourceArrayResponse.js +50 -0
  13. package/dist/models/PaginatedGoogleCategoryResourceResponse.d.ts +40 -0
  14. package/dist/models/PaginatedGoogleCategoryResourceResponse.js +57 -0
  15. package/dist/models/ProductResource.d.ts +7 -0
  16. package/dist/models/ProductResource.js +5 -0
  17. package/dist/models/index.d.ts +4 -0
  18. package/dist/models/index.js +4 -0
  19. package/docs/GetAllGoogleCategoryRequest.md +48 -0
  20. package/docs/GoogleCategoryApi.md +74 -0
  21. package/docs/GoogleCategoryResource.md +36 -0
  22. package/docs/GoogleCategoryResourceArrayResponse.md +34 -0
  23. package/docs/PaginatedGoogleCategoryResourceResponse.md +36 -0
  24. package/docs/ProductResource.md +2 -0
  25. package/package.json +1 -1
  26. package/src/apis/GoogleCategoryApi.ts +69 -0
  27. package/src/apis/index.ts +1 -0
  28. package/src/models/GetAllGoogleCategoryRequest.ts +143 -0
  29. package/src/models/GoogleCategoryResource.ts +75 -0
  30. package/src/models/GoogleCategoryResourceArrayResponse.ts +73 -0
  31. package/src/models/PaginatedGoogleCategoryResourceResponse.ts +90 -0
  32. package/src/models/ProductResource.ts +16 -0
  33. package/src/models/index.ts +4 -0
@@ -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'],
@@ -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';
@@ -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
+
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.520",
3
+ "version": "0.0.521",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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';
@@ -0,0 +1,143 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface GetAllGoogleCategoryRequest
20
+ */
21
+ export interface GetAllGoogleCategoryRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetAllGoogleCategoryRequest
26
+ */
27
+ search?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GetAllGoogleCategoryRequest
32
+ */
33
+ sortBy?: GetAllGoogleCategoryRequestSortByEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GetAllGoogleCategoryRequest
38
+ */
39
+ sortDirection?: GetAllGoogleCategoryRequestSortDirectionEnum;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof GetAllGoogleCategoryRequest
44
+ */
45
+ perPage?: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof GetAllGoogleCategoryRequest
50
+ */
51
+ page?: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof GetAllGoogleCategoryRequest
56
+ */
57
+ relatedId?: number;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof GetAllGoogleCategoryRequest
62
+ */
63
+ relatedType?: string;
64
+ /**
65
+ *
66
+ * @type {boolean}
67
+ * @memberof GetAllGoogleCategoryRequest
68
+ */
69
+ includesRelations?: boolean;
70
+ }
71
+
72
+
73
+ /**
74
+ * @export
75
+ */
76
+ export const GetAllGoogleCategoryRequestSortByEnum = {
77
+ Id: 'id',
78
+ Name: 'name',
79
+ CreatedAt: 'created_at',
80
+ UpdatedAt: 'updated_at'
81
+ } as const;
82
+ export type GetAllGoogleCategoryRequestSortByEnum = typeof GetAllGoogleCategoryRequestSortByEnum[keyof typeof GetAllGoogleCategoryRequestSortByEnum];
83
+
84
+ /**
85
+ * @export
86
+ */
87
+ export const GetAllGoogleCategoryRequestSortDirectionEnum = {
88
+ Asc: 'asc',
89
+ Desc: 'desc'
90
+ } as const;
91
+ export type GetAllGoogleCategoryRequestSortDirectionEnum = typeof GetAllGoogleCategoryRequestSortDirectionEnum[keyof typeof GetAllGoogleCategoryRequestSortDirectionEnum];
92
+
93
+
94
+ /**
95
+ * Check if a given object implements the GetAllGoogleCategoryRequest interface.
96
+ */
97
+ export function instanceOfGetAllGoogleCategoryRequest(value: object): value is GetAllGoogleCategoryRequest {
98
+ return true;
99
+ }
100
+
101
+ export function GetAllGoogleCategoryRequestFromJSON(json: any): GetAllGoogleCategoryRequest {
102
+ return GetAllGoogleCategoryRequestFromJSONTyped(json, false);
103
+ }
104
+
105
+ export function GetAllGoogleCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllGoogleCategoryRequest {
106
+ if (json == null) {
107
+ return json;
108
+ }
109
+ return {
110
+
111
+ 'search': json['search'] == null ? undefined : json['search'],
112
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
113
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
114
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
115
+ 'page': json['page'] == null ? undefined : json['page'],
116
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
117
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
118
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
119
+ };
120
+ }
121
+
122
+ export function GetAllGoogleCategoryRequestToJSON(json: any): GetAllGoogleCategoryRequest {
123
+ return GetAllGoogleCategoryRequestToJSONTyped(json, false);
124
+ }
125
+
126
+ export function GetAllGoogleCategoryRequestToJSONTyped(value?: GetAllGoogleCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
127
+ if (value == null) {
128
+ return value;
129
+ }
130
+
131
+ return {
132
+
133
+ 'search': value['search'],
134
+ 'sortBy': value['sortBy'],
135
+ 'sortDirection': value['sortDirection'],
136
+ 'per_page': value['perPage'],
137
+ 'page': value['page'],
138
+ 'related_id': value['relatedId'],
139
+ 'related_type': value['relatedType'],
140
+ 'includes_relations': value['includesRelations'],
141
+ };
142
+ }
143
+