@digital8/lighting-illusions-ts-sdk 0.0.1637 → 0.0.1639
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 +26 -40
- package/README.md +20 -26
- package/dist/apis/ReviewApi.d.ts +109 -0
- package/dist/apis/{ProductRegistrationApi.js → ReviewApi.js} +130 -74
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GlobalSearchProductResource.d.ts +0 -6
- package/dist/models/GlobalSearchProductResource.js +0 -4
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/IndexReviewRequest.d.ts +110 -0
- package/dist/models/{ListAssetsProductRegistrationRequest.js → IndexReviewRequest.js} +24 -21
- package/dist/models/PaginatedReviewListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReviewListResourceResponse.js +57 -0
- package/dist/models/PaginatedReviewLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReviewLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedReviewResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedReviewResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -2
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- package/dist/models/ReviewListResource.d.ts +87 -0
- package/dist/models/ReviewListResource.js +82 -0
- package/dist/models/ReviewListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReviewListResourceArrayResponse.js +50 -0
- package/dist/models/ReviewLiteResource.d.ts +44 -0
- package/dist/models/ReviewLiteResource.js +59 -0
- package/dist/models/ReviewLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReviewLiteResourceArrayResponse.js +50 -0
- package/dist/models/ReviewResource.d.ts +117 -0
- package/dist/models/ReviewResource.js +100 -0
- package/dist/models/ReviewResourceArrayResponse.d.ts +33 -0
- package/dist/models/ReviewResourceArrayResponse.js +50 -0
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +2 -6
- package/dist/models/StoreReviewRequest.d.ts +74 -0
- package/dist/models/StoreReviewRequest.js +71 -0
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/UpdateReviewRequest.d.ts +62 -0
- package/dist/models/UpdateReviewRequest.js +63 -0
- package/dist/models/index.d.ts +12 -19
- package/dist/models/index.js +12 -19
- package/docs/GlobalSearchProductResource.md +0 -2
- package/docs/{ListAssetsProductRegistrationRequest.md → IndexReviewRequest.md} +10 -8
- package/docs/{PaginatedProductRegistrationResourceResponse.md → PaginatedReviewListResourceResponse.md} +5 -5
- package/docs/{PaginatedProductRegistrationListResourceResponse.md → PaginatedReviewLiteResourceResponse.md} +5 -5
- package/docs/{ProductRegistrationResourceArrayResponse.md → PaginatedReviewResourceResponse.md} +7 -5
- package/docs/ProductChildListResource.md +0 -2
- package/docs/ProductSearchResultResource.md +0 -2
- package/docs/ReviewApi.md +407 -0
- package/docs/ReviewListResource.md +52 -0
- package/docs/{ProductRegistrationAssetResource.md → ReviewListResourceArrayResponse.md} +6 -10
- package/docs/{ProductRegistrationLiteResource.md → ReviewLiteResource.md} +8 -6
- package/docs/ReviewLiteResourceArrayResponse.md +34 -0
- package/docs/ReviewResource.md +62 -0
- package/docs/{ProductRegistrationAssetType.md → ReviewResourceArrayResponse.md} +6 -4
- package/docs/StoreReviewRequest.md +48 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/{ProductRegistrationAssetResourceArrayResponse.md → UpdateReviewRequest.md} +16 -6
- package/package.json +1 -1
- package/src/apis/ReviewApi.ts +331 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +5 -5
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GlobalSearchProductResource.ts +0 -9
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/IndexReviewRequest.ts +167 -0
- package/src/models/PaginatedReviewListResourceResponse.ts +90 -0
- package/src/models/PaginatedReviewLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedReviewResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +0 -8
- package/src/models/ProductSearchResultResource.ts +0 -9
- package/src/models/ReviewListResource.ts +152 -0
- package/src/models/ReviewListResourceArrayResponse.ts +73 -0
- package/src/models/ReviewLiteResource.ts +84 -0
- package/src/models/ReviewLiteResourceArrayResponse.ts +73 -0
- package/src/models/ReviewResource.ts +196 -0
- package/src/models/ReviewResourceArrayResponse.ts +73 -0
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/StoreResource.ts +4 -6
- package/src/models/StoreReviewRequest.ts +125 -0
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/UpdateReviewRequest.ts +107 -0
- package/src/models/index.ts +12 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -95
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -88
- package/dist/models/GetAllProductRegistrationRequest.js +0 -80
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -131
- package/dist/models/IndexProductRegistrationRequest.js +0 -98
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +0 -57
- package/dist/models/ProductRegistrationAssetResource.d.ts +0 -45
- package/dist/models/ProductRegistrationAssetResource.js +0 -58
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationAssetType.d.ts +0 -25
- package/dist/models/ProductRegistrationAssetType.js +0 -51
- package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -62
- package/dist/models/ProductRegistrationCustomerResource.js +0 -65
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -57
- package/dist/models/ProductRegistrationListResource.js +0 -64
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationLiteResource.d.ts +0 -38
- package/dist/models/ProductRegistrationLiteResource.js +0 -53
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationProductChildResource.d.ts +0 -50
- package/dist/models/ProductRegistrationProductChildResource.js +0 -63
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationResource.d.ts +0 -90
- package/dist/models/ProductRegistrationResource.js +0 -81
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/GetAllProductRegistrationRequest.md +0 -46
- package/docs/IndexProductRegistrationRequest.md +0 -58
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +0 -36
- package/docs/ProductRegistrationApi.md +0 -344
- package/docs/ProductRegistrationCustomerResource.md +0 -44
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResource.md +0 -42
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationProductChildResource.md +0 -40
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -52
- package/src/apis/ProductRegistrationApi.ts +0 -297
- package/src/models/GetAllProductRegistrationRequest.ts +0 -137
- package/src/models/IndexProductRegistrationRequest.ts +0 -193
- package/src/models/ListAssetsProductRegistrationRequest.ts +0 -158
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +0 -90
- package/src/models/ProductRegistrationAssetResource.ts +0 -91
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationAssetType.ts +0 -53
- package/src/models/ProductRegistrationCustomerResource.ts +0 -108
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -108
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationProductChildResource.ts +0 -93
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -171
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
|
@@ -1,91 +0,0 @@
|
|
|
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 { AssetResource } from './AssetResource';
|
|
17
|
-
import {
|
|
18
|
-
AssetResourceFromJSON,
|
|
19
|
-
AssetResourceFromJSONTyped,
|
|
20
|
-
AssetResourceToJSON,
|
|
21
|
-
AssetResourceToJSONTyped,
|
|
22
|
-
} from './AssetResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ProductRegistrationAssetResource
|
|
28
|
-
*/
|
|
29
|
-
export interface ProductRegistrationAssetResource {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ProductRegistrationAssetResource
|
|
34
|
-
*/
|
|
35
|
-
id?: number | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof ProductRegistrationAssetResource
|
|
40
|
-
*/
|
|
41
|
-
type: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {AssetResource}
|
|
45
|
-
* @memberof ProductRegistrationAssetResource
|
|
46
|
-
*/
|
|
47
|
-
asset: AssetResource | null;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Check if a given object implements the ProductRegistrationAssetResource interface.
|
|
52
|
-
*/
|
|
53
|
-
export function instanceOfProductRegistrationAssetResource(value: object): value is ProductRegistrationAssetResource {
|
|
54
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
55
|
-
if (!('asset' in value) || value['asset'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ProductRegistrationAssetResourceFromJSON(json: any): ProductRegistrationAssetResource {
|
|
60
|
-
return ProductRegistrationAssetResourceFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ProductRegistrationAssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationAssetResource {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
70
|
-
'type': json['type'],
|
|
71
|
-
'asset': AssetResourceFromJSON(json['asset']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function ProductRegistrationAssetResourceToJSON(json: any): ProductRegistrationAssetResource {
|
|
76
|
-
return ProductRegistrationAssetResourceToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function ProductRegistrationAssetResourceToJSONTyped(value?: ProductRegistrationAssetResource | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'id': value['id'],
|
|
87
|
-
'type': value['type'],
|
|
88
|
-
'asset': AssetResourceToJSON(value['asset']),
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { ProductRegistrationAssetResource } from './ProductRegistrationAssetResource';
|
|
17
|
-
import {
|
|
18
|
-
ProductRegistrationAssetResourceFromJSON,
|
|
19
|
-
ProductRegistrationAssetResourceFromJSONTyped,
|
|
20
|
-
ProductRegistrationAssetResourceToJSON,
|
|
21
|
-
ProductRegistrationAssetResourceToJSONTyped,
|
|
22
|
-
} from './ProductRegistrationAssetResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ProductRegistrationAssetResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface ProductRegistrationAssetResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<ProductRegistrationAssetResource>}
|
|
33
|
-
* @memberof ProductRegistrationAssetResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<ProductRegistrationAssetResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the ProductRegistrationAssetResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfProductRegistrationAssetResourceArrayResponse(value: object): value is ProductRegistrationAssetResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function ProductRegistrationAssetResourceArrayResponseFromJSON(json: any): ProductRegistrationAssetResourceArrayResponse {
|
|
46
|
-
return ProductRegistrationAssetResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ProductRegistrationAssetResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationAssetResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductRegistrationAssetResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ProductRegistrationAssetResourceArrayResponseToJSON(json: any): ProductRegistrationAssetResourceArrayResponse {
|
|
60
|
-
return ProductRegistrationAssetResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ProductRegistrationAssetResourceArrayResponseToJSONTyped(value?: ProductRegistrationAssetResourceArrayResponse | 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(ProductRegistrationAssetResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const ProductRegistrationAssetType = {
|
|
21
|
-
TaxInvoice: 'tax_invoice',
|
|
22
|
-
CertificateOfCompliance: 'certificate_of_compliance'
|
|
23
|
-
} as const;
|
|
24
|
-
export type ProductRegistrationAssetType = typeof ProductRegistrationAssetType[keyof typeof ProductRegistrationAssetType];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export function instanceOfProductRegistrationAssetType(value: any): boolean {
|
|
28
|
-
for (const key in ProductRegistrationAssetType) {
|
|
29
|
-
if (Object.prototype.hasOwnProperty.call(ProductRegistrationAssetType, key)) {
|
|
30
|
-
if (ProductRegistrationAssetType[key as keyof typeof ProductRegistrationAssetType] === value) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function ProductRegistrationAssetTypeFromJSON(json: any): ProductRegistrationAssetType {
|
|
39
|
-
return ProductRegistrationAssetTypeFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function ProductRegistrationAssetTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationAssetType {
|
|
43
|
-
return json as ProductRegistrationAssetType;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function ProductRegistrationAssetTypeToJSON(value?: ProductRegistrationAssetType | null): any {
|
|
47
|
-
return value as any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function ProductRegistrationAssetTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductRegistrationAssetType {
|
|
51
|
-
return value as ProductRegistrationAssetType;
|
|
52
|
-
}
|
|
53
|
-
|
|
@@ -1,108 +0,0 @@
|
|
|
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
|
-
* @type {string}
|
|
49
|
-
* @memberof ProductRegistrationCustomerResource
|
|
50
|
-
*/
|
|
51
|
-
omnisendId?: string | null;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof ProductRegistrationCustomerResource
|
|
56
|
-
*/
|
|
57
|
-
omnisendSyncStatus?: string | null;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Check if a given object implements the ProductRegistrationCustomerResource interface.
|
|
62
|
-
*/
|
|
63
|
-
export function instanceOfProductRegistrationCustomerResource(value: object): value is ProductRegistrationCustomerResource {
|
|
64
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
65
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
66
|
-
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function ProductRegistrationCustomerResourceFromJSON(json: any): ProductRegistrationCustomerResource {
|
|
71
|
-
return ProductRegistrationCustomerResourceFromJSONTyped(json, false);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function ProductRegistrationCustomerResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationCustomerResource {
|
|
75
|
-
if (json == null) {
|
|
76
|
-
return json;
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
|
|
80
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
81
|
-
'name': json['name'],
|
|
82
|
-
'email': json['email'],
|
|
83
|
-
'phone': json['phone'],
|
|
84
|
-
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
85
|
-
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function ProductRegistrationCustomerResourceToJSON(json: any): ProductRegistrationCustomerResource {
|
|
90
|
-
return ProductRegistrationCustomerResourceToJSONTyped(json, false);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function ProductRegistrationCustomerResourceToJSONTyped(value?: ProductRegistrationCustomerResource | null, ignoreDiscriminator: boolean = false): any {
|
|
94
|
-
if (value == null) {
|
|
95
|
-
return value;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return {
|
|
99
|
-
|
|
100
|
-
'id': value['id'],
|
|
101
|
-
'name': value['name'],
|
|
102
|
-
'email': value['email'],
|
|
103
|
-
'phone': value['phone'],
|
|
104
|
-
'omnisendId': value['omnisendId'],
|
|
105
|
-
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,108 +0,0 @@
|
|
|
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 ProductRegistrationListResource
|
|
28
|
-
*/
|
|
29
|
-
export interface ProductRegistrationListResource {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ProductRegistrationListResource
|
|
34
|
-
*/
|
|
35
|
-
id?: number | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {Date}
|
|
39
|
-
* @memberof ProductRegistrationListResource
|
|
40
|
-
*/
|
|
41
|
-
purchasedDate: Date;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {ProductRegistrationCustomerResource}
|
|
45
|
-
* @memberof ProductRegistrationListResource
|
|
46
|
-
*/
|
|
47
|
-
customer: ProductRegistrationCustomerResource | null;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof ProductRegistrationListResource
|
|
52
|
-
*/
|
|
53
|
-
productChildrenCount: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Date}
|
|
57
|
-
* @memberof ProductRegistrationListResource
|
|
58
|
-
*/
|
|
59
|
-
createdAt?: Date | null;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Check if a given object implements the ProductRegistrationListResource interface.
|
|
64
|
-
*/
|
|
65
|
-
export function instanceOfProductRegistrationListResource(value: object): value is ProductRegistrationListResource {
|
|
66
|
-
if (!('purchasedDate' in value) || value['purchasedDate'] === undefined) return false;
|
|
67
|
-
if (!('customer' in value) || value['customer'] === undefined) return false;
|
|
68
|
-
if (!('productChildrenCount' in value) || value['productChildrenCount'] === undefined) return false;
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function ProductRegistrationListResourceFromJSON(json: any): ProductRegistrationListResource {
|
|
73
|
-
return ProductRegistrationListResourceFromJSONTyped(json, false);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function ProductRegistrationListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationListResource {
|
|
77
|
-
if (json == null) {
|
|
78
|
-
return json;
|
|
79
|
-
}
|
|
80
|
-
return {
|
|
81
|
-
|
|
82
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
83
|
-
'purchasedDate': (new Date(json['purchasedDate'])),
|
|
84
|
-
'customer': ProductRegistrationCustomerResourceFromJSON(json['customer']),
|
|
85
|
-
'productChildrenCount': json['productChildrenCount'],
|
|
86
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function ProductRegistrationListResourceToJSON(json: any): ProductRegistrationListResource {
|
|
91
|
-
return ProductRegistrationListResourceToJSONTyped(json, false);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export function ProductRegistrationListResourceToJSONTyped(value?: ProductRegistrationListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
-
if (value == null) {
|
|
96
|
-
return value;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
return {
|
|
100
|
-
|
|
101
|
-
'id': value['id'],
|
|
102
|
-
'purchasedDate': value['purchasedDate'].toISOString(),
|
|
103
|
-
'customer': ProductRegistrationCustomerResourceToJSON(value['customer']),
|
|
104
|
-
'productChildrenCount': value['productChildrenCount'],
|
|
105
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,74 +0,0 @@
|
|
|
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 {Date}
|
|
31
|
-
* @memberof ProductRegistrationLiteResource
|
|
32
|
-
*/
|
|
33
|
-
purchasedDate: Date;
|
|
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': (new Date(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'].toISOString(),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|