@digital8/lighting-illusions-ts-sdk 0.0.2427 → 0.0.2429

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 (42) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/dist/apis/AuspostApi.d.ts +29 -0
  4. package/dist/apis/AuspostApi.js +125 -0
  5. package/dist/apis/OrdersApi.d.ts +13 -1
  6. package/dist/apis/OrdersApi.js +48 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AddressFrontendResource.d.ts +2 -2
  10. package/dist/models/AddressFrontendResource.js +4 -4
  11. package/dist/models/AddressResource.d.ts +1 -1
  12. package/dist/models/AddressResource.js +3 -1
  13. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  14. package/dist/models/ExternalApiLogResource.js +3 -1
  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/SuburbValidationResource.d.ts +32 -0
  20. package/dist/models/SuburbValidationResource.js +51 -0
  21. package/dist/models/SuburbValidationResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/SuburbValidationResourceArrayResponse.js +50 -0
  23. package/dist/models/ValidateOrderSuburbRequest.d.ts +44 -0
  24. package/dist/models/ValidateOrderSuburbRequest.js +59 -0
  25. package/dist/models/ValidateSuburbRequest.d.ts +50 -0
  26. package/dist/models/ValidateSuburbRequest.js +63 -0
  27. package/dist/models/index.d.ts +4 -0
  28. package/dist/models/index.js +4 -0
  29. package/package.json +1 -1
  30. package/src/apis/AuspostApi.ts +69 -0
  31. package/src/apis/OrdersApi.ts +48 -0
  32. package/src/apis/index.ts +1 -0
  33. package/src/models/AddressFrontendResource.ts +5 -5
  34. package/src/models/AddressResource.ts +3 -2
  35. package/src/models/ExternalApiLogResource.ts +3 -2
  36. package/src/models/StoreFrontendResource.ts +2 -3
  37. package/src/models/StoreListResource.ts +2 -3
  38. package/src/models/SuburbValidationResource.ts +66 -0
  39. package/src/models/SuburbValidationResourceArrayResponse.ts +73 -0
  40. package/src/models/ValidateOrderSuburbRequest.ts +84 -0
  41. package/src/models/ValidateSuburbRequest.ts +93 -0
  42. package/src/models/index.ts +4 -0
@@ -6,6 +6,7 @@ package.json
6
6
  src/apis/AdminApi.ts
7
7
  src/apis/AssetApi.ts
8
8
  src/apis/AttributeApi.ts
9
+ src/apis/AuspostApi.ts
9
10
  src/apis/BlogCategoryApi.ts
10
11
  src/apis/CartsApi.ts
11
12
  src/apis/CouponsApi.ts
@@ -620,6 +621,8 @@ src/models/StoreSpecialDateResourceArrayResponse.ts
620
621
  src/models/StoreStockType.ts
621
622
  src/models/StoreTransactionResource.ts
622
623
  src/models/StoreTransactionResourceArrayResponse.ts
624
+ src/models/SuburbValidationResource.ts
625
+ src/models/SuburbValidationResourceArrayResponse.ts
623
626
  src/models/SupplierFrontendResource.ts
624
627
  src/models/SupplierFrontendResourceArrayResponse.ts
625
628
  src/models/SupplierListResource.ts
@@ -684,6 +687,8 @@ src/models/UpdateStoreRequest.ts
684
687
  src/models/UpdateStoreRequestSpecialDatesInner.ts
685
688
  src/models/UpdateSupplierRequest.ts
686
689
  src/models/UpdateTagRequest.ts
690
+ src/models/ValidateOrderSuburbRequest.ts
691
+ src/models/ValidateSuburbRequest.ts
687
692
  src/models/WishlistCheckResource.ts
688
693
  src/models/WishlistCheckResourceArrayResponse.ts
689
694
  src/models/WishlistToggleResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/lighting-illusions-ts-sdk@0.0.2427
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2429
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @digital8/lighting-illusions-ts-sdk@0.0.2427 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2429 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -0,0 +1,29 @@
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 { SuburbValidationResource, ValidateSuburbRequest } from '../models/index';
14
+ export interface ValidateSuburbValidationRequest {
15
+ validateSuburbRequest?: ValidateSuburbRequest;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class AuspostApi extends runtime.BaseAPI {
21
+ /**
22
+ * Auto-generated: validateSuburbValidation
23
+ */
24
+ validateSuburbValidationRaw(requestParameters: ValidateSuburbValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuburbValidationResource>>;
25
+ /**
26
+ * Auto-generated: validateSuburbValidation
27
+ */
28
+ validateSuburbValidation(requestParameters?: ValidateSuburbValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuburbValidationResource>;
29
+ }
@@ -0,0 +1,125 @@
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.AuspostApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var AuspostApi = /** @class */ (function (_super) {
74
+ __extends(AuspostApi, _super);
75
+ function AuspostApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Auto-generated: validateSuburbValidation
80
+ */
81
+ AuspostApi.prototype.validateSuburbValidationRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, urlPath, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ headerParameters = {};
89
+ headerParameters['Content-Type'] = 'application/json';
90
+ urlPath = "/admin-api/auspost/validate-suburb";
91
+ return [4 /*yield*/, this.request({
92
+ path: urlPath,
93
+ method: 'POST',
94
+ headers: headerParameters,
95
+ query: queryParameters,
96
+ body: (0, index_1.ValidateSuburbRequestToJSON)(requestParameters['validateSuburbRequest']),
97
+ }, initOverrides)];
98
+ case 1:
99
+ response = _a.sent();
100
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SuburbValidationResourceFromJSON)(jsonValue); })];
101
+ }
102
+ });
103
+ });
104
+ };
105
+ /**
106
+ * Auto-generated: validateSuburbValidation
107
+ */
108
+ AuspostApi.prototype.validateSuburbValidation = function () {
109
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
110
+ var response;
111
+ if (requestParameters === void 0) { requestParameters = {}; }
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0: return [4 /*yield*/, this.validateSuburbValidationRaw(requestParameters, initOverrides)];
115
+ case 1:
116
+ response = _a.sent();
117
+ return [4 /*yield*/, response.value()];
118
+ case 2: return [2 /*return*/, _a.sent()];
119
+ }
120
+ });
121
+ });
122
+ };
123
+ return AuspostApi;
124
+ }(runtime.BaseAPI));
125
+ exports.AuspostApi = AuspostApi;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AdminOrderResource, AttachCouponRequest, AttachLineItemRequest, DetachCouponRequest, GenericResponse, OrderLiteResourceArrayResponse, OrderStatusWithCountResourceArrayResponse, PaginatedOrderFulfillmentResourceResponse, PaginatedOrderListResourceResponse, SearchAllOrdersRequest, SearchOrderFulfillmentsRequest, SearchOrdersRequest, UpdateLineItemRequest, UpdateOrderRequest } from '../models/index';
13
+ import type { AdminOrderResource, AttachCouponRequest, AttachLineItemRequest, DetachCouponRequest, GenericResponse, OrderLiteResourceArrayResponse, OrderStatusWithCountResourceArrayResponse, PaginatedOrderFulfillmentResourceResponse, PaginatedOrderListResourceResponse, SearchAllOrdersRequest, SearchOrderFulfillmentsRequest, SearchOrdersRequest, UpdateLineItemRequest, UpdateOrderRequest, ValidateOrderSuburbRequest } from '../models/index';
14
14
  export interface AllOrderFulfillmentRequest {
15
15
  searchOrderFulfillmentsRequest?: SearchOrderFulfillmentsRequest;
16
16
  }
@@ -57,6 +57,10 @@ export interface UpdateOrderOperationRequest {
57
57
  order: number;
58
58
  updateOrderRequest?: UpdateOrderRequest;
59
59
  }
60
+ export interface ValidateSuburbOrderRequest {
61
+ order: number;
62
+ validateOrderSuburbRequest?: ValidateOrderSuburbRequest;
63
+ }
60
64
  /**
61
65
  *
62
66
  */
@@ -173,4 +177,12 @@ export declare class OrdersApi extends runtime.BaseAPI {
173
177
  * Auto-generated: updateOrder
174
178
  */
175
179
  updateOrder(requestParameters: UpdateOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminOrderResource>;
180
+ /**
181
+ * Auto-generated: validateSuburbOrder
182
+ */
183
+ validateSuburbOrderRaw(requestParameters: ValidateSuburbOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminOrderResource>>;
184
+ /**
185
+ * Auto-generated: validateSuburbOrder
186
+ */
187
+ validateSuburbOrder(requestParameters: ValidateSuburbOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminOrderResource>;
176
188
  }
@@ -730,6 +730,54 @@ var OrdersApi = /** @class */ (function (_super) {
730
730
  });
731
731
  });
732
732
  };
733
+ /**
734
+ * Auto-generated: validateSuburbOrder
735
+ */
736
+ OrdersApi.prototype.validateSuburbOrderRaw = function (requestParameters, initOverrides) {
737
+ return __awaiter(this, void 0, void 0, function () {
738
+ var queryParameters, headerParameters, urlPath, response;
739
+ return __generator(this, function (_a) {
740
+ switch (_a.label) {
741
+ case 0:
742
+ if (requestParameters['order'] == null) {
743
+ throw new runtime.RequiredError('order', 'Required parameter "order" was null or undefined when calling validateSuburbOrder().');
744
+ }
745
+ queryParameters = {};
746
+ headerParameters = {};
747
+ headerParameters['Content-Type'] = 'application/json';
748
+ urlPath = "/admin-api/orders/{order}/validate-suburb";
749
+ urlPath = urlPath.replace("{".concat("order", "}"), encodeURIComponent(String(requestParameters['order'])));
750
+ return [4 /*yield*/, this.request({
751
+ path: urlPath,
752
+ method: 'POST',
753
+ headers: headerParameters,
754
+ query: queryParameters,
755
+ body: (0, index_1.ValidateOrderSuburbRequestToJSON)(requestParameters['validateOrderSuburbRequest']),
756
+ }, initOverrides)];
757
+ case 1:
758
+ response = _a.sent();
759
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AdminOrderResourceFromJSON)(jsonValue); })];
760
+ }
761
+ });
762
+ });
763
+ };
764
+ /**
765
+ * Auto-generated: validateSuburbOrder
766
+ */
767
+ OrdersApi.prototype.validateSuburbOrder = function (requestParameters, initOverrides) {
768
+ return __awaiter(this, void 0, void 0, function () {
769
+ var response;
770
+ return __generator(this, function (_a) {
771
+ switch (_a.label) {
772
+ case 0: return [4 /*yield*/, this.validateSuburbOrderRaw(requestParameters, initOverrides)];
773
+ case 1:
774
+ response = _a.sent();
775
+ return [4 /*yield*/, response.value()];
776
+ case 2: return [2 /*return*/, _a.sent()];
777
+ }
778
+ });
779
+ });
780
+ };
733
781
  return OrdersApi;
734
782
  }(runtime.BaseAPI));
735
783
  exports.OrdersApi = OrdersApi;
@@ -1,6 +1,7 @@
1
1
  export * from './AdminApi';
2
2
  export * from './AssetApi';
3
3
  export * from './AttributeApi';
4
+ export * from './AuspostApi';
4
5
  export * from './BlogCategoryApi';
5
6
  export * from './CartsApi';
6
7
  export * from './CouponsApi';
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AdminApi"), exports);
20
20
  __exportStar(require("./AssetApi"), exports);
21
21
  __exportStar(require("./AttributeApi"), exports);
22
+ __exportStar(require("./AuspostApi"), exports);
22
23
  __exportStar(require("./BlogCategoryApi"), exports);
23
24
  __exportStar(require("./CartsApi"), exports);
24
25
  __exportStar(require("./CouponsApi"), exports);
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
20
20
  * @type {string}
21
21
  * @memberof AddressFrontendResource
22
22
  */
23
- company?: string | null;
23
+ company: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- line2: string;
35
+ line2?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -22,9 +22,9 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressFrontendResource interface.
23
23
  */
24
24
  function instanceOfAddressFrontendResource(value) {
25
- if (!('line1' in value) || value['line1'] === undefined)
25
+ if (!('company' in value) || value['company'] === undefined)
26
26
  return false;
27
- if (!('line2' in value) || value['line2'] === undefined)
27
+ if (!('line1' in value) || value['line1'] === undefined)
28
28
  return false;
29
29
  if (!('postcode' in value) || value['postcode'] === undefined)
30
30
  return false;
@@ -46,9 +46,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
46
  return json;
47
47
  }
48
48
  return {
49
- 'company': json['company'] == null ? undefined : json['company'],
49
+ 'company': json['company'],
50
50
  'line1': json['line1'],
51
- 'line2': json['line2'],
51
+ 'line2': json['line2'] == null ? undefined : json['line2'],
52
52
  'postcode': json['postcode'],
53
53
  'suburb': json['suburb'],
54
54
  'country': json['country'],
@@ -44,7 +44,7 @@ export interface AddressResource {
44
44
  * @type {string}
45
45
  * @memberof AddressResource
46
46
  */
47
- company?: string | null;
47
+ company: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
24
24
  function instanceOfAddressResource(value) {
25
25
  if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
26
  return false;
27
+ if (!('company' in value) || value['company'] === undefined)
28
+ return false;
27
29
  if (!('line1' in value) || value['line1'] === undefined)
28
30
  return false;
29
31
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -50,7 +52,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'type': json['type'] == null ? undefined : json['type'],
51
53
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
52
54
  'addresseeName': json['addresseeName'],
53
- 'company': json['company'] == null ? undefined : json['company'],
55
+ 'company': json['company'],
54
56
  'line1': json['line1'],
55
57
  'line2': json['line2'] == null ? undefined : json['line2'],
56
58
  'postcode': json['postcode'],
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload?: string | null;
66
+ requestPayload: string;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
+ return false;
40
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
41
43
  return false;
42
44
  if (!('site' in value) || value['site'] === undefined)
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
59
61
  'endpoint': json['endpoint'],
60
62
  'responseCode': json['responseCode'],
61
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
63
+ 'requestPayload': json['requestPayload'],
62
64
  'responsePayload': json['responsePayload'],
63
65
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
64
66
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine: string;
77
+ tagLine?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -34,8 +34,6 @@ function instanceOfStoreFrontendResource(value) {
34
34
  return false;
35
35
  if (!('longitude' in value) || value['longitude'] === undefined)
36
36
  return false;
37
- if (!('tagLine' in value) || value['tagLine'] === undefined)
38
- return false;
39
37
  if (!('specialDates' in value) || value['specialDates'] === undefined)
40
38
  return false;
41
39
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -59,7 +57,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
59
57
  'address': json['address'] == null ? undefined : json['address'],
60
58
  'latitude': json['latitude'],
61
59
  'longitude': json['longitude'],
62
- 'tagLine': json['tagLine'],
60
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
63
61
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
64
62
  'specialDates': json['specialDates'],
65
63
  'suppliers': json['suppliers'],
@@ -69,7 +69,7 @@ export interface StoreListResource {
69
69
  * @type {string}
70
70
  * @memberof StoreListResource
71
71
  */
72
- website: string;
72
+ website?: string | null;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -37,8 +37,6 @@ function instanceOfStoreListResource(value) {
37
37
  return false;
38
38
  if (!('email' in value) || value['email'] === undefined)
39
39
  return false;
40
- if (!('website' in value) || value['website'] === undefined)
41
- return false;
42
40
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
43
41
  return false;
44
42
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -61,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
61
59
  'latitude': json['latitude'],
62
60
  'tagLine': json['tagLine'],
63
61
  'email': json['email'],
64
- 'website': json['website'],
62
+ 'website': json['website'] == null ? undefined : json['website'],
65
63
  'netsuiteId': json['netsuiteId'],
66
64
  'displayNetsuiteId': json['displayNetsuiteId'],
67
65
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -0,0 +1,32 @@
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 SuburbValidationResource
16
+ */
17
+ export interface SuburbValidationResource {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof SuburbValidationResource
22
+ */
23
+ found: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SuburbValidationResource interface.
27
+ */
28
+ export declare function instanceOfSuburbValidationResource(value: object): value is SuburbValidationResource;
29
+ export declare function SuburbValidationResourceFromJSON(json: any): SuburbValidationResource;
30
+ export declare function SuburbValidationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResource;
31
+ export declare function SuburbValidationResourceToJSON(json: any): SuburbValidationResource;
32
+ export declare function SuburbValidationResourceToJSONTyped(value?: SuburbValidationResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfSuburbValidationResource = instanceOfSuburbValidationResource;
17
+ exports.SuburbValidationResourceFromJSON = SuburbValidationResourceFromJSON;
18
+ exports.SuburbValidationResourceFromJSONTyped = SuburbValidationResourceFromJSONTyped;
19
+ exports.SuburbValidationResourceToJSON = SuburbValidationResourceToJSON;
20
+ exports.SuburbValidationResourceToJSONTyped = SuburbValidationResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SuburbValidationResource interface.
23
+ */
24
+ function instanceOfSuburbValidationResource(value) {
25
+ if (!('found' in value) || value['found'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function SuburbValidationResourceFromJSON(json) {
30
+ return SuburbValidationResourceFromJSONTyped(json, false);
31
+ }
32
+ function SuburbValidationResourceFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'found': json['found'],
38
+ };
39
+ }
40
+ function SuburbValidationResourceToJSON(json) {
41
+ return SuburbValidationResourceToJSONTyped(json, false);
42
+ }
43
+ function SuburbValidationResourceToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'found': value['found'],
50
+ };
51
+ }
@@ -0,0 +1,33 @@
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 { SuburbValidationResource } from './SuburbValidationResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SuburbValidationResourceArrayResponse
17
+ */
18
+ export interface SuburbValidationResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<SuburbValidationResource>}
22
+ * @memberof SuburbValidationResourceArrayResponse
23
+ */
24
+ data?: Array<SuburbValidationResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the SuburbValidationResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfSuburbValidationResourceArrayResponse(value: object): value is SuburbValidationResourceArrayResponse;
30
+ export declare function SuburbValidationResourceArrayResponseFromJSON(json: any): SuburbValidationResourceArrayResponse;
31
+ export declare function SuburbValidationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResourceArrayResponse;
32
+ export declare function SuburbValidationResourceArrayResponseToJSON(json: any): SuburbValidationResourceArrayResponse;
33
+ export declare function SuburbValidationResourceArrayResponseToJSONTyped(value?: SuburbValidationResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfSuburbValidationResourceArrayResponse = instanceOfSuburbValidationResourceArrayResponse;
17
+ exports.SuburbValidationResourceArrayResponseFromJSON = SuburbValidationResourceArrayResponseFromJSON;
18
+ exports.SuburbValidationResourceArrayResponseFromJSONTyped = SuburbValidationResourceArrayResponseFromJSONTyped;
19
+ exports.SuburbValidationResourceArrayResponseToJSON = SuburbValidationResourceArrayResponseToJSON;
20
+ exports.SuburbValidationResourceArrayResponseToJSONTyped = SuburbValidationResourceArrayResponseToJSONTyped;
21
+ var SuburbValidationResource_1 = require("./SuburbValidationResource");
22
+ /**
23
+ * Check if a given object implements the SuburbValidationResourceArrayResponse interface.
24
+ */
25
+ function instanceOfSuburbValidationResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function SuburbValidationResourceArrayResponseFromJSON(json) {
29
+ return SuburbValidationResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function SuburbValidationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(SuburbValidationResource_1.SuburbValidationResourceFromJSON)),
37
+ };
38
+ }
39
+ function SuburbValidationResourceArrayResponseToJSON(json) {
40
+ return SuburbValidationResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function SuburbValidationResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(SuburbValidationResource_1.SuburbValidationResourceToJSON)),
49
+ };
50
+ }