@digital8/lighting-illusions-ts-sdk 0.0.2498 → 0.0.2499

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 (105) 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 +3 -1
  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 -2
  15. package/dist/models/OrderFulfillmentResource.d.ts +1 -1
  16. package/dist/models/OrderFulfillmentResource.js +1 -3
  17. package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
  18. package/dist/models/ProductCategoryLiteResource.js +0 -4
  19. package/dist/models/ProductChildListResource.d.ts +0 -6
  20. package/dist/models/ProductChildListResource.js +0 -4
  21. package/dist/models/SearchCartsRequest.d.ts +0 -6
  22. package/dist/models/SearchCartsRequest.js +0 -2
  23. package/dist/models/SearchOrdersRequest.d.ts +0 -6
  24. package/dist/models/SearchOrdersRequest.js +0 -2
  25. package/dist/models/StoreFrontendResource.d.ts +1 -1
  26. package/dist/models/StoreFrontendResource.js +1 -3
  27. package/dist/models/StoreListResource.d.ts +1 -1
  28. package/dist/models/StoreListResource.js +3 -1
  29. package/dist/models/StoreResource.d.ts +2 -2
  30. package/dist/models/StoreResource.js +2 -6
  31. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  32. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  33. package/dist/models/SuburbValidationResource.d.ts +32 -0
  34. package/dist/models/SuburbValidationResource.js +51 -0
  35. package/dist/models/SuburbValidationResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/SuburbValidationResourceArrayResponse.js +50 -0
  37. package/dist/models/ValidateSuburbRequest.d.ts +50 -0
  38. package/dist/models/ValidateSuburbRequest.js +63 -0
  39. package/dist/models/index.d.ts +3 -14
  40. package/dist/models/index.js +3 -14
  41. package/package.json +1 -1
  42. package/src/apis/AuspostApi.ts +69 -0
  43. package/src/apis/index.ts +1 -1
  44. package/src/models/AddressFrontendResource.ts +3 -2
  45. package/src/models/AppliedCouponResource.ts +0 -45
  46. package/src/models/ExternalApiLogResource.ts +2 -3
  47. package/src/models/FrontendCartResource.ts +0 -8
  48. package/src/models/OrderFulfillmentResource.ts +2 -3
  49. package/src/models/ProductCategoryLiteResource.ts +0 -9
  50. package/src/models/ProductChildListResource.ts +0 -9
  51. package/src/models/SearchCartsRequest.ts +0 -8
  52. package/src/models/SearchOrdersRequest.ts +0 -8
  53. package/src/models/StoreFrontendResource.ts +2 -3
  54. package/src/models/StoreListResource.ts +3 -2
  55. package/src/models/StoreResource.ts +4 -6
  56. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  57. package/src/models/SuburbValidationResource.ts +66 -0
  58. package/src/models/SuburbValidationResourceArrayResponse.ts +73 -0
  59. package/src/models/ValidateSuburbRequest.ts +93 -0
  60. package/src/models/index.ts +3 -14
  61. package/dist/apis/CouponsApi.d.ts +0 -85
  62. package/dist/apis/CouponsApi.js +0 -355
  63. package/dist/models/CouponListResource.d.ts +0 -99
  64. package/dist/models/CouponListResource.js +0 -91
  65. package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
  66. package/dist/models/CouponListResourceArrayResponse.js +0 -50
  67. package/dist/models/CouponLiteResource.d.ts +0 -44
  68. package/dist/models/CouponLiteResource.js +0 -57
  69. package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
  70. package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
  71. package/dist/models/CouponResource.d.ts +0 -163
  72. package/dist/models/CouponResource.js +0 -135
  73. package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
  74. package/dist/models/CouponResourceArrayResponse.js +0 -50
  75. package/dist/models/CouponType.d.ts +0 -26
  76. package/dist/models/CouponType.js +0 -52
  77. package/dist/models/CreateCouponRequest.d.ts +0 -126
  78. package/dist/models/CreateCouponRequest.js +0 -107
  79. package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
  80. package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
  81. package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
  82. package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
  83. package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
  84. package/dist/models/PaginatedCouponResourceResponse.js +0 -57
  85. package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
  86. package/dist/models/SearchAllCouponsRequest.js +0 -85
  87. package/dist/models/SearchCouponsRequest.d.ts +0 -137
  88. package/dist/models/SearchCouponsRequest.js +0 -97
  89. package/dist/models/UpdateCouponRequest.d.ts +0 -120
  90. package/dist/models/UpdateCouponRequest.js +0 -103
  91. package/src/apis/CouponsApi.ts +0 -286
  92. package/src/models/CouponListResource.ts +0 -170
  93. package/src/models/CouponListResourceArrayResponse.ts +0 -73
  94. package/src/models/CouponLiteResource.ts +0 -83
  95. package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
  96. package/src/models/CouponResource.ts +0 -288
  97. package/src/models/CouponResourceArrayResponse.ts +0 -73
  98. package/src/models/CouponType.ts +0 -54
  99. package/src/models/CreateCouponRequest.ts +0 -207
  100. package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
  101. package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
  102. package/src/models/PaginatedCouponResourceResponse.ts +0 -90
  103. package/src/models/SearchAllCouponsRequest.ts +0 -154
  104. package/src/models/SearchCouponsRequest.ts +0 -202
  105. 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 | null;
123
117
  /**
124
118
  *
125
119
  * @type {number}
@@ -235,7 +229,6 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
235
229
  'billingAddress': AddressResourceFromJSON(json['billingAddress']),
236
230
  'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
237
231
  'coupons': ((json['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerFromJSON)),
238
- 'couponWarning': json['couponWarning'] == null ? undefined : json['couponWarning'],
239
232
  'subtotal': json['subtotal'],
240
233
  'subtotalAfterDiscounts': json['subtotalAfterDiscounts'],
241
234
  'promotionalDiscount': json['promotionalDiscount'],
@@ -272,7 +265,6 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
272
265
  'billingAddress': AddressResourceToJSON(value['billingAddress']),
273
266
  'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(FrontendLineItemResourceToJSON)),
274
267
  'coupons': ((value['coupons'] as Array<any>).map(FrontendCartResourceCouponsInnerToJSON)),
275
- 'couponWarning': value['couponWarning'],
276
268
  'subtotal': value['subtotal'],
277
269
  'subtotalAfterDiscounts': value['subtotalAfterDiscounts'],
278
270
  'promotionalDiscount': value['promotionalDiscount'],
@@ -56,7 +56,7 @@ export interface OrderFulfillmentResource {
56
56
  * @type {string}
57
57
  * @memberof OrderFulfillmentResource
58
58
  */
59
- trackingUrl: string;
59
+ trackingUrl?: string | null;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -103,7 +103,6 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
103
103
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
104
104
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
105
105
  if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
106
- if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
107
106
  if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
108
107
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
109
108
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -125,7 +124,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
125
124
  'orderId': json['orderId'],
126
125
  'dateShipped': (new Date(json['dateShipped'])),
127
126
  'trackingNumber': json['trackingNumber'],
128
- 'trackingUrl': json['trackingUrl'],
127
+ 'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
129
128
  'trackingCompany': json['trackingCompany'],
130
129
  'docnum': json['docnum'],
131
130
  'netsuiteId': json['netsuiteId'],
@@ -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}
@@ -106,7 +106,6 @@ 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;
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
130
129
  'siteId': json['siteId'],
131
130
  'name': json['name'],
132
131
  'email': json['email'],
133
- 'website': json['website'],
132
+ 'website': json['website'] == null ? undefined : json['website'],
134
133
  'phone': json['phone'],
135
134
  'address': json['address'] == null ? undefined : json['address'],
136
135
  'latitude': json['latitude'],
@@ -80,7 +80,7 @@ export interface StoreListResource {
80
80
  * @type {string}
81
81
  * @memberof StoreListResource
82
82
  */
83
- website?: string | null;
83
+ website: string;
84
84
  /**
85
85
  *
86
86
  * @type {number}
@@ -111,6 +111,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
111
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
112
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
113
113
  if (!('email' in value) || value['email'] === undefined) return false;
114
+ if (!('website' in value) || value['website'] === undefined) return false;
114
115
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
115
116
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
116
117
  return true;
@@ -134,7 +135,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
134
135
  'latitude': json['latitude'],
135
136
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
136
137
  'email': json['email'],
137
- 'website': json['website'] == null ? undefined : json['website'],
138
+ 'website': json['website'],
138
139
  'netsuiteId': json['netsuiteId'],
139
140
  'displayNetsuiteId': json['displayNetsuiteId'],
140
141
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine: string;
92
+ tagLine?: string | null;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website: string;
104
+ website?: string | null;
105
105
  /**
106
106
  *
107
107
  * @type {number}
@@ -149,9 +149,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
149
149
  if (!('phone' in value) || value['phone'] === undefined) return false;
150
150
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
153
152
  if (!('email' in value) || value['email'] === undefined) return false;
154
- if (!('website' in value) || value['website'] === undefined) return false;
155
153
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
156
154
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
157
155
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -176,9 +174,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
176
174
  'phone': json['phone'],
177
175
  'longitude': json['longitude'],
178
176
  'latitude': json['latitude'],
179
- 'tagLine': json['tagLine'],
177
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
180
178
  'email': json['email'],
181
- 'website': json['website'],
179
+ 'website': json['website'] == null ? undefined : json['website'],
182
180
  'netsuiteId': json['netsuiteId'],
183
181
  'displayNetsuiteId': json['displayNetsuiteId'],
184
182
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {object}
42
+ * @type {string}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date: object;
45
+ date?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,7 +69,6 @@ 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;
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 StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
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
+