@digital8/lighting-illusions-ts-sdk 0.0.1936 → 0.0.1938

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 +8 -2
  2. package/README.md +8 -3
  3. package/dist/apis/OrdersApi.d.ts +37 -2
  4. package/dist/apis/OrdersApi.js +126 -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 -7
  8. package/dist/models/AddressResource.js +3 -5
  9. package/dist/models/AdminOrderResource.d.ts +12 -0
  10. package/dist/models/AdminOrderResource.js +8 -0
  11. package/dist/models/AttachCouponOrderRequest.d.ts +32 -0
  12. package/dist/models/AttachCouponOrderRequest.js +51 -0
  13. package/dist/models/CartListResource.d.ts +6 -0
  14. package/dist/models/CartListResource.js +4 -0
  15. package/dist/models/CartResource.d.ts +6 -0
  16. package/dist/models/CartResource.js +4 -0
  17. package/dist/models/DetachCouponOrderRequest.d.ts +32 -0
  18. package/dist/models/DetachCouponOrderRequest.js +51 -0
  19. package/dist/models/GetAllOrderRequest.d.ts +1 -0
  20. package/dist/models/GetAllOrderRequest.js +2 -1
  21. package/dist/models/IndexOrderRequest.d.ts +1 -0
  22. package/dist/models/IndexOrderRequest.js +2 -1
  23. package/dist/models/OrderListResource.d.ts +18 -0
  24. package/dist/models/OrderListResource.js +10 -0
  25. package/dist/models/OrderStatusWithCountResource.d.ts +50 -0
  26. package/dist/models/OrderStatusWithCountResource.js +63 -0
  27. package/dist/models/OrderStatusWithCountResourceArrayResponse.d.ts +33 -0
  28. package/dist/models/OrderStatusWithCountResourceArrayResponse.js +50 -0
  29. package/dist/models/StoreCartRequest.d.ts +6 -0
  30. package/dist/models/StoreCartRequest.js +2 -0
  31. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -6
  32. package/dist/models/StoreCartRequestShippingAddress.js +0 -2
  33. package/dist/models/StoreListResource.d.ts +2 -2
  34. package/dist/models/StoreListResource.js +4 -4
  35. package/dist/models/StoreResource.d.ts +1 -1
  36. package/dist/models/StoreResource.js +1 -3
  37. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  38. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  39. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  40. package/dist/models/StoreSpecialDateResource.js +1 -3
  41. package/dist/models/UpdateCartRequest.d.ts +6 -0
  42. package/dist/models/UpdateCartRequest.js +2 -0
  43. package/dist/models/UpdateOrderRequest.d.ts +9 -3
  44. package/dist/models/UpdateOrderRequest.js +5 -3
  45. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +1 -7
  46. package/dist/models/UpdateOrderRequestBillingAddress.js +3 -5
  47. package/dist/models/index.d.ts +4 -1
  48. package/dist/models/index.js +4 -1
  49. package/docs/AddressResource.md +0 -2
  50. package/docs/AdminOrderResource.md +4 -0
  51. package/docs/AttachCouponOrderRequest.md +34 -0
  52. package/docs/CartListResource.md +2 -0
  53. package/docs/CartResource.md +2 -0
  54. package/docs/DetachCouponOrderRequest.md +34 -0
  55. package/docs/OrderListResource.md +6 -0
  56. package/docs/OrderStatusWithCountResource.md +40 -0
  57. package/docs/OrderStatusWithCountResourceArrayResponse.md +34 -0
  58. package/docs/OrdersApi.md +141 -3
  59. package/docs/StoreCartRequest.md +2 -0
  60. package/docs/StoreCartRequestShippingAddress.md +0 -2
  61. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  62. package/docs/StoreSpecialDateResource.md +1 -1
  63. package/docs/UpdateCartRequest.md +2 -0
  64. package/docs/UpdateOrderRequest.md +3 -1
  65. package/docs/UpdateOrderRequestBillingAddress.md +2 -4
  66. package/package.json +1 -1
  67. package/src/apis/OrdersApi.ts +124 -3
  68. package/src/models/AddressFrontendResource.ts +3 -2
  69. package/src/models/AddressResource.ts +3 -11
  70. package/src/models/AdminOrderResource.ts +18 -0
  71. package/src/models/AttachCouponOrderRequest.ts +66 -0
  72. package/src/models/CartListResource.ts +9 -0
  73. package/src/models/CartResource.ts +9 -0
  74. package/src/models/DetachCouponOrderRequest.ts +66 -0
  75. package/src/models/GetAllOrderRequest.ts +2 -1
  76. package/src/models/IndexOrderRequest.ts +2 -1
  77. package/src/models/OrderListResource.ts +26 -0
  78. package/src/models/OrderStatusWithCountResource.ts +93 -0
  79. package/src/models/OrderStatusWithCountResourceArrayResponse.ts +73 -0
  80. package/src/models/StoreCartRequest.ts +8 -0
  81. package/src/models/StoreCartRequestShippingAddress.ts +0 -8
  82. package/src/models/StoreListResource.ts +5 -5
  83. package/src/models/StoreResource.ts +2 -3
  84. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  85. package/src/models/StoreSpecialDateResource.ts +3 -4
  86. package/src/models/UpdateCartRequest.ts +8 -0
  87. package/src/models/UpdateOrderRequest.ts +18 -10
  88. package/src/models/UpdateOrderRequestBillingAddress.ts +4 -12
  89. package/src/models/index.ts +4 -1
  90. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
  91. package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
  92. package/docs/UpdateOrderRequestShippingAddress.md +0 -50
  93. package/src/models/UpdateOrderRequestShippingAddress.ts +0 -130
@@ -1,67 +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.instanceOfUpdateOrderRequestShippingAddress = instanceOfUpdateOrderRequestShippingAddress;
17
- exports.UpdateOrderRequestShippingAddressFromJSON = UpdateOrderRequestShippingAddressFromJSON;
18
- exports.UpdateOrderRequestShippingAddressFromJSONTyped = UpdateOrderRequestShippingAddressFromJSONTyped;
19
- exports.UpdateOrderRequestShippingAddressToJSON = UpdateOrderRequestShippingAddressToJSON;
20
- exports.UpdateOrderRequestShippingAddressToJSONTyped = UpdateOrderRequestShippingAddressToJSONTyped;
21
- /**
22
- * Check if a given object implements the UpdateOrderRequestShippingAddress interface.
23
- */
24
- function instanceOfUpdateOrderRequestShippingAddress(value) {
25
- if (!('adresseeName' in value) || value['adresseeName'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function UpdateOrderRequestShippingAddressFromJSON(json) {
30
- return UpdateOrderRequestShippingAddressFromJSONTyped(json, false);
31
- }
32
- function UpdateOrderRequestShippingAddressFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'adresseeName': json['adressee_name'],
38
- 'addressee': json['addressee'] == null ? undefined : json['addressee'],
39
- 'company': json['company'] == null ? undefined : json['company'],
40
- 'line1': json['line_1'] == null ? undefined : json['line_1'],
41
- 'line2': json['line_2'] == null ? undefined : json['line_2'],
42
- 'suburb': json['suburb'] == null ? undefined : json['suburb'],
43
- 'state': json['state'] == null ? undefined : json['state'],
44
- 'postcode': json['postcode'] == null ? undefined : json['postcode'],
45
- 'country': json['country'] == null ? undefined : json['country'],
46
- };
47
- }
48
- function UpdateOrderRequestShippingAddressToJSON(json) {
49
- return UpdateOrderRequestShippingAddressToJSONTyped(json, false);
50
- }
51
- function UpdateOrderRequestShippingAddressToJSONTyped(value, ignoreDiscriminator) {
52
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
- 'adressee_name': value['adresseeName'],
58
- 'addressee': value['addressee'],
59
- 'company': value['company'],
60
- 'line_1': value['line1'],
61
- 'line_2': value['line2'],
62
- 'suburb': value['suburb'],
63
- 'state': value['state'],
64
- 'postcode': value['postcode'],
65
- 'country': value['country'],
66
- };
67
- }
@@ -1,50 +0,0 @@
1
-
2
- # UpdateOrderRequestShippingAddress
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `adresseeName` | string
10
- `addressee` | string
11
- `company` | string
12
- `line1` | string
13
- `line2` | string
14
- `suburb` | string
15
- `state` | string
16
- `postcode` | string
17
- `country` | string
18
-
19
- ## Example
20
-
21
- ```typescript
22
- import type { UpdateOrderRequestShippingAddress } from '@digital8/lighting-illusions-ts-sdk'
23
-
24
- // TODO: Update the object below with actual values
25
- const example = {
26
- "adresseeName": null,
27
- "addressee": null,
28
- "company": null,
29
- "line1": null,
30
- "line2": null,
31
- "suburb": null,
32
- "state": null,
33
- "postcode": null,
34
- "country": null,
35
- } satisfies UpdateOrderRequestShippingAddress
36
-
37
- console.log(example)
38
-
39
- // Convert the instance to a JSON string
40
- const exampleJSON: string = JSON.stringify(example)
41
- console.log(exampleJSON)
42
-
43
- // Parse the JSON string back to an object
44
- const exampleParsed = JSON.parse(exampleJSON) as UpdateOrderRequestShippingAddress
45
- console.log(exampleParsed)
46
- ```
47
-
48
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
-
50
-
@@ -1,130 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface UpdateOrderRequestShippingAddress
20
- */
21
- export interface UpdateOrderRequestShippingAddress {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof UpdateOrderRequestShippingAddress
26
- */
27
- adresseeName: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof UpdateOrderRequestShippingAddress
32
- */
33
- addressee?: string | null;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof UpdateOrderRequestShippingAddress
38
- */
39
- company?: string | null;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof UpdateOrderRequestShippingAddress
44
- */
45
- line1?: string | null;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof UpdateOrderRequestShippingAddress
50
- */
51
- line2?: string | null;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof UpdateOrderRequestShippingAddress
56
- */
57
- suburb?: string | null;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof UpdateOrderRequestShippingAddress
62
- */
63
- state?: string | null;
64
- /**
65
- *
66
- * @type {string}
67
- * @memberof UpdateOrderRequestShippingAddress
68
- */
69
- postcode?: string | null;
70
- /**
71
- *
72
- * @type {string}
73
- * @memberof UpdateOrderRequestShippingAddress
74
- */
75
- country?: string | null;
76
- }
77
-
78
- /**
79
- * Check if a given object implements the UpdateOrderRequestShippingAddress interface.
80
- */
81
- export function instanceOfUpdateOrderRequestShippingAddress(value: object): value is UpdateOrderRequestShippingAddress {
82
- if (!('adresseeName' in value) || value['adresseeName'] === undefined) return false;
83
- return true;
84
- }
85
-
86
- export function UpdateOrderRequestShippingAddressFromJSON(json: any): UpdateOrderRequestShippingAddress {
87
- return UpdateOrderRequestShippingAddressFromJSONTyped(json, false);
88
- }
89
-
90
- export function UpdateOrderRequestShippingAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderRequestShippingAddress {
91
- if (json == null) {
92
- return json;
93
- }
94
- return {
95
-
96
- 'adresseeName': json['adressee_name'],
97
- 'addressee': json['addressee'] == null ? undefined : json['addressee'],
98
- 'company': json['company'] == null ? undefined : json['company'],
99
- 'line1': json['line_1'] == null ? undefined : json['line_1'],
100
- 'line2': json['line_2'] == null ? undefined : json['line_2'],
101
- 'suburb': json['suburb'] == null ? undefined : json['suburb'],
102
- 'state': json['state'] == null ? undefined : json['state'],
103
- 'postcode': json['postcode'] == null ? undefined : json['postcode'],
104
- 'country': json['country'] == null ? undefined : json['country'],
105
- };
106
- }
107
-
108
- export function UpdateOrderRequestShippingAddressToJSON(json: any): UpdateOrderRequestShippingAddress {
109
- return UpdateOrderRequestShippingAddressToJSONTyped(json, false);
110
- }
111
-
112
- export function UpdateOrderRequestShippingAddressToJSONTyped(value?: UpdateOrderRequestShippingAddress | null, ignoreDiscriminator: boolean = false): any {
113
- if (value == null) {
114
- return value;
115
- }
116
-
117
- return {
118
-
119
- 'adressee_name': value['adresseeName'],
120
- 'addressee': value['addressee'],
121
- 'company': value['company'],
122
- 'line_1': value['line1'],
123
- 'line_2': value['line2'],
124
- 'suburb': value['suburb'],
125
- 'state': value['state'],
126
- 'postcode': value['postcode'],
127
- 'country': value['country'],
128
- };
129
- }
130
-