@digital8/lighting-illusions-ts-sdk 0.0.1778 → 0.0.1779

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 (204) hide show
  1. package/.openapi-generator/FILES +0 -56
  2. package/README.md +2 -41
  3. package/dist/apis/index.d.ts +0 -2
  4. package/dist/apis/index.js +0 -2
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +1 -3
  7. package/dist/models/AssetFrontendResource.d.ts +12 -0
  8. package/dist/models/AssetFrontendResource.js +6 -0
  9. package/dist/models/AssetLiteResource.d.ts +14 -2
  10. package/dist/models/AssetLiteResource.js +6 -0
  11. package/dist/models/AssetResource.d.ts +14 -2
  12. package/dist/models/AssetResource.js +6 -0
  13. package/dist/models/AssetWithOverlayLinkResource.d.ts +14 -2
  14. package/dist/models/AssetWithOverlayLinkResource.js +6 -0
  15. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  16. package/dist/models/ExternalApiLogResource.js +3 -1
  17. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  18. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  19. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  20. package/dist/models/SitePaymentConfigResource.js +0 -4
  21. package/dist/models/StoreAssetForAssetableRequest.d.ts +14 -2
  22. package/dist/models/StoreAssetForAssetableRequest.js +6 -6
  23. package/dist/models/StoreFrontendResource.d.ts +1 -1
  24. package/dist/models/StoreFrontendResource.js +1 -3
  25. package/dist/models/StoreListResource.d.ts +1 -1
  26. package/dist/models/StoreListResource.js +1 -3
  27. package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +14 -2
  28. package/dist/models/StoreOverlayTemplateAssetRequest.js +6 -6
  29. package/dist/models/StoreProductCategoryRequest.d.ts +12 -0
  30. package/dist/models/StoreProductCategoryRequest.js +4 -0
  31. package/dist/models/StoreProductChildRequestAssetsInner.d.ts +14 -2
  32. package/dist/models/StoreProductChildRequestAssetsInner.js +6 -6
  33. package/dist/models/StoreResource.d.ts +1 -1
  34. package/dist/models/StoreResource.js +3 -1
  35. package/dist/models/StoreSupplierRequest.d.ts +14 -2
  36. package/dist/models/StoreSupplierRequest.js +6 -6
  37. package/dist/models/UpdateAssetForAssetableRequest.d.ts +12 -0
  38. package/dist/models/UpdateAssetForAssetableRequest.js +4 -0
  39. package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +14 -2
  40. package/dist/models/UpdateOverlayTemplateAssetRequest.js +6 -6
  41. package/dist/models/UpdateProductCategoryRequest.d.ts +12 -0
  42. package/dist/models/UpdateProductCategoryRequest.js +4 -0
  43. package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +14 -2
  44. package/dist/models/UpdateProductChildRequestAssetsInner.js +6 -6
  45. package/dist/models/UpdateSiteRequest.d.ts +0 -6
  46. package/dist/models/UpdateSiteRequest.js +0 -4
  47. package/dist/models/UpdateSupplierRequest.d.ts +14 -2
  48. package/dist/models/UpdateSupplierRequest.js +6 -6
  49. package/dist/models/index.d.ts +0 -26
  50. package/dist/models/index.js +0 -26
  51. package/docs/AssetFrontendResource.md +4 -0
  52. package/docs/AssetLiteResource.md +5 -1
  53. package/docs/AssetResource.md +5 -1
  54. package/docs/AssetWithOverlayLinkResource.md +5 -1
  55. package/docs/ProductChildSiteDetailLiteResource.md +0 -2
  56. package/docs/SitePaymentConfigResource.md +0 -2
  57. package/docs/StoreAssetForAssetableRequest.md +4 -0
  58. package/docs/StoreOverlayTemplateAssetRequest.md +4 -0
  59. package/docs/StoreProductCategoryRequest.md +4 -0
  60. package/docs/StoreProductChildRequestAssetsInner.md +4 -0
  61. package/docs/StoreSupplierRequest.md +4 -0
  62. package/docs/UpdateAssetForAssetableRequest.md +4 -0
  63. package/docs/UpdateOverlayTemplateAssetRequest.md +4 -0
  64. package/docs/UpdateProductCategoryRequest.md +4 -0
  65. package/docs/UpdateProductChildRequestAssetsInner.md +4 -0
  66. package/docs/UpdateSiteRequest.md +0 -2
  67. package/docs/UpdateSupplierRequest.md +4 -0
  68. package/package.json +1 -1
  69. package/src/apis/index.ts +0 -2
  70. package/src/models/AddressFrontendResource.ts +2 -3
  71. package/src/models/AssetFrontendResource.ts +17 -0
  72. package/src/models/AssetLiteResource.ts +19 -2
  73. package/src/models/AssetResource.ts +19 -2
  74. package/src/models/AssetWithOverlayLinkResource.ts +19 -2
  75. package/src/models/ExternalApiLogResource.ts +3 -2
  76. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  77. package/src/models/SitePaymentConfigResource.ts +0 -9
  78. package/src/models/StoreAssetForAssetableRequest.ts +20 -6
  79. package/src/models/StoreFrontendResource.ts +2 -3
  80. package/src/models/StoreListResource.ts +2 -3
  81. package/src/models/StoreOverlayTemplateAssetRequest.ts +20 -6
  82. package/src/models/StoreProductCategoryRequest.ts +16 -0
  83. package/src/models/StoreProductChildRequestAssetsInner.ts +20 -6
  84. package/src/models/StoreResource.ts +3 -2
  85. package/src/models/StoreSupplierRequest.ts +20 -6
  86. package/src/models/UpdateAssetForAssetableRequest.ts +16 -0
  87. package/src/models/UpdateOverlayTemplateAssetRequest.ts +20 -6
  88. package/src/models/UpdateProductCategoryRequest.ts +16 -0
  89. package/src/models/UpdateProductChildRequestAssetsInner.ts +20 -6
  90. package/src/models/UpdateSiteRequest.ts +0 -9
  91. package/src/models/UpdateSupplierRequest.ts +20 -6
  92. package/src/models/index.ts +0 -26
  93. package/dist/apis/CartsApi.d.ts +0 -190
  94. package/dist/apis/CartsApi.js +0 -747
  95. package/dist/apis/CustomersApi.d.ts +0 -48
  96. package/dist/apis/CustomersApi.js +0 -196
  97. package/dist/models/AttachCouponCartRequest.d.ts +0 -32
  98. package/dist/models/AttachCouponCartRequest.js +0 -51
  99. package/dist/models/AttachItemCartRequest.d.ts +0 -44
  100. package/dist/models/AttachItemCartRequest.js +0 -57
  101. package/dist/models/CartAddressType.d.ts +0 -25
  102. package/dist/models/CartAddressType.js +0 -51
  103. package/dist/models/CartItemListResource.d.ts +0 -51
  104. package/dist/models/CartItemListResource.js +0 -62
  105. package/dist/models/CartItemListResourceArrayResponse.d.ts +0 -33
  106. package/dist/models/CartItemListResourceArrayResponse.js +0 -50
  107. package/dist/models/CartListResource.d.ts +0 -101
  108. package/dist/models/CartListResource.js +0 -90
  109. package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
  110. package/dist/models/CartListResourceArrayResponse.js +0 -50
  111. package/dist/models/CartOrderSource.d.ts +0 -29
  112. package/dist/models/CartOrderSource.js +0 -55
  113. package/dist/models/CartResource.d.ts +0 -155
  114. package/dist/models/CartResource.js +0 -118
  115. package/dist/models/CartResourceArrayResponse.d.ts +0 -33
  116. package/dist/models/CartResourceArrayResponse.js +0 -50
  117. package/dist/models/CartStatus.d.ts +0 -26
  118. package/dist/models/CartStatus.js +0 -52
  119. package/dist/models/CustomerListResource.d.ts +0 -69
  120. package/dist/models/CustomerListResource.js +0 -72
  121. package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
  122. package/dist/models/CustomerListResourceArrayResponse.js +0 -50
  123. package/dist/models/CustomerResource.d.ts +0 -69
  124. package/dist/models/CustomerResource.js +0 -72
  125. package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
  126. package/dist/models/CustomerResourceArrayResponse.js +0 -50
  127. package/dist/models/IndexCartRequest.d.ts +0 -154
  128. package/dist/models/IndexCartRequest.js +0 -105
  129. package/dist/models/IndexCustomerRequest.d.ts +0 -99
  130. package/dist/models/IndexCustomerRequest.js +0 -83
  131. package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
  132. package/dist/models/PaginatedCartListResourceResponse.js +0 -57
  133. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
  134. package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
  135. package/dist/models/StoreCartRequest.d.ts +0 -95
  136. package/dist/models/StoreCartRequest.js +0 -90
  137. package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
  138. package/dist/models/StoreCartRequestCustomer.js +0 -55
  139. package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
  140. package/dist/models/StoreCartRequestItemsInner.js +0 -57
  141. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -74
  142. package/dist/models/StoreCartRequestShippingAddress.js +0 -63
  143. package/dist/models/StoreCustomerRequest.d.ts +0 -56
  144. package/dist/models/StoreCustomerRequest.js +0 -65
  145. package/dist/models/UpdateCartRequest.d.ts +0 -70
  146. package/dist/models/UpdateCartRequest.js +0 -75
  147. package/dist/models/UpdateItemCartRequest.d.ts +0 -38
  148. package/dist/models/UpdateItemCartRequest.js +0 -53
  149. package/docs/AttachCouponCartRequest.md +0 -34
  150. package/docs/AttachItemCartRequest.md +0 -38
  151. package/docs/CartAddressType.md +0 -32
  152. package/docs/CartItemListResource.md +0 -40
  153. package/docs/CartItemListResourceArrayResponse.md +0 -34
  154. package/docs/CartListResource.md +0 -56
  155. package/docs/CartListResourceArrayResponse.md +0 -34
  156. package/docs/CartOrderSource.md +0 -32
  157. package/docs/CartResource.md +0 -74
  158. package/docs/CartResourceArrayResponse.md +0 -34
  159. package/docs/CartStatus.md +0 -32
  160. package/docs/CartsApi.md +0 -755
  161. package/docs/CustomerListResource.md +0 -46
  162. package/docs/CustomerListResourceArrayResponse.md +0 -34
  163. package/docs/CustomerResource.md +0 -46
  164. package/docs/CustomerResourceArrayResponse.md +0 -34
  165. package/docs/CustomersApi.md +0 -140
  166. package/docs/IndexCartRequest.md +0 -66
  167. package/docs/IndexCustomerRequest.md +0 -50
  168. package/docs/PaginatedCartListResourceResponse.md +0 -36
  169. package/docs/PaginatedCustomerListResourceResponse.md +0 -36
  170. package/docs/StoreCartRequest.md +0 -50
  171. package/docs/StoreCartRequestCustomer.md +0 -40
  172. package/docs/StoreCartRequestItemsInner.md +0 -38
  173. package/docs/StoreCartRequestShippingAddress.md +0 -48
  174. package/docs/StoreCustomerRequest.md +0 -42
  175. package/docs/UpdateCartRequest.md +0 -42
  176. package/docs/UpdateItemCartRequest.md +0 -36
  177. package/src/apis/CartsApi.ts +0 -626
  178. package/src/apis/CustomersApi.ts +0 -127
  179. package/src/models/AttachCouponCartRequest.ts +0 -66
  180. package/src/models/AttachItemCartRequest.ts +0 -83
  181. package/src/models/CartAddressType.ts +0 -53
  182. package/src/models/CartItemListResource.ts +0 -100
  183. package/src/models/CartItemListResourceArrayResponse.ts +0 -73
  184. package/src/models/CartListResource.ts +0 -183
  185. package/src/models/CartListResourceArrayResponse.ts +0 -73
  186. package/src/models/CartOrderSource.ts +0 -57
  187. package/src/models/CartResource.ts +0 -260
  188. package/src/models/CartResourceArrayResponse.ts +0 -73
  189. package/src/models/CartStatus.ts +0 -54
  190. package/src/models/CustomerListResource.ts +0 -126
  191. package/src/models/CustomerListResourceArrayResponse.ts +0 -73
  192. package/src/models/CustomerResource.ts +0 -126
  193. package/src/models/CustomerResourceArrayResponse.ts +0 -73
  194. package/src/models/IndexCartRequest.ts +0 -224
  195. package/src/models/IndexCustomerRequest.ts +0 -152
  196. package/src/models/PaginatedCartListResourceResponse.ts +0 -90
  197. package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
  198. package/src/models/StoreCartRequest.ts +0 -171
  199. package/src/models/StoreCartRequestCustomer.ts +0 -89
  200. package/src/models/StoreCartRequestItemsInner.ts +0 -83
  201. package/src/models/StoreCartRequestShippingAddress.ts +0 -121
  202. package/src/models/StoreCustomerRequest.ts +0 -101
  203. package/src/models/UpdateCartRequest.ts +0 -129
  204. package/src/models/UpdateItemCartRequest.ts +0 -74
@@ -1,48 +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 { CustomerResource, IndexCustomerRequest, PaginatedCustomerListResourceResponse, StoreCustomerRequest } from '../models/index';
14
- export interface IndexCustomerOperationRequest {
15
- indexCustomerRequest?: IndexCustomerRequest;
16
- }
17
- export interface StoreCustomerOperationRequest {
18
- storeCustomerRequest?: StoreCustomerRequest;
19
- }
20
- /**
21
- *
22
- */
23
- export declare class CustomersApi extends runtime.BaseAPI {
24
- /**
25
- * Creates request options for indexCustomer without sending the request
26
- */
27
- indexCustomerRequestOpts(requestParameters: IndexCustomerOperationRequest): Promise<runtime.RequestOpts>;
28
- /**
29
- * Auto-generated: indexCustomer
30
- */
31
- indexCustomerRaw(requestParameters: IndexCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedCustomerListResourceResponse>>;
32
- /**
33
- * Auto-generated: indexCustomer
34
- */
35
- indexCustomer(requestParameters?: IndexCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedCustomerListResourceResponse>;
36
- /**
37
- * Creates request options for storeCustomer without sending the request
38
- */
39
- storeCustomerRequestOpts(requestParameters: StoreCustomerOperationRequest): Promise<runtime.RequestOpts>;
40
- /**
41
- * Auto-generated: storeCustomer
42
- */
43
- storeCustomerRaw(requestParameters: StoreCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerResource>>;
44
- /**
45
- * Auto-generated: storeCustomer
46
- */
47
- storeCustomer(requestParameters?: StoreCustomerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerResource>;
48
- }
@@ -1,196 +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.CustomersApi = void 0;
68
- var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
70
- /**
71
- *
72
- */
73
- var CustomersApi = /** @class */ (function (_super) {
74
- __extends(CustomersApi, _super);
75
- function CustomersApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * Creates request options for indexCustomer without sending the request
80
- */
81
- CustomersApi.prototype.indexCustomerRequestOpts = function (requestParameters) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, urlPath;
84
- return __generator(this, function (_a) {
85
- queryParameters = {};
86
- headerParameters = {};
87
- headerParameters['Content-Type'] = 'application/json';
88
- urlPath = "/admin-api/customers/list";
89
- return [2 /*return*/, {
90
- path: urlPath,
91
- method: 'POST',
92
- headers: headerParameters,
93
- query: queryParameters,
94
- body: (0, index_1.IndexCustomerRequestToJSON)(requestParameters['indexCustomerRequest']),
95
- }];
96
- });
97
- });
98
- };
99
- /**
100
- * Auto-generated: indexCustomer
101
- */
102
- CustomersApi.prototype.indexCustomerRaw = function (requestParameters, initOverrides) {
103
- return __awaiter(this, void 0, void 0, function () {
104
- var requestOptions, response;
105
- return __generator(this, function (_a) {
106
- switch (_a.label) {
107
- case 0: return [4 /*yield*/, this.indexCustomerRequestOpts(requestParameters)];
108
- case 1:
109
- requestOptions = _a.sent();
110
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
111
- case 2:
112
- response = _a.sent();
113
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedCustomerListResourceResponseFromJSON)(jsonValue); })];
114
- }
115
- });
116
- });
117
- };
118
- /**
119
- * Auto-generated: indexCustomer
120
- */
121
- CustomersApi.prototype.indexCustomer = function () {
122
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
123
- var response;
124
- if (requestParameters === void 0) { requestParameters = {}; }
125
- return __generator(this, function (_a) {
126
- switch (_a.label) {
127
- case 0: return [4 /*yield*/, this.indexCustomerRaw(requestParameters, initOverrides)];
128
- case 1:
129
- response = _a.sent();
130
- return [4 /*yield*/, response.value()];
131
- case 2: return [2 /*return*/, _a.sent()];
132
- }
133
- });
134
- });
135
- };
136
- /**
137
- * Creates request options for storeCustomer without sending the request
138
- */
139
- CustomersApi.prototype.storeCustomerRequestOpts = function (requestParameters) {
140
- return __awaiter(this, void 0, void 0, function () {
141
- var queryParameters, headerParameters, urlPath;
142
- return __generator(this, function (_a) {
143
- queryParameters = {};
144
- headerParameters = {};
145
- headerParameters['Content-Type'] = 'application/json';
146
- urlPath = "/admin-api/customers/create";
147
- return [2 /*return*/, {
148
- path: urlPath,
149
- method: 'POST',
150
- headers: headerParameters,
151
- query: queryParameters,
152
- body: (0, index_1.StoreCustomerRequestToJSON)(requestParameters['storeCustomerRequest']),
153
- }];
154
- });
155
- });
156
- };
157
- /**
158
- * Auto-generated: storeCustomer
159
- */
160
- CustomersApi.prototype.storeCustomerRaw = function (requestParameters, initOverrides) {
161
- return __awaiter(this, void 0, void 0, function () {
162
- var requestOptions, response;
163
- return __generator(this, function (_a) {
164
- switch (_a.label) {
165
- case 0: return [4 /*yield*/, this.storeCustomerRequestOpts(requestParameters)];
166
- case 1:
167
- requestOptions = _a.sent();
168
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
169
- case 2:
170
- response = _a.sent();
171
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CustomerResourceFromJSON)(jsonValue); })];
172
- }
173
- });
174
- });
175
- };
176
- /**
177
- * Auto-generated: storeCustomer
178
- */
179
- CustomersApi.prototype.storeCustomer = function () {
180
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
181
- var response;
182
- if (requestParameters === void 0) { requestParameters = {}; }
183
- return __generator(this, function (_a) {
184
- switch (_a.label) {
185
- case 0: return [4 /*yield*/, this.storeCustomerRaw(requestParameters, initOverrides)];
186
- case 1:
187
- response = _a.sent();
188
- return [4 /*yield*/, response.value()];
189
- case 2: return [2 /*return*/, _a.sent()];
190
- }
191
- });
192
- });
193
- };
194
- return CustomersApi;
195
- }(runtime.BaseAPI));
196
- exports.CustomersApi = CustomersApi;
@@ -1,32 +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
- /**
13
- *
14
- * @export
15
- * @interface AttachCouponCartRequest
16
- */
17
- export interface AttachCouponCartRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof AttachCouponCartRequest
22
- */
23
- couponId: number;
24
- }
25
- /**
26
- * Check if a given object implements the AttachCouponCartRequest interface.
27
- */
28
- export declare function instanceOfAttachCouponCartRequest(value: object): value is AttachCouponCartRequest;
29
- export declare function AttachCouponCartRequestFromJSON(json: any): AttachCouponCartRequest;
30
- export declare function AttachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponCartRequest;
31
- export declare function AttachCouponCartRequestToJSON(json: any): AttachCouponCartRequest;
32
- export declare function AttachCouponCartRequestToJSONTyped(value?: AttachCouponCartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,51 +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.instanceOfAttachCouponCartRequest = instanceOfAttachCouponCartRequest;
17
- exports.AttachCouponCartRequestFromJSON = AttachCouponCartRequestFromJSON;
18
- exports.AttachCouponCartRequestFromJSONTyped = AttachCouponCartRequestFromJSONTyped;
19
- exports.AttachCouponCartRequestToJSON = AttachCouponCartRequestToJSON;
20
- exports.AttachCouponCartRequestToJSONTyped = AttachCouponCartRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the AttachCouponCartRequest interface.
23
- */
24
- function instanceOfAttachCouponCartRequest(value) {
25
- if (!('couponId' in value) || value['couponId'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function AttachCouponCartRequestFromJSON(json) {
30
- return AttachCouponCartRequestFromJSONTyped(json, false);
31
- }
32
- function AttachCouponCartRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'couponId': json['coupon_id'],
38
- };
39
- }
40
- function AttachCouponCartRequestToJSON(json) {
41
- return AttachCouponCartRequestToJSONTyped(json, false);
42
- }
43
- function AttachCouponCartRequestToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'coupon_id': value['couponId'],
50
- };
51
- }
@@ -1,44 +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
- /**
13
- *
14
- * @export
15
- * @interface AttachItemCartRequest
16
- */
17
- export interface AttachItemCartRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof AttachItemCartRequest
22
- */
23
- productChildId: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof AttachItemCartRequest
28
- */
29
- quantity: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof AttachItemCartRequest
34
- */
35
- productPrice?: number | null;
36
- }
37
- /**
38
- * Check if a given object implements the AttachItemCartRequest interface.
39
- */
40
- export declare function instanceOfAttachItemCartRequest(value: object): value is AttachItemCartRequest;
41
- export declare function AttachItemCartRequestFromJSON(json: any): AttachItemCartRequest;
42
- export declare function AttachItemCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachItemCartRequest;
43
- export declare function AttachItemCartRequestToJSON(json: any): AttachItemCartRequest;
44
- export declare function AttachItemCartRequestToJSONTyped(value?: AttachItemCartRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +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.instanceOfAttachItemCartRequest = instanceOfAttachItemCartRequest;
17
- exports.AttachItemCartRequestFromJSON = AttachItemCartRequestFromJSON;
18
- exports.AttachItemCartRequestFromJSONTyped = AttachItemCartRequestFromJSONTyped;
19
- exports.AttachItemCartRequestToJSON = AttachItemCartRequestToJSON;
20
- exports.AttachItemCartRequestToJSONTyped = AttachItemCartRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the AttachItemCartRequest interface.
23
- */
24
- function instanceOfAttachItemCartRequest(value) {
25
- if (!('productChildId' in value) || value['productChildId'] === undefined)
26
- return false;
27
- if (!('quantity' in value) || value['quantity'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function AttachItemCartRequestFromJSON(json) {
32
- return AttachItemCartRequestFromJSONTyped(json, false);
33
- }
34
- function AttachItemCartRequestFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'productChildId': json['product_child_id'],
40
- 'quantity': json['quantity'],
41
- 'productPrice': json['product_price'] == null ? undefined : json['product_price'],
42
- };
43
- }
44
- function AttachItemCartRequestToJSON(json) {
45
- return AttachItemCartRequestToJSONTyped(json, false);
46
- }
47
- function AttachItemCartRequestToJSONTyped(value, ignoreDiscriminator) {
48
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
- if (value == null) {
50
- return value;
51
- }
52
- return {
53
- 'product_child_id': value['productChildId'],
54
- 'quantity': value['quantity'],
55
- 'product_price': value['productPrice'],
56
- };
57
- }
@@ -1,25 +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
- /**
13
- *
14
- * @export
15
- */
16
- export declare const CartAddressType: {
17
- readonly Shipping: "shipping";
18
- readonly Billing: "billing";
19
- };
20
- export type CartAddressType = typeof CartAddressType[keyof typeof CartAddressType];
21
- export declare function instanceOfCartAddressType(value: any): boolean;
22
- export declare function CartAddressTypeFromJSON(json: any): CartAddressType;
23
- export declare function CartAddressTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartAddressType;
24
- export declare function CartAddressTypeToJSON(value?: CartAddressType | null): any;
25
- export declare function CartAddressTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CartAddressType;
@@ -1,51 +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.CartAddressType = void 0;
17
- exports.instanceOfCartAddressType = instanceOfCartAddressType;
18
- exports.CartAddressTypeFromJSON = CartAddressTypeFromJSON;
19
- exports.CartAddressTypeFromJSONTyped = CartAddressTypeFromJSONTyped;
20
- exports.CartAddressTypeToJSON = CartAddressTypeToJSON;
21
- exports.CartAddressTypeToJSONTyped = CartAddressTypeToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.CartAddressType = {
27
- Shipping: 'shipping',
28
- Billing: 'billing'
29
- };
30
- function instanceOfCartAddressType(value) {
31
- for (var key in exports.CartAddressType) {
32
- if (Object.prototype.hasOwnProperty.call(exports.CartAddressType, key)) {
33
- if (exports.CartAddressType[key] === value) {
34
- return true;
35
- }
36
- }
37
- }
38
- return false;
39
- }
40
- function CartAddressTypeFromJSON(json) {
41
- return CartAddressTypeFromJSONTyped(json, false);
42
- }
43
- function CartAddressTypeFromJSONTyped(json, ignoreDiscriminator) {
44
- return json;
45
- }
46
- function CartAddressTypeToJSON(value) {
47
- return value;
48
- }
49
- function CartAddressTypeToJSONTyped(value, ignoreDiscriminator) {
50
- return value;
51
- }
@@ -1,51 +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 type { ProductChildListResource } from './ProductChildListResource';
13
- /**
14
- *
15
- * @export
16
- * @interface CartItemListResource
17
- */
18
- export interface CartItemListResource {
19
- /**
20
- *
21
- * @type {number}
22
- * @memberof CartItemListResource
23
- */
24
- id?: number | null;
25
- /**
26
- *
27
- * @type {number}
28
- * @memberof CartItemListResource
29
- */
30
- quantity: number;
31
- /**
32
- *
33
- * @type {number}
34
- * @memberof CartItemListResource
35
- */
36
- productPrice: number;
37
- /**
38
- *
39
- * @type {ProductChildListResource}
40
- * @memberof CartItemListResource
41
- */
42
- productChild: ProductChildListResource | null;
43
- }
44
- /**
45
- * Check if a given object implements the CartItemListResource interface.
46
- */
47
- export declare function instanceOfCartItemListResource(value: object): value is CartItemListResource;
48
- export declare function CartItemListResourceFromJSON(json: any): CartItemListResource;
49
- export declare function CartItemListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartItemListResource;
50
- export declare function CartItemListResourceToJSON(json: any): CartItemListResource;
51
- export declare function CartItemListResourceToJSONTyped(value?: CartItemListResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,62 +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.instanceOfCartItemListResource = instanceOfCartItemListResource;
17
- exports.CartItemListResourceFromJSON = CartItemListResourceFromJSON;
18
- exports.CartItemListResourceFromJSONTyped = CartItemListResourceFromJSONTyped;
19
- exports.CartItemListResourceToJSON = CartItemListResourceToJSON;
20
- exports.CartItemListResourceToJSONTyped = CartItemListResourceToJSONTyped;
21
- var ProductChildListResource_1 = require("./ProductChildListResource");
22
- /**
23
- * Check if a given object implements the CartItemListResource interface.
24
- */
25
- function instanceOfCartItemListResource(value) {
26
- if (!('quantity' in value) || value['quantity'] === undefined)
27
- return false;
28
- if (!('productPrice' in value) || value['productPrice'] === undefined)
29
- return false;
30
- if (!('productChild' in value) || value['productChild'] === undefined)
31
- return false;
32
- return true;
33
- }
34
- function CartItemListResourceFromJSON(json) {
35
- return CartItemListResourceFromJSONTyped(json, false);
36
- }
37
- function CartItemListResourceFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'id': json['id'] == null ? undefined : json['id'],
43
- 'quantity': json['quantity'],
44
- 'productPrice': json['product_price'],
45
- 'productChild': (0, ProductChildListResource_1.ProductChildListResourceFromJSON)(json['product_child']),
46
- };
47
- }
48
- function CartItemListResourceToJSON(json) {
49
- return CartItemListResourceToJSONTyped(json, false);
50
- }
51
- function CartItemListResourceToJSONTyped(value, ignoreDiscriminator) {
52
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
- 'id': value['id'],
58
- 'quantity': value['quantity'],
59
- 'product_price': value['productPrice'],
60
- 'product_child': (0, ProductChildListResource_1.ProductChildListResourceToJSON)(value['productChild']),
61
- };
62
- }
@@ -1,33 +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 type { CartItemListResource } from './CartItemListResource';
13
- /**
14
- *
15
- * @export
16
- * @interface CartItemListResourceArrayResponse
17
- */
18
- export interface CartItemListResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<CartItemListResource>}
22
- * @memberof CartItemListResourceArrayResponse
23
- */
24
- data?: Array<CartItemListResource>;
25
- }
26
- /**
27
- * Check if a given object implements the CartItemListResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfCartItemListResourceArrayResponse(value: object): value is CartItemListResourceArrayResponse;
30
- export declare function CartItemListResourceArrayResponseFromJSON(json: any): CartItemListResourceArrayResponse;
31
- export declare function CartItemListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartItemListResourceArrayResponse;
32
- export declare function CartItemListResourceArrayResponseToJSON(json: any): CartItemListResourceArrayResponse;
33
- export declare function CartItemListResourceArrayResponseToJSONTyped(value?: CartItemListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;