@digital8/lighting-illusions-ts-sdk 0.0.1633 → 0.0.1635
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 +40 -18
- package/README.md +25 -11
- package/dist/apis/ProductRegistrationApi.d.ts +79 -0
- package/dist/apis/ProductRegistrationApi.js +316 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- 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 +3 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllProductRegistrationRequest.d.ts +88 -0
- package/dist/models/GetAllProductRegistrationRequest.js +80 -0
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRegistrationRequest.d.ts +131 -0
- package/dist/models/IndexProductRegistrationRequest.js +98 -0
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/ListAssetsProductRegistrationRequest.js +83 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
- package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
- package/dist/models/ProductRegistrationAssetResource.js +58 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
- package/dist/models/ProductRegistrationAssetType.js +51 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +62 -0
- package/dist/models/ProductRegistrationCustomerResource.js +65 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +57 -0
- package/dist/models/ProductRegistrationListResource.js +64 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
- package/dist/models/ProductRegistrationLiteResource.js +53 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationProductChildResource.d.ts +50 -0
- package/dist/models/ProductRegistrationProductChildResource.js +63 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationResource.d.ts +90 -0
- package/dist/models/ProductRegistrationResource.js +81 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/index.d.ts +19 -9
- package/dist/models/index.js +19 -9
- package/docs/GetAllProductRegistrationRequest.md +46 -0
- package/docs/IndexProductRegistrationRequest.md +58 -0
- package/docs/ListAssetsProductRegistrationRequest.md +52 -0
- package/docs/{PaginatedBlogCategoryListResourceResponse.md → PaginatedProductRegistrationAssetResourceResponse.md} +5 -5
- package/docs/{PaginatedBlogCategoryResourceResponse.md → PaginatedProductRegistrationListResourceResponse.md} +5 -5
- package/docs/{PaginatedBlogCategoryLiteResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/{BlogCategoryListResourceArrayResponse.md → ProductRegistrationAssetResource.md} +10 -6
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +34 -0
- package/docs/{BlogCategoryLiteResource.md → ProductRegistrationAssetType.md} +4 -8
- package/docs/ProductRegistrationCustomerResource.md +44 -0
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationListResource.md +42 -0
- package/docs/{BlogCategoryLiteResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
- package/docs/{BlogCategoryListResource.md → ProductRegistrationLiteResource.md} +6 -8
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +34 -0
- package/docs/{BlogCategoryResource.md → ProductRegistrationProductChildResource.md} +8 -8
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationResource.md +52 -0
- package/docs/{BlogCategoryResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +3 -2
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllProductRegistrationRequest.ts +137 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRegistrationRequest.ts +193 -0
- package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
- package/src/models/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationAssetType.ts +53 -0
- package/src/models/ProductRegistrationCustomerResource.ts +108 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +108 -0
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationLiteResource.ts +74 -0
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationProductChildResource.ts +93 -0
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationResource.ts +171 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/index.ts +19 -9
- package/dist/models/BlogCategoryListResource.d.ts +0 -44
- package/dist/models/BlogCategoryListResource.js +0 -59
- package/dist/models/BlogCategoryListResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryListResourceArrayResponse.js +0 -50
- package/dist/models/BlogCategoryLiteResource.d.ts +0 -38
- package/dist/models/BlogCategoryLiteResource.js +0 -55
- package/dist/models/BlogCategoryLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryLiteResourceArrayResponse.js +0 -50
- package/dist/models/BlogCategoryResource.d.ts +0 -51
- package/dist/models/BlogCategoryResource.js +0 -64
- package/dist/models/BlogCategoryResourceArrayResponse.d.ts +0 -33
- package/dist/models/BlogCategoryResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedBlogCategoryListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryListResourceResponse.js +0 -57
- package/dist/models/PaginatedBlogCategoryLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryLiteResourceResponse.js +0 -57
- package/dist/models/PaginatedBlogCategoryResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedBlogCategoryResourceResponse.js +0 -57
- package/src/models/BlogCategoryListResource.ts +0 -84
- package/src/models/BlogCategoryListResourceArrayResponse.ts +0 -73
- package/src/models/BlogCategoryLiteResource.ts +0 -75
- package/src/models/BlogCategoryLiteResourceArrayResponse.ts +0 -73
- package/src/models/BlogCategoryResource.ts +0 -101
- package/src/models/BlogCategoryResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedBlogCategoryListResourceResponse.ts +0 -90
- package/src/models/PaginatedBlogCategoryLiteResourceResponse.ts +0 -90
- package/src/models/PaginatedBlogCategoryResourceResponse.ts +0 -90
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfProductRegistrationProductChildResource = instanceOfProductRegistrationProductChildResource;
|
|
17
|
+
exports.ProductRegistrationProductChildResourceFromJSON = ProductRegistrationProductChildResourceFromJSON;
|
|
18
|
+
exports.ProductRegistrationProductChildResourceFromJSONTyped = ProductRegistrationProductChildResourceFromJSONTyped;
|
|
19
|
+
exports.ProductRegistrationProductChildResourceToJSON = ProductRegistrationProductChildResourceToJSON;
|
|
20
|
+
exports.ProductRegistrationProductChildResourceToJSONTyped = ProductRegistrationProductChildResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProductRegistrationProductChildResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProductRegistrationProductChildResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ProductRegistrationProductChildResourceFromJSON(json) {
|
|
36
|
+
return ProductRegistrationProductChildResourceFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ProductRegistrationProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'sku': json['sku'],
|
|
46
|
+
'quantity': json['quantity'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ProductRegistrationProductChildResourceToJSON(json) {
|
|
50
|
+
return ProductRegistrationProductChildResourceToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ProductRegistrationProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'sku': value['sku'],
|
|
61
|
+
'quantity': value['quantity'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -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 { ProductRegistrationProductChildResource } from './ProductRegistrationProductChildResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductRegistrationProductChildResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductRegistrationProductChildResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductRegistrationProductChildResource>}
|
|
22
|
+
* @memberof ProductRegistrationProductChildResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductRegistrationProductChildResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductRegistrationProductChildResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductRegistrationProductChildResourceArrayResponse(value: object): value is ProductRegistrationProductChildResourceArrayResponse;
|
|
30
|
+
export declare function ProductRegistrationProductChildResourceArrayResponseFromJSON(json: any): ProductRegistrationProductChildResourceArrayResponse;
|
|
31
|
+
export declare function ProductRegistrationProductChildResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationProductChildResourceArrayResponse;
|
|
32
|
+
export declare function ProductRegistrationProductChildResourceArrayResponseToJSON(json: any): ProductRegistrationProductChildResourceArrayResponse;
|
|
33
|
+
export declare function ProductRegistrationProductChildResourceArrayResponseToJSONTyped(value?: ProductRegistrationProductChildResourceArrayResponse | 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.instanceOfProductRegistrationProductChildResourceArrayResponse = instanceOfProductRegistrationProductChildResourceArrayResponse;
|
|
17
|
+
exports.ProductRegistrationProductChildResourceArrayResponseFromJSON = ProductRegistrationProductChildResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductRegistrationProductChildResourceArrayResponseFromJSONTyped = ProductRegistrationProductChildResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductRegistrationProductChildResourceArrayResponseToJSON = ProductRegistrationProductChildResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductRegistrationProductChildResourceArrayResponseToJSONTyped = ProductRegistrationProductChildResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductRegistrationProductChildResource_1 = require("./ProductRegistrationProductChildResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductRegistrationProductChildResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductRegistrationProductChildResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductRegistrationProductChildResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductRegistrationProductChildResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductRegistrationProductChildResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductRegistrationProductChildResource_1.ProductRegistrationProductChildResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductRegistrationProductChildResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductRegistrationProductChildResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductRegistrationProductChildResourceArrayResponseToJSONTyped(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(ProductRegistrationProductChildResource_1.ProductRegistrationProductChildResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { ProductRegistrationAssetResource } from './ProductRegistrationAssetResource';
|
|
13
|
+
import type { ProductRegistrationProductChildResource } from './ProductRegistrationProductChildResource';
|
|
14
|
+
import type { AddressResource } from './AddressResource';
|
|
15
|
+
import type { ProductRegistrationCustomerResource } from './ProductRegistrationCustomerResource';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ProductRegistrationResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductRegistrationResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ProductRegistrationResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof ProductRegistrationResource
|
|
32
|
+
*/
|
|
33
|
+
purchasedDate: Date;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ProductRegistrationCustomerResource}
|
|
37
|
+
* @memberof ProductRegistrationResource
|
|
38
|
+
*/
|
|
39
|
+
customer: ProductRegistrationCustomerResource | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {AddressResource}
|
|
43
|
+
* @memberof ProductRegistrationResource
|
|
44
|
+
*/
|
|
45
|
+
address: AddressResource | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<ProductRegistrationProductChildResource>}
|
|
49
|
+
* @memberof ProductRegistrationResource
|
|
50
|
+
*/
|
|
51
|
+
productChildren: Array<ProductRegistrationProductChildResource> | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<ProductRegistrationAssetResource>}
|
|
55
|
+
* @memberof ProductRegistrationResource
|
|
56
|
+
*/
|
|
57
|
+
assets: Array<ProductRegistrationAssetResource> | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ProductRegistrationResource
|
|
62
|
+
*/
|
|
63
|
+
omnisendId?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ProductRegistrationResource
|
|
68
|
+
*/
|
|
69
|
+
omnisendSyncStatus?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof ProductRegistrationResource
|
|
74
|
+
*/
|
|
75
|
+
createdAt?: Date | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof ProductRegistrationResource
|
|
80
|
+
*/
|
|
81
|
+
updatedAt?: Date | null;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the ProductRegistrationResource interface.
|
|
85
|
+
*/
|
|
86
|
+
export declare function instanceOfProductRegistrationResource(value: object): value is ProductRegistrationResource;
|
|
87
|
+
export declare function ProductRegistrationResourceFromJSON(json: any): ProductRegistrationResource;
|
|
88
|
+
export declare function ProductRegistrationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationResource;
|
|
89
|
+
export declare function ProductRegistrationResourceToJSON(json: any): ProductRegistrationResource;
|
|
90
|
+
export declare function ProductRegistrationResourceToJSONTyped(value?: ProductRegistrationResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
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.instanceOfProductRegistrationResource = instanceOfProductRegistrationResource;
|
|
17
|
+
exports.ProductRegistrationResourceFromJSON = ProductRegistrationResourceFromJSON;
|
|
18
|
+
exports.ProductRegistrationResourceFromJSONTyped = ProductRegistrationResourceFromJSONTyped;
|
|
19
|
+
exports.ProductRegistrationResourceToJSON = ProductRegistrationResourceToJSON;
|
|
20
|
+
exports.ProductRegistrationResourceToJSONTyped = ProductRegistrationResourceToJSONTyped;
|
|
21
|
+
var ProductRegistrationAssetResource_1 = require("./ProductRegistrationAssetResource");
|
|
22
|
+
var ProductRegistrationProductChildResource_1 = require("./ProductRegistrationProductChildResource");
|
|
23
|
+
var AddressResource_1 = require("./AddressResource");
|
|
24
|
+
var ProductRegistrationCustomerResource_1 = require("./ProductRegistrationCustomerResource");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ProductRegistrationResource interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfProductRegistrationResource(value) {
|
|
29
|
+
if (!('purchasedDate' in value) || value['purchasedDate'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('customer' in value) || value['customer'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('productChildren' in value) || value['productChildren'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('assets' in value) || value['assets'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function ProductRegistrationResourceFromJSON(json) {
|
|
42
|
+
return ProductRegistrationResourceFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ProductRegistrationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
+
'purchasedDate': (new Date(json['purchasedDate'])),
|
|
51
|
+
'customer': (0, ProductRegistrationCustomerResource_1.ProductRegistrationCustomerResourceFromJSON)(json['customer']),
|
|
52
|
+
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
53
|
+
'productChildren': (json['productChildren'] == null ? null : json['productChildren'].map(ProductRegistrationProductChildResource_1.ProductRegistrationProductChildResourceFromJSON)),
|
|
54
|
+
'assets': (json['assets'] == null ? null : json['assets'].map(ProductRegistrationAssetResource_1.ProductRegistrationAssetResourceFromJSON)),
|
|
55
|
+
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
56
|
+
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
57
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
58
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function ProductRegistrationResourceToJSON(json) {
|
|
62
|
+
return ProductRegistrationResourceToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function ProductRegistrationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
65
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'purchasedDate': value['purchasedDate'].toISOString(),
|
|
72
|
+
'customer': (0, ProductRegistrationCustomerResource_1.ProductRegistrationCustomerResourceToJSON)(value['customer']),
|
|
73
|
+
'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
|
|
74
|
+
'productChildren': (value['productChildren'] == null ? null : value['productChildren'].map(ProductRegistrationProductChildResource_1.ProductRegistrationProductChildResourceToJSON)),
|
|
75
|
+
'assets': (value['assets'] == null ? null : value['assets'].map(ProductRegistrationAssetResource_1.ProductRegistrationAssetResourceToJSON)),
|
|
76
|
+
'omnisendId': value['omnisendId'],
|
|
77
|
+
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
78
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
79
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -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 { ProductRegistrationResource } from './ProductRegistrationResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductRegistrationResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductRegistrationResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductRegistrationResource>}
|
|
22
|
+
* @memberof ProductRegistrationResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductRegistrationResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductRegistrationResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductRegistrationResourceArrayResponse(value: object): value is ProductRegistrationResourceArrayResponse;
|
|
30
|
+
export declare function ProductRegistrationResourceArrayResponseFromJSON(json: any): ProductRegistrationResourceArrayResponse;
|
|
31
|
+
export declare function ProductRegistrationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationResourceArrayResponse;
|
|
32
|
+
export declare function ProductRegistrationResourceArrayResponseToJSON(json: any): ProductRegistrationResourceArrayResponse;
|
|
33
|
+
export declare function ProductRegistrationResourceArrayResponseToJSONTyped(value?: ProductRegistrationResourceArrayResponse | 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.instanceOfProductRegistrationResourceArrayResponse = instanceOfProductRegistrationResourceArrayResponse;
|
|
17
|
+
exports.ProductRegistrationResourceArrayResponseFromJSON = ProductRegistrationResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductRegistrationResourceArrayResponseFromJSONTyped = ProductRegistrationResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductRegistrationResourceArrayResponseToJSON = ProductRegistrationResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductRegistrationResourceArrayResponseToJSONTyped = ProductRegistrationResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductRegistrationResource_1 = require("./ProductRegistrationResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductRegistrationResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductRegistrationResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductRegistrationResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductRegistrationResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductRegistrationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductRegistrationResource_1.ProductRegistrationResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductRegistrationResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductRegistrationResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductRegistrationResourceArrayResponseToJSONTyped(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(ProductRegistrationResource_1.ProductRegistrationResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -28,6 +28,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -54,7 +56,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'siteId': json['siteId'],
|
|
55
57
|
'name': json['name'],
|
|
56
58
|
'email': json['email'],
|
|
57
|
-
'website': json['website']
|
|
59
|
+
'website': json['website'],
|
|
58
60
|
'phone': json['phone'],
|
|
59
61
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
62
|
'latitude': json['latitude'],
|
|
@@ -37,8 +37,6 @@ function instanceOfStoreListResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
return true;
|
|
43
41
|
}
|
|
44
42
|
function StoreListResourceFromJSON(json) {
|
|
@@ -57,7 +55,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
55
|
'latitude': json['latitude'],
|
|
58
56
|
'tagLine': json['tag_line'],
|
|
59
57
|
'email': json['email'],
|
|
60
|
-
'website': json['website'],
|
|
58
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
61
59
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
62
60
|
};
|
|
63
61
|
}
|
|
@@ -36,8 +36,6 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -62,7 +60,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
60
|
'phone': json['phone'],
|
|
63
61
|
'longitude': json['longitude'],
|
|
64
62
|
'latitude': json['latitude'],
|
|
65
|
-
'tagLine': json['tag_line'],
|
|
63
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
66
64
|
'email': json['email'],
|
|
67
65
|
'website': json['website'] == null ? undefined : json['website'],
|
|
68
66
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -39,12 +39,6 @@ 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';
|
|
48
42
|
export * from './CategoryAutomationComparisonType';
|
|
49
43
|
export * from './CategoryAutomationConditionType';
|
|
50
44
|
export * from './CategoryAutomationFieldType';
|
|
@@ -96,6 +90,7 @@ export * from './GetAllOverlayTemplateRequest';
|
|
|
96
90
|
export * from './GetAllProductCategoryRequest';
|
|
97
91
|
export * from './GetAllProductChildRequest';
|
|
98
92
|
export * from './GetAllProductRangeRequest';
|
|
93
|
+
export * from './GetAllProductRegistrationRequest';
|
|
99
94
|
export * from './GetAllProductRequest';
|
|
100
95
|
export * from './GetAllProductTypeRequest';
|
|
101
96
|
export * from './GetAllStoreRequest';
|
|
@@ -123,6 +118,7 @@ export * from './IndexOverlayTemplateRequest';
|
|
|
123
118
|
export * from './IndexProductCategoryRequest';
|
|
124
119
|
export * from './IndexProductChildRequest';
|
|
125
120
|
export * from './IndexProductRangeRequest';
|
|
121
|
+
export * from './IndexProductRegistrationRequest';
|
|
126
122
|
export * from './IndexProductRequest';
|
|
127
123
|
export * from './IndexProductTypeRequest';
|
|
128
124
|
export * from './IndexRedirectRequest';
|
|
@@ -137,6 +133,7 @@ export * from './LabelLiteResource';
|
|
|
137
133
|
export * from './LabelLiteResourceArrayResponse';
|
|
138
134
|
export * from './LabelResource';
|
|
139
135
|
export * from './LabelResourceArrayResponse';
|
|
136
|
+
export * from './ListAssetsProductRegistrationRequest';
|
|
140
137
|
export * from './ModelAttributeFrontendResource';
|
|
141
138
|
export * from './ModelAttributeFrontendResourceArrayResponse';
|
|
142
139
|
export * from './ModelAttributeListResource';
|
|
@@ -159,9 +156,6 @@ export * from './PaginatedAttributeLiteResourceResponse';
|
|
|
159
156
|
export * from './PaginatedAttributeProductTypeRelationResourceResponse';
|
|
160
157
|
export * from './PaginatedAttributeResourceResponse';
|
|
161
158
|
export * from './PaginatedAttributeValueResourceResponse';
|
|
162
|
-
export * from './PaginatedBlogCategoryListResourceResponse';
|
|
163
|
-
export * from './PaginatedBlogCategoryLiteResourceResponse';
|
|
164
|
-
export * from './PaginatedBlogCategoryResourceResponse';
|
|
165
159
|
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
166
160
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
167
161
|
export * from './PaginatedDefinitionResourceResponse';
|
|
@@ -188,6 +182,9 @@ export * from './PaginatedProductRangeListResourceResponse';
|
|
|
188
182
|
export * from './PaginatedProductRangeLiteResourceResponse';
|
|
189
183
|
export * from './PaginatedProductRangeResourceResponse';
|
|
190
184
|
export * from './PaginatedProductRangeSearchResultResourceResponse';
|
|
185
|
+
export * from './PaginatedProductRegistrationAssetResourceResponse';
|
|
186
|
+
export * from './PaginatedProductRegistrationListResourceResponse';
|
|
187
|
+
export * from './PaginatedProductRegistrationResourceResponse';
|
|
191
188
|
export * from './PaginatedProductResourceResponse';
|
|
192
189
|
export * from './PaginatedProductSearchResultResourceResponse';
|
|
193
190
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
@@ -271,6 +268,19 @@ export * from './ProductRangeSiteDetailResource';
|
|
|
271
268
|
export * from './ProductRangeSiteDetailResourceArrayResponse';
|
|
272
269
|
export * from './ProductRangeSortBy';
|
|
273
270
|
export * from './ProductRating';
|
|
271
|
+
export * from './ProductRegistrationAssetResource';
|
|
272
|
+
export * from './ProductRegistrationAssetResourceArrayResponse';
|
|
273
|
+
export * from './ProductRegistrationAssetType';
|
|
274
|
+
export * from './ProductRegistrationCustomerResource';
|
|
275
|
+
export * from './ProductRegistrationCustomerResourceArrayResponse';
|
|
276
|
+
export * from './ProductRegistrationListResource';
|
|
277
|
+
export * from './ProductRegistrationListResourceArrayResponse';
|
|
278
|
+
export * from './ProductRegistrationLiteResource';
|
|
279
|
+
export * from './ProductRegistrationLiteResourceArrayResponse';
|
|
280
|
+
export * from './ProductRegistrationProductChildResource';
|
|
281
|
+
export * from './ProductRegistrationProductChildResourceArrayResponse';
|
|
282
|
+
export * from './ProductRegistrationResource';
|
|
283
|
+
export * from './ProductRegistrationResourceArrayResponse';
|
|
274
284
|
export * from './ProductResource';
|
|
275
285
|
export * from './ProductResourceArrayResponse';
|
|
276
286
|
export * from './ProductSearchResponseResource';
|