@digital8/lighting-illusions-ts-sdk 0.0.2348 → 0.0.2350
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 +30 -0
- package/README.md +22 -2
- package/dist/apis/CouponsApi.d.ts +116 -0
- package/dist/apis/CouponsApi.js +440 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.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 +163 -0
- package/dist/models/CouponResource.js +134 -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/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +1 -3
- package/dist/models/PaginatedCouponListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponListResourceResponse.js +57 -0
- package/dist/models/PaginatedCouponResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponResourceResponse.js +57 -0
- package/dist/models/SearchAllCouponsRequest.d.ts +101 -0
- package/dist/models/SearchAllCouponsRequest.js +85 -0
- 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 -0
- package/dist/models/SearchOrdersRequest.js +2 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +2 -6
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/UpdateCouponRequest.d.ts +128 -0
- package/dist/models/UpdateCouponRequest.js +110 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/CouponListResource.md +56 -0
- package/docs/CouponListResourceArrayResponse.md +34 -0
- package/docs/CouponLiteResource.md +38 -0
- package/docs/CouponLiteResourceArrayResponse.md +34 -0
- package/docs/CouponResource.md +76 -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/PaginatedCouponListResourceResponse.md +36 -0
- package/docs/PaginatedCouponResourceResponse.md +36 -0
- package/docs/SearchAllCouponsRequest.md +50 -0
- package/docs/SearchCartsRequest.md +2 -0
- package/docs/SearchCouponsRequest.md +62 -0
- package/docs/SearchOrdersRequest.md +2 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/UpdateCouponRequest.md +60 -0
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +345 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +2 -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 +288 -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/OrderFulfillmentResource.ts +2 -3
- package/src/models/PaginatedCouponListResourceResponse.ts +90 -0
- package/src/models/PaginatedCouponResourceResponse.ts +90 -0
- package/src/models/SearchAllCouponsRequest.ts +154 -0
- package/src/models/SearchCartsRequest.ts +8 -0
- package/src/models/SearchCouponsRequest.ts +202 -0
- package/src/models/SearchOrdersRequest.ts +8 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreResource.ts +4 -6
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/UpdateCouponRequest.ts +207 -0
- package/src/models/index.ts +14 -0
|
@@ -36,12 +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;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
-
return false;
|
|
45
41
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
46
42
|
return false;
|
|
47
43
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -68,9 +64,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
64
|
'phone': json['phone'],
|
|
69
65
|
'longitude': json['longitude'],
|
|
70
66
|
'latitude': json['latitude'],
|
|
71
|
-
'tagLine': json['tagLine'],
|
|
67
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
72
68
|
'email': json['email'],
|
|
73
|
-
'website': json['website'],
|
|
69
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
74
70
|
'netsuiteId': json['netsuiteId'],
|
|
75
71
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
76
72
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CreateCouponRequestCouponablesInner } from './CreateCouponRequestCouponablesInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateCouponRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateCouponRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateCouponRequest
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateCouponRequest
|
|
29
|
+
*/
|
|
30
|
+
code: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {UpdateCouponRequestTypeEnum}
|
|
34
|
+
* @memberof UpdateCouponRequest
|
|
35
|
+
*/
|
|
36
|
+
type: UpdateCouponRequestTypeEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {UpdateCouponRequestDiscountTypeEnum}
|
|
40
|
+
* @memberof UpdateCouponRequest
|
|
41
|
+
*/
|
|
42
|
+
discountType: UpdateCouponRequestDiscountTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof UpdateCouponRequest
|
|
47
|
+
*/
|
|
48
|
+
discountAmount: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof UpdateCouponRequest
|
|
53
|
+
*/
|
|
54
|
+
minAmount: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof UpdateCouponRequest
|
|
59
|
+
*/
|
|
60
|
+
minProducts: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof UpdateCouponRequest
|
|
65
|
+
*/
|
|
66
|
+
totalUseLimit: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof UpdateCouponRequest
|
|
71
|
+
*/
|
|
72
|
+
customerUseLimit: number;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof UpdateCouponRequest
|
|
77
|
+
*/
|
|
78
|
+
startDate?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof UpdateCouponRequest
|
|
83
|
+
*/
|
|
84
|
+
endDate?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof UpdateCouponRequest
|
|
89
|
+
*/
|
|
90
|
+
isForAllProducts?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof UpdateCouponRequest
|
|
95
|
+
*/
|
|
96
|
+
isForAllCustomers?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Array<CreateCouponRequestCouponablesInner>}
|
|
100
|
+
* @memberof UpdateCouponRequest
|
|
101
|
+
*/
|
|
102
|
+
couponables?: Array<CreateCouponRequestCouponablesInner>;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export declare const UpdateCouponRequestTypeEnum: {
|
|
108
|
+
readonly Subtotal: "subtotal";
|
|
109
|
+
readonly Product: "product";
|
|
110
|
+
readonly Shipping: "shipping";
|
|
111
|
+
};
|
|
112
|
+
export type UpdateCouponRequestTypeEnum = typeof UpdateCouponRequestTypeEnum[keyof typeof UpdateCouponRequestTypeEnum];
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const UpdateCouponRequestDiscountTypeEnum: {
|
|
117
|
+
readonly Dollar: "$";
|
|
118
|
+
readonly Percent: "%";
|
|
119
|
+
};
|
|
120
|
+
export type UpdateCouponRequestDiscountTypeEnum = typeof UpdateCouponRequestDiscountTypeEnum[keyof typeof UpdateCouponRequestDiscountTypeEnum];
|
|
121
|
+
/**
|
|
122
|
+
* Check if a given object implements the UpdateCouponRequest interface.
|
|
123
|
+
*/
|
|
124
|
+
export declare function instanceOfUpdateCouponRequest(value: object): value is UpdateCouponRequest;
|
|
125
|
+
export declare function UpdateCouponRequestFromJSON(json: any): UpdateCouponRequest;
|
|
126
|
+
export declare function UpdateCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCouponRequest;
|
|
127
|
+
export declare function UpdateCouponRequestToJSON(json: any): UpdateCouponRequest;
|
|
128
|
+
export declare function UpdateCouponRequestToJSONTyped(value?: UpdateCouponRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateCouponRequestDiscountTypeEnum = exports.UpdateCouponRequestTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfUpdateCouponRequest = instanceOfUpdateCouponRequest;
|
|
18
|
+
exports.UpdateCouponRequestFromJSON = UpdateCouponRequestFromJSON;
|
|
19
|
+
exports.UpdateCouponRequestFromJSONTyped = UpdateCouponRequestFromJSONTyped;
|
|
20
|
+
exports.UpdateCouponRequestToJSON = UpdateCouponRequestToJSON;
|
|
21
|
+
exports.UpdateCouponRequestToJSONTyped = UpdateCouponRequestToJSONTyped;
|
|
22
|
+
var CreateCouponRequestCouponablesInner_1 = require("./CreateCouponRequestCouponablesInner");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.UpdateCouponRequestTypeEnum = {
|
|
27
|
+
Subtotal: 'subtotal',
|
|
28
|
+
Product: 'product',
|
|
29
|
+
Shipping: 'shipping'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.UpdateCouponRequestDiscountTypeEnum = {
|
|
35
|
+
Dollar: '$',
|
|
36
|
+
Percent: '%'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the UpdateCouponRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfUpdateCouponRequest(value) {
|
|
42
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('discountType' in value) || value['discountType'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('discountAmount' in value) || value['discountAmount'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('minProducts' in value) || value['minProducts'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('totalUseLimit' in value) || value['totalUseLimit'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('customerUseLimit' in value) || value['customerUseLimit'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
function UpdateCouponRequestFromJSON(json) {
|
|
63
|
+
return UpdateCouponRequestFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function UpdateCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'code': json['code'],
|
|
72
|
+
'type': json['type'],
|
|
73
|
+
'discountType': json['discount_type'],
|
|
74
|
+
'discountAmount': json['discount_amount'],
|
|
75
|
+
'minAmount': json['min_amount'],
|
|
76
|
+
'minProducts': json['min_products'],
|
|
77
|
+
'totalUseLimit': json['total_use_limit'],
|
|
78
|
+
'customerUseLimit': json['customer_use_limit'],
|
|
79
|
+
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
80
|
+
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
81
|
+
'isForAllProducts': json['is_for_all_products'] == null ? undefined : json['is_for_all_products'],
|
|
82
|
+
'isForAllCustomers': json['is_for_all_customers'] == null ? undefined : json['is_for_all_customers'],
|
|
83
|
+
'couponables': json['couponables'] == null ? undefined : (json['couponables'].map(CreateCouponRequestCouponablesInner_1.CreateCouponRequestCouponablesInnerFromJSON)),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function UpdateCouponRequestToJSON(json) {
|
|
87
|
+
return UpdateCouponRequestToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
function UpdateCouponRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
90
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
'name': value['name'],
|
|
96
|
+
'code': value['code'],
|
|
97
|
+
'type': value['type'],
|
|
98
|
+
'discount_type': value['discountType'],
|
|
99
|
+
'discount_amount': value['discountAmount'],
|
|
100
|
+
'min_amount': value['minAmount'],
|
|
101
|
+
'min_products': value['minProducts'],
|
|
102
|
+
'total_use_limit': value['totalUseLimit'],
|
|
103
|
+
'customer_use_limit': value['customerUseLimit'],
|
|
104
|
+
'start_date': value['startDate'],
|
|
105
|
+
'end_date': value['endDate'],
|
|
106
|
+
'is_for_all_products': value['isForAllProducts'],
|
|
107
|
+
'is_for_all_customers': value['isForAllCustomers'],
|
|
108
|
+
'couponables': value['couponables'] == null ? undefined : (value['couponables'].map(CreateCouponRequestCouponablesInner_1.CreateCouponRequestCouponablesInnerToJSON)),
|
|
109
|
+
};
|
|
110
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -79,6 +79,13 @@ export * from './CategoryFrontendResourceArrayResponse';
|
|
|
79
79
|
export * from './CategoryWithChildrenFrontendResource';
|
|
80
80
|
export * from './CategoryWithChildrenFrontendResourceArrayResponse';
|
|
81
81
|
export * from './CouponDiscountType';
|
|
82
|
+
export * from './CouponListResource';
|
|
83
|
+
export * from './CouponListResourceArrayResponse';
|
|
84
|
+
export * from './CouponLiteResource';
|
|
85
|
+
export * from './CouponLiteResourceArrayResponse';
|
|
86
|
+
export * from './CouponResource';
|
|
87
|
+
export * from './CouponResourceArrayResponse';
|
|
88
|
+
export * from './CouponType';
|
|
82
89
|
export * from './CreateAssetFileRequest';
|
|
83
90
|
export * from './CreateAssetForAssetableRequest';
|
|
84
91
|
export * from './CreateAttributeRequest';
|
|
@@ -89,6 +96,8 @@ export * from './CreateBlogCategoryRequestSeoInner';
|
|
|
89
96
|
export * from './CreateCartRequest';
|
|
90
97
|
export * from './CreateCartRequestItemsInner';
|
|
91
98
|
export * from './CreateCartRequestShippingAddress';
|
|
99
|
+
export * from './CreateCouponRequest';
|
|
100
|
+
export * from './CreateCouponRequestCouponablesInner';
|
|
92
101
|
export * from './CreateCustomerRequest';
|
|
93
102
|
export * from './CreateDefinitionRequest';
|
|
94
103
|
export * from './CreateDocumentFileRequest';
|
|
@@ -280,6 +289,8 @@ export * from './PaginatedBlogCategoryResourceResponse';
|
|
|
280
289
|
export * from './PaginatedBlogFrontendResourceResponse';
|
|
281
290
|
export * from './PaginatedCartListResourceResponse';
|
|
282
291
|
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
292
|
+
export * from './PaginatedCouponListResourceResponse';
|
|
293
|
+
export * from './PaginatedCouponResourceResponse';
|
|
283
294
|
export * from './PaginatedCustomerListResourceResponse';
|
|
284
295
|
export * from './PaginatedCustomerReviewableItemFrontendResourceResponse';
|
|
285
296
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
@@ -481,6 +492,7 @@ export * from './SearchAdminNotesRequest';
|
|
|
481
492
|
export * from './SearchAllAttributeValuesRequest';
|
|
482
493
|
export * from './SearchAllAttributesRequest';
|
|
483
494
|
export * from './SearchAllBlogCategoriesRequest';
|
|
495
|
+
export * from './SearchAllCouponsRequest';
|
|
484
496
|
export * from './SearchAllDefinitionsRequest';
|
|
485
497
|
export * from './SearchAllDocumentsRequest';
|
|
486
498
|
export * from './SearchAllFrontendComponentsRequest';
|
|
@@ -503,6 +515,7 @@ export * from './SearchAttributeValuesRequest';
|
|
|
503
515
|
export * from './SearchAttributesRequest';
|
|
504
516
|
export * from './SearchBlogCategoriesRequest';
|
|
505
517
|
export * from './SearchCartsRequest';
|
|
518
|
+
export * from './SearchCouponsRequest';
|
|
506
519
|
export * from './SearchCustomersRequest';
|
|
507
520
|
export * from './SearchDefinitionsRequest';
|
|
508
521
|
export * from './SearchDocumentsRequest';
|
|
@@ -600,6 +613,7 @@ export * from './UpdateAttributeRequest';
|
|
|
600
613
|
export * from './UpdateAttributeValueRequest';
|
|
601
614
|
export * from './UpdateBlogCategoryRequest';
|
|
602
615
|
export * from './UpdateCartRequest';
|
|
616
|
+
export * from './UpdateCouponRequest';
|
|
603
617
|
export * from './UpdateDefinitionRequest';
|
|
604
618
|
export * from './UpdateDocumentRequest';
|
|
605
619
|
export * from './UpdateLabelRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -97,6 +97,13 @@ __exportStar(require("./CategoryFrontendResourceArrayResponse"), exports);
|
|
|
97
97
|
__exportStar(require("./CategoryWithChildrenFrontendResource"), exports);
|
|
98
98
|
__exportStar(require("./CategoryWithChildrenFrontendResourceArrayResponse"), exports);
|
|
99
99
|
__exportStar(require("./CouponDiscountType"), exports);
|
|
100
|
+
__exportStar(require("./CouponListResource"), exports);
|
|
101
|
+
__exportStar(require("./CouponListResourceArrayResponse"), exports);
|
|
102
|
+
__exportStar(require("./CouponLiteResource"), exports);
|
|
103
|
+
__exportStar(require("./CouponLiteResourceArrayResponse"), exports);
|
|
104
|
+
__exportStar(require("./CouponResource"), exports);
|
|
105
|
+
__exportStar(require("./CouponResourceArrayResponse"), exports);
|
|
106
|
+
__exportStar(require("./CouponType"), exports);
|
|
100
107
|
__exportStar(require("./CreateAssetFileRequest"), exports);
|
|
101
108
|
__exportStar(require("./CreateAssetForAssetableRequest"), exports);
|
|
102
109
|
__exportStar(require("./CreateAttributeRequest"), exports);
|
|
@@ -107,6 +114,8 @@ __exportStar(require("./CreateBlogCategoryRequestSeoInner"), exports);
|
|
|
107
114
|
__exportStar(require("./CreateCartRequest"), exports);
|
|
108
115
|
__exportStar(require("./CreateCartRequestItemsInner"), exports);
|
|
109
116
|
__exportStar(require("./CreateCartRequestShippingAddress"), exports);
|
|
117
|
+
__exportStar(require("./CreateCouponRequest"), exports);
|
|
118
|
+
__exportStar(require("./CreateCouponRequestCouponablesInner"), exports);
|
|
110
119
|
__exportStar(require("./CreateCustomerRequest"), exports);
|
|
111
120
|
__exportStar(require("./CreateDefinitionRequest"), exports);
|
|
112
121
|
__exportStar(require("./CreateDocumentFileRequest"), exports);
|
|
@@ -298,6 +307,8 @@ __exportStar(require("./PaginatedBlogCategoryResourceResponse"), exports);
|
|
|
298
307
|
__exportStar(require("./PaginatedBlogFrontendResourceResponse"), exports);
|
|
299
308
|
__exportStar(require("./PaginatedCartListResourceResponse"), exports);
|
|
300
309
|
__exportStar(require("./PaginatedCategoryFrontendResourceResponse"), exports);
|
|
310
|
+
__exportStar(require("./PaginatedCouponListResourceResponse"), exports);
|
|
311
|
+
__exportStar(require("./PaginatedCouponResourceResponse"), exports);
|
|
301
312
|
__exportStar(require("./PaginatedCustomerListResourceResponse"), exports);
|
|
302
313
|
__exportStar(require("./PaginatedCustomerReviewableItemFrontendResourceResponse"), exports);
|
|
303
314
|
__exportStar(require("./PaginatedDefinitionListResourceResponse"), exports);
|
|
@@ -499,6 +510,7 @@ __exportStar(require("./SearchAdminNotesRequest"), exports);
|
|
|
499
510
|
__exportStar(require("./SearchAllAttributeValuesRequest"), exports);
|
|
500
511
|
__exportStar(require("./SearchAllAttributesRequest"), exports);
|
|
501
512
|
__exportStar(require("./SearchAllBlogCategoriesRequest"), exports);
|
|
513
|
+
__exportStar(require("./SearchAllCouponsRequest"), exports);
|
|
502
514
|
__exportStar(require("./SearchAllDefinitionsRequest"), exports);
|
|
503
515
|
__exportStar(require("./SearchAllDocumentsRequest"), exports);
|
|
504
516
|
__exportStar(require("./SearchAllFrontendComponentsRequest"), exports);
|
|
@@ -521,6 +533,7 @@ __exportStar(require("./SearchAttributeValuesRequest"), exports);
|
|
|
521
533
|
__exportStar(require("./SearchAttributesRequest"), exports);
|
|
522
534
|
__exportStar(require("./SearchBlogCategoriesRequest"), exports);
|
|
523
535
|
__exportStar(require("./SearchCartsRequest"), exports);
|
|
536
|
+
__exportStar(require("./SearchCouponsRequest"), exports);
|
|
524
537
|
__exportStar(require("./SearchCustomersRequest"), exports);
|
|
525
538
|
__exportStar(require("./SearchDefinitionsRequest"), exports);
|
|
526
539
|
__exportStar(require("./SearchDocumentsRequest"), exports);
|
|
@@ -618,6 +631,7 @@ __exportStar(require("./UpdateAttributeRequest"), exports);
|
|
|
618
631
|
__exportStar(require("./UpdateAttributeValueRequest"), exports);
|
|
619
632
|
__exportStar(require("./UpdateBlogCategoryRequest"), exports);
|
|
620
633
|
__exportStar(require("./UpdateCartRequest"), exports);
|
|
634
|
+
__exportStar(require("./UpdateCouponRequest"), exports);
|
|
621
635
|
__exportStar(require("./UpdateDefinitionRequest"), exports);
|
|
622
636
|
__exportStar(require("./UpdateDocumentRequest"), exports);
|
|
623
637
|
__exportStar(require("./UpdateLabelRequest"), exports);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
# CouponListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`code` | string
|
|
12
|
+
`type` | string
|
|
13
|
+
`discountType` | string
|
|
14
|
+
`discountAmount` | number
|
|
15
|
+
`startDate` | Date
|
|
16
|
+
`endDate` | Date
|
|
17
|
+
`isAbandonedCart` | boolean
|
|
18
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
19
|
+
`ordersCount` | number
|
|
20
|
+
`cartsCount` | number
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import type { CouponListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
26
|
+
|
|
27
|
+
// TODO: Update the object below with actual values
|
|
28
|
+
const example = {
|
|
29
|
+
"id": null,
|
|
30
|
+
"name": null,
|
|
31
|
+
"code": null,
|
|
32
|
+
"type": null,
|
|
33
|
+
"discountType": null,
|
|
34
|
+
"discountAmount": null,
|
|
35
|
+
"startDate": null,
|
|
36
|
+
"endDate": null,
|
|
37
|
+
"isAbandonedCart": null,
|
|
38
|
+
"site": null,
|
|
39
|
+
"ordersCount": null,
|
|
40
|
+
"cartsCount": null,
|
|
41
|
+
} satisfies CouponListResource
|
|
42
|
+
|
|
43
|
+
console.log(example)
|
|
44
|
+
|
|
45
|
+
// Convert the instance to a JSON string
|
|
46
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
47
|
+
console.log(exampleJSON)
|
|
48
|
+
|
|
49
|
+
// Parse the JSON string back to an object
|
|
50
|
+
const exampleParsed = JSON.parse(exampleJSON) as CouponListResource
|
|
51
|
+
console.log(exampleParsed)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
55
|
+
|
|
56
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# CouponListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<CouponListResource>](CouponListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { CouponListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies CouponListResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as CouponListResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# CouponLiteResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`code` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { CouponLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"name": null,
|
|
22
|
+
"code": null,
|
|
23
|
+
} satisfies CouponLiteResource
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as CouponLiteResource
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# CouponLiteResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<CouponLiteResource>](CouponLiteResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { CouponLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies CouponLiteResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as CouponLiteResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
|
|
2
|
+
# CouponResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`code` | string
|
|
12
|
+
`type` | string
|
|
13
|
+
`discountType` | string
|
|
14
|
+
`discountAmount` | number
|
|
15
|
+
`minAmount` | number
|
|
16
|
+
`minProducts` | number
|
|
17
|
+
`totalUseLimit` | number
|
|
18
|
+
`customerUseLimit` | number
|
|
19
|
+
`isAbandonedCart` | boolean
|
|
20
|
+
`isForAllProducts` | boolean
|
|
21
|
+
`isForAllCustomers` | boolean
|
|
22
|
+
`startDate` | Date
|
|
23
|
+
`endDate` | Date
|
|
24
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
25
|
+
`productChildren` | [Array<ProductChildLiteResource>](ProductChildLiteResource.md)
|
|
26
|
+
`categories` | [Array<ProductCategoryListResource>](ProductCategoryListResource.md)
|
|
27
|
+
`suppliers` | [Array<SupplierListResource>](SupplierListResource.md)
|
|
28
|
+
`customers` | [Array<CustomerListResource>](CustomerListResource.md)
|
|
29
|
+
`ordersCount` | number
|
|
30
|
+
`cartsCount` | number
|
|
31
|
+
|
|
32
|
+
## Example
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import type { CouponResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
36
|
+
|
|
37
|
+
// TODO: Update the object below with actual values
|
|
38
|
+
const example = {
|
|
39
|
+
"id": null,
|
|
40
|
+
"name": null,
|
|
41
|
+
"code": null,
|
|
42
|
+
"type": null,
|
|
43
|
+
"discountType": null,
|
|
44
|
+
"discountAmount": null,
|
|
45
|
+
"minAmount": null,
|
|
46
|
+
"minProducts": null,
|
|
47
|
+
"totalUseLimit": null,
|
|
48
|
+
"customerUseLimit": null,
|
|
49
|
+
"isAbandonedCart": null,
|
|
50
|
+
"isForAllProducts": null,
|
|
51
|
+
"isForAllCustomers": null,
|
|
52
|
+
"startDate": null,
|
|
53
|
+
"endDate": null,
|
|
54
|
+
"site": null,
|
|
55
|
+
"productChildren": null,
|
|
56
|
+
"categories": null,
|
|
57
|
+
"suppliers": null,
|
|
58
|
+
"customers": null,
|
|
59
|
+
"ordersCount": null,
|
|
60
|
+
"cartsCount": null,
|
|
61
|
+
} satisfies CouponResource
|
|
62
|
+
|
|
63
|
+
console.log(example)
|
|
64
|
+
|
|
65
|
+
// Convert the instance to a JSON string
|
|
66
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
67
|
+
console.log(exampleJSON)
|
|
68
|
+
|
|
69
|
+
// Parse the JSON string back to an object
|
|
70
|
+
const exampleParsed = JSON.parse(exampleJSON) as CouponResource
|
|
71
|
+
console.log(exampleParsed)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
75
|
+
|
|
76
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# CouponResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<CouponResource>](CouponResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { CouponResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies CouponResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as CouponResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|