@digital8/lighting-illusions-ts-sdk 0.0.1570 → 0.0.1572
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 -4
- package/README.md +25 -4
- package/dist/apis/ProductRegistrationApi.d.ts +79 -0
- package/dist/apis/ProductRegistrationApi.js +316 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllProductRegistrationRequest.d.ts +88 -0
- package/dist/models/GetAllProductRegistrationRequest.js +80 -0
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRegistrationRequest.d.ts +131 -0
- package/dist/models/IndexProductRegistrationRequest.js +98 -0
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/ListAssetsProductRegistrationRequest.js +83 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
- package/dist/models/ProductRangeFrontendResource.d.ts +0 -7
- package/dist/models/ProductRangeFrontendResource.js +0 -5
- package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
- package/dist/models/ProductRegistrationAssetResource.js +58 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
- package/dist/models/ProductRegistrationAssetType.js +51 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +62 -0
- package/dist/models/ProductRegistrationCustomerResource.js +65 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +57 -0
- package/dist/models/ProductRegistrationListResource.js +64 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
- package/dist/models/ProductRegistrationLiteResource.js +53 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationProductChildResource.d.ts +50 -0
- package/dist/models/ProductRegistrationProductChildResource.js +63 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationResource.d.ts +90 -0
- package/dist/models/ProductRegistrationResource.js +81 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/index.d.ts +19 -2
- package/dist/models/index.js +19 -2
- package/docs/GetAllProductRegistrationRequest.md +46 -0
- package/docs/IndexProductRegistrationRequest.md +58 -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/ProductRangeFrontendResource.md +0 -2
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/ProductRegistrationAssetResource.md +38 -0
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +34 -0
- package/docs/{ModelAttributeFrontendResource.md → ProductRegistrationAssetType.md} +4 -8
- package/docs/ProductRegistrationCustomerResource.md +44 -0
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationListResource.md +42 -0
- package/docs/ProductRegistrationListResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationLiteResource.md +36 -0
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationProductChildResource.md +40 -0
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationResource.md +52 -0
- package/docs/{ModelAttributeFrontendResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllProductRegistrationRequest.ts +137 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRegistrationRequest.ts +193 -0
- package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
- package/src/models/ProductRangeFrontendResource.ts +0 -16
- package/src/models/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationAssetType.ts +53 -0
- package/src/models/ProductRegistrationCustomerResource.ts +108 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +108 -0
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationLiteResource.ts +74 -0
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationProductChildResource.ts +93 -0
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationResource.ts +171 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/index.ts +19 -2
- package/dist/models/ModelAttributeFrontendResource.d.ts +0 -38
- package/dist/models/ModelAttributeFrontendResource.js +0 -55
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.js +0 -50
- package/src/models/ModelAttributeFrontendResource.ts +0 -75
- package/src/models/ModelAttributeFrontendResourceArrayResponse.ts +0 -73
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetAllProductRegistrationRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GetAllProductRegistrationRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetAllProductRegistrationRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {GetAllProductRegistrationRequestSortByEnum}
|
|
27
|
+
* @memberof GetAllProductRegistrationRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: GetAllProductRegistrationRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {GetAllProductRegistrationRequestSortDirectionEnum}
|
|
33
|
+
* @memberof GetAllProductRegistrationRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: GetAllProductRegistrationRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetAllProductRegistrationRequest
|
|
40
|
+
*/
|
|
41
|
+
relatedId?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetAllProductRegistrationRequest
|
|
46
|
+
*/
|
|
47
|
+
relatedType?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetAllProductRegistrationRequest
|
|
52
|
+
*/
|
|
53
|
+
includesRelations?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof GetAllProductRegistrationRequest
|
|
58
|
+
*/
|
|
59
|
+
siteId?: Array<string>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const GetAllProductRegistrationRequestSortByEnum: {
|
|
65
|
+
readonly Id: "id";
|
|
66
|
+
readonly CustomerName: "customer-name";
|
|
67
|
+
readonly CustomerEmail: "customer-email";
|
|
68
|
+
readonly CustomerPhone: "customer-phone";
|
|
69
|
+
readonly CreatedAt: "created_at";
|
|
70
|
+
readonly PurchasedDate: "purchased_date";
|
|
71
|
+
};
|
|
72
|
+
export type GetAllProductRegistrationRequestSortByEnum = typeof GetAllProductRegistrationRequestSortByEnum[keyof typeof GetAllProductRegistrationRequestSortByEnum];
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const GetAllProductRegistrationRequestSortDirectionEnum: {
|
|
77
|
+
readonly Asc: "asc";
|
|
78
|
+
readonly Desc: "desc";
|
|
79
|
+
};
|
|
80
|
+
export type GetAllProductRegistrationRequestSortDirectionEnum = typeof GetAllProductRegistrationRequestSortDirectionEnum[keyof typeof GetAllProductRegistrationRequestSortDirectionEnum];
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the GetAllProductRegistrationRequest interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfGetAllProductRegistrationRequest(value: object): value is GetAllProductRegistrationRequest;
|
|
85
|
+
export declare function GetAllProductRegistrationRequestFromJSON(json: any): GetAllProductRegistrationRequest;
|
|
86
|
+
export declare function GetAllProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProductRegistrationRequest;
|
|
87
|
+
export declare function GetAllProductRegistrationRequestToJSON(json: any): GetAllProductRegistrationRequest;
|
|
88
|
+
export declare function GetAllProductRegistrationRequestToJSONTyped(value?: GetAllProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
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.GetAllProductRegistrationRequestSortDirectionEnum = exports.GetAllProductRegistrationRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfGetAllProductRegistrationRequest = instanceOfGetAllProductRegistrationRequest;
|
|
18
|
+
exports.GetAllProductRegistrationRequestFromJSON = GetAllProductRegistrationRequestFromJSON;
|
|
19
|
+
exports.GetAllProductRegistrationRequestFromJSONTyped = GetAllProductRegistrationRequestFromJSONTyped;
|
|
20
|
+
exports.GetAllProductRegistrationRequestToJSON = GetAllProductRegistrationRequestToJSON;
|
|
21
|
+
exports.GetAllProductRegistrationRequestToJSONTyped = GetAllProductRegistrationRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetAllProductRegistrationRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
CustomerName: 'customer-name',
|
|
28
|
+
CustomerEmail: 'customer-email',
|
|
29
|
+
CustomerPhone: 'customer-phone',
|
|
30
|
+
CreatedAt: 'created_at',
|
|
31
|
+
PurchasedDate: 'purchased_date'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
exports.GetAllProductRegistrationRequestSortDirectionEnum = {
|
|
37
|
+
Asc: 'asc',
|
|
38
|
+
Desc: 'desc'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the GetAllProductRegistrationRequest interface.
|
|
42
|
+
*/
|
|
43
|
+
function instanceOfGetAllProductRegistrationRequest(value) {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function GetAllProductRegistrationRequestFromJSON(json) {
|
|
47
|
+
return GetAllProductRegistrationRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function GetAllProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
55
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
56
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
57
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
58
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
59
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
60
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function GetAllProductRegistrationRequestToJSON(json) {
|
|
64
|
+
return GetAllProductRegistrationRequestToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function GetAllProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'search': value['search'],
|
|
73
|
+
'sortBy': value['sortBy'],
|
|
74
|
+
'sortDirection': value['sortDirection'],
|
|
75
|
+
'related_id': value['relatedId'],
|
|
76
|
+
'related_type': value['relatedType'],
|
|
77
|
+
'includes_relations': value['includesRelations'],
|
|
78
|
+
'site_id': value['siteId'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -176,6 +176,7 @@ export declare const IndexProductChildRequestRelatedTypeEnum: {
|
|
|
176
176
|
readonly OverlayTemplate: "overlayTemplate";
|
|
177
177
|
readonly ProductType: "productType";
|
|
178
178
|
readonly ProductRange: "productRange";
|
|
179
|
+
readonly ProductRegistration: "productRegistration";
|
|
179
180
|
readonly Supplier: "supplier";
|
|
180
181
|
readonly Tag: "tag";
|
|
181
182
|
readonly Label: "label";
|
|
@@ -0,0 +1,131 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IndexProductRegistrationRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexProductRegistrationRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexProductRegistrationRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {IndexProductRegistrationRequestSortByEnum}
|
|
27
|
+
* @memberof IndexProductRegistrationRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IndexProductRegistrationRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {IndexProductRegistrationRequestSortDirectionEnum}
|
|
33
|
+
* @memberof IndexProductRegistrationRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IndexProductRegistrationRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IndexProductRegistrationRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IndexProductRegistrationRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof IndexProductRegistrationRequest
|
|
52
|
+
*/
|
|
53
|
+
siteId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof IndexProductRegistrationRequest
|
|
58
|
+
*/
|
|
59
|
+
beforePurchasedDate?: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof IndexProductRegistrationRequest
|
|
64
|
+
*/
|
|
65
|
+
afterPurchasedDate?: Date;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof IndexProductRegistrationRequest
|
|
70
|
+
*/
|
|
71
|
+
beforeCreatedAt?: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof IndexProductRegistrationRequest
|
|
76
|
+
*/
|
|
77
|
+
afterCreatedAt?: Date;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof IndexProductRegistrationRequest
|
|
82
|
+
*/
|
|
83
|
+
relatedId?: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {IndexProductRegistrationRequestRelatedTypeEnum}
|
|
87
|
+
* @memberof IndexProductRegistrationRequest
|
|
88
|
+
*/
|
|
89
|
+
relatedType?: IndexProductRegistrationRequestRelatedTypeEnum;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof IndexProductRegistrationRequest
|
|
94
|
+
*/
|
|
95
|
+
includesRelations?: boolean;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const IndexProductRegistrationRequestSortByEnum: {
|
|
101
|
+
readonly Id: "id";
|
|
102
|
+
readonly CustomerName: "customer-name";
|
|
103
|
+
readonly CustomerEmail: "customer-email";
|
|
104
|
+
readonly CustomerPhone: "customer-phone";
|
|
105
|
+
readonly CreatedAt: "created_at";
|
|
106
|
+
readonly PurchasedDate: "purchased_date";
|
|
107
|
+
};
|
|
108
|
+
export type IndexProductRegistrationRequestSortByEnum = typeof IndexProductRegistrationRequestSortByEnum[keyof typeof IndexProductRegistrationRequestSortByEnum];
|
|
109
|
+
/**
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export declare const IndexProductRegistrationRequestSortDirectionEnum: {
|
|
113
|
+
readonly Asc: "asc";
|
|
114
|
+
readonly Desc: "desc";
|
|
115
|
+
};
|
|
116
|
+
export type IndexProductRegistrationRequestSortDirectionEnum = typeof IndexProductRegistrationRequestSortDirectionEnum[keyof typeof IndexProductRegistrationRequestSortDirectionEnum];
|
|
117
|
+
/**
|
|
118
|
+
* @export
|
|
119
|
+
*/
|
|
120
|
+
export declare const IndexProductRegistrationRequestRelatedTypeEnum: {
|
|
121
|
+
readonly ProductChild: "productChild";
|
|
122
|
+
};
|
|
123
|
+
export type IndexProductRegistrationRequestRelatedTypeEnum = typeof IndexProductRegistrationRequestRelatedTypeEnum[keyof typeof IndexProductRegistrationRequestRelatedTypeEnum];
|
|
124
|
+
/**
|
|
125
|
+
* Check if a given object implements the IndexProductRegistrationRequest interface.
|
|
126
|
+
*/
|
|
127
|
+
export declare function instanceOfIndexProductRegistrationRequest(value: object): value is IndexProductRegistrationRequest;
|
|
128
|
+
export declare function IndexProductRegistrationRequestFromJSON(json: any): IndexProductRegistrationRequest;
|
|
129
|
+
export declare function IndexProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductRegistrationRequest;
|
|
130
|
+
export declare function IndexProductRegistrationRequestToJSON(json: any): IndexProductRegistrationRequest;
|
|
131
|
+
export declare function IndexProductRegistrationRequestToJSONTyped(value?: IndexProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,98 @@
|
|
|
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.IndexProductRegistrationRequestRelatedTypeEnum = exports.IndexProductRegistrationRequestSortDirectionEnum = exports.IndexProductRegistrationRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexProductRegistrationRequest = instanceOfIndexProductRegistrationRequest;
|
|
18
|
+
exports.IndexProductRegistrationRequestFromJSON = IndexProductRegistrationRequestFromJSON;
|
|
19
|
+
exports.IndexProductRegistrationRequestFromJSONTyped = IndexProductRegistrationRequestFromJSONTyped;
|
|
20
|
+
exports.IndexProductRegistrationRequestToJSON = IndexProductRegistrationRequestToJSON;
|
|
21
|
+
exports.IndexProductRegistrationRequestToJSONTyped = IndexProductRegistrationRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IndexProductRegistrationRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
CustomerName: 'customer-name',
|
|
28
|
+
CustomerEmail: 'customer-email',
|
|
29
|
+
CustomerPhone: 'customer-phone',
|
|
30
|
+
CreatedAt: 'created_at',
|
|
31
|
+
PurchasedDate: 'purchased_date'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
exports.IndexProductRegistrationRequestSortDirectionEnum = {
|
|
37
|
+
Asc: 'asc',
|
|
38
|
+
Desc: 'desc'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
exports.IndexProductRegistrationRequestRelatedTypeEnum = {
|
|
44
|
+
ProductChild: 'productChild'
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the IndexProductRegistrationRequest interface.
|
|
48
|
+
*/
|
|
49
|
+
function instanceOfIndexProductRegistrationRequest(value) {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function IndexProductRegistrationRequestFromJSON(json) {
|
|
53
|
+
return IndexProductRegistrationRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function IndexProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
61
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
62
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
63
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
64
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
65
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
66
|
+
'beforePurchasedDate': json['before_purchased_date'] == null ? undefined : (new Date(json['before_purchased_date'])),
|
|
67
|
+
'afterPurchasedDate': json['after_purchased_date'] == null ? undefined : (new Date(json['after_purchased_date'])),
|
|
68
|
+
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
69
|
+
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
70
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
71
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
72
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function IndexProductRegistrationRequestToJSON(json) {
|
|
76
|
+
return IndexProductRegistrationRequestToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
function IndexProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
79
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'search': value['search'],
|
|
85
|
+
'sortBy': value['sortBy'],
|
|
86
|
+
'sortDirection': value['sortDirection'],
|
|
87
|
+
'per_page': value['perPage'],
|
|
88
|
+
'page': value['page'],
|
|
89
|
+
'site_id': value['siteId'],
|
|
90
|
+
'before_purchased_date': value['beforePurchasedDate'] == null ? value['beforePurchasedDate'] : value['beforePurchasedDate'].toISOString(),
|
|
91
|
+
'after_purchased_date': value['afterPurchasedDate'] == null ? value['afterPurchasedDate'] : value['afterPurchasedDate'].toISOString(),
|
|
92
|
+
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
93
|
+
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
94
|
+
'related_id': value['relatedId'],
|
|
95
|
+
'related_type': value['relatedType'],
|
|
96
|
+
'includes_relations': value['includesRelations'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ListAssetsProductRegistrationRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ListAssetsProductRegistrationRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {ListAssetsProductRegistrationRequestSortByEnum}
|
|
27
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: ListAssetsProductRegistrationRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ListAssetsProductRegistrationRequestSortDirectionEnum}
|
|
33
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: ListAssetsProductRegistrationRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
52
|
+
*/
|
|
53
|
+
productRegistrationId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
58
|
+
*/
|
|
59
|
+
type?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
64
|
+
*/
|
|
65
|
+
relatedId?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
70
|
+
*/
|
|
71
|
+
relatedType?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof ListAssetsProductRegistrationRequest
|
|
76
|
+
*/
|
|
77
|
+
includesRelations?: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const ListAssetsProductRegistrationRequestSortByEnum: {
|
|
83
|
+
readonly Id: "id";
|
|
84
|
+
readonly Type: "type";
|
|
85
|
+
readonly CreatedAt: "created_at";
|
|
86
|
+
};
|
|
87
|
+
export type ListAssetsProductRegistrationRequestSortByEnum = typeof ListAssetsProductRegistrationRequestSortByEnum[keyof typeof ListAssetsProductRegistrationRequestSortByEnum];
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const ListAssetsProductRegistrationRequestSortDirectionEnum: {
|
|
92
|
+
readonly Asc: "asc";
|
|
93
|
+
readonly Desc: "desc";
|
|
94
|
+
};
|
|
95
|
+
export type ListAssetsProductRegistrationRequestSortDirectionEnum = typeof ListAssetsProductRegistrationRequestSortDirectionEnum[keyof typeof ListAssetsProductRegistrationRequestSortDirectionEnum];
|
|
96
|
+
/**
|
|
97
|
+
* Check if a given object implements the ListAssetsProductRegistrationRequest interface.
|
|
98
|
+
*/
|
|
99
|
+
export declare function instanceOfListAssetsProductRegistrationRequest(value: object): value is ListAssetsProductRegistrationRequest;
|
|
100
|
+
export declare function ListAssetsProductRegistrationRequestFromJSON(json: any): ListAssetsProductRegistrationRequest;
|
|
101
|
+
export declare function ListAssetsProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAssetsProductRegistrationRequest;
|
|
102
|
+
export declare function ListAssetsProductRegistrationRequestToJSON(json: any): ListAssetsProductRegistrationRequest;
|
|
103
|
+
export declare function ListAssetsProductRegistrationRequestToJSONTyped(value?: ListAssetsProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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.ListAssetsProductRegistrationRequestSortDirectionEnum = exports.ListAssetsProductRegistrationRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfListAssetsProductRegistrationRequest = instanceOfListAssetsProductRegistrationRequest;
|
|
18
|
+
exports.ListAssetsProductRegistrationRequestFromJSON = ListAssetsProductRegistrationRequestFromJSON;
|
|
19
|
+
exports.ListAssetsProductRegistrationRequestFromJSONTyped = ListAssetsProductRegistrationRequestFromJSONTyped;
|
|
20
|
+
exports.ListAssetsProductRegistrationRequestToJSON = ListAssetsProductRegistrationRequestToJSON;
|
|
21
|
+
exports.ListAssetsProductRegistrationRequestToJSONTyped = ListAssetsProductRegistrationRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ListAssetsProductRegistrationRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
Type: 'type',
|
|
28
|
+
CreatedAt: 'created_at'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.ListAssetsProductRegistrationRequestSortDirectionEnum = {
|
|
34
|
+
Asc: 'asc',
|
|
35
|
+
Desc: 'desc'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ListAssetsProductRegistrationRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfListAssetsProductRegistrationRequest(value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function ListAssetsProductRegistrationRequestFromJSON(json) {
|
|
44
|
+
return ListAssetsProductRegistrationRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ListAssetsProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
52
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
53
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
54
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
55
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
56
|
+
'productRegistrationId': json['product_registration_id'] == null ? undefined : json['product_registration_id'],
|
|
57
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
58
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
59
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
60
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function ListAssetsProductRegistrationRequestToJSON(json) {
|
|
64
|
+
return ListAssetsProductRegistrationRequestToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function ListAssetsProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'search': value['search'],
|
|
73
|
+
'sortBy': value['sortBy'],
|
|
74
|
+
'sortDirection': value['sortDirection'],
|
|
75
|
+
'per_page': value['perPage'],
|
|
76
|
+
'page': value['page'],
|
|
77
|
+
'product_registration_id': value['productRegistrationId'],
|
|
78
|
+
'type': value['type'],
|
|
79
|
+
'related_id': value['relatedId'],
|
|
80
|
+
'related_type': value['relatedType'],
|
|
81
|
+
'includes_relations': value['includesRelations'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { ProductRegistrationAssetResource } from './ProductRegistrationAssetResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedProductRegistrationAssetResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedProductRegistrationAssetResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<ProductRegistrationAssetResource>}
|
|
23
|
+
* @memberof PaginatedProductRegistrationAssetResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<ProductRegistrationAssetResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedProductRegistrationAssetResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedProductRegistrationAssetResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedProductRegistrationAssetResourceResponse(value: object): value is PaginatedProductRegistrationAssetResourceResponse;
|
|
37
|
+
export declare function PaginatedProductRegistrationAssetResourceResponseFromJSON(json: any): PaginatedProductRegistrationAssetResourceResponse;
|
|
38
|
+
export declare function PaginatedProductRegistrationAssetResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRegistrationAssetResourceResponse;
|
|
39
|
+
export declare function PaginatedProductRegistrationAssetResourceResponseToJSON(json: any): PaginatedProductRegistrationAssetResourceResponse;
|
|
40
|
+
export declare function PaginatedProductRegistrationAssetResourceResponseToJSONTyped(value?: PaginatedProductRegistrationAssetResourceResponse | null, ignoreDiscriminator?: boolean): any;
|