@digital8/lighting-illusions-ts-sdk 0.0.1450 → 0.0.1452
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +42 -0
- package/README.md +26 -2
- package/dist/apis/ProductRegistrationApi.d.ts +79 -0
- package/dist/apis/ProductRegistrationApi.js +316 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressResource.d.ts +80 -0
- package/dist/models/AddressResource.js +77 -0
- package/dist/models/AddressResourceArrayResponse.d.ts +33 -0
- package/dist/models/AddressResourceArrayResponse.js +50 -0
- package/dist/models/GetAllProductRegistrationRequest.d.ts +81 -0
- package/dist/models/GetAllProductRegistrationRequest.js +77 -0
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRegistrationRequest.d.ts +124 -0
- package/dist/models/IndexProductRegistrationRequest.js +95 -0
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/ListAssetsProductRegistrationRequest.js +83 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
- package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
- package/dist/models/ProductRegistrationAssetResource.js +58 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.d.ts +44 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.js +57 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +50 -0
- package/dist/models/ProductRegistrationCustomerResource.js +61 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +51 -0
- package/dist/models/ProductRegistrationListResource.js +60 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
- package/dist/models/ProductRegistrationLiteResource.js +53 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationResource.d.ts +76 -0
- package/dist/models/ProductRegistrationResource.js +75 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +20 -0
- package/docs/AddressResource.md +50 -0
- package/docs/AddressResourceArrayResponse.md +34 -0
- package/docs/GetAllProductRegistrationRequest.md +44 -0
- package/docs/IndexProductRegistrationRequest.md +56 -0
- package/docs/ListAssetsProductRegistrationRequest.md +52 -0
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/PaginatedProductRegistrationListResourceResponse.md +36 -0
- package/docs/PaginatedProductRegistrationResourceResponse.md +36 -0
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/ProductRegistrationAssetResource.md +38 -0
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationCustomerLiteResource.md +38 -0
- package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationCustomerResource.md +40 -0
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationListResource.md +40 -0
- package/docs/ProductRegistrationListResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationLiteResource.md +36 -0
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationResource.md +48 -0
- package/docs/ProductRegistrationResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +135 -0
- package/src/models/AddressResourceArrayResponse.ts +73 -0
- package/src/models/GetAllProductRegistrationRequest.ts +128 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRegistrationRequest.ts +184 -0
- package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
- package/src/models/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationCustomerLiteResource.ts +83 -0
- package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationCustomerResource.ts +92 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +99 -0
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationLiteResource.ts +74 -0
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationResource.ts +141 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +20 -0
|
@@ -0,0 +1,80 @@
|
|
|
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 AddressResource
|
|
16
|
+
*/
|
|
17
|
+
export interface AddressResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AddressResource
|
|
22
|
+
*/
|
|
23
|
+
id?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AddressResource
|
|
28
|
+
*/
|
|
29
|
+
company?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AddressResource
|
|
34
|
+
*/
|
|
35
|
+
line1: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AddressResource
|
|
40
|
+
*/
|
|
41
|
+
line2?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AddressResource
|
|
46
|
+
*/
|
|
47
|
+
postcode: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AddressResource
|
|
52
|
+
*/
|
|
53
|
+
suburb: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AddressResource
|
|
58
|
+
*/
|
|
59
|
+
country: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AddressResource
|
|
64
|
+
*/
|
|
65
|
+
state: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AddressResource
|
|
70
|
+
*/
|
|
71
|
+
fullAddress: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the AddressResource interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfAddressResource(value: object): value is AddressResource;
|
|
77
|
+
export declare function AddressResourceFromJSON(json: any): AddressResource;
|
|
78
|
+
export declare function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressResource;
|
|
79
|
+
export declare function AddressResourceToJSON(json: any): AddressResource;
|
|
80
|
+
export declare function AddressResourceToJSONTyped(value?: AddressResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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.instanceOfAddressResource = instanceOfAddressResource;
|
|
17
|
+
exports.AddressResourceFromJSON = AddressResourceFromJSON;
|
|
18
|
+
exports.AddressResourceFromJSONTyped = AddressResourceFromJSONTyped;
|
|
19
|
+
exports.AddressResourceToJSON = AddressResourceToJSON;
|
|
20
|
+
exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AddressResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAddressResource(value) {
|
|
25
|
+
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('country' in value) || value['country'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('fullAddress' in value) || value['fullAddress'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AddressResourceFromJSON(json) {
|
|
40
|
+
return AddressResourceFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
49
|
+
'line1': json['line1'],
|
|
50
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
51
|
+
'postcode': json['postcode'],
|
|
52
|
+
'suburb': json['suburb'],
|
|
53
|
+
'country': json['country'],
|
|
54
|
+
'state': json['state'],
|
|
55
|
+
'fullAddress': json['fullAddress'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function AddressResourceToJSON(json) {
|
|
59
|
+
return AddressResourceToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function AddressResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'company': value['company'],
|
|
69
|
+
'line1': value['line1'],
|
|
70
|
+
'line2': value['line2'],
|
|
71
|
+
'postcode': value['postcode'],
|
|
72
|
+
'suburb': value['suburb'],
|
|
73
|
+
'country': value['country'],
|
|
74
|
+
'state': value['state'],
|
|
75
|
+
'fullAddress': value['fullAddress'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AddressResource } from './AddressResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddressResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AddressResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AddressResource>}
|
|
22
|
+
* @memberof AddressResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<AddressResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AddressResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAddressResourceArrayResponse(value: object): value is AddressResourceArrayResponse;
|
|
30
|
+
export declare function AddressResourceArrayResponseFromJSON(json: any): AddressResourceArrayResponse;
|
|
31
|
+
export declare function AddressResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressResourceArrayResponse;
|
|
32
|
+
export declare function AddressResourceArrayResponseToJSON(json: any): AddressResourceArrayResponse;
|
|
33
|
+
export declare function AddressResourceArrayResponseToJSONTyped(value?: AddressResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAddressResourceArrayResponse = instanceOfAddressResourceArrayResponse;
|
|
17
|
+
exports.AddressResourceArrayResponseFromJSON = AddressResourceArrayResponseFromJSON;
|
|
18
|
+
exports.AddressResourceArrayResponseFromJSONTyped = AddressResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.AddressResourceArrayResponseToJSON = AddressResourceArrayResponseToJSON;
|
|
20
|
+
exports.AddressResourceArrayResponseToJSONTyped = AddressResourceArrayResponseToJSONTyped;
|
|
21
|
+
var AddressResource_1 = require("./AddressResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AddressResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAddressResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function AddressResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return AddressResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function AddressResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(AddressResource_1.AddressResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AddressResourceArrayResponseToJSON(json) {
|
|
40
|
+
return AddressResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AddressResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(AddressResource_1.AddressResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const GetAllProductRegistrationRequestSortByEnum: {
|
|
59
|
+
readonly Id: "id";
|
|
60
|
+
readonly CustomerName: "customer-name";
|
|
61
|
+
readonly CustomerEmail: "customer-email";
|
|
62
|
+
readonly CustomerPhone: "customer-phone";
|
|
63
|
+
readonly CreatedAt: "created_at";
|
|
64
|
+
};
|
|
65
|
+
export type GetAllProductRegistrationRequestSortByEnum = typeof GetAllProductRegistrationRequestSortByEnum[keyof typeof GetAllProductRegistrationRequestSortByEnum];
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export declare const GetAllProductRegistrationRequestSortDirectionEnum: {
|
|
70
|
+
readonly Asc: "asc";
|
|
71
|
+
readonly Desc: "desc";
|
|
72
|
+
};
|
|
73
|
+
export type GetAllProductRegistrationRequestSortDirectionEnum = typeof GetAllProductRegistrationRequestSortDirectionEnum[keyof typeof GetAllProductRegistrationRequestSortDirectionEnum];
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the GetAllProductRegistrationRequest interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfGetAllProductRegistrationRequest(value: object): value is GetAllProductRegistrationRequest;
|
|
78
|
+
export declare function GetAllProductRegistrationRequestFromJSON(json: any): GetAllProductRegistrationRequest;
|
|
79
|
+
export declare function GetAllProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProductRegistrationRequest;
|
|
80
|
+
export declare function GetAllProductRegistrationRequestToJSON(json: any): GetAllProductRegistrationRequest;
|
|
81
|
+
export declare function GetAllProductRegistrationRequestToJSONTyped(value?: GetAllProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.GetAllProductRegistrationRequestSortDirectionEnum = {
|
|
36
|
+
Asc: 'asc',
|
|
37
|
+
Desc: 'desc'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the GetAllProductRegistrationRequest interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfGetAllProductRegistrationRequest(value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function GetAllProductRegistrationRequestFromJSON(json) {
|
|
46
|
+
return GetAllProductRegistrationRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GetAllProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
54
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
55
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
56
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
57
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
58
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function GetAllProductRegistrationRequestToJSON(json) {
|
|
62
|
+
return GetAllProductRegistrationRequestToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function GetAllProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
65
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'search': value['search'],
|
|
71
|
+
'sortBy': value['sortBy'],
|
|
72
|
+
'sortDirection': value['sortDirection'],
|
|
73
|
+
'related_id': value['relatedId'],
|
|
74
|
+
'related_type': value['relatedType'],
|
|
75
|
+
'includes_relations': value['includesRelations'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -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 Site: "site";
|
|
@@ -0,0 +1,124 @@
|
|
|
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 {Date}
|
|
51
|
+
* @memberof IndexProductRegistrationRequest
|
|
52
|
+
*/
|
|
53
|
+
beforePurchasedDate?: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof IndexProductRegistrationRequest
|
|
58
|
+
*/
|
|
59
|
+
afterPurchasedDate?: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof IndexProductRegistrationRequest
|
|
64
|
+
*/
|
|
65
|
+
beforeCreatedAt?: Date;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof IndexProductRegistrationRequest
|
|
70
|
+
*/
|
|
71
|
+
afterCreatedAt?: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof IndexProductRegistrationRequest
|
|
76
|
+
*/
|
|
77
|
+
relatedId?: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {IndexProductRegistrationRequestRelatedTypeEnum}
|
|
81
|
+
* @memberof IndexProductRegistrationRequest
|
|
82
|
+
*/
|
|
83
|
+
relatedType?: IndexProductRegistrationRequestRelatedTypeEnum;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof IndexProductRegistrationRequest
|
|
88
|
+
*/
|
|
89
|
+
includesRelations?: boolean;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export declare const IndexProductRegistrationRequestSortByEnum: {
|
|
95
|
+
readonly Id: "id";
|
|
96
|
+
readonly CustomerName: "customer-name";
|
|
97
|
+
readonly CustomerEmail: "customer-email";
|
|
98
|
+
readonly CustomerPhone: "customer-phone";
|
|
99
|
+
readonly CreatedAt: "created_at";
|
|
100
|
+
};
|
|
101
|
+
export type IndexProductRegistrationRequestSortByEnum = typeof IndexProductRegistrationRequestSortByEnum[keyof typeof IndexProductRegistrationRequestSortByEnum];
|
|
102
|
+
/**
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export declare const IndexProductRegistrationRequestSortDirectionEnum: {
|
|
106
|
+
readonly Asc: "asc";
|
|
107
|
+
readonly Desc: "desc";
|
|
108
|
+
};
|
|
109
|
+
export type IndexProductRegistrationRequestSortDirectionEnum = typeof IndexProductRegistrationRequestSortDirectionEnum[keyof typeof IndexProductRegistrationRequestSortDirectionEnum];
|
|
110
|
+
/**
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export declare const IndexProductRegistrationRequestRelatedTypeEnum: {
|
|
114
|
+
readonly ProductChild: "productChild";
|
|
115
|
+
};
|
|
116
|
+
export type IndexProductRegistrationRequestRelatedTypeEnum = typeof IndexProductRegistrationRequestRelatedTypeEnum[keyof typeof IndexProductRegistrationRequestRelatedTypeEnum];
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the IndexProductRegistrationRequest interface.
|
|
119
|
+
*/
|
|
120
|
+
export declare function instanceOfIndexProductRegistrationRequest(value: object): value is IndexProductRegistrationRequest;
|
|
121
|
+
export declare function IndexProductRegistrationRequestFromJSON(json: any): IndexProductRegistrationRequest;
|
|
122
|
+
export declare function IndexProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductRegistrationRequest;
|
|
123
|
+
export declare function IndexProductRegistrationRequestToJSON(json: any): IndexProductRegistrationRequest;
|
|
124
|
+
export declare function IndexProductRegistrationRequestToJSONTyped(value?: IndexProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.IndexProductRegistrationRequestSortDirectionEnum = {
|
|
36
|
+
Asc: 'asc',
|
|
37
|
+
Desc: 'desc'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
exports.IndexProductRegistrationRequestRelatedTypeEnum = {
|
|
43
|
+
ProductChild: 'productChild'
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the IndexProductRegistrationRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
function instanceOfIndexProductRegistrationRequest(value) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function IndexProductRegistrationRequestFromJSON(json) {
|
|
52
|
+
return IndexProductRegistrationRequestFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function IndexProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
60
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
61
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
62
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
63
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
64
|
+
'beforePurchasedDate': json['before_purchased_date'] == null ? undefined : (new Date(json['before_purchased_date'])),
|
|
65
|
+
'afterPurchasedDate': json['after_purchased_date'] == null ? undefined : (new Date(json['after_purchased_date'])),
|
|
66
|
+
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
67
|
+
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
68
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
69
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
70
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function IndexProductRegistrationRequestToJSON(json) {
|
|
74
|
+
return IndexProductRegistrationRequestToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function IndexProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
77
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'search': value['search'],
|
|
83
|
+
'sortBy': value['sortBy'],
|
|
84
|
+
'sortDirection': value['sortDirection'],
|
|
85
|
+
'per_page': value['perPage'],
|
|
86
|
+
'page': value['page'],
|
|
87
|
+
'before_purchased_date': value['beforePurchasedDate'] == null ? value['beforePurchasedDate'] : value['beforePurchasedDate'].toISOString(),
|
|
88
|
+
'after_purchased_date': value['afterPurchasedDate'] == null ? value['afterPurchasedDate'] : value['afterPurchasedDate'].toISOString(),
|
|
89
|
+
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
90
|
+
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
91
|
+
'related_id': value['relatedId'],
|
|
92
|
+
'related_type': value['relatedType'],
|
|
93
|
+
'includes_relations': value['includesRelations'],
|
|
94
|
+
};
|
|
95
|
+
}
|