@digital8/lighting-illusions-ts-sdk 0.0.1450 → 0.0.1452
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 +42 -0
- package/README.md +26 -2
- 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/AddressResource.d.ts +80 -0
- package/dist/models/AddressResource.js +77 -0
- package/dist/models/AddressResourceArrayResponse.d.ts +33 -0
- package/dist/models/AddressResourceArrayResponse.js +50 -0
- package/dist/models/GetAllProductRegistrationRequest.d.ts +81 -0
- package/dist/models/GetAllProductRegistrationRequest.js +77 -0
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRegistrationRequest.d.ts +124 -0
- package/dist/models/IndexProductRegistrationRequest.js +95 -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/ProductRegistrationCustomerLiteResource.d.ts +44 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.js +57 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +50 -0
- package/dist/models/ProductRegistrationCustomerResource.js +61 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +51 -0
- package/dist/models/ProductRegistrationListResource.js +60 -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/ProductRegistrationResource.d.ts +76 -0
- package/dist/models/ProductRegistrationResource.js +75 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +20 -0
- package/docs/AddressResource.md +50 -0
- package/docs/AddressResourceArrayResponse.md +34 -0
- package/docs/GetAllProductRegistrationRequest.md +44 -0
- package/docs/IndexProductRegistrationRequest.md +56 -0
- package/docs/ListAssetsProductRegistrationRequest.md +52 -0
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/PaginatedProductRegistrationListResourceResponse.md +36 -0
- package/docs/PaginatedProductRegistrationResourceResponse.md +36 -0
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/ProductRegistrationAssetResource.md +38 -0
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationCustomerLiteResource.md +38 -0
- package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationCustomerResource.md +40 -0
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationListResource.md +40 -0
- package/docs/ProductRegistrationListResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationLiteResource.md +36 -0
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationResource.md +48 -0
- package/docs/ProductRegistrationResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +135 -0
- package/src/models/AddressResourceArrayResponse.ts +73 -0
- package/src/models/GetAllProductRegistrationRequest.ts +128 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRegistrationRequest.ts +184 -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/ProductRegistrationCustomerLiteResource.ts +83 -0
- package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationCustomerResource.ts +92 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +99 -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/ProductRegistrationResource.ts +141 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +20 -0
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfProductRegistrationLiteResource = instanceOfProductRegistrationLiteResource;
|
|
17
|
+
exports.ProductRegistrationLiteResourceFromJSON = ProductRegistrationLiteResourceFromJSON;
|
|
18
|
+
exports.ProductRegistrationLiteResourceFromJSONTyped = ProductRegistrationLiteResourceFromJSONTyped;
|
|
19
|
+
exports.ProductRegistrationLiteResourceToJSON = ProductRegistrationLiteResourceToJSON;
|
|
20
|
+
exports.ProductRegistrationLiteResourceToJSONTyped = ProductRegistrationLiteResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProductRegistrationLiteResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProductRegistrationLiteResource(value) {
|
|
25
|
+
if (!('purchasedDate' in value) || value['purchasedDate'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ProductRegistrationLiteResourceFromJSON(json) {
|
|
30
|
+
return ProductRegistrationLiteResourceFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ProductRegistrationLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
38
|
+
'purchasedDate': json['purchasedDate'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ProductRegistrationLiteResourceToJSON(json) {
|
|
42
|
+
return ProductRegistrationLiteResourceToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ProductRegistrationLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'purchasedDate': value['purchasedDate'],
|
|
52
|
+
};
|
|
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 { ProductRegistrationLiteResource } from './ProductRegistrationLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductRegistrationLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductRegistrationLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductRegistrationLiteResource>}
|
|
22
|
+
* @memberof ProductRegistrationLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductRegistrationLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductRegistrationLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductRegistrationLiteResourceArrayResponse(value: object): value is ProductRegistrationLiteResourceArrayResponse;
|
|
30
|
+
export declare function ProductRegistrationLiteResourceArrayResponseFromJSON(json: any): ProductRegistrationLiteResourceArrayResponse;
|
|
31
|
+
export declare function ProductRegistrationLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationLiteResourceArrayResponse;
|
|
32
|
+
export declare function ProductRegistrationLiteResourceArrayResponseToJSON(json: any): ProductRegistrationLiteResourceArrayResponse;
|
|
33
|
+
export declare function ProductRegistrationLiteResourceArrayResponseToJSONTyped(value?: ProductRegistrationLiteResourceArrayResponse | 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.instanceOfProductRegistrationLiteResourceArrayResponse = instanceOfProductRegistrationLiteResourceArrayResponse;
|
|
17
|
+
exports.ProductRegistrationLiteResourceArrayResponseFromJSON = ProductRegistrationLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductRegistrationLiteResourceArrayResponseFromJSONTyped = ProductRegistrationLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductRegistrationLiteResourceArrayResponseToJSON = ProductRegistrationLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductRegistrationLiteResourceArrayResponseToJSONTyped = ProductRegistrationLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductRegistrationLiteResource_1 = require("./ProductRegistrationLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductRegistrationLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductRegistrationLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductRegistrationLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductRegistrationLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductRegistrationLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductRegistrationLiteResource_1.ProductRegistrationLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductRegistrationLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductRegistrationLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductRegistrationLiteResourceArrayResponseToJSONTyped(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(ProductRegistrationLiteResource_1.ProductRegistrationLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { AddressResource } from './AddressResource';
|
|
13
|
+
import type { ProductRegistrationCustomerResource } from './ProductRegistrationCustomerResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ProductRegistrationResource
|
|
18
|
+
*/
|
|
19
|
+
export interface ProductRegistrationResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof ProductRegistrationResource
|
|
24
|
+
*/
|
|
25
|
+
id?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ProductRegistrationResource
|
|
30
|
+
*/
|
|
31
|
+
purchasedDate: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ProductRegistrationCustomerResource}
|
|
35
|
+
* @memberof ProductRegistrationResource
|
|
36
|
+
*/
|
|
37
|
+
customer: ProductRegistrationCustomerResource | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {AddressResource}
|
|
41
|
+
* @memberof ProductRegistrationResource
|
|
42
|
+
*/
|
|
43
|
+
address: AddressResource | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {object}
|
|
47
|
+
* @memberof ProductRegistrationResource
|
|
48
|
+
*/
|
|
49
|
+
productChildren: object;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {object}
|
|
53
|
+
* @memberof ProductRegistrationResource
|
|
54
|
+
*/
|
|
55
|
+
assets: object;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ProductRegistrationResource
|
|
60
|
+
*/
|
|
61
|
+
createdAt?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ProductRegistrationResource
|
|
66
|
+
*/
|
|
67
|
+
updatedAt?: string | null;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the ProductRegistrationResource interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfProductRegistrationResource(value: object): value is ProductRegistrationResource;
|
|
73
|
+
export declare function ProductRegistrationResourceFromJSON(json: any): ProductRegistrationResource;
|
|
74
|
+
export declare function ProductRegistrationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationResource;
|
|
75
|
+
export declare function ProductRegistrationResourceToJSON(json: any): ProductRegistrationResource;
|
|
76
|
+
export declare function ProductRegistrationResourceToJSONTyped(value?: ProductRegistrationResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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 AddressResource_1 = require("./AddressResource");
|
|
22
|
+
var ProductRegistrationCustomerResource_1 = require("./ProductRegistrationCustomerResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ProductRegistrationResource interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfProductRegistrationResource(value) {
|
|
27
|
+
if (!('purchasedDate' in value) || value['purchasedDate'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('customer' in value) || value['customer'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('productChildren' in value) || value['productChildren'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('assets' in value) || value['assets'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ProductRegistrationResourceFromJSON(json) {
|
|
40
|
+
return ProductRegistrationResourceFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductRegistrationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
+
'purchasedDate': json['purchasedDate'],
|
|
49
|
+
'customer': (0, ProductRegistrationCustomerResource_1.ProductRegistrationCustomerResourceFromJSON)(json['customer']),
|
|
50
|
+
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
51
|
+
'productChildren': json['productChildren'],
|
|
52
|
+
'assets': json['assets'],
|
|
53
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
54
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function ProductRegistrationResourceToJSON(json) {
|
|
58
|
+
return ProductRegistrationResourceToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function ProductRegistrationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'purchasedDate': value['purchasedDate'],
|
|
68
|
+
'customer': (0, ProductRegistrationCustomerResource_1.ProductRegistrationCustomerResourceToJSON)(value['customer']),
|
|
69
|
+
'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
|
|
70
|
+
'productChildren': value['productChildren'],
|
|
71
|
+
'assets': value['assets'],
|
|
72
|
+
'createdAt': value['createdAt'],
|
|
73
|
+
'updatedAt': value['updatedAt'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './AddressResource';
|
|
2
|
+
export * from './AddressResourceArrayResponse';
|
|
1
3
|
export * from './AssetFileForUploadResource';
|
|
2
4
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
3
5
|
export * from './AssetFrontendResource';
|
|
@@ -82,6 +84,7 @@ export * from './GetAllOverlayTemplateRequest';
|
|
|
82
84
|
export * from './GetAllProductCategoryRequest';
|
|
83
85
|
export * from './GetAllProductChildRequest';
|
|
84
86
|
export * from './GetAllProductRangeRequest';
|
|
87
|
+
export * from './GetAllProductRegistrationRequest';
|
|
85
88
|
export * from './GetAllProductRequest';
|
|
86
89
|
export * from './GetAllProductTypeRequest';
|
|
87
90
|
export * from './GetAllSupplierRequest';
|
|
@@ -107,6 +110,7 @@ export * from './IndexOverlayTemplateRequest';
|
|
|
107
110
|
export * from './IndexProductCategoryRequest';
|
|
108
111
|
export * from './IndexProductChildRequest';
|
|
109
112
|
export * from './IndexProductRangeRequest';
|
|
113
|
+
export * from './IndexProductRegistrationRequest';
|
|
110
114
|
export * from './IndexProductRequest';
|
|
111
115
|
export * from './IndexProductTypeRequest';
|
|
112
116
|
export * from './IndexSiteNotificationRequest';
|
|
@@ -115,6 +119,7 @@ export * from './IndexSupplierRequest';
|
|
|
115
119
|
export * from './IndexTagRequest';
|
|
116
120
|
export * from './LabelResource';
|
|
117
121
|
export * from './LabelResourceArrayResponse';
|
|
122
|
+
export * from './ListAssetsProductRegistrationRequest';
|
|
118
123
|
export * from './ModelAttributeListResource';
|
|
119
124
|
export * from './ModelAttributeListResourceArrayResponse';
|
|
120
125
|
export * from './ModelAttributeResource';
|
|
@@ -160,6 +165,9 @@ export * from './PaginatedProductRangeListResourceResponse';
|
|
|
160
165
|
export * from './PaginatedProductRangeLiteResourceResponse';
|
|
161
166
|
export * from './PaginatedProductRangeResourceResponse';
|
|
162
167
|
export * from './PaginatedProductRangeSearchResultResourceResponse';
|
|
168
|
+
export * from './PaginatedProductRegistrationAssetResourceResponse';
|
|
169
|
+
export * from './PaginatedProductRegistrationListResourceResponse';
|
|
170
|
+
export * from './PaginatedProductRegistrationResourceResponse';
|
|
163
171
|
export * from './PaginatedProductResourceResponse';
|
|
164
172
|
export * from './PaginatedProductSearchResultResourceResponse';
|
|
165
173
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
@@ -241,7 +249,19 @@ export * from './ProductRangeSiteDetailResource';
|
|
|
241
249
|
export * from './ProductRangeSiteDetailResourceArrayResponse';
|
|
242
250
|
export * from './ProductRangeSortBy';
|
|
243
251
|
export * from './ProductRating';
|
|
252
|
+
export * from './ProductRegistrationAssetResource';
|
|
253
|
+
export * from './ProductRegistrationAssetResourceArrayResponse';
|
|
244
254
|
export * from './ProductRegistrationAssetType';
|
|
255
|
+
export * from './ProductRegistrationCustomerLiteResource';
|
|
256
|
+
export * from './ProductRegistrationCustomerLiteResourceArrayResponse';
|
|
257
|
+
export * from './ProductRegistrationCustomerResource';
|
|
258
|
+
export * from './ProductRegistrationCustomerResourceArrayResponse';
|
|
259
|
+
export * from './ProductRegistrationListResource';
|
|
260
|
+
export * from './ProductRegistrationListResourceArrayResponse';
|
|
261
|
+
export * from './ProductRegistrationLiteResource';
|
|
262
|
+
export * from './ProductRegistrationLiteResourceArrayResponse';
|
|
263
|
+
export * from './ProductRegistrationResource';
|
|
264
|
+
export * from './ProductRegistrationResourceArrayResponse';
|
|
245
265
|
export * from './ProductResource';
|
|
246
266
|
export * from './ProductResourceArrayResponse';
|
|
247
267
|
export * from './ProductSearchResponseResource';
|
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AddressResource"), exports);
|
|
20
|
+
__exportStar(require("./AddressResourceArrayResponse"), exports);
|
|
19
21
|
__exportStar(require("./AssetFileForUploadResource"), exports);
|
|
20
22
|
__exportStar(require("./AssetFileForUploadResourceArrayResponse"), exports);
|
|
21
23
|
__exportStar(require("./AssetFrontendResource"), exports);
|
|
@@ -100,6 +102,7 @@ __exportStar(require("./GetAllOverlayTemplateRequest"), exports);
|
|
|
100
102
|
__exportStar(require("./GetAllProductCategoryRequest"), exports);
|
|
101
103
|
__exportStar(require("./GetAllProductChildRequest"), exports);
|
|
102
104
|
__exportStar(require("./GetAllProductRangeRequest"), exports);
|
|
105
|
+
__exportStar(require("./GetAllProductRegistrationRequest"), exports);
|
|
103
106
|
__exportStar(require("./GetAllProductRequest"), exports);
|
|
104
107
|
__exportStar(require("./GetAllProductTypeRequest"), exports);
|
|
105
108
|
__exportStar(require("./GetAllSupplierRequest"), exports);
|
|
@@ -125,6 +128,7 @@ __exportStar(require("./IndexOverlayTemplateRequest"), exports);
|
|
|
125
128
|
__exportStar(require("./IndexProductCategoryRequest"), exports);
|
|
126
129
|
__exportStar(require("./IndexProductChildRequest"), exports);
|
|
127
130
|
__exportStar(require("./IndexProductRangeRequest"), exports);
|
|
131
|
+
__exportStar(require("./IndexProductRegistrationRequest"), exports);
|
|
128
132
|
__exportStar(require("./IndexProductRequest"), exports);
|
|
129
133
|
__exportStar(require("./IndexProductTypeRequest"), exports);
|
|
130
134
|
__exportStar(require("./IndexSiteNotificationRequest"), exports);
|
|
@@ -133,6 +137,7 @@ __exportStar(require("./IndexSupplierRequest"), exports);
|
|
|
133
137
|
__exportStar(require("./IndexTagRequest"), exports);
|
|
134
138
|
__exportStar(require("./LabelResource"), exports);
|
|
135
139
|
__exportStar(require("./LabelResourceArrayResponse"), exports);
|
|
140
|
+
__exportStar(require("./ListAssetsProductRegistrationRequest"), exports);
|
|
136
141
|
__exportStar(require("./ModelAttributeListResource"), exports);
|
|
137
142
|
__exportStar(require("./ModelAttributeListResourceArrayResponse"), exports);
|
|
138
143
|
__exportStar(require("./ModelAttributeResource"), exports);
|
|
@@ -178,6 +183,9 @@ __exportStar(require("./PaginatedProductRangeListResourceResponse"), exports);
|
|
|
178
183
|
__exportStar(require("./PaginatedProductRangeLiteResourceResponse"), exports);
|
|
179
184
|
__exportStar(require("./PaginatedProductRangeResourceResponse"), exports);
|
|
180
185
|
__exportStar(require("./PaginatedProductRangeSearchResultResourceResponse"), exports);
|
|
186
|
+
__exportStar(require("./PaginatedProductRegistrationAssetResourceResponse"), exports);
|
|
187
|
+
__exportStar(require("./PaginatedProductRegistrationListResourceResponse"), exports);
|
|
188
|
+
__exportStar(require("./PaginatedProductRegistrationResourceResponse"), exports);
|
|
181
189
|
__exportStar(require("./PaginatedProductResourceResponse"), exports);
|
|
182
190
|
__exportStar(require("./PaginatedProductSearchResultResourceResponse"), exports);
|
|
183
191
|
__exportStar(require("./PaginatedProductTypeListResourceResponse"), exports);
|
|
@@ -259,7 +267,19 @@ __exportStar(require("./ProductRangeSiteDetailResource"), exports);
|
|
|
259
267
|
__exportStar(require("./ProductRangeSiteDetailResourceArrayResponse"), exports);
|
|
260
268
|
__exportStar(require("./ProductRangeSortBy"), exports);
|
|
261
269
|
__exportStar(require("./ProductRating"), exports);
|
|
270
|
+
__exportStar(require("./ProductRegistrationAssetResource"), exports);
|
|
271
|
+
__exportStar(require("./ProductRegistrationAssetResourceArrayResponse"), exports);
|
|
262
272
|
__exportStar(require("./ProductRegistrationAssetType"), exports);
|
|
273
|
+
__exportStar(require("./ProductRegistrationCustomerLiteResource"), exports);
|
|
274
|
+
__exportStar(require("./ProductRegistrationCustomerLiteResourceArrayResponse"), exports);
|
|
275
|
+
__exportStar(require("./ProductRegistrationCustomerResource"), exports);
|
|
276
|
+
__exportStar(require("./ProductRegistrationCustomerResourceArrayResponse"), exports);
|
|
277
|
+
__exportStar(require("./ProductRegistrationListResource"), exports);
|
|
278
|
+
__exportStar(require("./ProductRegistrationListResourceArrayResponse"), exports);
|
|
279
|
+
__exportStar(require("./ProductRegistrationLiteResource"), exports);
|
|
280
|
+
__exportStar(require("./ProductRegistrationLiteResourceArrayResponse"), exports);
|
|
281
|
+
__exportStar(require("./ProductRegistrationResource"), exports);
|
|
282
|
+
__exportStar(require("./ProductRegistrationResourceArrayResponse"), exports);
|
|
263
283
|
__exportStar(require("./ProductResource"), exports);
|
|
264
284
|
__exportStar(require("./ProductResourceArrayResponse"), exports);
|
|
265
285
|
__exportStar(require("./ProductSearchResponseResource"), exports);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# AddressResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`company` | string
|
|
11
|
+
`line1` | string
|
|
12
|
+
`line2` | string
|
|
13
|
+
`postcode` | string
|
|
14
|
+
`suburb` | string
|
|
15
|
+
`country` | string
|
|
16
|
+
`state` | string
|
|
17
|
+
`fullAddress` | string
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { AddressResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"company": null,
|
|
28
|
+
"line1": null,
|
|
29
|
+
"line2": null,
|
|
30
|
+
"postcode": null,
|
|
31
|
+
"suburb": null,
|
|
32
|
+
"country": null,
|
|
33
|
+
"state": null,
|
|
34
|
+
"fullAddress": null,
|
|
35
|
+
} satisfies AddressResource
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as AddressResource
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# AddressResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<AddressResource>](AddressResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { AddressResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies AddressResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as AddressResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# GetAllProductRegistrationRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`relatedId` | number
|
|
13
|
+
`relatedType` | string
|
|
14
|
+
`includesRelations` | boolean
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { GetAllProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"search": null,
|
|
24
|
+
"sortBy": null,
|
|
25
|
+
"sortDirection": null,
|
|
26
|
+
"relatedId": null,
|
|
27
|
+
"relatedType": null,
|
|
28
|
+
"includesRelations": null,
|
|
29
|
+
} satisfies GetAllProductRegistrationRequest
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetAllProductRegistrationRequest
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|