@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,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { BlogCategoryResource } from './BlogCategoryResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BlogCategoryResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface BlogCategoryResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<BlogCategoryResource>}
|
|
22
|
+
* @memberof BlogCategoryResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<BlogCategoryResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the BlogCategoryResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfBlogCategoryResourceArrayResponse(value: object): value is BlogCategoryResourceArrayResponse;
|
|
30
|
+
export declare function BlogCategoryResourceArrayResponseFromJSON(json: any): BlogCategoryResourceArrayResponse;
|
|
31
|
+
export declare function BlogCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlogCategoryResourceArrayResponse;
|
|
32
|
+
export declare function BlogCategoryResourceArrayResponseToJSON(json: any): BlogCategoryResourceArrayResponse;
|
|
33
|
+
export declare function BlogCategoryResourceArrayResponseToJSONTyped(value?: BlogCategoryResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfBlogCategoryResourceArrayResponse = instanceOfBlogCategoryResourceArrayResponse;
|
|
17
|
+
exports.BlogCategoryResourceArrayResponseFromJSON = BlogCategoryResourceArrayResponseFromJSON;
|
|
18
|
+
exports.BlogCategoryResourceArrayResponseFromJSONTyped = BlogCategoryResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.BlogCategoryResourceArrayResponseToJSON = BlogCategoryResourceArrayResponseToJSON;
|
|
20
|
+
exports.BlogCategoryResourceArrayResponseToJSONTyped = BlogCategoryResourceArrayResponseToJSONTyped;
|
|
21
|
+
var BlogCategoryResource_1 = require("./BlogCategoryResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the BlogCategoryResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfBlogCategoryResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function BlogCategoryResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return BlogCategoryResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function BlogCategoryResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(BlogCategoryResource_1.BlogCategoryResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function BlogCategoryResourceArrayResponseToJSON(json) {
|
|
40
|
+
return BlogCategoryResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function BlogCategoryResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(BlogCategoryResource_1.BlogCategoryResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { BlogCategoryListResource } from './BlogCategoryListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedBlogCategoryListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedBlogCategoryListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<BlogCategoryListResource>}
|
|
23
|
+
* @memberof PaginatedBlogCategoryListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<BlogCategoryListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedBlogCategoryListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedBlogCategoryListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedBlogCategoryListResourceResponse(value: object): value is PaginatedBlogCategoryListResourceResponse;
|
|
37
|
+
export declare function PaginatedBlogCategoryListResourceResponseFromJSON(json: any): PaginatedBlogCategoryListResourceResponse;
|
|
38
|
+
export declare function PaginatedBlogCategoryListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBlogCategoryListResourceResponse;
|
|
39
|
+
export declare function PaginatedBlogCategoryListResourceResponseToJSON(json: any): PaginatedBlogCategoryListResourceResponse;
|
|
40
|
+
export declare function PaginatedBlogCategoryListResourceResponseToJSONTyped(value?: PaginatedBlogCategoryListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedBlogCategoryListResourceResponse = instanceOfPaginatedBlogCategoryListResourceResponse;
|
|
17
|
+
exports.PaginatedBlogCategoryListResourceResponseFromJSON = PaginatedBlogCategoryListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedBlogCategoryListResourceResponseFromJSONTyped = PaginatedBlogCategoryListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedBlogCategoryListResourceResponseToJSON = PaginatedBlogCategoryListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedBlogCategoryListResourceResponseToJSONTyped = PaginatedBlogCategoryListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var BlogCategoryListResource_1 = require("./BlogCategoryListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedBlogCategoryListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedBlogCategoryListResourceResponse(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 PaginatedBlogCategoryListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedBlogCategoryListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedBlogCategoryListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(BlogCategoryListResource_1.BlogCategoryListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedBlogCategoryListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedBlogCategoryListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedBlogCategoryListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(BlogCategoryListResource_1.BlogCategoryListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { BlogCategoryLiteResource } from './BlogCategoryLiteResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedBlogCategoryLiteResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedBlogCategoryLiteResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<BlogCategoryLiteResource>}
|
|
23
|
+
* @memberof PaginatedBlogCategoryLiteResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<BlogCategoryLiteResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedBlogCategoryLiteResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedBlogCategoryLiteResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedBlogCategoryLiteResourceResponse(value: object): value is PaginatedBlogCategoryLiteResourceResponse;
|
|
37
|
+
export declare function PaginatedBlogCategoryLiteResourceResponseFromJSON(json: any): PaginatedBlogCategoryLiteResourceResponse;
|
|
38
|
+
export declare function PaginatedBlogCategoryLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBlogCategoryLiteResourceResponse;
|
|
39
|
+
export declare function PaginatedBlogCategoryLiteResourceResponseToJSON(json: any): PaginatedBlogCategoryLiteResourceResponse;
|
|
40
|
+
export declare function PaginatedBlogCategoryLiteResourceResponseToJSONTyped(value?: PaginatedBlogCategoryLiteResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedBlogCategoryLiteResourceResponse = instanceOfPaginatedBlogCategoryLiteResourceResponse;
|
|
17
|
+
exports.PaginatedBlogCategoryLiteResourceResponseFromJSON = PaginatedBlogCategoryLiteResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedBlogCategoryLiteResourceResponseFromJSONTyped = PaginatedBlogCategoryLiteResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedBlogCategoryLiteResourceResponseToJSON = PaginatedBlogCategoryLiteResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedBlogCategoryLiteResourceResponseToJSONTyped = PaginatedBlogCategoryLiteResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var BlogCategoryLiteResource_1 = require("./BlogCategoryLiteResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedBlogCategoryLiteResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedBlogCategoryLiteResourceResponse(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 PaginatedBlogCategoryLiteResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedBlogCategoryLiteResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedBlogCategoryLiteResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(BlogCategoryLiteResource_1.BlogCategoryLiteResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedBlogCategoryLiteResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedBlogCategoryLiteResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedBlogCategoryLiteResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(BlogCategoryLiteResource_1.BlogCategoryLiteResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { BlogCategoryResource } from './BlogCategoryResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedBlogCategoryResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedBlogCategoryResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<BlogCategoryResource>}
|
|
23
|
+
* @memberof PaginatedBlogCategoryResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<BlogCategoryResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedBlogCategoryResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedBlogCategoryResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedBlogCategoryResourceResponse(value: object): value is PaginatedBlogCategoryResourceResponse;
|
|
37
|
+
export declare function PaginatedBlogCategoryResourceResponseFromJSON(json: any): PaginatedBlogCategoryResourceResponse;
|
|
38
|
+
export declare function PaginatedBlogCategoryResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBlogCategoryResourceResponse;
|
|
39
|
+
export declare function PaginatedBlogCategoryResourceResponseToJSON(json: any): PaginatedBlogCategoryResourceResponse;
|
|
40
|
+
export declare function PaginatedBlogCategoryResourceResponseToJSONTyped(value?: PaginatedBlogCategoryResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedBlogCategoryResourceResponse = instanceOfPaginatedBlogCategoryResourceResponse;
|
|
17
|
+
exports.PaginatedBlogCategoryResourceResponseFromJSON = PaginatedBlogCategoryResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedBlogCategoryResourceResponseFromJSONTyped = PaginatedBlogCategoryResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedBlogCategoryResourceResponseToJSON = PaginatedBlogCategoryResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedBlogCategoryResourceResponseToJSONTyped = PaginatedBlogCategoryResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var BlogCategoryResource_1 = require("./BlogCategoryResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedBlogCategoryResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedBlogCategoryResourceResponse(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 PaginatedBlogCategoryResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedBlogCategoryResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedBlogCategoryResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(BlogCategoryResource_1.BlogCategoryResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedBlogCategoryResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedBlogCategoryResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedBlogCategoryResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(BlogCategoryResource_1.BlogCategoryResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -35,8 +35,6 @@ function instanceOfStoreListResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
39
|
-
return false;
|
|
40
38
|
return true;
|
|
41
39
|
}
|
|
42
40
|
function StoreListResourceFromJSON(json) {
|
|
@@ -55,7 +53,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
53
|
'latitude': json['latitude'],
|
|
56
54
|
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
57
55
|
'email': json['email'],
|
|
58
|
-
'website': json['website'],
|
|
56
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
59
57
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
60
58
|
};
|
|
61
59
|
}
|
|
@@ -73,18 +73,6 @@ export interface StoreResource {
|
|
|
73
73
|
* @memberof StoreResource
|
|
74
74
|
*/
|
|
75
75
|
website?: string | null;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {number}
|
|
79
|
-
* @memberof StoreResource
|
|
80
|
-
*/
|
|
81
|
-
netsuiteId?: number | null;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {number}
|
|
85
|
-
* @memberof StoreResource
|
|
86
|
-
*/
|
|
87
|
-
displayNetsuiteId?: number | null;
|
|
88
76
|
/**
|
|
89
77
|
*
|
|
90
78
|
* @type {string}
|
|
@@ -65,8 +65,6 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
65
|
'tagLine': json['tag_line'],
|
|
66
66
|
'email': json['email'],
|
|
67
67
|
'website': json['website'] == null ? undefined : json['website'],
|
|
68
|
-
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
69
|
-
'displayNetsuiteId': json['displayNetsuiteId'] == null ? undefined : json['displayNetsuiteId'],
|
|
70
68
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
71
69
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
72
70
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
@@ -91,8 +89,6 @@ function StoreResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
91
89
|
'tag_line': value['tagLine'],
|
|
92
90
|
'email': value['email'],
|
|
93
91
|
'website': value['website'],
|
|
94
|
-
'netsuiteId': value['netsuiteId'],
|
|
95
|
-
'displayNetsuiteId': value['displayNetsuiteId'],
|
|
96
92
|
'opening_hours': value['openingHours'],
|
|
97
93
|
'suppliers': (value['suppliers'] == null ? null : value['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceToJSON)),
|
|
98
94
|
'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
|
|
@@ -71,18 +71,6 @@ export interface StoreStoreRequest {
|
|
|
71
71
|
* @memberof StoreStoreRequest
|
|
72
72
|
*/
|
|
73
73
|
openingHours?: Array<string | null>;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {number}
|
|
77
|
-
* @memberof StoreStoreRequest
|
|
78
|
-
*/
|
|
79
|
-
netsuiteId?: number | null;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {number}
|
|
83
|
-
* @memberof StoreStoreRequest
|
|
84
|
-
*/
|
|
85
|
-
displayNetsuiteId?: number | null;
|
|
86
74
|
/**
|
|
87
75
|
*
|
|
88
76
|
* @type {Array<number>}
|
|
@@ -55,8 +55,6 @@ function StoreStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'email': json['email'] == null ? undefined : json['email'],
|
|
56
56
|
'website': json['website'] == null ? undefined : json['website'],
|
|
57
57
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
58
|
-
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
59
|
-
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
60
58
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
61
59
|
'specialDates': json['special_dates'] == null ? undefined : (json['special_dates'].map(StoreStoreRequestSpecialDatesInner_1.StoreStoreRequestSpecialDatesInnerFromJSON)),
|
|
62
60
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressFromJSON)(json['address']),
|
|
@@ -80,8 +78,6 @@ function StoreStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
78
|
'email': value['email'],
|
|
81
79
|
'website': value['website'],
|
|
82
80
|
'opening_hours': value['openingHours'],
|
|
83
|
-
'netsuite_id': value['netsuiteId'],
|
|
84
|
-
'display_netsuite_id': value['displayNetsuiteId'],
|
|
85
81
|
'supplier_ids': value['supplierIds'],
|
|
86
82
|
'special_dates': value['specialDates'] == null ? undefined : (value['specialDates'].map(StoreStoreRequestSpecialDatesInner_1.StoreStoreRequestSpecialDatesInnerToJSON)),
|
|
87
83
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressToJSON)(value['address']),
|
|
@@ -71,18 +71,6 @@ export interface UpdateStoreRequest {
|
|
|
71
71
|
* @memberof UpdateStoreRequest
|
|
72
72
|
*/
|
|
73
73
|
openingHours?: Array<string | null>;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {number}
|
|
77
|
-
* @memberof UpdateStoreRequest
|
|
78
|
-
*/
|
|
79
|
-
netsuiteId?: number | null;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {number}
|
|
83
|
-
* @memberof UpdateStoreRequest
|
|
84
|
-
*/
|
|
85
|
-
displayNetsuiteId?: number | null;
|
|
86
74
|
/**
|
|
87
75
|
*
|
|
88
76
|
* @type {Array<number>}
|
|
@@ -55,8 +55,6 @@ function UpdateStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'email': json['email'] == null ? undefined : json['email'],
|
|
56
56
|
'website': json['website'] == null ? undefined : json['website'],
|
|
57
57
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
58
|
-
'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
|
|
59
|
-
'displayNetsuiteId': json['display_netsuite_id'] == null ? undefined : json['display_netsuite_id'],
|
|
60
58
|
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
61
59
|
'specialDates': json['special_dates'] == null ? undefined : (json['special_dates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerFromJSON)),
|
|
62
60
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressFromJSON)(json['address']),
|
|
@@ -80,8 +78,6 @@ function UpdateStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
78
|
'email': value['email'],
|
|
81
79
|
'website': value['website'],
|
|
82
80
|
'opening_hours': value['openingHours'],
|
|
83
|
-
'netsuite_id': value['netsuiteId'],
|
|
84
|
-
'display_netsuite_id': value['displayNetsuiteId'],
|
|
85
81
|
'supplier_ids': value['supplierIds'],
|
|
86
82
|
'special_dates': value['specialDates'] == null ? undefined : (value['specialDates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerToJSON)),
|
|
87
83
|
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressToJSON)(value['address']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -39,6 +39,12 @@ export * from './AttributeResourceArrayResponse';
|
|
|
39
39
|
export * from './AttributeType';
|
|
40
40
|
export * from './AttributeValueResource';
|
|
41
41
|
export * from './AttributeValueResourceArrayResponse';
|
|
42
|
+
export * from './BlogCategoryListResource';
|
|
43
|
+
export * from './BlogCategoryListResourceArrayResponse';
|
|
44
|
+
export * from './BlogCategoryLiteResource';
|
|
45
|
+
export * from './BlogCategoryLiteResourceArrayResponse';
|
|
46
|
+
export * from './BlogCategoryResource';
|
|
47
|
+
export * from './BlogCategoryResourceArrayResponse';
|
|
42
48
|
export * from './CategoryAutomationComparisonType';
|
|
43
49
|
export * from './CategoryAutomationConditionType';
|
|
44
50
|
export * from './CategoryAutomationFieldType';
|
|
@@ -153,6 +159,9 @@ export * from './PaginatedAttributeLiteResourceResponse';
|
|
|
153
159
|
export * from './PaginatedAttributeProductTypeRelationResourceResponse';
|
|
154
160
|
export * from './PaginatedAttributeResourceResponse';
|
|
155
161
|
export * from './PaginatedAttributeValueResourceResponse';
|
|
162
|
+
export * from './PaginatedBlogCategoryListResourceResponse';
|
|
163
|
+
export * from './PaginatedBlogCategoryLiteResourceResponse';
|
|
164
|
+
export * from './PaginatedBlogCategoryResourceResponse';
|
|
156
165
|
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
157
166
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
158
167
|
export * from './PaginatedDefinitionResourceResponse';
|
|
@@ -231,7 +240,6 @@ export * from './ProductChildSiteDetailLiteResource';
|
|
|
231
240
|
export * from './ProductChildSiteDetailLiteResourceArrayResponse';
|
|
232
241
|
export * from './ProductChildSiteDetailResource';
|
|
233
242
|
export * from './ProductChildSiteDetailResourceArrayResponse';
|
|
234
|
-
export * from './ProductChildStoreStockType';
|
|
235
243
|
export * from './ProductClassResource';
|
|
236
244
|
export * from './ProductClassResourceArrayResponse';
|
|
237
245
|
export * from './ProductCompareResource';
|
package/dist/models/index.js
CHANGED
|
@@ -57,6 +57,12 @@ __exportStar(require("./AttributeResourceArrayResponse"), exports);
|
|
|
57
57
|
__exportStar(require("./AttributeType"), exports);
|
|
58
58
|
__exportStar(require("./AttributeValueResource"), exports);
|
|
59
59
|
__exportStar(require("./AttributeValueResourceArrayResponse"), exports);
|
|
60
|
+
__exportStar(require("./BlogCategoryListResource"), exports);
|
|
61
|
+
__exportStar(require("./BlogCategoryListResourceArrayResponse"), exports);
|
|
62
|
+
__exportStar(require("./BlogCategoryLiteResource"), exports);
|
|
63
|
+
__exportStar(require("./BlogCategoryLiteResourceArrayResponse"), exports);
|
|
64
|
+
__exportStar(require("./BlogCategoryResource"), exports);
|
|
65
|
+
__exportStar(require("./BlogCategoryResourceArrayResponse"), exports);
|
|
60
66
|
__exportStar(require("./CategoryAutomationComparisonType"), exports);
|
|
61
67
|
__exportStar(require("./CategoryAutomationConditionType"), exports);
|
|
62
68
|
__exportStar(require("./CategoryAutomationFieldType"), exports);
|
|
@@ -171,6 +177,9 @@ __exportStar(require("./PaginatedAttributeLiteResourceResponse"), exports);
|
|
|
171
177
|
__exportStar(require("./PaginatedAttributeProductTypeRelationResourceResponse"), exports);
|
|
172
178
|
__exportStar(require("./PaginatedAttributeResourceResponse"), exports);
|
|
173
179
|
__exportStar(require("./PaginatedAttributeValueResourceResponse"), exports);
|
|
180
|
+
__exportStar(require("./PaginatedBlogCategoryListResourceResponse"), exports);
|
|
181
|
+
__exportStar(require("./PaginatedBlogCategoryLiteResourceResponse"), exports);
|
|
182
|
+
__exportStar(require("./PaginatedBlogCategoryResourceResponse"), exports);
|
|
174
183
|
__exportStar(require("./PaginatedCategoryFrontendResourceResponse"), exports);
|
|
175
184
|
__exportStar(require("./PaginatedDefinitionListResourceResponse"), exports);
|
|
176
185
|
__exportStar(require("./PaginatedDefinitionResourceResponse"), exports);
|
|
@@ -249,7 +258,6 @@ __exportStar(require("./ProductChildSiteDetailLiteResource"), exports);
|
|
|
249
258
|
__exportStar(require("./ProductChildSiteDetailLiteResourceArrayResponse"), exports);
|
|
250
259
|
__exportStar(require("./ProductChildSiteDetailResource"), exports);
|
|
251
260
|
__exportStar(require("./ProductChildSiteDetailResourceArrayResponse"), exports);
|
|
252
|
-
__exportStar(require("./ProductChildStoreStockType"), exports);
|
|
253
261
|
__exportStar(require("./ProductClassResource"), exports);
|
|
254
262
|
__exportStar(require("./ProductClassResourceArrayResponse"), exports);
|
|
255
263
|
__exportStar(require("./ProductCompareResource"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# BlogCategoryListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`slug` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { BlogCategoryListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"name": null,
|
|
22
|
+
"slug": null,
|
|
23
|
+
} satisfies BlogCategoryListResource
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as BlogCategoryListResource
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|