@digital8/lighting-illusions-ts-sdk 0.0.1625 → 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.
- package/.openapi-generator/FILES +18 -2
- package/README.md +11 -3
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- 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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- 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/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +0 -12
- package/dist/models/StoreResource.js +0 -4
- 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/StoreStoreRequest.md +0 -4
- package/docs/UpdateStoreRequest.md +0 -4
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +2 -3
- 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/ExternalApiLogResource.ts +3 -2
- package/src/models/PaginatedBlogCategoryListResourceResponse.ts +90 -0
- package/src/models/PaginatedBlogCategoryLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedBlogCategoryResourceResponse.ts +90 -0
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +0 -16
- 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
|
+
|
|
@@ -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']),
|
|
@@ -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
|
+
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -99,7 +99,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
99
99
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
101
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
102
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
103
102
|
return true;
|
|
104
103
|
}
|
|
105
104
|
|
|
@@ -121,7 +120,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
121
120
|
'latitude': json['latitude'],
|
|
122
121
|
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
123
122
|
'email': json['email'],
|
|
124
|
-
'website': json['website'],
|
|
123
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
125
124
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
126
125
|
};
|
|
127
126
|
}
|
|
@@ -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']),
|
|
@@ -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']),
|
|
@@ -88,18 +88,6 @@ export interface UpdateStoreRequest {
|
|
|
88
88
|
* @memberof UpdateStoreRequest
|
|
89
89
|
*/
|
|
90
90
|
openingHours?: Array<string | null>;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof UpdateStoreRequest
|
|
95
|
-
*/
|
|
96
|
-
netsuiteId?: number | null;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {number}
|
|
100
|
-
* @memberof UpdateStoreRequest
|
|
101
|
-
*/
|
|
102
|
-
displayNetsuiteId?: number | null;
|
|
103
91
|
/**
|
|
104
92
|
*
|
|
105
93
|
* @type {Array<number>}
|
|
@@ -152,8 +140,6 @@ export function UpdateStoreRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
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(UpdateStoreRequestSpecialDatesInnerFromJSON)),
|
|
159
145
|
'address': StoreStoreRequestAddressFromJSON(json['address']),
|
|
@@ -180,8 +166,6 @@ export function UpdateStoreRequestToJSONTyped(value?: UpdateStoreRequest | null,
|
|
|
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(UpdateStoreRequestSpecialDatesInnerToJSON)),
|
|
187
171
|
'address': StoreStoreRequestAddressToJSON(value['address']),
|