@digital8/lighting-illusions-ts-sdk 0.0.1631 → 0.0.1633
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 +18 -2
- package/README.md +11 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +2 -6
- package/dist/models/BlogCategoryListResource.d.ts +44 -0
- package/dist/models/BlogCategoryListResource.js +59 -0
- package/dist/models/BlogCategoryListResourceArrayResponse.d.ts +33 -0
- package/dist/models/BlogCategoryListResourceArrayResponse.js +50 -0
- package/dist/models/BlogCategoryLiteResource.d.ts +38 -0
- package/dist/models/BlogCategoryLiteResource.js +55 -0
- package/dist/models/BlogCategoryLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/BlogCategoryLiteResourceArrayResponse.js +50 -0
- package/dist/models/BlogCategoryResource.d.ts +51 -0
- package/dist/models/BlogCategoryResource.js +64 -0
- package/dist/models/BlogCategoryResourceArrayResponse.d.ts +33 -0
- package/dist/models/BlogCategoryResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedBlogCategoryListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedBlogCategoryListResourceResponse.js +57 -0
- package/dist/models/PaginatedBlogCategoryLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedBlogCategoryLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedBlogCategoryResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedBlogCategoryResourceResponse.js +57 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +0 -12
- package/dist/models/StoreResource.js +0 -4
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreStoreRequest.d.ts +0 -12
- package/dist/models/StoreStoreRequest.js +0 -4
- package/dist/models/UpdateStoreRequest.d.ts +0 -12
- package/dist/models/UpdateStoreRequest.js +0 -4
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/docs/BlogCategoryListResource.md +38 -0
- package/docs/BlogCategoryListResourceArrayResponse.md +34 -0
- package/docs/{ProductChildStoreStockType.md → BlogCategoryLiteResource.md} +8 -4
- package/docs/BlogCategoryLiteResourceArrayResponse.md +34 -0
- package/docs/BlogCategoryResource.md +40 -0
- package/docs/BlogCategoryResourceArrayResponse.md +34 -0
- package/docs/PaginatedBlogCategoryListResourceResponse.md +36 -0
- package/docs/PaginatedBlogCategoryLiteResourceResponse.md +36 -0
- package/docs/PaginatedBlogCategoryResourceResponse.md +36 -0
- package/docs/StoreResource.md +0 -4
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreStoreRequest.md +0 -4
- package/docs/UpdateStoreRequest.md +0 -4
- package/package.json +1 -1
- package/src/models/AddressResource.ts +4 -6
- package/src/models/BlogCategoryListResource.ts +84 -0
- package/src/models/BlogCategoryListResourceArrayResponse.ts +73 -0
- package/src/models/BlogCategoryLiteResource.ts +75 -0
- package/src/models/BlogCategoryLiteResourceArrayResponse.ts +73 -0
- package/src/models/BlogCategoryResource.ts +101 -0
- package/src/models/BlogCategoryResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedBlogCategoryListResourceResponse.ts +90 -0
- package/src/models/PaginatedBlogCategoryLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedBlogCategoryResourceResponse.ts +90 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +0 -16
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreStoreRequest.ts +0 -16
- package/src/models/UpdateStoreRequest.ts +0 -16
- package/src/models/index.ts +9 -1
- package/dist/models/ProductChildStoreStockType.d.ts +0 -25
- package/dist/models/ProductChildStoreStockType.js +0 -51
- package/src/models/ProductChildStoreStockType.ts +0 -53
|
@@ -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 { BlogCategoryLiteResource } from './BlogCategoryLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
BlogCategoryLiteResourceFromJSON,
|
|
19
|
+
BlogCategoryLiteResourceFromJSONTyped,
|
|
20
|
+
BlogCategoryLiteResourceToJSON,
|
|
21
|
+
BlogCategoryLiteResourceToJSONTyped,
|
|
22
|
+
} from './BlogCategoryLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface BlogCategoryLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface BlogCategoryLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<BlogCategoryLiteResource>}
|
|
33
|
+
* @memberof BlogCategoryLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<BlogCategoryLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the BlogCategoryLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfBlogCategoryLiteResourceArrayResponse(value: object): value is BlogCategoryLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function BlogCategoryLiteResourceArrayResponseFromJSON(json: any): BlogCategoryLiteResourceArrayResponse {
|
|
46
|
+
return BlogCategoryLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function BlogCategoryLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlogCategoryLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(BlogCategoryLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function BlogCategoryLiteResourceArrayResponseToJSON(json: any): BlogCategoryLiteResourceArrayResponse {
|
|
60
|
+
return BlogCategoryLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function BlogCategoryLiteResourceArrayResponseToJSONTyped(value?: BlogCategoryLiteResourceArrayResponse | 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(BlogCategoryLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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 { DescriptionResource } from './DescriptionResource';
|
|
17
|
+
import {
|
|
18
|
+
DescriptionResourceFromJSON,
|
|
19
|
+
DescriptionResourceFromJSONTyped,
|
|
20
|
+
DescriptionResourceToJSON,
|
|
21
|
+
DescriptionResourceToJSONTyped,
|
|
22
|
+
} from './DescriptionResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface BlogCategoryResource
|
|
28
|
+
*/
|
|
29
|
+
export interface BlogCategoryResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof BlogCategoryResource
|
|
34
|
+
*/
|
|
35
|
+
id: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BlogCategoryResource
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BlogCategoryResource
|
|
46
|
+
*/
|
|
47
|
+
slug: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<DescriptionResource>}
|
|
51
|
+
* @memberof BlogCategoryResource
|
|
52
|
+
*/
|
|
53
|
+
descriptions: Array<DescriptionResource> | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the BlogCategoryResource interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfBlogCategoryResource(value: object): value is BlogCategoryResource {
|
|
60
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
61
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
62
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
63
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function BlogCategoryResourceFromJSON(json: any): BlogCategoryResource {
|
|
68
|
+
return BlogCategoryResourceFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function BlogCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlogCategoryResource {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'id': json['id'],
|
|
78
|
+
'name': json['name'],
|
|
79
|
+
'slug': json['slug'],
|
|
80
|
+
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function BlogCategoryResourceToJSON(json: any): BlogCategoryResource {
|
|
85
|
+
return BlogCategoryResourceToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function BlogCategoryResourceToJSONTyped(value?: BlogCategoryResource | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'name': value['name'],
|
|
97
|
+
'slug': value['slug'],
|
|
98
|
+
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -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 { BlogCategoryResource } from './BlogCategoryResource';
|
|
17
|
+
import {
|
|
18
|
+
BlogCategoryResourceFromJSON,
|
|
19
|
+
BlogCategoryResourceFromJSONTyped,
|
|
20
|
+
BlogCategoryResourceToJSON,
|
|
21
|
+
BlogCategoryResourceToJSONTyped,
|
|
22
|
+
} from './BlogCategoryResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface BlogCategoryResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface BlogCategoryResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<BlogCategoryResource>}
|
|
33
|
+
* @memberof BlogCategoryResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<BlogCategoryResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the BlogCategoryResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfBlogCategoryResourceArrayResponse(value: object): value is BlogCategoryResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function BlogCategoryResourceArrayResponseFromJSON(json: any): BlogCategoryResourceArrayResponse {
|
|
46
|
+
return BlogCategoryResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function BlogCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlogCategoryResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(BlogCategoryResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function BlogCategoryResourceArrayResponseToJSON(json: any): BlogCategoryResourceArrayResponse {
|
|
60
|
+
return BlogCategoryResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function BlogCategoryResourceArrayResponseToJSONTyped(value?: BlogCategoryResourceArrayResponse | 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(BlogCategoryResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { BlogCategoryListResource } from './BlogCategoryListResource';
|
|
24
|
+
import {
|
|
25
|
+
BlogCategoryListResourceFromJSON,
|
|
26
|
+
BlogCategoryListResourceFromJSONTyped,
|
|
27
|
+
BlogCategoryListResourceToJSON,
|
|
28
|
+
BlogCategoryListResourceToJSONTyped,
|
|
29
|
+
} from './BlogCategoryListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedBlogCategoryListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedBlogCategoryListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<BlogCategoryListResource>}
|
|
40
|
+
* @memberof PaginatedBlogCategoryListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<BlogCategoryListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedBlogCategoryListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedBlogCategoryListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedBlogCategoryListResourceResponse(value: object): value is PaginatedBlogCategoryListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedBlogCategoryListResourceResponseFromJSON(json: any): PaginatedBlogCategoryListResourceResponse {
|
|
61
|
+
return PaginatedBlogCategoryListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedBlogCategoryListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBlogCategoryListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(BlogCategoryListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedBlogCategoryListResourceResponseToJSON(json: any): PaginatedBlogCategoryListResourceResponse {
|
|
76
|
+
return PaginatedBlogCategoryListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedBlogCategoryListResourceResponseToJSONTyped(value?: PaginatedBlogCategoryListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(BlogCategoryListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { BlogCategoryLiteResource } from './BlogCategoryLiteResource';
|
|
24
|
+
import {
|
|
25
|
+
BlogCategoryLiteResourceFromJSON,
|
|
26
|
+
BlogCategoryLiteResourceFromJSONTyped,
|
|
27
|
+
BlogCategoryLiteResourceToJSON,
|
|
28
|
+
BlogCategoryLiteResourceToJSONTyped,
|
|
29
|
+
} from './BlogCategoryLiteResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedBlogCategoryLiteResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedBlogCategoryLiteResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<BlogCategoryLiteResource>}
|
|
40
|
+
* @memberof PaginatedBlogCategoryLiteResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<BlogCategoryLiteResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedBlogCategoryLiteResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedBlogCategoryLiteResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedBlogCategoryLiteResourceResponse(value: object): value is PaginatedBlogCategoryLiteResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedBlogCategoryLiteResourceResponseFromJSON(json: any): PaginatedBlogCategoryLiteResourceResponse {
|
|
61
|
+
return PaginatedBlogCategoryLiteResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedBlogCategoryLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBlogCategoryLiteResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(BlogCategoryLiteResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedBlogCategoryLiteResourceResponseToJSON(json: any): PaginatedBlogCategoryLiteResourceResponse {
|
|
76
|
+
return PaginatedBlogCategoryLiteResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedBlogCategoryLiteResourceResponseToJSONTyped(value?: PaginatedBlogCategoryLiteResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(BlogCategoryLiteResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { BlogCategoryResource } from './BlogCategoryResource';
|
|
24
|
+
import {
|
|
25
|
+
BlogCategoryResourceFromJSON,
|
|
26
|
+
BlogCategoryResourceFromJSONTyped,
|
|
27
|
+
BlogCategoryResourceToJSON,
|
|
28
|
+
BlogCategoryResourceToJSONTyped,
|
|
29
|
+
} from './BlogCategoryResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedBlogCategoryResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedBlogCategoryResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<BlogCategoryResource>}
|
|
40
|
+
* @memberof PaginatedBlogCategoryResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<BlogCategoryResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedBlogCategoryResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedBlogCategoryResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedBlogCategoryResourceResponse(value: object): value is PaginatedBlogCategoryResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedBlogCategoryResourceResponseFromJSON(json: any): PaginatedBlogCategoryResourceResponse {
|
|
61
|
+
return PaginatedBlogCategoryResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedBlogCategoryResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBlogCategoryResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(BlogCategoryResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedBlogCategoryResourceResponseToJSON(json: any): PaginatedBlogCategoryResourceResponse {
|
|
76
|
+
return PaginatedBlogCategoryResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedBlogCategoryResourceResponseToJSONTyped(value?: PaginatedBlogCategoryResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(BlogCategoryResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
130
129
|
'siteId': json['siteId'],
|
|
131
130
|
'name': json['name'],
|
|
132
131
|
'email': json['email'],
|
|
133
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website: string;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -100,6 +100,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
101
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
102
102
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
103
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
103
104
|
return true;
|
|
104
105
|
}
|
|
105
106
|
|
|
@@ -121,7 +122,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
121
122
|
'latitude': json['latitude'],
|
|
122
123
|
'tagLine': json['tag_line'],
|
|
123
124
|
'email': json['email'],
|
|
124
|
-
'website': json['website']
|
|
125
|
+
'website': json['website'],
|
|
125
126
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
126
127
|
};
|
|
127
128
|
}
|
|
@@ -102,18 +102,6 @@ export interface StoreResource {
|
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
104
|
website?: string | null;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {number}
|
|
108
|
-
* @memberof StoreResource
|
|
109
|
-
*/
|
|
110
|
-
netsuiteId?: number | null;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {number}
|
|
114
|
-
* @memberof StoreResource
|
|
115
|
-
*/
|
|
116
|
-
displayNetsuiteId?: number | null;
|
|
117
105
|
/**
|
|
118
106
|
*
|
|
119
107
|
* @type {string}
|
|
@@ -176,8 +164,6 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
176
164
|
'tagLine': json['tag_line'],
|
|
177
165
|
'email': json['email'],
|
|
178
166
|
'website': json['website'] == null ? undefined : json['website'],
|
|
179
|
-
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
180
|
-
'displayNetsuiteId': json['displayNetsuiteId'] == null ? undefined : json['displayNetsuiteId'],
|
|
181
167
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
182
168
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
183
169
|
'address': AddressResourceFromJSON(json['address']),
|
|
@@ -205,8 +191,6 @@ export function StoreResourceToJSONTyped(value?: StoreResource | null, ignoreDis
|
|
|
205
191
|
'tag_line': value['tagLine'],
|
|
206
192
|
'email': value['email'],
|
|
207
193
|
'website': value['website'],
|
|
208
|
-
'netsuiteId': value['netsuiteId'],
|
|
209
|
-
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
210
194
|
'opening_hours': value['openingHours'],
|
|
211
195
|
'suppliers': (value['suppliers'] == null ? null : (value['suppliers'] as Array<any>).map(SupplierLiteResourceToJSON)),
|
|
212
196
|
'address': AddressResourceToJSON(value['address']),
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -88,18 +88,6 @@ export interface StoreStoreRequest {
|
|
|
88
88
|
* @memberof StoreStoreRequest
|
|
89
89
|
*/
|
|
90
90
|
openingHours?: Array<string | null>;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof StoreStoreRequest
|
|
95
|
-
*/
|
|
96
|
-
netsuiteId?: number | null;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {number}
|
|
100
|
-
* @memberof StoreStoreRequest
|
|
101
|
-
*/
|
|
102
|
-
displayNetsuiteId?: number | null;
|
|
103
91
|
/**
|
|
104
92
|
*
|
|
105
93
|
* @type {Array<number>}
|
|
@@ -152,8 +140,6 @@ export function StoreStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
152
140
|
'email': json['email'] == null ? undefined : json['email'],
|
|
153
141
|
'website': json['website'] == null ? undefined : json['website'],
|
|
154
142
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
155
|
-
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
156
|
-
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
157
143
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
158
144
|
'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerFromJSON)),
|
|
159
145
|
'address': StoreStoreRequestAddressFromJSON(json['address']),
|
|
@@ -180,8 +166,6 @@ export function StoreStoreRequestToJSONTyped(value?: StoreStoreRequest | null, i
|
|
|
180
166
|
'email': value['email'],
|
|
181
167
|
'website': value['website'],
|
|
182
168
|
'opening_hours': value['openingHours'],
|
|
183
|
-
'netsuite_id': value['netsuiteId'],
|
|
184
|
-
'display_netsuite_id': value['displayNetsuiteId'],
|
|
185
169
|
'supplier_ids': value['supplierIds'],
|
|
186
170
|
'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerToJSON)),
|
|
187
171
|
'address': StoreStoreRequestAddressToJSON(value['address']),
|