@digital8/lighting-illusions-ts-sdk 0.0.1626 → 0.0.1627

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 (65) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/README.md +11 -2
  3. package/dist/models/AddressFrontendResource.d.ts +2 -2
  4. package/dist/models/AddressFrontendResource.js +2 -6
  5. package/dist/models/AddressResource.d.ts +2 -2
  6. package/dist/models/AddressResource.js +4 -4
  7. package/dist/models/BlogCategoryListResource.d.ts +44 -0
  8. package/dist/models/BlogCategoryListResource.js +59 -0
  9. package/dist/models/BlogCategoryListResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/BlogCategoryListResourceArrayResponse.js +50 -0
  11. package/dist/models/BlogCategoryLiteResource.d.ts +38 -0
  12. package/dist/models/BlogCategoryLiteResource.js +55 -0
  13. package/dist/models/BlogCategoryLiteResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/BlogCategoryLiteResourceArrayResponse.js +50 -0
  15. package/dist/models/BlogCategoryResource.d.ts +51 -0
  16. package/dist/models/BlogCategoryResource.js +64 -0
  17. package/dist/models/BlogCategoryResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/BlogCategoryResourceArrayResponse.js +50 -0
  19. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  20. package/dist/models/ExternalApiLogResource.js +3 -1
  21. package/dist/models/PaginatedBlogCategoryListResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedBlogCategoryListResourceResponse.js +57 -0
  23. package/dist/models/PaginatedBlogCategoryLiteResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedBlogCategoryLiteResourceResponse.js +57 -0
  25. package/dist/models/PaginatedBlogCategoryResourceResponse.d.ts +40 -0
  26. package/dist/models/PaginatedBlogCategoryResourceResponse.js +57 -0
  27. package/dist/models/StoreListResource.d.ts +1 -1
  28. package/dist/models/StoreListResource.js +1 -3
  29. package/dist/models/StoreResource.d.ts +2 -2
  30. package/dist/models/StoreResource.js +4 -4
  31. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  32. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  33. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  34. package/dist/models/StoreSpecialDateResource.js +1 -3
  35. package/dist/models/index.d.ts +9 -0
  36. package/dist/models/index.js +9 -0
  37. package/docs/BlogCategoryListResource.md +38 -0
  38. package/docs/BlogCategoryListResourceArrayResponse.md +34 -0
  39. package/docs/BlogCategoryLiteResource.md +36 -0
  40. package/docs/BlogCategoryLiteResourceArrayResponse.md +34 -0
  41. package/docs/BlogCategoryResource.md +40 -0
  42. package/docs/BlogCategoryResourceArrayResponse.md +34 -0
  43. package/docs/PaginatedBlogCategoryListResourceResponse.md +36 -0
  44. package/docs/PaginatedBlogCategoryLiteResourceResponse.md +36 -0
  45. package/docs/PaginatedBlogCategoryResourceResponse.md +36 -0
  46. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  47. package/docs/StoreSpecialDateResource.md +1 -1
  48. package/package.json +1 -1
  49. package/src/models/AddressFrontendResource.ts +4 -6
  50. package/src/models/AddressResource.ts +5 -5
  51. package/src/models/BlogCategoryListResource.ts +84 -0
  52. package/src/models/BlogCategoryListResourceArrayResponse.ts +73 -0
  53. package/src/models/BlogCategoryLiteResource.ts +75 -0
  54. package/src/models/BlogCategoryLiteResourceArrayResponse.ts +73 -0
  55. package/src/models/BlogCategoryResource.ts +101 -0
  56. package/src/models/BlogCategoryResourceArrayResponse.ts +73 -0
  57. package/src/models/ExternalApiLogResource.ts +3 -2
  58. package/src/models/PaginatedBlogCategoryListResourceResponse.ts +90 -0
  59. package/src/models/PaginatedBlogCategoryLiteResourceResponse.ts +90 -0
  60. package/src/models/PaginatedBlogCategoryResourceResponse.ts +90 -0
  61. package/src/models/StoreListResource.ts +2 -3
  62. package/src/models/StoreResource.ts +5 -5
  63. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  64. package/src/models/StoreSpecialDateResource.ts +3 -4
  65. package/src/models/index.ts +9 -0
@@ -0,0 +1,34 @@
1
+
2
+ # BlogCategoryListResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<BlogCategoryListResource>](BlogCategoryListResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { BlogCategoryListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies BlogCategoryListResourceArrayResponse
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 BlogCategoryListResourceArrayResponse
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
+ # BlogCategoryLiteResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `name` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { BlogCategoryLiteResource } 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 BlogCategoryLiteResource
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 BlogCategoryLiteResource
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
+ # BlogCategoryLiteResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<BlogCategoryLiteResource>](BlogCategoryLiteResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { BlogCategoryLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies BlogCategoryLiteResourceArrayResponse
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 BlogCategoryLiteResourceArrayResponse
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,40 @@
1
+
2
+ # BlogCategoryResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `name` | string
11
+ `slug` | string
12
+ `descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { BlogCategoryResource } from '@digital8/lighting-illusions-ts-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "id": null,
22
+ "name": null,
23
+ "slug": null,
24
+ "descriptions": null,
25
+ } satisfies BlogCategoryResource
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as BlogCategoryResource
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,34 @@
1
+
2
+ # BlogCategoryResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<BlogCategoryResource>](BlogCategoryResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { BlogCategoryResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies BlogCategoryResourceArrayResponse
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 BlogCategoryResourceArrayResponse
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
+ # PaginatedBlogCategoryListResourceResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<BlogCategoryListResource>](BlogCategoryListResource.md)
10
+ `meta` | [PagingMetadata](PagingMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PaginatedBlogCategoryListResourceResponse } 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 PaginatedBlogCategoryListResourceResponse
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 PaginatedBlogCategoryListResourceResponse
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,36 @@
1
+
2
+ # PaginatedBlogCategoryLiteResourceResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<BlogCategoryLiteResource>](BlogCategoryLiteResource.md)
10
+ `meta` | [PagingMetadata](PagingMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PaginatedBlogCategoryLiteResourceResponse } 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 PaginatedBlogCategoryLiteResourceResponse
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 PaginatedBlogCategoryLiteResourceResponse
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,36 @@
1
+
2
+ # PaginatedBlogCategoryResourceResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<BlogCategoryResource>](BlogCategoryResource.md)
10
+ `meta` | [PagingMetadata](PagingMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PaginatedBlogCategoryResourceResponse } 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 PaginatedBlogCategoryResourceResponse
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 PaginatedBlogCategoryResourceResponse
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
+
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | string
12
+ `date` | object
13
13
  `closed` | boolean
14
14
  `displayStartDate` | object
15
15
  `displayEndDate` | object
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | object
12
+ `date` | string
13
13
  `closed` | boolean
14
14
  `displayStartDate` | string
15
15
  `displayEndDate` | string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1626",
3
+ "version": "0.0.1627",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
24
24
  * @type {string}
25
25
  * @memberof AddressFrontendResource
26
26
  */
27
- company: string;
27
+ company?: string | null;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- line2: string;
39
+ line2?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -73,9 +73,7 @@ export interface AddressFrontendResource {
73
73
  * Check if a given object implements the AddressFrontendResource interface.
74
74
  */
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
- if (!('company' in value) || value['company'] === undefined) return false;
77
76
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
- if (!('line2' in value) || value['line2'] === undefined) return false;
79
77
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
80
78
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
81
79
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -94,9 +92,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
94
92
  }
95
93
  return {
96
94
 
97
- 'company': json['company'],
95
+ 'company': json['company'] == null ? undefined : json['company'],
98
96
  'line1': json['line1'],
99
- 'line2': json['line2'],
97
+ 'line2': json['line2'] == null ? undefined : json['line2'],
100
98
  'postcode': json['postcode'],
101
99
  'suburb': json['suburb'],
102
100
  'country': json['country'],
@@ -30,7 +30,7 @@ export interface AddressResource {
30
30
  * @type {string}
31
31
  * @memberof AddressResource
32
32
  */
33
- company: string;
33
+ company?: string | null;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -42,7 +42,7 @@ export interface AddressResource {
42
42
  * @type {string}
43
43
  * @memberof AddressResource
44
44
  */
45
- line2?: string | null;
45
+ line2: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -79,8 +79,8 @@ export interface AddressResource {
79
79
  * Check if a given object implements the AddressResource interface.
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
- if (!('company' in value) || value['company'] === undefined) return false;
83
82
  if (!('line1' in value) || value['line1'] === undefined) return false;
83
+ if (!('line2' in value) || value['line2'] === undefined) return false;
84
84
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
85
85
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
86
86
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -100,9 +100,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
100
100
  return {
101
101
 
102
102
  'id': json['id'] == null ? undefined : json['id'],
103
- 'company': json['company'],
103
+ 'company': json['company'] == null ? undefined : json['company'],
104
104
  'line1': json['line_1'],
105
- 'line2': json['line_2'] == null ? undefined : json['line_2'],
105
+ 'line2': json['line_2'],
106
106
  'postcode': json['postcode'],
107
107
  'suburb': json['suburb'],
108
108
  'country': json['country'],
@@ -0,0 +1,84 @@
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 BlogCategoryListResource
20
+ */
21
+ export interface BlogCategoryListResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof BlogCategoryListResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BlogCategoryListResource
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof BlogCategoryListResource
38
+ */
39
+ slug: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the BlogCategoryListResource interface.
44
+ */
45
+ export function instanceOfBlogCategoryListResource(value: object): value is BlogCategoryListResource {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('name' in value) || value['name'] === undefined) return false;
48
+ if (!('slug' in value) || value['slug'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function BlogCategoryListResourceFromJSON(json: any): BlogCategoryListResource {
53
+ return BlogCategoryListResourceFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function BlogCategoryListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlogCategoryListResource {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'name': json['name'],
64
+ 'slug': json['slug'],
65
+ };
66
+ }
67
+
68
+ export function BlogCategoryListResourceToJSON(json: any): BlogCategoryListResource {
69
+ return BlogCategoryListResourceToJSONTyped(json, false);
70
+ }
71
+
72
+ export function BlogCategoryListResourceToJSONTyped(value?: BlogCategoryListResource | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'id': value['id'],
80
+ 'name': value['name'],
81
+ 'slug': value['slug'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,73 @@
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
+ import type { BlogCategoryListResource } from './BlogCategoryListResource';
17
+ import {
18
+ BlogCategoryListResourceFromJSON,
19
+ BlogCategoryListResourceFromJSONTyped,
20
+ BlogCategoryListResourceToJSON,
21
+ BlogCategoryListResourceToJSONTyped,
22
+ } from './BlogCategoryListResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface BlogCategoryListResourceArrayResponse
28
+ */
29
+ export interface BlogCategoryListResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<BlogCategoryListResource>}
33
+ * @memberof BlogCategoryListResourceArrayResponse
34
+ */
35
+ data?: Array<BlogCategoryListResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the BlogCategoryListResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfBlogCategoryListResourceArrayResponse(value: object): value is BlogCategoryListResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function BlogCategoryListResourceArrayResponseFromJSON(json: any): BlogCategoryListResourceArrayResponse {
46
+ return BlogCategoryListResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function BlogCategoryListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlogCategoryListResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(BlogCategoryListResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function BlogCategoryListResourceArrayResponseToJSON(json: any): BlogCategoryListResourceArrayResponse {
60
+ return BlogCategoryListResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function BlogCategoryListResourceArrayResponseToJSONTyped(value?: BlogCategoryListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(BlogCategoryListResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,75 @@
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 BlogCategoryLiteResource
20
+ */
21
+ export interface BlogCategoryLiteResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof BlogCategoryLiteResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BlogCategoryLiteResource
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the BlogCategoryLiteResource interface.
38
+ */
39
+ export function instanceOfBlogCategoryLiteResource(value: object): value is BlogCategoryLiteResource {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function BlogCategoryLiteResourceFromJSON(json: any): BlogCategoryLiteResource {
46
+ return BlogCategoryLiteResourceFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function BlogCategoryLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlogCategoryLiteResource {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function BlogCategoryLiteResourceToJSON(json: any): BlogCategoryLiteResource {
61
+ return BlogCategoryLiteResourceToJSONTyped(json, false);
62
+ }
63
+
64
+ export function BlogCategoryLiteResourceToJSONTyped(value?: BlogCategoryLiteResource | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+