@digital8/lighting-illusions-ts-sdk 0.0.2188 → 0.0.2190

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.
Files changed (99) hide show
  1. package/.openapi-generator/FILES +0 -32
  2. package/README.md +2 -23
  3. package/dist/apis/index.d.ts +0 -1
  4. package/dist/apis/index.js +0 -1
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/AddressResource.d.ts +1 -1
  8. package/dist/models/AddressResource.js +1 -3
  9. package/dist/models/OrderFulfillmentResource.d.ts +1 -1
  10. package/dist/models/OrderFulfillmentResource.js +3 -1
  11. package/dist/models/SearchCartsRequest.d.ts +0 -6
  12. package/dist/models/SearchCartsRequest.js +0 -2
  13. package/dist/models/SearchOrdersRequest.d.ts +0 -6
  14. package/dist/models/SearchOrdersRequest.js +0 -2
  15. package/dist/models/StoreFrontendResource.d.ts +1 -1
  16. package/dist/models/StoreFrontendResource.js +1 -3
  17. package/dist/models/StoreListResource.d.ts +1 -1
  18. package/dist/models/StoreListResource.js +1 -3
  19. package/dist/models/StoreResource.d.ts +1 -1
  20. package/dist/models/StoreResource.js +1 -3
  21. package/dist/models/index.d.ts +0 -15
  22. package/dist/models/index.js +0 -15
  23. package/docs/SearchCartsRequest.md +0 -2
  24. package/docs/SearchOrdersRequest.md +0 -2
  25. package/package.json +1 -1
  26. package/src/apis/index.ts +0 -1
  27. package/src/models/AddressFrontendResource.ts +3 -2
  28. package/src/models/AddressResource.ts +2 -3
  29. package/src/models/OrderFulfillmentResource.ts +3 -2
  30. package/src/models/SearchCartsRequest.ts +0 -8
  31. package/src/models/SearchOrdersRequest.ts +0 -8
  32. package/src/models/StoreFrontendResource.ts +2 -3
  33. package/src/models/StoreListResource.ts +2 -3
  34. package/src/models/StoreResource.ts +2 -3
  35. package/src/models/index.ts +0 -15
  36. package/dist/apis/CouponsApi.d.ts +0 -116
  37. package/dist/apis/CouponsApi.js +0 -440
  38. package/dist/models/CouponListResource.d.ts +0 -99
  39. package/dist/models/CouponListResource.js +0 -90
  40. package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
  41. package/dist/models/CouponListResourceArrayResponse.js +0 -50
  42. package/dist/models/CouponLiteResource.d.ts +0 -44
  43. package/dist/models/CouponLiteResource.js +0 -57
  44. package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
  45. package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
  46. package/dist/models/CouponResource.d.ts +0 -166
  47. package/dist/models/CouponResource.js +0 -135
  48. package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
  49. package/dist/models/CouponResourceArrayResponse.js +0 -50
  50. package/dist/models/CouponType.d.ts +0 -26
  51. package/dist/models/CouponType.js +0 -52
  52. package/dist/models/CreateCouponRequest.d.ts +0 -134
  53. package/dist/models/CreateCouponRequest.js +0 -114
  54. package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
  55. package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
  56. package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
  57. package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
  58. package/dist/models/PaginatedCouponLiteResourceResponse.d.ts +0 -40
  59. package/dist/models/PaginatedCouponLiteResourceResponse.js +0 -57
  60. package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
  61. package/dist/models/PaginatedCouponResourceResponse.js +0 -57
  62. package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
  63. package/dist/models/SearchAllCouponsRequest.js +0 -85
  64. package/dist/models/SearchCouponsRequest.d.ts +0 -137
  65. package/dist/models/SearchCouponsRequest.js +0 -97
  66. package/dist/models/UpdateCouponRequest.d.ts +0 -128
  67. package/dist/models/UpdateCouponRequest.js +0 -110
  68. package/docs/CouponListResource.md +0 -56
  69. package/docs/CouponListResourceArrayResponse.md +0 -34
  70. package/docs/CouponLiteResource.md +0 -38
  71. package/docs/CouponLiteResourceArrayResponse.md +0 -34
  72. package/docs/CouponResource.md +0 -78
  73. package/docs/CouponResourceArrayResponse.md +0 -34
  74. package/docs/CouponType.md +0 -32
  75. package/docs/CouponsApi.md +0 -407
  76. package/docs/CreateCouponRequest.md +0 -62
  77. package/docs/CreateCouponRequestCouponablesInner.md +0 -36
  78. package/docs/PaginatedCouponListResourceResponse.md +0 -36
  79. package/docs/PaginatedCouponLiteResourceResponse.md +0 -36
  80. package/docs/PaginatedCouponResourceResponse.md +0 -36
  81. package/docs/SearchAllCouponsRequest.md +0 -50
  82. package/docs/SearchCouponsRequest.md +0 -62
  83. package/docs/UpdateCouponRequest.md +0 -60
  84. package/src/apis/CouponsApi.ts +0 -345
  85. package/src/models/CouponListResource.ts +0 -170
  86. package/src/models/CouponListResourceArrayResponse.ts +0 -73
  87. package/src/models/CouponLiteResource.ts +0 -83
  88. package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
  89. package/src/models/CouponResource.ts +0 -276
  90. package/src/models/CouponResourceArrayResponse.ts +0 -73
  91. package/src/models/CouponType.ts +0 -54
  92. package/src/models/CreateCouponRequest.ts +0 -216
  93. package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
  94. package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
  95. package/src/models/PaginatedCouponLiteResourceResponse.ts +0 -90
  96. package/src/models/PaginatedCouponResourceResponse.ts +0 -90
  97. package/src/models/SearchAllCouponsRequest.ts +0 -154
  98. package/src/models/SearchCouponsRequest.ts +0 -202
  99. package/src/models/UpdateCouponRequest.ts +0 -207
@@ -1,110 +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
- 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 : (new Date(json['start_date'])),
80
- 'endDate': json['end_date'] == null ? undefined : (new Date(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'] == null ? value['startDate'] : value['startDate'].toISOString(),
105
- 'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
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
- }
@@ -1,56 +0,0 @@
1
-
2
- # CouponListResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `name` | string
11
- `code` | string
12
- `type` | object
13
- `discountType` | object
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
-
@@ -1,34 +0,0 @@
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
-
@@ -1,38 +0,0 @@
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
-
@@ -1,34 +0,0 @@
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
-
@@ -1,78 +0,0 @@
1
-
2
- # CouponResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `siteId` | number
11
- `name` | string
12
- `code` | string
13
- `type` | object
14
- `discountType` | object
15
- `discountAmount` | number
16
- `minAmount` | number
17
- `minProducts` | number
18
- `totalUseLimit` | number
19
- `customerUseLimit` | number
20
- `isAbandonedCart` | boolean
21
- `isForAllProducts` | boolean
22
- `isForAllCustomers` | boolean
23
- `startDate` | Date
24
- `endDate` | Date
25
- `site` | [SiteLiteResource](SiteLiteResource.md)
26
- `productChildren` | object
27
- `categories` | object
28
- `suppliers` | object
29
- `customers` | [Array<CustomerListResource>](CustomerListResource.md)
30
- `ordersCount` | number
31
- `cartsCount` | number
32
-
33
- ## Example
34
-
35
- ```typescript
36
- import type { CouponResource } from '@digital8/lighting-illusions-ts-sdk'
37
-
38
- // TODO: Update the object below with actual values
39
- const example = {
40
- "id": null,
41
- "siteId": null,
42
- "name": null,
43
- "code": null,
44
- "type": null,
45
- "discountType": null,
46
- "discountAmount": null,
47
- "minAmount": null,
48
- "minProducts": null,
49
- "totalUseLimit": null,
50
- "customerUseLimit": null,
51
- "isAbandonedCart": null,
52
- "isForAllProducts": null,
53
- "isForAllCustomers": null,
54
- "startDate": null,
55
- "endDate": null,
56
- "site": null,
57
- "productChildren": null,
58
- "categories": null,
59
- "suppliers": null,
60
- "customers": null,
61
- "ordersCount": null,
62
- "cartsCount": null,
63
- } satisfies CouponResource
64
-
65
- console.log(example)
66
-
67
- // Convert the instance to a JSON string
68
- const exampleJSON: string = JSON.stringify(example)
69
- console.log(exampleJSON)
70
-
71
- // Parse the JSON string back to an object
72
- const exampleParsed = JSON.parse(exampleJSON) as CouponResource
73
- console.log(exampleParsed)
74
- ```
75
-
76
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
77
-
78
-
@@ -1,34 +0,0 @@
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
-
@@ -1,32 +0,0 @@
1
-
2
- # CouponType
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import type { CouponType } from '@digital8/lighting-illusions-ts-sdk'
14
-
15
- // TODO: Update the object below with actual values
16
- const example = {
17
- } satisfies CouponType
18
-
19
- console.log(example)
20
-
21
- // Convert the instance to a JSON string
22
- const exampleJSON: string = JSON.stringify(example)
23
- console.log(exampleJSON)
24
-
25
- // Parse the JSON string back to an object
26
- const exampleParsed = JSON.parse(exampleJSON) as CouponType
27
- console.log(exampleParsed)
28
- ```
29
-
30
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
-
32
-