@digital8/lighting-illusions-ts-sdk 0.0.2281 → 0.0.2282
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 +32 -10
- package/README.md +23 -7
- package/dist/apis/CouponsApi.d.ts +116 -0
- package/dist/apis/CouponsApi.js +440 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/CartListResource.d.ts +0 -6
- package/dist/models/CartListResource.js +0 -4
- package/dist/models/CategoryAutomationFieldType.d.ts +0 -2
- package/dist/models/CategoryAutomationFieldType.js +1 -3
- package/dist/models/CouponListResource.d.ts +99 -0
- package/dist/models/CouponListResource.js +90 -0
- package/dist/models/CouponListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponListResourceArrayResponse.js +50 -0
- package/dist/models/CouponLiteResource.d.ts +44 -0
- package/dist/models/CouponLiteResource.js +57 -0
- package/dist/models/CouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/CouponResource.d.ts +166 -0
- package/dist/models/CouponResource.js +135 -0
- package/dist/models/CouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponResourceArrayResponse.js +50 -0
- package/dist/models/CouponType.d.ts +26 -0
- package/dist/models/CouponType.js +52 -0
- package/dist/models/CreateCouponRequest.d.ts +134 -0
- package/dist/models/CreateCouponRequest.js +114 -0
- package/dist/models/CreateCouponRequestCouponablesInner.d.ts +48 -0
- package/dist/models/CreateCouponRequestCouponablesInner.js +61 -0
- package/dist/models/CreatePageComponentRequest.d.ts +4 -4
- package/dist/models/CreatePageComponentRequest.js +4 -4
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +0 -2
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +1 -3
- package/dist/models/CreateSupplierRequest.d.ts +0 -6
- package/dist/models/CreateSupplierRequest.js +0 -2
- package/dist/models/FrontendCartResource.d.ts +0 -18
- package/dist/models/FrontendCartResource.js +0 -12
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- package/dist/models/OrderStatusWithCountResource.d.ts +0 -12
- package/dist/models/OrderStatusWithCountResource.js +0 -8
- package/dist/models/PaginatedCouponListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponListResourceResponse.js +57 -0
- package/dist/models/PaginatedCouponLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedCouponResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponResourceResponse.js +57 -0
- package/dist/models/ProductClassResource.d.ts +2 -2
- package/dist/models/SearchAllCouponsRequest.d.ts +101 -0
- package/dist/models/SearchAllCouponsRequest.js +85 -0
- package/dist/models/SearchAllOrdersRequest.d.ts +0 -6
- package/dist/models/SearchAllOrdersRequest.js +0 -2
- package/dist/models/SearchCartsRequest.d.ts +6 -0
- package/dist/models/SearchCartsRequest.js +2 -0
- package/dist/models/SearchCouponsRequest.d.ts +137 -0
- package/dist/models/SearchCouponsRequest.js +97 -0
- package/dist/models/SearchOrdersRequest.d.ts +6 -6
- package/dist/models/SearchOrdersRequest.js +2 -2
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/SupplierFrontendResource.d.ts +0 -6
- package/dist/models/SupplierFrontendResource.js +0 -4
- package/dist/models/SupplierResource.d.ts +0 -6
- package/dist/models/SupplierResource.js +0 -4
- package/dist/models/UpdateCouponRequest.d.ts +128 -0
- package/dist/models/UpdateCouponRequest.js +110 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
- package/dist/models/UpdatePageComponentRequest.js +4 -4
- package/dist/models/UpdateSupplierRequest.d.ts +0 -6
- package/dist/models/UpdateSupplierRequest.js +0 -2
- package/dist/models/index.d.ts +15 -4
- package/dist/models/index.js +15 -4
- package/docs/CartListResource.md +0 -2
- package/docs/CouponListResource.md +56 -0
- package/docs/{ProductClassLiteResourceArrayResponse.md → CouponListResourceArrayResponse.md} +5 -5
- package/docs/{ProductClassLiteResource.md → CouponLiteResource.md} +6 -6
- package/docs/CouponLiteResourceArrayResponse.md +34 -0
- package/docs/CouponResource.md +78 -0
- package/docs/CouponResourceArrayResponse.md +34 -0
- package/docs/CouponType.md +32 -0
- package/docs/CouponsApi.md +407 -0
- package/docs/CreateCouponRequest.md +62 -0
- package/docs/CreateCouponRequestCouponablesInner.md +36 -0
- package/docs/CreatePageComponentRequest.md +2 -2
- package/docs/CreateSupplierRequest.md +0 -2
- package/docs/FrontendCartResource.md +0 -6
- package/docs/OrderStatusWithCountResource.md +0 -4
- package/docs/{PaginatedProductClassLiteResourceResponse.md → PaginatedCouponListResourceResponse.md} +5 -5
- package/docs/PaginatedCouponLiteResourceResponse.md +36 -0
- package/docs/PaginatedCouponResourceResponse.md +36 -0
- package/docs/ProductClassResource.md +1 -1
- package/docs/{SearchAllProductClassesRequest.md → SearchAllCouponsRequest.md} +10 -4
- package/docs/SearchAllOrdersRequest.md +0 -2
- package/docs/SearchCartsRequest.md +2 -0
- package/docs/SearchCouponsRequest.md +62 -0
- package/docs/SearchOrdersRequest.md +2 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/SupplierFrontendResource.md +0 -2
- package/docs/SupplierResource.md +0 -2
- package/docs/UpdateCouponRequest.md +60 -0
- package/docs/UpdatePageComponentRequest.md +2 -2
- package/docs/UpdateSupplierRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +345 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AddressResource.ts +3 -2
- package/src/models/CartListResource.ts +0 -9
- package/src/models/CategoryAutomationFieldType.ts +1 -3
- package/src/models/CouponListResource.ts +170 -0
- package/src/models/CouponListResourceArrayResponse.ts +73 -0
- package/src/models/CouponLiteResource.ts +83 -0
- package/src/models/CouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CouponResource.ts +276 -0
- package/src/models/CouponResourceArrayResponse.ts +73 -0
- package/src/models/CouponType.ts +54 -0
- package/src/models/CreateCouponRequest.ts +216 -0
- package/src/models/CreateCouponRequestCouponablesInner.ts +86 -0
- package/src/models/CreatePageComponentRequest.ts +8 -8
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +1 -3
- package/src/models/CreateSupplierRequest.ts +0 -8
- package/src/models/FrontendCartResource.ts +0 -27
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/OrderStatusWithCountResource.ts +0 -18
- package/src/models/PaginatedCouponListResourceResponse.ts +90 -0
- package/src/models/PaginatedCouponLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedCouponResourceResponse.ts +90 -0
- package/src/models/ProductClassResource.ts +2 -2
- package/src/models/SearchAllCouponsRequest.ts +154 -0
- package/src/models/SearchAllOrdersRequest.ts +0 -8
- package/src/models/SearchCartsRequest.ts +8 -0
- package/src/models/SearchCouponsRequest.ts +202 -0
- package/src/models/SearchOrdersRequest.ts +8 -8
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/SupplierFrontendResource.ts +0 -9
- package/src/models/SupplierResource.ts +0 -9
- package/src/models/UpdateCouponRequest.ts +207 -0
- package/src/models/UpdatePageComponentRequest.ts +8 -8
- package/src/models/UpdateSupplierRequest.ts +0 -8
- package/src/models/index.ts +15 -4
- package/dist/apis/ProductClassApi.d.ts +0 -34
- package/dist/apis/ProductClassApi.js +0 -139
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +0 -57
- package/dist/models/ProductClassLiteResource.d.ts +0 -44
- package/dist/models/ProductClassLiteResource.js +0 -57
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductClassLiteResourceArrayResponse.js +0 -50
- package/dist/models/SearchAllProductClassesRequest.d.ts +0 -78
- package/dist/models/SearchAllProductClassesRequest.js +0 -74
- package/docs/ProductClassApi.md +0 -74
- package/src/apis/ProductClassApi.ts +0 -76
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +0 -90
- package/src/models/ProductClassLiteResource.ts +0 -83
- package/src/models/ProductClassLiteResourceArrayResponse.ts +0 -73
- package/src/models/SearchAllProductClassesRequest.ts +0 -125
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -64,12 +64,6 @@ export interface SupplierFrontendResource {
|
|
|
64
64
|
* @memberof SupplierFrontendResource
|
|
65
65
|
*/
|
|
66
66
|
supplierEta: number;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {boolean}
|
|
70
|
-
* @memberof SupplierFrontendResource
|
|
71
|
-
*/
|
|
72
|
-
productEnquiriesOnly: boolean;
|
|
73
67
|
/**
|
|
74
68
|
*
|
|
75
69
|
* @type {object}
|
|
@@ -93,7 +87,6 @@ export function instanceOfSupplierFrontendResource(value: object): value is Supp
|
|
|
93
87
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
94
88
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
95
89
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined) return false;
|
|
96
|
-
if (!('productEnquiriesOnly' in value) || value['productEnquiriesOnly'] === undefined) return false;
|
|
97
90
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
98
91
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
99
92
|
return true;
|
|
@@ -114,7 +107,6 @@ export function SupplierFrontendResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
114
107
|
'slug': json['slug'],
|
|
115
108
|
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
116
109
|
'supplierEta': json['supplierEta'],
|
|
117
|
-
'productEnquiriesOnly': json['productEnquiriesOnly'],
|
|
118
110
|
'seo': json['seo'],
|
|
119
111
|
'description': DescriptionResourceFromJSON(json['description']),
|
|
120
112
|
};
|
|
@@ -136,7 +128,6 @@ export function SupplierFrontendResourceToJSONTyped(value?: SupplierFrontendReso
|
|
|
136
128
|
'slug': value['slug'],
|
|
137
129
|
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
138
130
|
'supplierEta': value['supplierEta'],
|
|
139
|
-
'productEnquiriesOnly': value['productEnquiriesOnly'],
|
|
140
131
|
'seo': value['seo'],
|
|
141
132
|
'description': DescriptionResourceToJSON(value['description']),
|
|
142
133
|
};
|
|
@@ -71,12 +71,6 @@ export interface SupplierResource {
|
|
|
71
71
|
* @memberof SupplierResource
|
|
72
72
|
*/
|
|
73
73
|
supplierEta: number;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {boolean}
|
|
77
|
-
* @memberof SupplierResource
|
|
78
|
-
*/
|
|
79
|
-
productEnquiriesOnly: boolean;
|
|
80
74
|
/**
|
|
81
75
|
*
|
|
82
76
|
* @type {Array<SEOResource>}
|
|
@@ -100,7 +94,6 @@ export function instanceOfSupplierResource(value: object): value is SupplierReso
|
|
|
100
94
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
101
95
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
102
96
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined) return false;
|
|
103
|
-
if (!('productEnquiriesOnly' in value) || value['productEnquiriesOnly'] === undefined) return false;
|
|
104
97
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
105
98
|
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
106
99
|
return true;
|
|
@@ -121,7 +114,6 @@ export function SupplierResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
121
114
|
'slug': json['slug'],
|
|
122
115
|
'thumbnail': AssetResourceFromJSON(json['thumbnail']),
|
|
123
116
|
'supplierEta': json['supplierEta'],
|
|
124
|
-
'productEnquiriesOnly': json['productEnquiriesOnly'],
|
|
125
117
|
'seo': (json['seo'] == null ? null : (json['seo'] as Array<any>).map(SEOResourceFromJSON)),
|
|
126
118
|
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
127
119
|
};
|
|
@@ -143,7 +135,6 @@ export function SupplierResourceToJSONTyped(value?: SupplierResource | null, ign
|
|
|
143
135
|
'slug': value['slug'],
|
|
144
136
|
'thumbnail': AssetResourceToJSON(value['thumbnail']),
|
|
145
137
|
'supplierEta': value['supplierEta'],
|
|
146
|
-
'productEnquiriesOnly': value['productEnquiriesOnly'],
|
|
147
138
|
'seo': (value['seo'] == null ? null : (value['seo'] as Array<any>).map(SEOResourceToJSON)),
|
|
148
139
|
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
149
140
|
};
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CreateCouponRequestCouponablesInner } from './CreateCouponRequestCouponablesInner';
|
|
17
|
+
import {
|
|
18
|
+
CreateCouponRequestCouponablesInnerFromJSON,
|
|
19
|
+
CreateCouponRequestCouponablesInnerFromJSONTyped,
|
|
20
|
+
CreateCouponRequestCouponablesInnerToJSON,
|
|
21
|
+
CreateCouponRequestCouponablesInnerToJSONTyped,
|
|
22
|
+
} from './CreateCouponRequestCouponablesInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateCouponRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateCouponRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateCouponRequest
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateCouponRequest
|
|
40
|
+
*/
|
|
41
|
+
code: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {UpdateCouponRequestTypeEnum}
|
|
45
|
+
* @memberof UpdateCouponRequest
|
|
46
|
+
*/
|
|
47
|
+
type: UpdateCouponRequestTypeEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {UpdateCouponRequestDiscountTypeEnum}
|
|
51
|
+
* @memberof UpdateCouponRequest
|
|
52
|
+
*/
|
|
53
|
+
discountType: UpdateCouponRequestDiscountTypeEnum;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof UpdateCouponRequest
|
|
58
|
+
*/
|
|
59
|
+
discountAmount: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof UpdateCouponRequest
|
|
64
|
+
*/
|
|
65
|
+
minAmount: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof UpdateCouponRequest
|
|
70
|
+
*/
|
|
71
|
+
minProducts: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof UpdateCouponRequest
|
|
76
|
+
*/
|
|
77
|
+
totalUseLimit: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof UpdateCouponRequest
|
|
82
|
+
*/
|
|
83
|
+
customerUseLimit: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Date}
|
|
87
|
+
* @memberof UpdateCouponRequest
|
|
88
|
+
*/
|
|
89
|
+
startDate?: Date | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof UpdateCouponRequest
|
|
94
|
+
*/
|
|
95
|
+
endDate?: Date | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof UpdateCouponRequest
|
|
100
|
+
*/
|
|
101
|
+
isForAllProducts?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof UpdateCouponRequest
|
|
106
|
+
*/
|
|
107
|
+
isForAllCustomers?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {Array<CreateCouponRequestCouponablesInner>}
|
|
111
|
+
* @memberof UpdateCouponRequest
|
|
112
|
+
*/
|
|
113
|
+
couponables?: Array<CreateCouponRequestCouponablesInner>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @export
|
|
119
|
+
*/
|
|
120
|
+
export const UpdateCouponRequestTypeEnum = {
|
|
121
|
+
Subtotal: 'subtotal',
|
|
122
|
+
Product: 'product',
|
|
123
|
+
Shipping: 'shipping'
|
|
124
|
+
} as const;
|
|
125
|
+
export type UpdateCouponRequestTypeEnum = typeof UpdateCouponRequestTypeEnum[keyof typeof UpdateCouponRequestTypeEnum];
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @export
|
|
129
|
+
*/
|
|
130
|
+
export const UpdateCouponRequestDiscountTypeEnum = {
|
|
131
|
+
Dollar: '$',
|
|
132
|
+
Percent: '%'
|
|
133
|
+
} as const;
|
|
134
|
+
export type UpdateCouponRequestDiscountTypeEnum = typeof UpdateCouponRequestDiscountTypeEnum[keyof typeof UpdateCouponRequestDiscountTypeEnum];
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Check if a given object implements the UpdateCouponRequest interface.
|
|
139
|
+
*/
|
|
140
|
+
export function instanceOfUpdateCouponRequest(value: object): value is UpdateCouponRequest {
|
|
141
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
142
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
143
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
144
|
+
if (!('discountType' in value) || value['discountType'] === undefined) return false;
|
|
145
|
+
if (!('discountAmount' in value) || value['discountAmount'] === undefined) return false;
|
|
146
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined) return false;
|
|
147
|
+
if (!('minProducts' in value) || value['minProducts'] === undefined) return false;
|
|
148
|
+
if (!('totalUseLimit' in value) || value['totalUseLimit'] === undefined) return false;
|
|
149
|
+
if (!('customerUseLimit' in value) || value['customerUseLimit'] === undefined) return false;
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function UpdateCouponRequestFromJSON(json: any): UpdateCouponRequest {
|
|
154
|
+
return UpdateCouponRequestFromJSONTyped(json, false);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function UpdateCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCouponRequest {
|
|
158
|
+
if (json == null) {
|
|
159
|
+
return json;
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
|
|
163
|
+
'name': json['name'],
|
|
164
|
+
'code': json['code'],
|
|
165
|
+
'type': json['type'],
|
|
166
|
+
'discountType': json['discount_type'],
|
|
167
|
+
'discountAmount': json['discount_amount'],
|
|
168
|
+
'minAmount': json['min_amount'],
|
|
169
|
+
'minProducts': json['min_products'],
|
|
170
|
+
'totalUseLimit': json['total_use_limit'],
|
|
171
|
+
'customerUseLimit': json['customer_use_limit'],
|
|
172
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
173
|
+
'endDate': json['end_date'] == null ? undefined : (new Date(json['end_date'])),
|
|
174
|
+
'isForAllProducts': json['is_for_all_products'] == null ? undefined : json['is_for_all_products'],
|
|
175
|
+
'isForAllCustomers': json['is_for_all_customers'] == null ? undefined : json['is_for_all_customers'],
|
|
176
|
+
'couponables': json['couponables'] == null ? undefined : ((json['couponables'] as Array<any>).map(CreateCouponRequestCouponablesInnerFromJSON)),
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function UpdateCouponRequestToJSON(json: any): UpdateCouponRequest {
|
|
181
|
+
return UpdateCouponRequestToJSONTyped(json, false);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function UpdateCouponRequestToJSONTyped(value?: UpdateCouponRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
185
|
+
if (value == null) {
|
|
186
|
+
return value;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return {
|
|
190
|
+
|
|
191
|
+
'name': value['name'],
|
|
192
|
+
'code': value['code'],
|
|
193
|
+
'type': value['type'],
|
|
194
|
+
'discount_type': value['discountType'],
|
|
195
|
+
'discount_amount': value['discountAmount'],
|
|
196
|
+
'min_amount': value['minAmount'],
|
|
197
|
+
'min_products': value['minProducts'],
|
|
198
|
+
'total_use_limit': value['totalUseLimit'],
|
|
199
|
+
'customer_use_limit': value['customerUseLimit'],
|
|
200
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
201
|
+
'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
202
|
+
'is_for_all_products': value['isForAllProducts'],
|
|
203
|
+
'is_for_all_customers': value['isForAllCustomers'],
|
|
204
|
+
'couponables': value['couponables'] == null ? undefined : ((value['couponables'] as Array<any>).map(CreateCouponRequestCouponablesInnerToJSON)),
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
|
|
@@ -47,16 +47,16 @@ export interface UpdatePageComponentRequest {
|
|
|
47
47
|
order?: number;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {Date}
|
|
51
51
|
* @memberof UpdatePageComponentRequest
|
|
52
52
|
*/
|
|
53
|
-
startDate?:
|
|
53
|
+
startDate?: Date | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {Date}
|
|
57
57
|
* @memberof UpdatePageComponentRequest
|
|
58
58
|
*/
|
|
59
|
-
endDate?:
|
|
59
|
+
endDate?: Date | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {object}
|
|
@@ -92,8 +92,8 @@ export function UpdatePageComponentRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
92
92
|
'type': json['type'],
|
|
93
93
|
'disabled': json['disabled'] == null ? undefined : json['disabled'],
|
|
94
94
|
'order': json['order'] == null ? undefined : json['order'],
|
|
95
|
-
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
96
|
-
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
95
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
96
|
+
'endDate': json['end_date'] == null ? undefined : (new Date(json['end_date'])),
|
|
97
97
|
'componentData': json['component_data'] == null ? undefined : json['component_data'],
|
|
98
98
|
'relations': json['relations'] == null ? undefined : ((json['relations'] as Array<any>).map(CreatePageComponentRequestRelationsInnerFromJSON)),
|
|
99
99
|
};
|
|
@@ -113,8 +113,8 @@ export function UpdatePageComponentRequestToJSONTyped(value?: UpdatePageComponen
|
|
|
113
113
|
'type': value['type'],
|
|
114
114
|
'disabled': value['disabled'],
|
|
115
115
|
'order': value['order'],
|
|
116
|
-
'start_date': value['startDate'],
|
|
117
|
-
'end_date': value['endDate'],
|
|
116
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
117
|
+
'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
118
118
|
'component_data': value['componentData'],
|
|
119
119
|
'relations': value['relations'] == null ? undefined : ((value['relations'] as Array<any>).map(CreatePageComponentRequestRelationsInnerToJSON)),
|
|
120
120
|
};
|
|
@@ -52,12 +52,6 @@ export interface UpdateSupplierRequest {
|
|
|
52
52
|
* @memberof UpdateSupplierRequest
|
|
53
53
|
*/
|
|
54
54
|
supplierEta: number;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {boolean}
|
|
58
|
-
* @memberof UpdateSupplierRequest
|
|
59
|
-
*/
|
|
60
|
-
productEnquiriesOnly?: boolean;
|
|
61
55
|
/**
|
|
62
56
|
*
|
|
63
57
|
* @type {Array<CreateBlogCategoryRequestSeoInner>}
|
|
@@ -127,7 +121,6 @@ export function UpdateSupplierRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
127
121
|
'name': json['name'],
|
|
128
122
|
'slug': json['slug'],
|
|
129
123
|
'supplierEta': json['supplier_eta'],
|
|
130
|
-
'productEnquiriesOnly': json['product_enquiries_only'] == null ? undefined : json['product_enquiries_only'],
|
|
131
124
|
'seo': ((json['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerFromJSON)),
|
|
132
125
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
133
126
|
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
@@ -152,7 +145,6 @@ export function UpdateSupplierRequestToJSONTyped(value?: UpdateSupplierRequest |
|
|
|
152
145
|
'name': value['name'],
|
|
153
146
|
'slug': value['slug'],
|
|
154
147
|
'supplier_eta': value['supplierEta'],
|
|
155
|
-
'product_enquiries_only': value['productEnquiriesOnly'],
|
|
156
148
|
'seo': ((value['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerToJSON)),
|
|
157
149
|
'alt_text': value['altText'],
|
|
158
150
|
'mime_type': value['mimeType'],
|
package/src/models/index.ts
CHANGED
|
@@ -81,6 +81,13 @@ export * from './CategoryFrontendResourceArrayResponse';
|
|
|
81
81
|
export * from './CategoryWithChildrenFrontendResource';
|
|
82
82
|
export * from './CategoryWithChildrenFrontendResourceArrayResponse';
|
|
83
83
|
export * from './CouponDiscountType';
|
|
84
|
+
export * from './CouponListResource';
|
|
85
|
+
export * from './CouponListResourceArrayResponse';
|
|
86
|
+
export * from './CouponLiteResource';
|
|
87
|
+
export * from './CouponLiteResourceArrayResponse';
|
|
88
|
+
export * from './CouponResource';
|
|
89
|
+
export * from './CouponResourceArrayResponse';
|
|
90
|
+
export * from './CouponType';
|
|
84
91
|
export * from './CreateAssetFileRequest';
|
|
85
92
|
export * from './CreateAssetForAssetableRequest';
|
|
86
93
|
export * from './CreateAttributeRequest';
|
|
@@ -91,6 +98,8 @@ export * from './CreateBlogCategoryRequestSeoInner';
|
|
|
91
98
|
export * from './CreateCartRequest';
|
|
92
99
|
export * from './CreateCartRequestItemsInner';
|
|
93
100
|
export * from './CreateCartRequestShippingAddress';
|
|
101
|
+
export * from './CreateCouponRequest';
|
|
102
|
+
export * from './CreateCouponRequestCouponablesInner';
|
|
94
103
|
export * from './CreateCustomerRequest';
|
|
95
104
|
export * from './CreateDefinitionRequest';
|
|
96
105
|
export * from './CreateDocumentFileRequest';
|
|
@@ -282,6 +291,9 @@ export * from './PaginatedBlogCategoryResourceResponse';
|
|
|
282
291
|
export * from './PaginatedBlogFrontendResourceResponse';
|
|
283
292
|
export * from './PaginatedCartListResourceResponse';
|
|
284
293
|
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
294
|
+
export * from './PaginatedCouponListResourceResponse';
|
|
295
|
+
export * from './PaginatedCouponLiteResourceResponse';
|
|
296
|
+
export * from './PaginatedCouponResourceResponse';
|
|
285
297
|
export * from './PaginatedCustomerListResourceResponse';
|
|
286
298
|
export * from './PaginatedCustomerReviewableItemFrontendResourceResponse';
|
|
287
299
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
@@ -312,7 +324,6 @@ export * from './PaginatedProductChildLiteResourceResponse';
|
|
|
312
324
|
export * from './PaginatedProductChildOverlayRelationResourceResponse';
|
|
313
325
|
export * from './PaginatedProductChildRelationResourceResponse';
|
|
314
326
|
export * from './PaginatedProductChildResourceResponse';
|
|
315
|
-
export * from './PaginatedProductClassLiteResourceResponse';
|
|
316
327
|
export * from './PaginatedProductListResourceResponse';
|
|
317
328
|
export * from './PaginatedProductLiteResourceResponse';
|
|
318
329
|
export * from './PaginatedProductRangeFrontendListResourceResponse';
|
|
@@ -389,8 +400,6 @@ export * from './ProductChildSiteDetailLiteResource';
|
|
|
389
400
|
export * from './ProductChildSiteDetailLiteResourceArrayResponse';
|
|
390
401
|
export * from './ProductChildSiteDetailResource';
|
|
391
402
|
export * from './ProductChildSiteDetailResourceArrayResponse';
|
|
392
|
-
export * from './ProductClassLiteResource';
|
|
393
|
-
export * from './ProductClassLiteResourceArrayResponse';
|
|
394
403
|
export * from './ProductClassResource';
|
|
395
404
|
export * from './ProductClassResourceArrayResponse';
|
|
396
405
|
export * from './ProductCompareResource';
|
|
@@ -483,6 +492,7 @@ export * from './SearchAdminNotesRequest';
|
|
|
483
492
|
export * from './SearchAllAttributeValuesRequest';
|
|
484
493
|
export * from './SearchAllAttributesRequest';
|
|
485
494
|
export * from './SearchAllBlogCategoriesRequest';
|
|
495
|
+
export * from './SearchAllCouponsRequest';
|
|
486
496
|
export * from './SearchAllDefinitionsRequest';
|
|
487
497
|
export * from './SearchAllDocumentsRequest';
|
|
488
498
|
export * from './SearchAllFrontendComponentsRequest';
|
|
@@ -494,7 +504,6 @@ export * from './SearchAllPageComponentsRequest';
|
|
|
494
504
|
export * from './SearchAllPagesRequest';
|
|
495
505
|
export * from './SearchAllProductCategoriesRequest';
|
|
496
506
|
export * from './SearchAllProductChildrenRequest';
|
|
497
|
-
export * from './SearchAllProductClassesRequest';
|
|
498
507
|
export * from './SearchAllProductRangesRequest';
|
|
499
508
|
export * from './SearchAllProductRegistrationsRequest';
|
|
500
509
|
export * from './SearchAllProductTypesRequest';
|
|
@@ -505,6 +514,7 @@ export * from './SearchAttributeValuesRequest';
|
|
|
505
514
|
export * from './SearchAttributesRequest';
|
|
506
515
|
export * from './SearchBlogCategoriesRequest';
|
|
507
516
|
export * from './SearchCartsRequest';
|
|
517
|
+
export * from './SearchCouponsRequest';
|
|
508
518
|
export * from './SearchCustomersRequest';
|
|
509
519
|
export * from './SearchDefinitionsRequest';
|
|
510
520
|
export * from './SearchDocumentsRequest';
|
|
@@ -602,6 +612,7 @@ export * from './UpdateAttributeRequest';
|
|
|
602
612
|
export * from './UpdateAttributeValueRequest';
|
|
603
613
|
export * from './UpdateBlogCategoryRequest';
|
|
604
614
|
export * from './UpdateCartRequest';
|
|
615
|
+
export * from './UpdateCouponRequest';
|
|
605
616
|
export * from './UpdateDefinitionRequest';
|
|
606
617
|
export * from './UpdateDocumentRequest';
|
|
607
618
|
export * from './UpdateLabelRequest';
|
|
@@ -1,34 +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
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import { type ProductClassLiteResourceArrayResponse } from '../models/ProductClassLiteResourceArrayResponse';
|
|
14
|
-
import { type SearchAllProductClassesRequest } from '../models/SearchAllProductClassesRequest';
|
|
15
|
-
export interface GetAllProductClassRequest {
|
|
16
|
-
searchAllProductClassesRequest?: SearchAllProductClassesRequest;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
export declare class ProductClassApi extends runtime.BaseAPI {
|
|
22
|
-
/**
|
|
23
|
-
* Creates request options for getAllProductClass without sending the request
|
|
24
|
-
*/
|
|
25
|
-
getAllProductClassRequestOpts(requestParameters: GetAllProductClassRequest): Promise<runtime.RequestOpts>;
|
|
26
|
-
/**
|
|
27
|
-
* Auto-generated: getAllProductClass
|
|
28
|
-
*/
|
|
29
|
-
getAllProductClassRaw(requestParameters: GetAllProductClassRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductClassLiteResourceArrayResponse>>;
|
|
30
|
-
/**
|
|
31
|
-
* Auto-generated: getAllProductClass
|
|
32
|
-
*/
|
|
33
|
-
getAllProductClass(requestParameters?: GetAllProductClassRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductClassLiteResourceArrayResponse>;
|
|
34
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
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
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.ProductClassApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var ProductClassLiteResourceArrayResponse_1 = require("../models/ProductClassLiteResourceArrayResponse");
|
|
70
|
-
var SearchAllProductClassesRequest_1 = require("../models/SearchAllProductClassesRequest");
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
var ProductClassApi = /** @class */ (function (_super) {
|
|
75
|
-
__extends(ProductClassApi, _super);
|
|
76
|
-
function ProductClassApi() {
|
|
77
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Creates request options for getAllProductClass without sending the request
|
|
81
|
-
*/
|
|
82
|
-
ProductClassApi.prototype.getAllProductClassRequestOpts = function (requestParameters) {
|
|
83
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, urlPath;
|
|
85
|
-
return __generator(this, function (_a) {
|
|
86
|
-
queryParameters = {};
|
|
87
|
-
headerParameters = {};
|
|
88
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
89
|
-
urlPath = "/admin-api/product-class/all";
|
|
90
|
-
return [2 /*return*/, {
|
|
91
|
-
path: urlPath,
|
|
92
|
-
method: 'POST',
|
|
93
|
-
headers: headerParameters,
|
|
94
|
-
query: queryParameters,
|
|
95
|
-
body: (0, SearchAllProductClassesRequest_1.SearchAllProductClassesRequestToJSON)(requestParameters['searchAllProductClassesRequest']),
|
|
96
|
-
}];
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Auto-generated: getAllProductClass
|
|
102
|
-
*/
|
|
103
|
-
ProductClassApi.prototype.getAllProductClassRaw = function (requestParameters, initOverrides) {
|
|
104
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
105
|
-
var requestOptions, response;
|
|
106
|
-
return __generator(this, function (_a) {
|
|
107
|
-
switch (_a.label) {
|
|
108
|
-
case 0: return [4 /*yield*/, this.getAllProductClassRequestOpts(requestParameters)];
|
|
109
|
-
case 1:
|
|
110
|
-
requestOptions = _a.sent();
|
|
111
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
112
|
-
case 2:
|
|
113
|
-
response = _a.sent();
|
|
114
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ProductClassLiteResourceArrayResponse_1.ProductClassLiteResourceArrayResponseFromJSON)(jsonValue); })];
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Auto-generated: getAllProductClass
|
|
121
|
-
*/
|
|
122
|
-
ProductClassApi.prototype.getAllProductClass = function () {
|
|
123
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
124
|
-
var response;
|
|
125
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
126
|
-
return __generator(this, function (_a) {
|
|
127
|
-
switch (_a.label) {
|
|
128
|
-
case 0: return [4 /*yield*/, this.getAllProductClassRaw(requestParameters, initOverrides)];
|
|
129
|
-
case 1:
|
|
130
|
-
response = _a.sent();
|
|
131
|
-
return [4 /*yield*/, response.value()];
|
|
132
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
return ProductClassApi;
|
|
138
|
-
}(runtime.BaseAPI));
|
|
139
|
-
exports.ProductClassApi = ProductClassApi;
|