@digital8/lighting-illusions-ts-sdk 0.0.2260 → 0.0.2262
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 +2 -2
- package/README.md +3 -3
- package/dist/apis/ProductClassApi.d.ts +2 -2
- package/dist/apis/ProductClassApi.js +2 -2
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +3 -3
- package/dist/models/AddressResource.js +6 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/OrderFulfillmentResource.d.ts +3 -3
- package/dist/models/OrderFulfillmentResource.js +4 -6
- package/dist/models/SearchAllProductClassesRequest.d.ts +78 -0
- package/dist/models/{SearchProductClassesRequest.js → SearchAllProductClassesRequest.js} +16 -20
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/ProductClassApi.md +4 -4
- package/docs/{SearchProductClassesRequest.md → SearchAllProductClassesRequest.md} +4 -8
- package/package.json +1 -1
- package/src/apis/ProductClassApi.ts +6 -6
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +8 -7
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/OrderFulfillmentResource.ts +7 -8
- package/src/models/SearchAllProductClassesRequest.ts +125 -0
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/index.ts +1 -1
- package/dist/models/SearchProductClassesRequest.d.ts +0 -90
- package/src/models/SearchProductClassesRequest.ts +0 -141
package/.openapi-generator/FILES
CHANGED
|
@@ -522,6 +522,7 @@ docs/SearchAllPageComponentsRequest.md
|
|
|
522
522
|
docs/SearchAllPagesRequest.md
|
|
523
523
|
docs/SearchAllProductCategoriesRequest.md
|
|
524
524
|
docs/SearchAllProductChildrenRequest.md
|
|
525
|
+
docs/SearchAllProductClassesRequest.md
|
|
525
526
|
docs/SearchAllProductRangesRequest.md
|
|
526
527
|
docs/SearchAllProductRegistrationsRequest.md
|
|
527
528
|
docs/SearchAllProductTypesRequest.md
|
|
@@ -548,7 +549,6 @@ docs/SearchPagesRequest.md
|
|
|
548
549
|
docs/SearchProductCategoriesRequest.md
|
|
549
550
|
docs/SearchProductChildAttributesRequest.md
|
|
550
551
|
docs/SearchProductChildrenRequest.md
|
|
551
|
-
docs/SearchProductClassesRequest.md
|
|
552
552
|
docs/SearchProductRangesRequest.md
|
|
553
553
|
docs/SearchProductRegistrationAssetsRequest.md
|
|
554
554
|
docs/SearchProductRegistrationsRequest.md
|
|
@@ -1196,6 +1196,7 @@ src/models/SearchAllPageComponentsRequest.ts
|
|
|
1196
1196
|
src/models/SearchAllPagesRequest.ts
|
|
1197
1197
|
src/models/SearchAllProductCategoriesRequest.ts
|
|
1198
1198
|
src/models/SearchAllProductChildrenRequest.ts
|
|
1199
|
+
src/models/SearchAllProductClassesRequest.ts
|
|
1199
1200
|
src/models/SearchAllProductRangesRequest.ts
|
|
1200
1201
|
src/models/SearchAllProductRegistrationsRequest.ts
|
|
1201
1202
|
src/models/SearchAllProductTypesRequest.ts
|
|
@@ -1222,7 +1223,6 @@ src/models/SearchPagesRequest.ts
|
|
|
1222
1223
|
src/models/SearchProductCategoriesRequest.ts
|
|
1223
1224
|
src/models/SearchProductChildAttributesRequest.ts
|
|
1224
1225
|
src/models/SearchProductChildrenRequest.ts
|
|
1225
|
-
src/models/SearchProductClassesRequest.ts
|
|
1226
1226
|
src/models/SearchProductRangesRequest.ts
|
|
1227
1227
|
src/models/SearchProductRegistrationAssetsRequest.ts
|
|
1228
1228
|
src/models/SearchProductRegistrationsRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.2262
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -788,6 +788,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
788
788
|
- [SearchAllPagesRequest](docs/SearchAllPagesRequest.md)
|
|
789
789
|
- [SearchAllProductCategoriesRequest](docs/SearchAllProductCategoriesRequest.md)
|
|
790
790
|
- [SearchAllProductChildrenRequest](docs/SearchAllProductChildrenRequest.md)
|
|
791
|
+
- [SearchAllProductClassesRequest](docs/SearchAllProductClassesRequest.md)
|
|
791
792
|
- [SearchAllProductRangesRequest](docs/SearchAllProductRangesRequest.md)
|
|
792
793
|
- [SearchAllProductRegistrationsRequest](docs/SearchAllProductRegistrationsRequest.md)
|
|
793
794
|
- [SearchAllProductTypesRequest](docs/SearchAllProductTypesRequest.md)
|
|
@@ -814,7 +815,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
814
815
|
- [SearchProductCategoriesRequest](docs/SearchProductCategoriesRequest.md)
|
|
815
816
|
- [SearchProductChildAttributesRequest](docs/SearchProductChildAttributesRequest.md)
|
|
816
817
|
- [SearchProductChildrenRequest](docs/SearchProductChildrenRequest.md)
|
|
817
|
-
- [SearchProductClassesRequest](docs/SearchProductClassesRequest.md)
|
|
818
818
|
- [SearchProductRangesRequest](docs/SearchProductRangesRequest.md)
|
|
819
819
|
- [SearchProductRegistrationAssetsRequest](docs/SearchProductRegistrationAssetsRequest.md)
|
|
820
820
|
- [SearchProductRegistrationsRequest](docs/SearchProductRegistrationsRequest.md)
|
|
@@ -942,7 +942,7 @@ and is automatically generated by the
|
|
|
942
942
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
943
943
|
|
|
944
944
|
- API version: `1.0.0`
|
|
945
|
-
- Package version: `0.0.
|
|
945
|
+
- Package version: `0.0.2262`
|
|
946
946
|
- Generator version: `7.22.0`
|
|
947
947
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
948
948
|
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type ProductClassLiteResourceArrayResponse } from '../models/ProductClassLiteResourceArrayResponse';
|
|
14
|
-
import { type
|
|
14
|
+
import { type SearchAllProductClassesRequest } from '../models/SearchAllProductClassesRequest';
|
|
15
15
|
export interface GetAllProductClassRequest {
|
|
16
|
-
|
|
16
|
+
searchAllProductClassesRequest?: SearchAllProductClassesRequest;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
@@ -67,7 +67,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
67
67
|
exports.ProductClassApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var ProductClassLiteResourceArrayResponse_1 = require("../models/ProductClassLiteResourceArrayResponse");
|
|
70
|
-
var
|
|
70
|
+
var SearchAllProductClassesRequest_1 = require("../models/SearchAllProductClassesRequest");
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
*/
|
|
@@ -92,7 +92,7 @@ var ProductClassApi = /** @class */ (function (_super) {
|
|
|
92
92
|
method: 'POST',
|
|
93
93
|
headers: headerParameters,
|
|
94
94
|
query: queryParameters,
|
|
95
|
-
body: (0,
|
|
95
|
+
body: (0, SearchAllProductClassesRequest_1.SearchAllProductClassesRequestToJSON)(requestParameters['searchAllProductClassesRequest']),
|
|
96
96
|
}];
|
|
97
97
|
});
|
|
98
98
|
});
|
|
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AddressFrontendResource
|
|
22
22
|
*/
|
|
23
|
-
company
|
|
23
|
+
company: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AddressFrontendResource
|
|
34
34
|
*/
|
|
35
|
-
line2
|
|
35
|
+
line2: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -22,8 +22,12 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
28
|
return false;
|
|
29
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
+
return false;
|
|
27
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
28
32
|
return false;
|
|
29
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -44,9 +48,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
48
|
return json;
|
|
45
49
|
}
|
|
46
50
|
return {
|
|
47
|
-
'company': json['company']
|
|
51
|
+
'company': json['company'],
|
|
48
52
|
'line1': json['line1'],
|
|
49
|
-
'line2': json['line2']
|
|
53
|
+
'line2': json['line2'],
|
|
50
54
|
'postcode': json['postcode'],
|
|
51
55
|
'suburb': json['suburb'],
|
|
52
56
|
'country': json['country'],
|
|
@@ -38,13 +38,13 @@ export interface AddressResource {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressResource
|
|
40
40
|
*/
|
|
41
|
-
addresseeName
|
|
41
|
+
addresseeName?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof AddressResource
|
|
46
46
|
*/
|
|
47
|
-
company
|
|
47
|
+
company: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -56,7 +56,7 @@ export interface AddressResource {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof AddressResource
|
|
58
58
|
*/
|
|
59
|
-
line2
|
|
59
|
+
line2: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -22,10 +22,12 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -49,10 +51,10 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
52
|
'type': json['type'] == null ? undefined : json['type'],
|
|
51
53
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
52
|
-
'addresseeName': json['addresseeName'],
|
|
53
|
-
'company': json['company']
|
|
54
|
+
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
55
|
+
'company': json['company'],
|
|
54
56
|
'line1': json['line1'],
|
|
55
|
-
'line2': json['line2']
|
|
57
|
+
'line2': json['line2'],
|
|
56
58
|
'postcode': json['postcode'],
|
|
57
59
|
'suburb': json['suburb'],
|
|
58
60
|
'country': json['country'],
|
|
@@ -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']),
|
|
@@ -39,19 +39,19 @@ export interface OrderFulfillmentResource {
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof OrderFulfillmentResource
|
|
41
41
|
*/
|
|
42
|
-
trackingNumber
|
|
42
|
+
trackingNumber?: string | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof OrderFulfillmentResource
|
|
47
47
|
*/
|
|
48
|
-
trackingUrl
|
|
48
|
+
trackingUrl?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof OrderFulfillmentResource
|
|
53
53
|
*/
|
|
54
|
-
trackingCompany
|
|
54
|
+
trackingCompany: string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
@@ -29,9 +29,7 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
33
|
-
return false;
|
|
34
|
-
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
32
|
+
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
35
33
|
return false;
|
|
36
34
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
37
35
|
return false;
|
|
@@ -52,9 +50,9 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
50
|
'id': json['id'],
|
|
53
51
|
'orderId': json['orderId'],
|
|
54
52
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
55
|
-
'trackingNumber': json['trackingNumber'],
|
|
56
|
-
'trackingUrl': json['trackingUrl'],
|
|
57
|
-
'trackingCompany': json['trackingCompany']
|
|
53
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
54
|
+
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
55
|
+
'trackingCompany': json['trackingCompany'],
|
|
58
56
|
'docnum': json['docnum'],
|
|
59
57
|
'netsuiteId': json['netsuiteId'],
|
|
60
58
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -0,0 +1,78 @@
|
|
|
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 SearchAllProductClassesRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SearchAllProductClassesRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SearchAllProductClassesRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {SearchAllProductClassesRequestSortByEnum}
|
|
27
|
+
* @memberof SearchAllProductClassesRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: SearchAllProductClassesRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {SearchAllProductClassesRequestSortDirectionEnum}
|
|
33
|
+
* @memberof SearchAllProductClassesRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: SearchAllProductClassesRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SearchAllProductClassesRequest
|
|
40
|
+
*/
|
|
41
|
+
relatedId?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SearchAllProductClassesRequest
|
|
46
|
+
*/
|
|
47
|
+
relatedType?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof SearchAllProductClassesRequest
|
|
52
|
+
*/
|
|
53
|
+
includesRelations?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const SearchAllProductClassesRequestSortByEnum: {
|
|
59
|
+
readonly Id: "id";
|
|
60
|
+
readonly Name: "name";
|
|
61
|
+
};
|
|
62
|
+
export type SearchAllProductClassesRequestSortByEnum = typeof SearchAllProductClassesRequestSortByEnum[keyof typeof SearchAllProductClassesRequestSortByEnum];
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const SearchAllProductClassesRequestSortDirectionEnum: {
|
|
67
|
+
readonly Asc: "asc";
|
|
68
|
+
readonly Desc: "desc";
|
|
69
|
+
};
|
|
70
|
+
export type SearchAllProductClassesRequestSortDirectionEnum = typeof SearchAllProductClassesRequestSortDirectionEnum[keyof typeof SearchAllProductClassesRequestSortDirectionEnum];
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the SearchAllProductClassesRequest interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfSearchAllProductClassesRequest(value: object): value is SearchAllProductClassesRequest;
|
|
75
|
+
export declare function SearchAllProductClassesRequestFromJSON(json: any): SearchAllProductClassesRequest;
|
|
76
|
+
export declare function SearchAllProductClassesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAllProductClassesRequest;
|
|
77
|
+
export declare function SearchAllProductClassesRequestToJSON(json: any): SearchAllProductClassesRequest;
|
|
78
|
+
export declare function SearchAllProductClassesRequestToJSONTyped(value?: SearchAllProductClassesRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,36 +13,36 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
16
|
+
exports.SearchAllProductClassesRequestSortDirectionEnum = exports.SearchAllProductClassesRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfSearchAllProductClassesRequest = instanceOfSearchAllProductClassesRequest;
|
|
18
|
+
exports.SearchAllProductClassesRequestFromJSON = SearchAllProductClassesRequestFromJSON;
|
|
19
|
+
exports.SearchAllProductClassesRequestFromJSONTyped = SearchAllProductClassesRequestFromJSONTyped;
|
|
20
|
+
exports.SearchAllProductClassesRequestToJSON = SearchAllProductClassesRequestToJSON;
|
|
21
|
+
exports.SearchAllProductClassesRequestToJSONTyped = SearchAllProductClassesRequestToJSONTyped;
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
25
|
+
exports.SearchAllProductClassesRequestSortByEnum = {
|
|
26
26
|
Id: 'id',
|
|
27
27
|
Name: 'name'
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* @export
|
|
31
31
|
*/
|
|
32
|
-
exports.
|
|
32
|
+
exports.SearchAllProductClassesRequestSortDirectionEnum = {
|
|
33
33
|
Asc: 'asc',
|
|
34
34
|
Desc: 'desc'
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
|
-
* Check if a given object implements the
|
|
37
|
+
* Check if a given object implements the SearchAllProductClassesRequest interface.
|
|
38
38
|
*/
|
|
39
|
-
function
|
|
39
|
+
function instanceOfSearchAllProductClassesRequest(value) {
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return
|
|
42
|
+
function SearchAllProductClassesRequestFromJSON(json) {
|
|
43
|
+
return SearchAllProductClassesRequestFromJSONTyped(json, false);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function SearchAllProductClassesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
46
|
if (json == null) {
|
|
47
47
|
return json;
|
|
48
48
|
}
|
|
@@ -50,17 +50,15 @@ function SearchProductClassesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'search': json['search'] == null ? undefined : json['search'],
|
|
51
51
|
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
52
52
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
53
|
-
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
54
|
-
'page': json['page'] == null ? undefined : json['page'],
|
|
55
53
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
56
54
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
57
55
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
58
56
|
};
|
|
59
57
|
}
|
|
60
|
-
function
|
|
61
|
-
return
|
|
58
|
+
function SearchAllProductClassesRequestToJSON(json) {
|
|
59
|
+
return SearchAllProductClassesRequestToJSONTyped(json, false);
|
|
62
60
|
}
|
|
63
|
-
function
|
|
61
|
+
function SearchAllProductClassesRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
64
62
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
65
63
|
if (value == null) {
|
|
66
64
|
return value;
|
|
@@ -69,8 +67,6 @@ function SearchProductClassesRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
69
67
|
'search': value['search'],
|
|
70
68
|
'sortBy': value['sortBy'],
|
|
71
69
|
'sortDirection': value['sortDirection'],
|
|
72
|
-
'per_page': value['perPage'],
|
|
73
|
-
'page': value['page'],
|
|
74
70
|
'related_id': value['relatedId'],
|
|
75
71
|
'related_type': value['relatedType'],
|
|
76
72
|
'includes_relations': value['includesRelations'],
|
|
@@ -37,8 +37,6 @@ function instanceOfStoreListResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -61,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
59
|
'latitude': json['latitude'],
|
|
62
60
|
'tagLine': json['tagLine'],
|
|
63
61
|
'email': json['email'],
|
|
64
|
-
'website': json['website'],
|
|
62
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
65
63
|
'netsuiteId': json['netsuiteId'],
|
|
66
64
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
67
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -36,6 +36,8 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -64,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
66
|
'phone': json['phone'],
|
|
65
67
|
'longitude': json['longitude'],
|
|
66
68
|
'latitude': json['latitude'],
|
|
67
|
-
'tagLine': json['tagLine']
|
|
69
|
+
'tagLine': json['tagLine'],
|
|
68
70
|
'email': json['email'],
|
|
69
71
|
'website': json['website'] == null ? undefined : json['website'],
|
|
70
72
|
'netsuiteId': json['netsuiteId'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -492,6 +492,7 @@ export * from './SearchAllPageComponentsRequest';
|
|
|
492
492
|
export * from './SearchAllPagesRequest';
|
|
493
493
|
export * from './SearchAllProductCategoriesRequest';
|
|
494
494
|
export * from './SearchAllProductChildrenRequest';
|
|
495
|
+
export * from './SearchAllProductClassesRequest';
|
|
495
496
|
export * from './SearchAllProductRangesRequest';
|
|
496
497
|
export * from './SearchAllProductRegistrationsRequest';
|
|
497
498
|
export * from './SearchAllProductTypesRequest';
|
|
@@ -518,7 +519,6 @@ export * from './SearchPagesRequest';
|
|
|
518
519
|
export * from './SearchProductCategoriesRequest';
|
|
519
520
|
export * from './SearchProductChildAttributesRequest';
|
|
520
521
|
export * from './SearchProductChildrenRequest';
|
|
521
|
-
export * from './SearchProductClassesRequest';
|
|
522
522
|
export * from './SearchProductRangesRequest';
|
|
523
523
|
export * from './SearchProductRegistrationAssetsRequest';
|
|
524
524
|
export * from './SearchProductRegistrationsRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -510,6 +510,7 @@ __exportStar(require("./SearchAllPageComponentsRequest"), exports);
|
|
|
510
510
|
__exportStar(require("./SearchAllPagesRequest"), exports);
|
|
511
511
|
__exportStar(require("./SearchAllProductCategoriesRequest"), exports);
|
|
512
512
|
__exportStar(require("./SearchAllProductChildrenRequest"), exports);
|
|
513
|
+
__exportStar(require("./SearchAllProductClassesRequest"), exports);
|
|
513
514
|
__exportStar(require("./SearchAllProductRangesRequest"), exports);
|
|
514
515
|
__exportStar(require("./SearchAllProductRegistrationsRequest"), exports);
|
|
515
516
|
__exportStar(require("./SearchAllProductTypesRequest"), exports);
|
|
@@ -536,7 +537,6 @@ __exportStar(require("./SearchPagesRequest"), exports);
|
|
|
536
537
|
__exportStar(require("./SearchProductCategoriesRequest"), exports);
|
|
537
538
|
__exportStar(require("./SearchProductChildAttributesRequest"), exports);
|
|
538
539
|
__exportStar(require("./SearchProductChildrenRequest"), exports);
|
|
539
|
-
__exportStar(require("./SearchProductClassesRequest"), exports);
|
|
540
540
|
__exportStar(require("./SearchProductRangesRequest"), exports);
|
|
541
541
|
__exportStar(require("./SearchProductRegistrationAssetsRequest"), exports);
|
|
542
542
|
__exportStar(require("./SearchProductRegistrationsRequest"), exports);
|
package/docs/ProductClassApi.md
CHANGED
|
@@ -10,7 +10,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
10
10
|
|
|
11
11
|
## getAllProductClass
|
|
12
12
|
|
|
13
|
-
> ProductClassLiteResourceArrayResponse getAllProductClass(
|
|
13
|
+
> ProductClassLiteResourceArrayResponse getAllProductClass(searchAllProductClassesRequest)
|
|
14
14
|
|
|
15
15
|
Auto-generated: getAllProductClass
|
|
16
16
|
|
|
@@ -28,8 +28,8 @@ async function example() {
|
|
|
28
28
|
const api = new ProductClassApi();
|
|
29
29
|
|
|
30
30
|
const body = {
|
|
31
|
-
//
|
|
32
|
-
|
|
31
|
+
// SearchAllProductClassesRequest (optional)
|
|
32
|
+
searchAllProductClassesRequest: ...,
|
|
33
33
|
} satisfies GetAllProductClassRequest;
|
|
34
34
|
|
|
35
35
|
try {
|
|
@@ -49,7 +49,7 @@ example().catch(console.error);
|
|
|
49
49
|
|
|
50
50
|
| Name | Type | Description | Notes |
|
|
51
51
|
|------------- | ------------- | ------------- | -------------|
|
|
52
|
-
| **
|
|
52
|
+
| **searchAllProductClassesRequest** | [SearchAllProductClassesRequest](SearchAllProductClassesRequest.md) | | [Optional] |
|
|
53
53
|
|
|
54
54
|
### Return type
|
|
55
55
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# SearchAllProductClassesRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -9,8 +9,6 @@ Name | Type
|
|
|
9
9
|
`search` | string
|
|
10
10
|
`sortBy` | string
|
|
11
11
|
`sortDirection` | string
|
|
12
|
-
`perPage` | number
|
|
13
|
-
`page` | number
|
|
14
12
|
`relatedId` | number
|
|
15
13
|
`relatedType` | string
|
|
16
14
|
`includesRelations` | boolean
|
|
@@ -18,19 +16,17 @@ Name | Type
|
|
|
18
16
|
## Example
|
|
19
17
|
|
|
20
18
|
```typescript
|
|
21
|
-
import type {
|
|
19
|
+
import type { SearchAllProductClassesRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
20
|
|
|
23
21
|
// TODO: Update the object below with actual values
|
|
24
22
|
const example = {
|
|
25
23
|
"search": null,
|
|
26
24
|
"sortBy": null,
|
|
27
25
|
"sortDirection": null,
|
|
28
|
-
"perPage": null,
|
|
29
|
-
"page": null,
|
|
30
26
|
"relatedId": null,
|
|
31
27
|
"relatedType": null,
|
|
32
28
|
"includesRelations": null,
|
|
33
|
-
} satisfies
|
|
29
|
+
} satisfies SearchAllProductClassesRequest
|
|
34
30
|
|
|
35
31
|
console.log(example)
|
|
36
32
|
|
|
@@ -39,7 +35,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
39
35
|
console.log(exampleJSON)
|
|
40
36
|
|
|
41
37
|
// Parse the JSON string back to an object
|
|
42
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as SearchAllProductClassesRequest
|
|
43
39
|
console.log(exampleParsed)
|
|
44
40
|
```
|
|
45
41
|
|
package/package.json
CHANGED
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
ProductClassLiteResourceArrayResponseToJSON,
|
|
20
20
|
} from '../models/ProductClassLiteResourceArrayResponse';
|
|
21
21
|
import {
|
|
22
|
-
type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from '../models/
|
|
22
|
+
type SearchAllProductClassesRequest,
|
|
23
|
+
SearchAllProductClassesRequestFromJSON,
|
|
24
|
+
SearchAllProductClassesRequestToJSON,
|
|
25
|
+
} from '../models/SearchAllProductClassesRequest';
|
|
26
26
|
|
|
27
27
|
export interface GetAllProductClassRequest {
|
|
28
|
-
|
|
28
|
+
searchAllProductClassesRequest?: SearchAllProductClassesRequest;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -51,7 +51,7 @@ export class ProductClassApi extends runtime.BaseAPI {
|
|
|
51
51
|
method: 'POST',
|
|
52
52
|
headers: headerParameters,
|
|
53
53
|
query: queryParameters,
|
|
54
|
-
body:
|
|
54
|
+
body: SearchAllProductClassesRequestToJSON(requestParameters['searchAllProductClassesRequest']),
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -73,7 +73,9 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
76
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
77
79
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
78
80
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
79
81
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -92,9 +94,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
92
94
|
}
|
|
93
95
|
return {
|
|
94
96
|
|
|
95
|
-
'company': json['company']
|
|
97
|
+
'company': json['company'],
|
|
96
98
|
'line1': json['line1'],
|
|
97
|
-
'line2': json['line2']
|
|
99
|
+
'line2': json['line2'],
|
|
98
100
|
'postcode': json['postcode'],
|
|
99
101
|
'suburb': json['suburb'],
|
|
100
102
|
'country': json['country'],
|
|
@@ -42,13 +42,13 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
addresseeName
|
|
45
|
+
addresseeName?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AddressResource
|
|
50
50
|
*/
|
|
51
|
-
company
|
|
51
|
+
company: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -60,7 +60,7 @@ export interface AddressResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof AddressResource
|
|
62
62
|
*/
|
|
63
|
-
line2
|
|
63
|
+
line2: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -97,8 +97,9 @@ export interface AddressResource {
|
|
|
97
97
|
* Check if a given object implements the AddressResource interface.
|
|
98
98
|
*/
|
|
99
99
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
|
-
if (!('
|
|
100
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
101
101
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
102
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
102
103
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
103
104
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
104
105
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -120,10 +121,10 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
120
121
|
'id': json['id'] == null ? undefined : json['id'],
|
|
121
122
|
'type': json['type'] == null ? undefined : json['type'],
|
|
122
123
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
123
|
-
'addresseeName': json['addresseeName'],
|
|
124
|
-
'company': json['company']
|
|
124
|
+
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
125
|
+
'company': json['company'],
|
|
125
126
|
'line1': json['line1'],
|
|
126
|
-
'line2': json['line2']
|
|
127
|
+
'line2': json['line2'],
|
|
127
128
|
'postcode': json['postcode'],
|
|
128
129
|
'suburb': json['suburb'],
|
|
129
130
|
'country': json['country'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -50,19 +50,19 @@ export interface OrderFulfillmentResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof OrderFulfillmentResource
|
|
52
52
|
*/
|
|
53
|
-
trackingNumber
|
|
53
|
+
trackingNumber?: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OrderFulfillmentResource
|
|
58
58
|
*/
|
|
59
|
-
trackingUrl
|
|
59
|
+
trackingUrl?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof OrderFulfillmentResource
|
|
64
64
|
*/
|
|
65
|
-
trackingCompany
|
|
65
|
+
trackingCompany: string;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -102,8 +102,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
102
102
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
|
-
if (!('
|
|
106
|
-
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
105
|
+
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
107
106
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
108
107
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
109
108
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -123,9 +122,9 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
123
122
|
'id': json['id'],
|
|
124
123
|
'orderId': json['orderId'],
|
|
125
124
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
126
|
-
'trackingNumber': json['trackingNumber'],
|
|
127
|
-
'trackingUrl': json['trackingUrl'],
|
|
128
|
-
'trackingCompany': json['trackingCompany']
|
|
125
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
126
|
+
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
127
|
+
'trackingCompany': json['trackingCompany'],
|
|
129
128
|
'docnum': json['docnum'],
|
|
130
129
|
'netsuiteId': json['netsuiteId'],
|
|
131
130
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -0,0 +1,125 @@
|
|
|
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 SearchAllProductClassesRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SearchAllProductClassesRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SearchAllProductClassesRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {SearchAllProductClassesRequestSortByEnum}
|
|
31
|
+
* @memberof SearchAllProductClassesRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: SearchAllProductClassesRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {SearchAllProductClassesRequestSortDirectionEnum}
|
|
37
|
+
* @memberof SearchAllProductClassesRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: SearchAllProductClassesRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SearchAllProductClassesRequest
|
|
44
|
+
*/
|
|
45
|
+
relatedId?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SearchAllProductClassesRequest
|
|
50
|
+
*/
|
|
51
|
+
relatedType?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof SearchAllProductClassesRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const SearchAllProductClassesRequestSortByEnum = {
|
|
65
|
+
Id: 'id',
|
|
66
|
+
Name: 'name'
|
|
67
|
+
} as const;
|
|
68
|
+
export type SearchAllProductClassesRequestSortByEnum = typeof SearchAllProductClassesRequestSortByEnum[keyof typeof SearchAllProductClassesRequestSortByEnum];
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export const SearchAllProductClassesRequestSortDirectionEnum = {
|
|
74
|
+
Asc: 'asc',
|
|
75
|
+
Desc: 'desc'
|
|
76
|
+
} as const;
|
|
77
|
+
export type SearchAllProductClassesRequestSortDirectionEnum = typeof SearchAllProductClassesRequestSortDirectionEnum[keyof typeof SearchAllProductClassesRequestSortDirectionEnum];
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the SearchAllProductClassesRequest interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfSearchAllProductClassesRequest(value: object): value is SearchAllProductClassesRequest {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function SearchAllProductClassesRequestFromJSON(json: any): SearchAllProductClassesRequest {
|
|
88
|
+
return SearchAllProductClassesRequestFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function SearchAllProductClassesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAllProductClassesRequest {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
98
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
99
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
100
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
101
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
102
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function SearchAllProductClassesRequestToJSON(json: any): SearchAllProductClassesRequest {
|
|
107
|
+
return SearchAllProductClassesRequestToJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function SearchAllProductClassesRequestToJSONTyped(value?: SearchAllProductClassesRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'search': value['search'],
|
|
118
|
+
'sortBy': value['sortBy'],
|
|
119
|
+
'sortDirection': value['sortDirection'],
|
|
120
|
+
'related_id': value['relatedId'],
|
|
121
|
+
'related_type': value['relatedType'],
|
|
122
|
+
'includes_relations': value['includesRelations'],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -112,7 +112,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
113
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
116
115
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
117
116
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
118
117
|
return true;
|
|
@@ -136,7 +135,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
136
135
|
'latitude': json['latitude'],
|
|
137
136
|
'tagLine': json['tagLine'],
|
|
138
137
|
'email': json['email'],
|
|
139
|
-
'website': json['website'],
|
|
138
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
140
139
|
'netsuiteId': json['netsuiteId'],
|
|
141
140
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
142
141
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -149,6 +149,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
152
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
154
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
154
155
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
@@ -174,7 +175,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
174
175
|
'phone': json['phone'],
|
|
175
176
|
'longitude': json['longitude'],
|
|
176
177
|
'latitude': json['latitude'],
|
|
177
|
-
'tagLine': json['tagLine']
|
|
178
|
+
'tagLine': json['tagLine'],
|
|
178
179
|
'email': json['email'],
|
|
179
180
|
'website': json['website'] == null ? undefined : json['website'],
|
|
180
181
|
'netsuiteId': json['netsuiteId'],
|
package/src/models/index.ts
CHANGED
|
@@ -494,6 +494,7 @@ export * from './SearchAllPageComponentsRequest';
|
|
|
494
494
|
export * from './SearchAllPagesRequest';
|
|
495
495
|
export * from './SearchAllProductCategoriesRequest';
|
|
496
496
|
export * from './SearchAllProductChildrenRequest';
|
|
497
|
+
export * from './SearchAllProductClassesRequest';
|
|
497
498
|
export * from './SearchAllProductRangesRequest';
|
|
498
499
|
export * from './SearchAllProductRegistrationsRequest';
|
|
499
500
|
export * from './SearchAllProductTypesRequest';
|
|
@@ -520,7 +521,6 @@ export * from './SearchPagesRequest';
|
|
|
520
521
|
export * from './SearchProductCategoriesRequest';
|
|
521
522
|
export * from './SearchProductChildAttributesRequest';
|
|
522
523
|
export * from './SearchProductChildrenRequest';
|
|
523
|
-
export * from './SearchProductClassesRequest';
|
|
524
524
|
export * from './SearchProductRangesRequest';
|
|
525
525
|
export * from './SearchProductRegistrationAssetsRequest';
|
|
526
526
|
export * from './SearchProductRegistrationsRequest';
|
|
@@ -1,90 +0,0 @@
|
|
|
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 SearchProductClassesRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface SearchProductClassesRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SearchProductClassesRequest
|
|
22
|
-
*/
|
|
23
|
-
search?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {SearchProductClassesRequestSortByEnum}
|
|
27
|
-
* @memberof SearchProductClassesRequest
|
|
28
|
-
*/
|
|
29
|
-
sortBy?: SearchProductClassesRequestSortByEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {SearchProductClassesRequestSortDirectionEnum}
|
|
33
|
-
* @memberof SearchProductClassesRequest
|
|
34
|
-
*/
|
|
35
|
-
sortDirection?: SearchProductClassesRequestSortDirectionEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof SearchProductClassesRequest
|
|
40
|
-
*/
|
|
41
|
-
perPage?: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof SearchProductClassesRequest
|
|
46
|
-
*/
|
|
47
|
-
page?: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof SearchProductClassesRequest
|
|
52
|
-
*/
|
|
53
|
-
relatedId?: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof SearchProductClassesRequest
|
|
58
|
-
*/
|
|
59
|
-
relatedType?: string;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {boolean}
|
|
63
|
-
* @memberof SearchProductClassesRequest
|
|
64
|
-
*/
|
|
65
|
-
includesRelations?: boolean;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* @export
|
|
69
|
-
*/
|
|
70
|
-
export declare const SearchProductClassesRequestSortByEnum: {
|
|
71
|
-
readonly Id: "id";
|
|
72
|
-
readonly Name: "name";
|
|
73
|
-
};
|
|
74
|
-
export type SearchProductClassesRequestSortByEnum = typeof SearchProductClassesRequestSortByEnum[keyof typeof SearchProductClassesRequestSortByEnum];
|
|
75
|
-
/**
|
|
76
|
-
* @export
|
|
77
|
-
*/
|
|
78
|
-
export declare const SearchProductClassesRequestSortDirectionEnum: {
|
|
79
|
-
readonly Asc: "asc";
|
|
80
|
-
readonly Desc: "desc";
|
|
81
|
-
};
|
|
82
|
-
export type SearchProductClassesRequestSortDirectionEnum = typeof SearchProductClassesRequestSortDirectionEnum[keyof typeof SearchProductClassesRequestSortDirectionEnum];
|
|
83
|
-
/**
|
|
84
|
-
* Check if a given object implements the SearchProductClassesRequest interface.
|
|
85
|
-
*/
|
|
86
|
-
export declare function instanceOfSearchProductClassesRequest(value: object): value is SearchProductClassesRequest;
|
|
87
|
-
export declare function SearchProductClassesRequestFromJSON(json: any): SearchProductClassesRequest;
|
|
88
|
-
export declare function SearchProductClassesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchProductClassesRequest;
|
|
89
|
-
export declare function SearchProductClassesRequestToJSON(json: any): SearchProductClassesRequest;
|
|
90
|
-
export declare function SearchProductClassesRequestToJSONTyped(value?: SearchProductClassesRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,141 +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 SearchProductClassesRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface SearchProductClassesRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof SearchProductClassesRequest
|
|
26
|
-
*/
|
|
27
|
-
search?: string | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {SearchProductClassesRequestSortByEnum}
|
|
31
|
-
* @memberof SearchProductClassesRequest
|
|
32
|
-
*/
|
|
33
|
-
sortBy?: SearchProductClassesRequestSortByEnum;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {SearchProductClassesRequestSortDirectionEnum}
|
|
37
|
-
* @memberof SearchProductClassesRequest
|
|
38
|
-
*/
|
|
39
|
-
sortDirection?: SearchProductClassesRequestSortDirectionEnum;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof SearchProductClassesRequest
|
|
44
|
-
*/
|
|
45
|
-
perPage?: number;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof SearchProductClassesRequest
|
|
50
|
-
*/
|
|
51
|
-
page?: number;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof SearchProductClassesRequest
|
|
56
|
-
*/
|
|
57
|
-
relatedId?: number;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof SearchProductClassesRequest
|
|
62
|
-
*/
|
|
63
|
-
relatedType?: string;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {boolean}
|
|
67
|
-
* @memberof SearchProductClassesRequest
|
|
68
|
-
*/
|
|
69
|
-
includesRelations?: boolean;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @export
|
|
75
|
-
*/
|
|
76
|
-
export const SearchProductClassesRequestSortByEnum = {
|
|
77
|
-
Id: 'id',
|
|
78
|
-
Name: 'name'
|
|
79
|
-
} as const;
|
|
80
|
-
export type SearchProductClassesRequestSortByEnum = typeof SearchProductClassesRequestSortByEnum[keyof typeof SearchProductClassesRequestSortByEnum];
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @export
|
|
84
|
-
*/
|
|
85
|
-
export const SearchProductClassesRequestSortDirectionEnum = {
|
|
86
|
-
Asc: 'asc',
|
|
87
|
-
Desc: 'desc'
|
|
88
|
-
} as const;
|
|
89
|
-
export type SearchProductClassesRequestSortDirectionEnum = typeof SearchProductClassesRequestSortDirectionEnum[keyof typeof SearchProductClassesRequestSortDirectionEnum];
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Check if a given object implements the SearchProductClassesRequest interface.
|
|
94
|
-
*/
|
|
95
|
-
export function instanceOfSearchProductClassesRequest(value: object): value is SearchProductClassesRequest {
|
|
96
|
-
return true;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function SearchProductClassesRequestFromJSON(json: any): SearchProductClassesRequest {
|
|
100
|
-
return SearchProductClassesRequestFromJSONTyped(json, false);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function SearchProductClassesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchProductClassesRequest {
|
|
104
|
-
if (json == null) {
|
|
105
|
-
return json;
|
|
106
|
-
}
|
|
107
|
-
return {
|
|
108
|
-
|
|
109
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
110
|
-
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
111
|
-
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
112
|
-
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
113
|
-
'page': json['page'] == null ? undefined : json['page'],
|
|
114
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
115
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
116
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export function SearchProductClassesRequestToJSON(json: any): SearchProductClassesRequest {
|
|
121
|
-
return SearchProductClassesRequestToJSONTyped(json, false);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export function SearchProductClassesRequestToJSONTyped(value?: SearchProductClassesRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
125
|
-
if (value == null) {
|
|
126
|
-
return value;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return {
|
|
130
|
-
|
|
131
|
-
'search': value['search'],
|
|
132
|
-
'sortBy': value['sortBy'],
|
|
133
|
-
'sortDirection': value['sortDirection'],
|
|
134
|
-
'per_page': value['perPage'],
|
|
135
|
-
'page': value['page'],
|
|
136
|
-
'related_id': value['relatedId'],
|
|
137
|
-
'related_type': value['relatedType'],
|
|
138
|
-
'includes_relations': value['includesRelations'],
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
|