@digital8/lighting-illusions-ts-sdk 0.0.1455 → 0.0.1457
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 -74
- package/README.md +25 -56
- package/dist/apis/ProductRegistrationApi.d.ts +79 -0
- package/dist/apis/{LabelApi.js → ProductRegistrationApi.js} +57 -174
- package/dist/apis/SupplierApi.d.ts +1 -33
- package/dist/apis/SupplierApi.js +0 -122
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +7 -9
- package/dist/models/GetAllProductRegistrationRequest.d.ts +81 -0
- package/dist/models/{GetAllStoreRequest.js → GetAllProductRegistrationRequest.js} +20 -24
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/IndexProductRegistrationRequest.d.ts +124 -0
- package/dist/models/IndexProductRegistrationRequest.js +95 -0
- package/dist/models/LabelResource.d.ts +4 -23
- package/dist/models/LabelResource.js +8 -19
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/{IndexLabelRequest.js → ListAssetsProductRegistrationRequest.js} +22 -31
- 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/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 +19 -35
- package/dist/models/index.js +19 -35
- package/docs/{GetAllStoreRequest.md → GetAllProductRegistrationRequest.md} +4 -8
- package/docs/{IndexStoreRequest.md → IndexProductRegistrationRequest.md} +12 -8
- package/docs/LabelResource.md +6 -12
- package/docs/{IndexLabelRequest.md → ListAssetsProductRegistrationRequest.md} +8 -6
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/{PaginatedLabelListResourceResponse.md → PaginatedProductRegistrationListResourceResponse.md} +5 -5
- package/docs/{PaginatedStoreListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/{LabelLiteResource.md → ProductRegistrationAssetResource.md} +8 -12
- package/docs/{StoreSpecialDateFrontendResourceArrayResponse.md → ProductRegistrationAssetResourceArrayResponse.md} +5 -5
- package/docs/{DetachStoresSupplierRequest.md → ProductRegistrationAssetType.md} +4 -6
- package/docs/{StoreLiteResource.md → ProductRegistrationCustomerLiteResource.md} +6 -6
- package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +34 -0
- package/docs/{UpdateStoreRequestSpecialDatesInner.md → ProductRegistrationCustomerResource.md} +8 -10
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/{StoreSpecialDateResource.md → ProductRegistrationListResource.md} +10 -16
- package/docs/{LabelLiteResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
- package/docs/{DetachSuppliersStoreRequest.md → ProductRegistrationLiteResource.md} +8 -6
- package/docs/{AddressFrontendResourceArrayResponse.md → ProductRegistrationLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductRegistrationResource.md +48 -0
- package/docs/{LabelListResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/SupplierApi.md +0 -138
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/SupplierApi.ts +0 -112
- package/src/apis/index.ts +1 -2
- package/src/models/AddressResource.ts +8 -9
- package/src/models/GetAllProductRegistrationRequest.ts +128 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/IndexProductRegistrationRequest.ts +184 -0
- package/src/models/LabelResource.ts +12 -46
- 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/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 +19 -35
- package/dist/apis/LabelApi.d.ts +0 -109
- package/dist/apis/StoreApi.d.ts +0 -190
- package/dist/apis/StoreApi.js +0 -744
- package/dist/models/AddressFrontendResource.d.ts +0 -74
- package/dist/models/AddressFrontendResource.js +0 -75
- package/dist/models/AddressFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AddressFrontendResourceArrayResponse.js +0 -50
- package/dist/models/AttachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/AttachStoresSupplierRequest.js +0 -51
- package/dist/models/AttachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/AttachSuppliersStoreRequest.js +0 -51
- package/dist/models/DetachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/DetachStoresSupplierRequest.js +0 -51
- package/dist/models/DetachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/DetachSuppliersStoreRequest.js +0 -51
- package/dist/models/GetAllStoreRequest.d.ts +0 -93
- package/dist/models/IndexLabelRequest.d.ts +0 -109
- package/dist/models/IndexStoreRequest.d.ts +0 -105
- package/dist/models/IndexStoreRequest.js +0 -85
- package/dist/models/LabelListResource.d.ts +0 -75
- package/dist/models/LabelListResource.js +0 -74
- package/dist/models/LabelListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelListResourceArrayResponse.js +0 -50
- package/dist/models/LabelLiteResource.d.ts +0 -56
- package/dist/models/LabelLiteResource.js +0 -65
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelLiteResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedLabelListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedLabelListResourceResponse.js +0 -57
- package/dist/models/PaginatedStoreListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreListResourceResponse.js +0 -57
- package/dist/models/StoreFrontendResource.d.ts +0 -98
- package/dist/models/StoreFrontendResource.js +0 -89
- package/dist/models/StoreFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreLabelRequest.d.ts +0 -74
- package/dist/models/StoreLabelRequest.js +0 -71
- package/dist/models/StoreListResource.d.ts +0 -81
- package/dist/models/StoreListResource.js +0 -78
- package/dist/models/StoreListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreListResourceArrayResponse.js +0 -50
- package/dist/models/StoreLiteResource.d.ts +0 -45
- package/dist/models/StoreLiteResource.js +0 -58
- package/dist/models/StoreLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreLiteResourceArrayResponse.js +0 -50
- package/dist/models/StoreResource.d.ts +0 -102
- package/dist/models/StoreResource.js +0 -95
- package/dist/models/StoreResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateFrontendResource.js +0 -73
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateResource.js +0 -73
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +0 -50
- package/dist/models/StoreStoreRequest.d.ts +0 -94
- package/dist/models/StoreStoreRequest.js +0 -85
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -68
- package/dist/models/StoreStoreRequestAddress.js +0 -73
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +0 -62
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +0 -61
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +0 -62
- package/dist/models/StoreStoreSpecialDateRequest.js +0 -61
- package/dist/models/UpdateLabelRequest.d.ts +0 -74
- package/dist/models/UpdateLabelRequest.js +0 -63
- package/dist/models/UpdateStoreRequest.d.ts +0 -94
- package/dist/models/UpdateStoreRequest.js +0 -85
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +0 -56
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +0 -57
- package/docs/AddressFrontendResource.md +0 -48
- package/docs/AttachStoresSupplierRequest.md +0 -34
- package/docs/AttachSuppliersStoreRequest.md +0 -34
- package/docs/LabelApi.md +0 -407
- package/docs/LabelListResource.md +0 -48
- package/docs/StoreApi.md +0 -755
- package/docs/StoreFrontendResource.md +0 -56
- package/docs/StoreFrontendResourceArrayResponse.md +0 -34
- package/docs/StoreLabelRequest.md +0 -48
- package/docs/StoreListResource.md +0 -50
- package/docs/StoreListResourceArrayResponse.md +0 -34
- package/docs/StoreLiteResourceArrayResponse.md +0 -34
- package/docs/StoreResource.md +0 -56
- package/docs/StoreResourceArrayResponse.md +0 -34
- package/docs/StoreSpecialDateFrontendResource.md +0 -46
- package/docs/StoreSpecialDateResourceArrayResponse.md +0 -34
- package/docs/StoreStoreRequest.md +0 -54
- package/docs/StoreStoreRequestAddress.md +0 -46
- package/docs/StoreStoreRequestSpecialDatesInner.md +0 -44
- package/docs/StoreStoreSpecialDateRequest.md +0 -44
- package/docs/UpdateLabelRequest.md +0 -48
- package/docs/UpdateStoreRequest.md +0 -54
- package/src/apis/LabelApi.ts +0 -328
- package/src/apis/StoreApi.ts +0 -625
- package/src/models/AddressFrontendResource.ts +0 -127
- package/src/models/AddressFrontendResourceArrayResponse.ts +0 -73
- package/src/models/AttachStoresSupplierRequest.ts +0 -66
- package/src/models/AttachSuppliersStoreRequest.ts +0 -66
- package/src/models/DetachStoresSupplierRequest.ts +0 -66
- package/src/models/DetachSuppliersStoreRequest.ts +0 -66
- package/src/models/GetAllStoreRequest.ts +0 -144
- package/src/models/IndexLabelRequest.ts +0 -163
- package/src/models/IndexStoreRequest.ts +0 -160
- package/src/models/LabelListResource.ts +0 -134
- package/src/models/LabelListResourceArrayResponse.ts +0 -73
- package/src/models/LabelLiteResource.ts +0 -101
- package/src/models/LabelLiteResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedLabelListResourceResponse.ts +0 -90
- package/src/models/PaginatedStoreListResourceResponse.ts +0 -90
- package/src/models/StoreFrontendResource.ts +0 -162
- package/src/models/StoreFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreLabelRequest.ts +0 -125
- package/src/models/StoreListResource.ts +0 -143
- package/src/models/StoreListResourceArrayResponse.ts +0 -73
- package/src/models/StoreLiteResource.ts +0 -91
- package/src/models/StoreLiteResourceArrayResponse.ts +0 -73
- package/src/models/StoreResource.ts +0 -192
- package/src/models/StoreResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateFrontendResource.ts +0 -119
- package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateResource.ts +0 -119
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +0 -73
- package/src/models/StoreStoreRequest.ts +0 -167
- package/src/models/StoreStoreRequestAddress.ts +0 -119
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +0 -106
- package/src/models/StoreStoreSpecialDateRequest.ts +0 -106
- package/src/models/UpdateLabelRequest.ts +0 -121
- package/src/models/UpdateStoreRequest.ts +0 -167
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +0 -97
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ProductRegistrationCustomerResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductRegistrationCustomerResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ProductRegistrationCustomerResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProductRegistrationCustomerResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProductRegistrationCustomerResource
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ProductRegistrationCustomerResource
|
|
44
|
+
*/
|
|
45
|
+
phone: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ProductRegistrationCustomerResource interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfProductRegistrationCustomerResource(value: object): value is ProductRegistrationCustomerResource {
|
|
52
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
54
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ProductRegistrationCustomerResourceFromJSON(json: any): ProductRegistrationCustomerResource {
|
|
59
|
+
return ProductRegistrationCustomerResourceFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ProductRegistrationCustomerResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationCustomerResource {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
69
|
+
'name': json['name'],
|
|
70
|
+
'email': json['email'],
|
|
71
|
+
'phone': json['phone'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ProductRegistrationCustomerResourceToJSON(json: any): ProductRegistrationCustomerResource {
|
|
76
|
+
return ProductRegistrationCustomerResourceToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ProductRegistrationCustomerResourceToJSONTyped(value?: ProductRegistrationCustomerResource | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'email': value['email'],
|
|
89
|
+
'phone': value['phone'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ProductRegistrationCustomerResource } from './ProductRegistrationCustomerResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductRegistrationCustomerResourceFromJSON,
|
|
19
|
+
ProductRegistrationCustomerResourceFromJSONTyped,
|
|
20
|
+
ProductRegistrationCustomerResourceToJSON,
|
|
21
|
+
ProductRegistrationCustomerResourceToJSONTyped,
|
|
22
|
+
} from './ProductRegistrationCustomerResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductRegistrationCustomerResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductRegistrationCustomerResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductRegistrationCustomerResource>}
|
|
33
|
+
* @memberof ProductRegistrationCustomerResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductRegistrationCustomerResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductRegistrationCustomerResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductRegistrationCustomerResourceArrayResponse(value: object): value is ProductRegistrationCustomerResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductRegistrationCustomerResourceArrayResponseFromJSON(json: any): ProductRegistrationCustomerResourceArrayResponse {
|
|
46
|
+
return ProductRegistrationCustomerResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductRegistrationCustomerResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationCustomerResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductRegistrationCustomerResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductRegistrationCustomerResourceArrayResponseToJSON(json: any): ProductRegistrationCustomerResourceArrayResponse {
|
|
60
|
+
return ProductRegistrationCustomerResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductRegistrationCustomerResourceArrayResponseToJSONTyped(value?: ProductRegistrationCustomerResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductRegistrationCustomerResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ProductRegistrationCustomerLiteResource } from './ProductRegistrationCustomerLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductRegistrationCustomerLiteResourceFromJSON,
|
|
19
|
+
ProductRegistrationCustomerLiteResourceFromJSONTyped,
|
|
20
|
+
ProductRegistrationCustomerLiteResourceToJSON,
|
|
21
|
+
ProductRegistrationCustomerLiteResourceToJSONTyped,
|
|
22
|
+
} from './ProductRegistrationCustomerLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductRegistrationListResource
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductRegistrationListResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ProductRegistrationListResource
|
|
34
|
+
*/
|
|
35
|
+
id?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProductRegistrationListResource
|
|
40
|
+
*/
|
|
41
|
+
purchasedDate: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ProductRegistrationCustomerLiteResource}
|
|
45
|
+
* @memberof ProductRegistrationListResource
|
|
46
|
+
*/
|
|
47
|
+
customer: ProductRegistrationCustomerLiteResource | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ProductRegistrationListResource
|
|
52
|
+
*/
|
|
53
|
+
createdAt?: string | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ProductRegistrationListResource interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfProductRegistrationListResource(value: object): value is ProductRegistrationListResource {
|
|
60
|
+
if (!('purchasedDate' in value) || value['purchasedDate'] === undefined) return false;
|
|
61
|
+
if (!('customer' in value) || value['customer'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ProductRegistrationListResourceFromJSON(json: any): ProductRegistrationListResource {
|
|
66
|
+
return ProductRegistrationListResourceFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ProductRegistrationListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationListResource {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
76
|
+
'purchasedDate': json['purchasedDate'],
|
|
77
|
+
'customer': ProductRegistrationCustomerLiteResourceFromJSON(json['customer']),
|
|
78
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ProductRegistrationListResourceToJSON(json: any): ProductRegistrationListResource {
|
|
83
|
+
return ProductRegistrationListResourceToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ProductRegistrationListResourceToJSONTyped(value?: ProductRegistrationListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'id': value['id'],
|
|
94
|
+
'purchasedDate': value['purchasedDate'],
|
|
95
|
+
'customer': ProductRegistrationCustomerLiteResourceToJSON(value['customer']),
|
|
96
|
+
'createdAt': value['createdAt'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ProductRegistrationListResource } from './ProductRegistrationListResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductRegistrationListResourceFromJSON,
|
|
19
|
+
ProductRegistrationListResourceFromJSONTyped,
|
|
20
|
+
ProductRegistrationListResourceToJSON,
|
|
21
|
+
ProductRegistrationListResourceToJSONTyped,
|
|
22
|
+
} from './ProductRegistrationListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductRegistrationListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductRegistrationListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductRegistrationListResource>}
|
|
33
|
+
* @memberof ProductRegistrationListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductRegistrationListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductRegistrationListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductRegistrationListResourceArrayResponse(value: object): value is ProductRegistrationListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductRegistrationListResourceArrayResponseFromJSON(json: any): ProductRegistrationListResourceArrayResponse {
|
|
46
|
+
return ProductRegistrationListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductRegistrationListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductRegistrationListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductRegistrationListResourceArrayResponseToJSON(json: any): ProductRegistrationListResourceArrayResponse {
|
|
60
|
+
return ProductRegistrationListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductRegistrationListResourceArrayResponseToJSONTyped(value?: ProductRegistrationListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductRegistrationListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ProductRegistrationLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductRegistrationLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ProductRegistrationLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProductRegistrationLiteResource
|
|
32
|
+
*/
|
|
33
|
+
purchasedDate: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ProductRegistrationLiteResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfProductRegistrationLiteResource(value: object): value is ProductRegistrationLiteResource {
|
|
40
|
+
if (!('purchasedDate' in value) || value['purchasedDate'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ProductRegistrationLiteResourceFromJSON(json: any): ProductRegistrationLiteResource {
|
|
45
|
+
return ProductRegistrationLiteResourceFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ProductRegistrationLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationLiteResource {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
55
|
+
'purchasedDate': json['purchasedDate'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductRegistrationLiteResourceToJSON(json: any): ProductRegistrationLiteResource {
|
|
60
|
+
return ProductRegistrationLiteResourceToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductRegistrationLiteResourceToJSONTyped(value?: ProductRegistrationLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'purchasedDate': value['purchasedDate'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ProductRegistrationLiteResource } from './ProductRegistrationLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductRegistrationLiteResourceFromJSON,
|
|
19
|
+
ProductRegistrationLiteResourceFromJSONTyped,
|
|
20
|
+
ProductRegistrationLiteResourceToJSON,
|
|
21
|
+
ProductRegistrationLiteResourceToJSONTyped,
|
|
22
|
+
} from './ProductRegistrationLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductRegistrationLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductRegistrationLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductRegistrationLiteResource>}
|
|
33
|
+
* @memberof ProductRegistrationLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductRegistrationLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductRegistrationLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductRegistrationLiteResourceArrayResponse(value: object): value is ProductRegistrationLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductRegistrationLiteResourceArrayResponseFromJSON(json: any): ProductRegistrationLiteResourceArrayResponse {
|
|
46
|
+
return ProductRegistrationLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductRegistrationLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductRegistrationLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductRegistrationLiteResourceArrayResponseToJSON(json: any): ProductRegistrationLiteResourceArrayResponse {
|
|
60
|
+
return ProductRegistrationLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductRegistrationLiteResourceArrayResponseToJSONTyped(value?: ProductRegistrationLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductRegistrationLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AddressResource } from './AddressResource';
|
|
17
|
+
import {
|
|
18
|
+
AddressResourceFromJSON,
|
|
19
|
+
AddressResourceFromJSONTyped,
|
|
20
|
+
AddressResourceToJSON,
|
|
21
|
+
AddressResourceToJSONTyped,
|
|
22
|
+
} from './AddressResource';
|
|
23
|
+
import type { ProductRegistrationCustomerResource } from './ProductRegistrationCustomerResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductRegistrationCustomerResourceFromJSON,
|
|
26
|
+
ProductRegistrationCustomerResourceFromJSONTyped,
|
|
27
|
+
ProductRegistrationCustomerResourceToJSON,
|
|
28
|
+
ProductRegistrationCustomerResourceToJSONTyped,
|
|
29
|
+
} from './ProductRegistrationCustomerResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ProductRegistrationResource
|
|
35
|
+
*/
|
|
36
|
+
export interface ProductRegistrationResource {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ProductRegistrationResource
|
|
41
|
+
*/
|
|
42
|
+
id?: number | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ProductRegistrationResource
|
|
47
|
+
*/
|
|
48
|
+
purchasedDate: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {ProductRegistrationCustomerResource}
|
|
52
|
+
* @memberof ProductRegistrationResource
|
|
53
|
+
*/
|
|
54
|
+
customer: ProductRegistrationCustomerResource | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {AddressResource}
|
|
58
|
+
* @memberof ProductRegistrationResource
|
|
59
|
+
*/
|
|
60
|
+
address: AddressResource | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {object}
|
|
64
|
+
* @memberof ProductRegistrationResource
|
|
65
|
+
*/
|
|
66
|
+
productChildren: object;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {object}
|
|
70
|
+
* @memberof ProductRegistrationResource
|
|
71
|
+
*/
|
|
72
|
+
assets: object;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ProductRegistrationResource
|
|
77
|
+
*/
|
|
78
|
+
createdAt?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ProductRegistrationResource
|
|
83
|
+
*/
|
|
84
|
+
updatedAt?: string | null;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the ProductRegistrationResource interface.
|
|
89
|
+
*/
|
|
90
|
+
export function instanceOfProductRegistrationResource(value: object): value is ProductRegistrationResource {
|
|
91
|
+
if (!('purchasedDate' in value) || value['purchasedDate'] === undefined) return false;
|
|
92
|
+
if (!('customer' in value) || value['customer'] === undefined) return false;
|
|
93
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
94
|
+
if (!('productChildren' in value) || value['productChildren'] === undefined) return false;
|
|
95
|
+
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ProductRegistrationResourceFromJSON(json: any): ProductRegistrationResource {
|
|
100
|
+
return ProductRegistrationResourceFromJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function ProductRegistrationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationResource {
|
|
104
|
+
if (json == null) {
|
|
105
|
+
return json;
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
110
|
+
'purchasedDate': json['purchasedDate'],
|
|
111
|
+
'customer': ProductRegistrationCustomerResourceFromJSON(json['customer']),
|
|
112
|
+
'address': AddressResourceFromJSON(json['address']),
|
|
113
|
+
'productChildren': json['productChildren'],
|
|
114
|
+
'assets': json['assets'],
|
|
115
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
116
|
+
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function ProductRegistrationResourceToJSON(json: any): ProductRegistrationResource {
|
|
121
|
+
return ProductRegistrationResourceToJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function ProductRegistrationResourceToJSONTyped(value?: ProductRegistrationResource | null, ignoreDiscriminator: boolean = false): any {
|
|
125
|
+
if (value == null) {
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'id': value['id'],
|
|
132
|
+
'purchasedDate': value['purchasedDate'],
|
|
133
|
+
'customer': ProductRegistrationCustomerResourceToJSON(value['customer']),
|
|
134
|
+
'address': AddressResourceToJSON(value['address']),
|
|
135
|
+
'productChildren': value['productChildren'],
|
|
136
|
+
'assets': value['assets'],
|
|
137
|
+
'createdAt': value['createdAt'],
|
|
138
|
+
'updatedAt': value['updatedAt'],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ProductRegistrationResource } from './ProductRegistrationResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductRegistrationResourceFromJSON,
|
|
19
|
+
ProductRegistrationResourceFromJSONTyped,
|
|
20
|
+
ProductRegistrationResourceToJSON,
|
|
21
|
+
ProductRegistrationResourceToJSONTyped,
|
|
22
|
+
} from './ProductRegistrationResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductRegistrationResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductRegistrationResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductRegistrationResource>}
|
|
33
|
+
* @memberof ProductRegistrationResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductRegistrationResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductRegistrationResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductRegistrationResourceArrayResponse(value: object): value is ProductRegistrationResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductRegistrationResourceArrayResponseFromJSON(json: any): ProductRegistrationResourceArrayResponse {
|
|
46
|
+
return ProductRegistrationResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductRegistrationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductRegistrationResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductRegistrationResourceArrayResponseToJSON(json: any): ProductRegistrationResourceArrayResponse {
|
|
60
|
+
return ProductRegistrationResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductRegistrationResourceArrayResponseToJSONTyped(value?: ProductRegistrationResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductRegistrationResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|