@digital8/lighting-illusions-ts-sdk 0.0.2460 → 0.0.2462

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 (102) hide show
  1. package/.openapi-generator/FILES +4 -15
  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/index.d.ts +1 -1
  6. package/dist/apis/index.js +1 -1
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +1 -3
  9. package/dist/models/AppliedCouponResource.d.ts +0 -30
  10. package/dist/models/AppliedCouponResource.js +0 -20
  11. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  12. package/dist/models/ExternalApiLogResource.js +1 -3
  13. package/dist/models/FrontendCartResource.d.ts +0 -6
  14. package/dist/models/FrontendCartResource.js +0 -4
  15. package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
  16. package/dist/models/ProductCategoryLiteResource.js +0 -4
  17. package/dist/models/ProductChildListResource.d.ts +0 -6
  18. package/dist/models/ProductChildListResource.js +0 -4
  19. package/dist/models/SearchCartsRequest.d.ts +0 -6
  20. package/dist/models/SearchCartsRequest.js +0 -2
  21. package/dist/models/SearchOrdersRequest.d.ts +0 -6
  22. package/dist/models/SearchOrdersRequest.js +0 -2
  23. package/dist/models/StoreFrontendResource.d.ts +2 -2
  24. package/dist/models/StoreFrontendResource.js +2 -6
  25. package/dist/models/StoreResource.d.ts +1 -1
  26. package/dist/models/StoreResource.js +3 -1
  27. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  28. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  29. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  30. package/dist/models/StoreSpecialDateResource.js +1 -3
  31. package/dist/models/SuburbValidationResource.d.ts +32 -0
  32. package/dist/models/SuburbValidationResource.js +51 -0
  33. package/dist/models/SuburbValidationResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/SuburbValidationResourceArrayResponse.js +50 -0
  35. package/dist/models/ValidateSuburbRequest.d.ts +50 -0
  36. package/dist/models/ValidateSuburbRequest.js +63 -0
  37. package/dist/models/index.d.ts +3 -14
  38. package/dist/models/index.js +3 -14
  39. package/package.json +1 -1
  40. package/src/apis/AuspostApi.ts +69 -0
  41. package/src/apis/index.ts +1 -1
  42. package/src/models/AddressFrontendResource.ts +2 -3
  43. package/src/models/AppliedCouponResource.ts +0 -45
  44. package/src/models/ExternalApiLogResource.ts +2 -3
  45. package/src/models/FrontendCartResource.ts +0 -9
  46. package/src/models/ProductCategoryLiteResource.ts +0 -9
  47. package/src/models/ProductChildListResource.ts +0 -9
  48. package/src/models/SearchCartsRequest.ts +0 -8
  49. package/src/models/SearchOrdersRequest.ts +0 -8
  50. package/src/models/StoreFrontendResource.ts +4 -6
  51. package/src/models/StoreResource.ts +3 -2
  52. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  53. package/src/models/StoreSpecialDateResource.ts +3 -4
  54. package/src/models/SuburbValidationResource.ts +66 -0
  55. package/src/models/SuburbValidationResourceArrayResponse.ts +73 -0
  56. package/src/models/ValidateSuburbRequest.ts +93 -0
  57. package/src/models/index.ts +3 -14
  58. package/dist/apis/CouponsApi.d.ts +0 -85
  59. package/dist/apis/CouponsApi.js +0 -355
  60. package/dist/models/CouponListResource.d.ts +0 -99
  61. package/dist/models/CouponListResource.js +0 -91
  62. package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
  63. package/dist/models/CouponListResourceArrayResponse.js +0 -50
  64. package/dist/models/CouponLiteResource.d.ts +0 -44
  65. package/dist/models/CouponLiteResource.js +0 -57
  66. package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
  67. package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
  68. package/dist/models/CouponResource.d.ts +0 -163
  69. package/dist/models/CouponResource.js +0 -135
  70. package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
  71. package/dist/models/CouponResourceArrayResponse.js +0 -50
  72. package/dist/models/CouponType.d.ts +0 -26
  73. package/dist/models/CouponType.js +0 -52
  74. package/dist/models/CreateCouponRequest.d.ts +0 -126
  75. package/dist/models/CreateCouponRequest.js +0 -107
  76. package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
  77. package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
  78. package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
  79. package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
  80. package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
  81. package/dist/models/PaginatedCouponResourceResponse.js +0 -57
  82. package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
  83. package/dist/models/SearchAllCouponsRequest.js +0 -85
  84. package/dist/models/SearchCouponsRequest.d.ts +0 -137
  85. package/dist/models/SearchCouponsRequest.js +0 -97
  86. package/dist/models/UpdateCouponRequest.d.ts +0 -120
  87. package/dist/models/UpdateCouponRequest.js +0 -103
  88. package/src/apis/CouponsApi.ts +0 -286
  89. package/src/models/CouponListResource.ts +0 -170
  90. package/src/models/CouponListResourceArrayResponse.ts +0 -73
  91. package/src/models/CouponLiteResource.ts +0 -83
  92. package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
  93. package/src/models/CouponResource.ts +0 -288
  94. package/src/models/CouponResourceArrayResponse.ts +0 -73
  95. package/src/models/CouponType.ts +0 -54
  96. package/src/models/CreateCouponRequest.ts +0 -207
  97. package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
  98. package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
  99. package/src/models/PaginatedCouponResourceResponse.ts +0 -90
  100. package/src/models/SearchAllCouponsRequest.ts +0 -154
  101. package/src/models/SearchCouponsRequest.ts +0 -202
  102. package/src/models/UpdateCouponRequest.ts +0 -198
@@ -37,36 +37,6 @@ export interface AppliedCouponResource {
37
37
  * @memberof AppliedCouponResource
38
38
  */
39
39
  name: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof AppliedCouponResource
44
- */
45
- type: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof AppliedCouponResource
50
- */
51
- discountType: string;
52
- /**
53
- *
54
- * @type {number}
55
- * @memberof AppliedCouponResource
56
- */
57
- discountAmount: number;
58
- /**
59
- *
60
- * @type {number}
61
- * @memberof AppliedCouponResource
62
- */
63
- minAmount: number;
64
- /**
65
- *
66
- * @type {number}
67
- * @memberof AppliedCouponResource
68
- */
69
- minProducts: number;
70
40
  /**
71
41
  *
72
42
  * @type {number}
@@ -82,11 +52,6 @@ export function instanceOfAppliedCouponResource(value: object): value is Applied
82
52
  if (!('id' in value) || value['id'] === undefined) return false;
83
53
  if (!('code' in value) || value['code'] === undefined) return false;
84
54
  if (!('name' in value) || value['name'] === undefined) return false;
85
- if (!('type' in value) || value['type'] === undefined) return false;
86
- if (!('discountType' in value) || value['discountType'] === undefined) return false;
87
- if (!('discountAmount' in value) || value['discountAmount'] === undefined) return false;
88
- if (!('minAmount' in value) || value['minAmount'] === undefined) return false;
89
- if (!('minProducts' in value) || value['minProducts'] === undefined) return false;
90
55
  if (!('discountTotal' in value) || value['discountTotal'] === undefined) return false;
91
56
  return true;
92
57
  }
@@ -104,11 +69,6 @@ export function AppliedCouponResourceFromJSONTyped(json: any, ignoreDiscriminato
104
69
  'id': json['id'],
105
70
  'code': json['code'],
106
71
  'name': json['name'],
107
- 'type': json['type'],
108
- 'discountType': json['discountType'],
109
- 'discountAmount': json['discountAmount'],
110
- 'minAmount': json['minAmount'],
111
- 'minProducts': json['minProducts'],
112
72
  'discountTotal': json['discountTotal'],
113
73
  };
114
74
  }
@@ -127,11 +87,6 @@ export function AppliedCouponResourceToJSONTyped(value?: AppliedCouponResource |
127
87
  'id': value['id'],
128
88
  'code': value['code'],
129
89
  'name': value['name'],
130
- 'type': value['type'],
131
- 'discountType': value['discountType'],
132
- 'discountAmount': value['discountAmount'],
133
- 'minAmount': value['minAmount'],
134
- 'minProducts': value['minProducts'],
135
90
  'discountTotal': value['discountTotal'],
136
91
  };
137
92
  }
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
- if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -114,12 +114,6 @@ export interface FrontendCartResource {
114
114
  * @memberof FrontendCartResource
115
115
  */
116
116
  coupons: Array<FrontendCartResourceCouponsInner>;
117
- /**
118
- *
119
- * @type {string}
120
- * @memberof FrontendCartResource
121
- */
122
- couponWarning: string;
123
117
  /**
124
118
  *
125
119
  * @type {number}
@@ -200,7 +194,6 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
200
194
  if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
201
195
  if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
202
196
  if (!('coupons' in value) || value['coupons'] === undefined) return false;
203
- if (!('couponWarning' in value) || value['couponWarning'] === undefined) return false;
204
197
  if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
205
198
  if (!('subtotalAfterDiscounts' in value) || value['subtotalAfterDiscounts'] === undefined) return false;
206
199
  if (!('promotionalDiscount' in value) || value['promotionalDiscount'] === undefined) return false;
@@ -236,7 +229,6 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
236
229
  'billingAddress': AddressResourceFromJSON(json['billingAddress']),
237
230
  'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
238
231
  'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
239
- 'couponWarning': json['couponWarning'],
240
232
  'subtotal': json['subtotal'],
241
233
  'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
242
234
  'promotionalDiscount': json['promotionalDiscount'],
@@ -273,7 +265,6 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
273
265
  'billingAddress': AddressResourceToJSON(value['billingAddress']),
274
266
  'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
275
267
  'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
276
- 'couponWarning': value['couponWarning'],
277
268
  'subtotal': value['subtotal'],
278
269
  'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
279
270
  'promotionalDiscount': value['promotionalDiscount'],
@@ -43,12 +43,6 @@ export interface ProductCategoryLiteResource {
43
43
  * @memberof ProductCategoryLiteResource
44
44
  */
45
45
  isAutomated: boolean;
46
- /**
47
- *
48
- * @type {boolean}
49
- * @memberof ProductCategoryLiteResource
50
- */
51
- isParent: boolean;
52
46
  }
53
47
 
54
48
  /**
@@ -58,7 +52,6 @@ export function instanceOfProductCategoryLiteResource(value: object): value is P
58
52
  if (!('name' in value) || value['name'] === undefined) return false;
59
53
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
60
54
  if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
61
- if (!('isParent' in value) || value['isParent'] === undefined) return false;
62
55
  return true;
63
56
  }
64
57
 
@@ -76,7 +69,6 @@ export function ProductCategoryLiteResourceFromJSONTyped(json: any, ignoreDiscri
76
69
  'name': json['name'],
77
70
  'siteId': json['siteId'],
78
71
  'isAutomated': json['isAutomated'],
79
- 'isParent': json['isParent'],
80
72
  };
81
73
  }
82
74
 
@@ -95,7 +87,6 @@ export function ProductCategoryLiteResourceToJSONTyped(value?: ProductCategoryLi
95
87
  'name': value['name'],
96
88
  'siteId': value['siteId'],
97
89
  'isAutomated': value['isAutomated'],
98
- 'isParent': value['isParent'],
99
90
  };
100
91
  }
101
92
 
@@ -58,12 +58,6 @@ export interface ProductChildListResource {
58
58
  * @memberof ProductChildListResource
59
59
  */
60
60
  name: string;
61
- /**
62
- *
63
- * @type {string}
64
- * @memberof ProductChildListResource
65
- */
66
- fullName: string;
67
61
  /**
68
62
  *
69
63
  * @type {string}
@@ -121,7 +115,6 @@ export function instanceOfProductChildListResource(value: object): value is Prod
121
115
  if (!('id' in value) || value['id'] === undefined) return false;
122
116
  if (!('sku' in value) || value['sku'] === undefined) return false;
123
117
  if (!('name' in value) || value['name'] === undefined) return false;
124
- if (!('fullName' in value) || value['fullName'] === undefined) return false;
125
118
  if (!('model' in value) || value['model'] === undefined) return false;
126
119
  if (!('stock' in value) || value['stock'] === undefined) return false;
127
120
  if (!('displayInSocialFeed' in value) || value['displayInSocialFeed'] === undefined) return false;
@@ -145,7 +138,6 @@ export function ProductChildListResourceFromJSONTyped(json: any, ignoreDiscrimin
145
138
  'parentId': json['parentId'] == null ? undefined : json['parentId'],
146
139
  'sku': json['sku'],
147
140
  'name': json['name'],
148
- 'fullName': json['fullName'],
149
141
  'model': json['model'],
150
142
  'stock': json['stock'],
151
143
  'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
@@ -172,7 +164,6 @@ export function ProductChildListResourceToJSONTyped(value?: ProductChildListReso
172
164
  'parentId': value['parentId'],
173
165
  'sku': value['sku'],
174
166
  'name': value['name'],
175
- 'fullName': value['fullName'],
176
167
  'model': value['model'],
177
168
  'stock': value['stock'],
178
169
  'isDisabled': value['isDisabled'],
@@ -121,12 +121,6 @@ export interface SearchCartsRequest {
121
121
  * @memberof SearchCartsRequest
122
122
  */
123
123
  includesRelations?: boolean;
124
- /**
125
- *
126
- * @type {number}
127
- * @memberof SearchCartsRequest
128
- */
129
- couponId?: number | null;
130
124
  }
131
125
 
132
126
 
@@ -185,7 +179,6 @@ export function SearchCartsRequestFromJSONTyped(json: any, ignoreDiscriminator:
185
179
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
186
180
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
187
181
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
188
- 'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
189
182
  };
190
183
  }
191
184
 
@@ -217,7 +210,6 @@ export function SearchCartsRequestToJSONTyped(value?: SearchCartsRequest | null,
217
210
  'related_id': value['relatedId'],
218
211
  'related_type': value['relatedType'],
219
212
  'includes_relations': value['includesRelations'],
220
- 'coupon_id': value['couponId'],
221
213
  };
222
214
  }
223
215
 
@@ -133,12 +133,6 @@ export interface SearchOrdersRequest {
133
133
  * @memberof SearchOrdersRequest
134
134
  */
135
135
  includesRelations?: boolean;
136
- /**
137
- *
138
- * @type {number}
139
- * @memberof SearchOrdersRequest
140
- */
141
- couponId?: number | null;
142
136
  }
143
137
 
144
138
 
@@ -200,7 +194,6 @@ export function SearchOrdersRequestFromJSONTyped(json: any, ignoreDiscriminator:
200
194
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
201
195
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
202
196
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
203
- 'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
204
197
  };
205
198
  }
206
199
 
@@ -234,7 +227,6 @@ export function SearchOrdersRequestToJSONTyped(value?: SearchOrdersRequest | nul
234
227
  'related_id': value['relatedId'],
235
228
  'related_type': value['relatedType'],
236
229
  'includes_relations': value['includesRelations'],
237
- 'coupon_id': value['couponId'],
238
230
  };
239
231
  }
240
232
 
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
48
48
  * @type {string}
49
49
  * @memberof StoreFrontendResource
50
50
  */
51
- website: string;
51
+ website?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine: string;
81
+ tagLine?: string | null;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -106,11 +106,9 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
106
106
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
107
107
  if (!('name' in value) || value['name'] === undefined) return false;
108
108
  if (!('email' in value) || value['email'] === undefined) return false;
109
- if (!('website' in value) || value['website'] === undefined) return false;
110
109
  if (!('phone' in value) || value['phone'] === undefined) return false;
111
110
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
112
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
113
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
114
112
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
115
113
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
116
114
  return true;
@@ -130,12 +128,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
130
128
  'siteId': json['siteId'],
131
129
  'name': json['name'],
132
130
  'email': json['email'],
133
- 'website': json['website'],
131
+ 'website': json['website'] == null ? undefined : json['website'],
134
132
  'phone': json['phone'],
135
133
  'address': json['address'] == null ? undefined : json['address'],
136
134
  'latitude': json['latitude'],
137
135
  'longitude': json['longitude'],
138
- 'tagLine': json['tagLine'],
136
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
139
137
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
140
138
  'specialDates': json['specialDates'],
141
139
  'suppliers': json['suppliers'],
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website?: string | null;
104
+ website: string;
105
105
  /**
106
106
  *
107
107
  * @type {number}
@@ -151,6 +151,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
152
  if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
153
153
  if (!('email' in value) || value['email'] === undefined) return false;
154
+ if (!('website' in value) || value['website'] === undefined) return false;
154
155
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
155
156
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
156
157
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -177,7 +178,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
177
178
  'latitude': json['latitude'],
178
179
  'tagLine': json['tagLine'],
179
180
  'email': json['email'],
180
- 'website': json['website'] == null ? undefined : json['website'],
181
+ 'website': json['website'],
181
182
  'netsuiteId': json['netsuiteId'],
182
183
  'displayNetsuiteId': json['displayNetsuiteId'],
183
184
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {object}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date?: string | null;
45
+ date: object;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
69
69
  export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
+ if (!('date' in value) || value['date'] === undefined) return false;
72
73
  if (!('closed' in value) || value['closed'] === undefined) return false;
73
74
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
74
75
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
88
89
  'id': json['id'] == null ? undefined : json['id'],
89
90
  'name': json['name'],
90
91
  'hours': json['hours'],
91
- 'date': json['date'] == null ? undefined : json['date'],
92
+ 'date': json['date'],
92
93
  'closed': json['closed'],
93
94
  'displayStartDate': json['displayStartDate'],
94
95
  'displayEndDate': json['displayEndDate'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {object}
42
+ * @type {string}
43
43
  * @memberof StoreSpecialDateResource
44
44
  */
45
- date: object;
45
+ date?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
69
69
  export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
70
70
  if (!('name' in value) || value['name'] === undefined) return false;
71
71
  if (!('hours' in value) || value['hours'] === undefined) return false;
72
- if (!('date' in value) || value['date'] === undefined) return false;
73
72
  if (!('closed' in value) || value['closed'] === undefined) return false;
74
73
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
75
74
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
89
88
  'id': json['id'] == null ? undefined : json['id'],
90
89
  'name': json['name'],
91
90
  'hours': json['hours'],
92
- 'date': json['date'],
91
+ 'date': json['date'] == null ? undefined : json['date'],
93
92
  'closed': json['closed'],
94
93
  'displayStartDate': json['displayStartDate'],
95
94
  'displayEndDate': json['displayEndDate'],
@@ -0,0 +1,66 @@
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 SuburbValidationResource
20
+ */
21
+ export interface SuburbValidationResource {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof SuburbValidationResource
26
+ */
27
+ found: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SuburbValidationResource interface.
32
+ */
33
+ export function instanceOfSuburbValidationResource(value: object): value is SuburbValidationResource {
34
+ if (!('found' in value) || value['found'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function SuburbValidationResourceFromJSON(json: any): SuburbValidationResource {
39
+ return SuburbValidationResourceFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function SuburbValidationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResource {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'found': json['found'],
49
+ };
50
+ }
51
+
52
+ export function SuburbValidationResourceToJSON(json: any): SuburbValidationResource {
53
+ return SuburbValidationResourceToJSONTyped(json, false);
54
+ }
55
+
56
+ export function SuburbValidationResourceToJSONTyped(value?: SuburbValidationResource | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'found': value['found'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,73 @@
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
+ import type { SuburbValidationResource } from './SuburbValidationResource';
17
+ import {
18
+ SuburbValidationResourceFromJSON,
19
+ SuburbValidationResourceFromJSONTyped,
20
+ SuburbValidationResourceToJSON,
21
+ SuburbValidationResourceToJSONTyped,
22
+ } from './SuburbValidationResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SuburbValidationResourceArrayResponse
28
+ */
29
+ export interface SuburbValidationResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<SuburbValidationResource>}
33
+ * @memberof SuburbValidationResourceArrayResponse
34
+ */
35
+ data?: Array<SuburbValidationResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SuburbValidationResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfSuburbValidationResourceArrayResponse(value: object): value is SuburbValidationResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function SuburbValidationResourceArrayResponseFromJSON(json: any): SuburbValidationResourceArrayResponse {
46
+ return SuburbValidationResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SuburbValidationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SuburbValidationResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function SuburbValidationResourceArrayResponseToJSON(json: any): SuburbValidationResourceArrayResponse {
60
+ return SuburbValidationResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function SuburbValidationResourceArrayResponseToJSONTyped(value?: SuburbValidationResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(SuburbValidationResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,93 @@
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 ValidateSuburbRequest
20
+ */
21
+ export interface ValidateSuburbRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ValidateSuburbRequest
26
+ */
27
+ siteId: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ValidateSuburbRequest
32
+ */
33
+ suburb: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ValidateSuburbRequest
38
+ */
39
+ state: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ValidateSuburbRequest
44
+ */
45
+ postcode: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ValidateSuburbRequest interface.
50
+ */
51
+ export function instanceOfValidateSuburbRequest(value: object): value is ValidateSuburbRequest {
52
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
53
+ if (!('suburb' in value) || value['suburb'] === undefined) return false;
54
+ if (!('state' in value) || value['state'] === undefined) return false;
55
+ if (!('postcode' in value) || value['postcode'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function ValidateSuburbRequestFromJSON(json: any): ValidateSuburbRequest {
60
+ return ValidateSuburbRequestFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function ValidateSuburbRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateSuburbRequest {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'siteId': json['site_id'],
70
+ 'suburb': json['suburb'],
71
+ 'state': json['state'],
72
+ 'postcode': json['postcode'],
73
+ };
74
+ }
75
+
76
+ export function ValidateSuburbRequestToJSON(json: any): ValidateSuburbRequest {
77
+ return ValidateSuburbRequestToJSONTyped(json, false);
78
+ }
79
+
80
+ export function ValidateSuburbRequestToJSONTyped(value?: ValidateSuburbRequest | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'site_id': value['siteId'],
88
+ 'suburb': value['suburb'],
89
+ 'state': value['state'],
90
+ 'postcode': value['postcode'],
91
+ };
92
+ }
93
+