@digital8/lighting-illusions-ts-sdk 0.0.2153 → 0.0.2155

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 (93) 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/OrderFulfillmentResource.d.ts +2 -2
  8. package/dist/models/OrderFulfillmentResource.js +4 -4
  9. package/dist/models/ProductChildResource.d.ts +6 -0
  10. package/dist/models/ProductChildResource.js +4 -0
  11. package/dist/models/StoreFrontendResource.d.ts +1 -1
  12. package/dist/models/StoreFrontendResource.js +1 -3
  13. package/dist/models/StoreResource.d.ts +1 -1
  14. package/dist/models/StoreResource.js +1 -3
  15. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  16. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  17. package/dist/models/index.d.ts +0 -15
  18. package/dist/models/index.js +0 -15
  19. package/docs/ProductChildResource.md +2 -0
  20. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  21. package/package.json +1 -1
  22. package/src/apis/index.ts +0 -1
  23. package/src/models/AddressFrontendResource.ts +3 -2
  24. package/src/models/OrderFulfillmentResource.ts +5 -5
  25. package/src/models/ProductChildResource.ts +9 -0
  26. package/src/models/StoreFrontendResource.ts +2 -3
  27. package/src/models/StoreResource.ts +2 -3
  28. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  29. package/src/models/index.ts +0 -15
  30. package/dist/apis/CouponsApi.d.ts +0 -116
  31. package/dist/apis/CouponsApi.js +0 -440
  32. package/dist/models/CouponListResource.d.ts +0 -87
  33. package/dist/models/CouponListResource.js +0 -82
  34. package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
  35. package/dist/models/CouponListResourceArrayResponse.js +0 -50
  36. package/dist/models/CouponLiteResource.d.ts +0 -44
  37. package/dist/models/CouponLiteResource.js +0 -57
  38. package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
  39. package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
  40. package/dist/models/CouponResource.d.ts +0 -165
  41. package/dist/models/CouponResource.js +0 -134
  42. package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
  43. package/dist/models/CouponResourceArrayResponse.js +0 -50
  44. package/dist/models/CouponType.d.ts +0 -26
  45. package/dist/models/CouponType.js +0 -52
  46. package/dist/models/CreateCouponRequest.d.ts +0 -134
  47. package/dist/models/CreateCouponRequest.js +0 -114
  48. package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
  49. package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
  50. package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
  51. package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
  52. package/dist/models/PaginatedCouponLiteResourceResponse.d.ts +0 -40
  53. package/dist/models/PaginatedCouponLiteResourceResponse.js +0 -57
  54. package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
  55. package/dist/models/PaginatedCouponResourceResponse.js +0 -57
  56. package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
  57. package/dist/models/SearchAllCouponsRequest.js +0 -85
  58. package/dist/models/SearchCouponsRequest.d.ts +0 -137
  59. package/dist/models/SearchCouponsRequest.js +0 -97
  60. package/dist/models/UpdateCouponRequest.d.ts +0 -128
  61. package/dist/models/UpdateCouponRequest.js +0 -110
  62. package/docs/CouponListResource.md +0 -52
  63. package/docs/CouponListResourceArrayResponse.md +0 -34
  64. package/docs/CouponLiteResource.md +0 -38
  65. package/docs/CouponLiteResourceArrayResponse.md +0 -34
  66. package/docs/CouponResource.md +0 -78
  67. package/docs/CouponResourceArrayResponse.md +0 -34
  68. package/docs/CouponType.md +0 -32
  69. package/docs/CouponsApi.md +0 -407
  70. package/docs/CreateCouponRequest.md +0 -62
  71. package/docs/CreateCouponRequestCouponablesInner.md +0 -36
  72. package/docs/PaginatedCouponListResourceResponse.md +0 -36
  73. package/docs/PaginatedCouponLiteResourceResponse.md +0 -36
  74. package/docs/PaginatedCouponResourceResponse.md +0 -36
  75. package/docs/SearchAllCouponsRequest.md +0 -50
  76. package/docs/SearchCouponsRequest.md +0 -62
  77. package/docs/UpdateCouponRequest.md +0 -60
  78. package/src/apis/CouponsApi.ts +0 -345
  79. package/src/models/CouponListResource.ts +0 -152
  80. package/src/models/CouponListResourceArrayResponse.ts +0 -73
  81. package/src/models/CouponLiteResource.ts +0 -83
  82. package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
  83. package/src/models/CouponResource.ts +0 -269
  84. package/src/models/CouponResourceArrayResponse.ts +0 -73
  85. package/src/models/CouponType.ts +0 -54
  86. package/src/models/CreateCouponRequest.ts +0 -216
  87. package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
  88. package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
  89. package/src/models/PaginatedCouponLiteResourceResponse.ts +0 -90
  90. package/src/models/PaginatedCouponResourceResponse.ts +0 -90
  91. package/src/models/SearchAllCouponsRequest.ts +0 -154
  92. package/src/models/SearchCouponsRequest.ts +0 -202
  93. 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,52 +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
-
20
- ## Example
21
-
22
- ```typescript
23
- import type { CouponListResource } from '@digital8/lighting-illusions-ts-sdk'
24
-
25
- // TODO: Update the object below with actual values
26
- const example = {
27
- "id": null,
28
- "name": null,
29
- "code": null,
30
- "type": null,
31
- "discountType": null,
32
- "discountAmount": null,
33
- "startDate": null,
34
- "endDate": null,
35
- "isAbandonedCart": null,
36
- "site": null,
37
- } satisfies CouponListResource
38
-
39
- console.log(example)
40
-
41
- // Convert the instance to a JSON string
42
- const exampleJSON: string = JSON.stringify(example)
43
- console.log(exampleJSON)
44
-
45
- // Parse the JSON string back to an object
46
- const exampleParsed = JSON.parse(exampleJSON) as CouponListResource
47
- console.log(exampleParsed)
48
- ```
49
-
50
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
51
-
52
-
@@ -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` | object
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
-