@digital8/lighting-illusions-ts-sdk 0.0.2559 → 0.0.2561

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 +2 -2
  2. package/README.md +2 -2
  3. package/dist/apis/OrdersApi.d.ts +9 -1
  4. package/dist/apis/OrdersApi.js +42 -0
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +3 -1
  7. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  8. package/dist/models/ExternalApiLogResource.js +3 -1
  9. package/dist/models/NetsuiteSyncFailureCountResource.d.ts +32 -0
  10. package/dist/models/NetsuiteSyncFailureCountResource.js +51 -0
  11. package/dist/models/NetsuiteSyncFailureCountResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/NetsuiteSyncFailureCountResourceArrayResponse.js +50 -0
  13. package/dist/models/OrderFulfillmentResource.d.ts +1 -1
  14. package/dist/models/OrderFulfillmentResource.js +3 -1
  15. package/dist/models/SearchOrdersRequest.d.ts +6 -0
  16. package/dist/models/SearchOrdersRequest.js +2 -0
  17. package/dist/models/StoreFrontendResource.d.ts +1 -1
  18. package/dist/models/StoreFrontendResource.js +1 -3
  19. package/dist/models/StoreResource.d.ts +1 -1
  20. package/dist/models/StoreResource.js +1 -3
  21. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  22. package/dist/models/StoreSpecialDateResource.js +1 -3
  23. package/dist/models/index.d.ts +2 -2
  24. package/dist/models/index.js +2 -2
  25. package/package.json +1 -1
  26. package/src/apis/OrdersApi.ts +32 -0
  27. package/src/models/AddressResource.ts +3 -2
  28. package/src/models/ExternalApiLogResource.ts +3 -2
  29. package/src/models/NetsuiteSyncFailureCountResource.ts +66 -0
  30. package/src/models/NetsuiteSyncFailureCountResourceArrayResponse.ts +73 -0
  31. package/src/models/OrderFulfillmentResource.ts +3 -2
  32. package/src/models/SearchOrdersRequest.ts +8 -0
  33. package/src/models/StoreFrontendResource.ts +2 -3
  34. package/src/models/StoreResource.ts +2 -3
  35. package/src/models/StoreSpecialDateResource.ts +3 -4
  36. package/src/models/index.ts +2 -2
  37. package/dist/models/StoreLocationResource.d.ts +0 -38
  38. package/dist/models/StoreLocationResource.js +0 -55
  39. package/dist/models/StoreLocationResourceArrayResponse.d.ts +0 -33
  40. package/dist/models/StoreLocationResourceArrayResponse.js +0 -50
  41. package/src/models/StoreLocationResource.ts +0 -75
  42. package/src/models/StoreLocationResourceArrayResponse.ts +0 -73
@@ -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 NetsuiteSyncFailureCountResource
20
+ */
21
+ export interface NetsuiteSyncFailureCountResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof NetsuiteSyncFailureCountResource
26
+ */
27
+ count: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the NetsuiteSyncFailureCountResource interface.
32
+ */
33
+ export function instanceOfNetsuiteSyncFailureCountResource(value: object): value is NetsuiteSyncFailureCountResource {
34
+ if (!('count' in value) || value['count'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function NetsuiteSyncFailureCountResourceFromJSON(json: any): NetsuiteSyncFailureCountResource {
39
+ return NetsuiteSyncFailureCountResourceFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function NetsuiteSyncFailureCountResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetsuiteSyncFailureCountResource {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'count': json['count'],
49
+ };
50
+ }
51
+
52
+ export function NetsuiteSyncFailureCountResourceToJSON(json: any): NetsuiteSyncFailureCountResource {
53
+ return NetsuiteSyncFailureCountResourceToJSONTyped(json, false);
54
+ }
55
+
56
+ export function NetsuiteSyncFailureCountResourceToJSONTyped(value?: NetsuiteSyncFailureCountResource | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'count': value['count'],
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 { NetsuiteSyncFailureCountResource } from './NetsuiteSyncFailureCountResource';
17
+ import {
18
+ NetsuiteSyncFailureCountResourceFromJSON,
19
+ NetsuiteSyncFailureCountResourceFromJSONTyped,
20
+ NetsuiteSyncFailureCountResourceToJSON,
21
+ NetsuiteSyncFailureCountResourceToJSONTyped,
22
+ } from './NetsuiteSyncFailureCountResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface NetsuiteSyncFailureCountResourceArrayResponse
28
+ */
29
+ export interface NetsuiteSyncFailureCountResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<NetsuiteSyncFailureCountResource>}
33
+ * @memberof NetsuiteSyncFailureCountResourceArrayResponse
34
+ */
35
+ data?: Array<NetsuiteSyncFailureCountResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the NetsuiteSyncFailureCountResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfNetsuiteSyncFailureCountResourceArrayResponse(value: object): value is NetsuiteSyncFailureCountResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function NetsuiteSyncFailureCountResourceArrayResponseFromJSON(json: any): NetsuiteSyncFailureCountResourceArrayResponse {
46
+ return NetsuiteSyncFailureCountResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function NetsuiteSyncFailureCountResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetsuiteSyncFailureCountResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(NetsuiteSyncFailureCountResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function NetsuiteSyncFailureCountResourceArrayResponseToJSON(json: any): NetsuiteSyncFailureCountResourceArrayResponse {
60
+ return NetsuiteSyncFailureCountResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function NetsuiteSyncFailureCountResourceArrayResponseToJSONTyped(value?: NetsuiteSyncFailureCountResourceArrayResponse | 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(NetsuiteSyncFailureCountResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -62,7 +62,7 @@ export interface OrderFulfillmentResource {
62
62
  * @type {string}
63
63
  * @memberof OrderFulfillmentResource
64
64
  */
65
- trackingCompany?: string | null;
65
+ trackingCompany: string;
66
66
  /**
67
67
  *
68
68
  * @type {string}
@@ -104,6 +104,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
104
104
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
105
105
  if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
106
106
  if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
107
+ if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
107
108
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
108
109
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
109
110
  if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
@@ -125,7 +126,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
125
126
  'dateShipped': (new Date(json['dateShipped'])),
126
127
  'trackingNumber': json['trackingNumber'],
127
128
  'trackingUrl': json['trackingUrl'],
128
- 'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
129
+ 'trackingCompany': json['trackingCompany'],
129
130
  'docnum': json['docnum'],
130
131
  'netsuiteId': json['netsuiteId'],
131
132
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -133,6 +133,12 @@ export interface SearchOrdersRequest {
133
133
  * @memberof SearchOrdersRequest
134
134
  */
135
135
  includesRelations?: boolean;
136
+ /**
137
+ *
138
+ * @type {boolean}
139
+ * @memberof SearchOrdersRequest
140
+ */
141
+ failedNetsuiteSync?: boolean;
136
142
  }
137
143
 
138
144
 
@@ -194,6 +200,7 @@ export function SearchOrdersRequestFromJSONTyped(json: any, ignoreDiscriminator:
194
200
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
195
201
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
196
202
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
203
+ 'failedNetsuiteSync': json['failed_netsuite_sync'] == null ? undefined : json['failed_netsuite_sync'],
197
204
  };
198
205
  }
199
206
 
@@ -227,6 +234,7 @@ export function SearchOrdersRequestToJSONTyped(value?: SearchOrdersRequest | nul
227
234
  'related_id': value['relatedId'],
228
235
  'related_type': value['relatedType'],
229
236
  'includes_relations': value['includesRelations'],
237
+ 'failed_netsuite_sync': value['failedNetsuiteSync'],
230
238
  };
231
239
  }
232
240
 
@@ -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}
@@ -109,7 +109,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
109
109
  if (!('phone' in value) || value['phone'] === undefined) return false;
110
110
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
111
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
112
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
114
113
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
115
114
  return true;
@@ -134,7 +133,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
134
133
  'address': json['address'] == null ? undefined : json['address'],
135
134
  'latitude': json['latitude'],
136
135
  'longitude': json['longitude'],
137
- 'tagLine': json['tagLine'],
136
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
138
137
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
139
138
  'specialDates': json['specialDates'],
140
139
  'suppliers': json['suppliers'],
@@ -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}
@@ -149,7 +149,6 @@ 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
153
  if (!('website' in value) || value['website'] === undefined) return false;
155
154
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
@@ -176,7 +175,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
176
175
  'phone': json['phone'],
177
176
  'longitude': json['longitude'],
178
177
  'latitude': json['latitude'],
179
- 'tagLine': json['tagLine'],
178
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
180
179
  'email': json['email'],
181
180
  'website': json['website'],
182
181
  'netsuiteId': json['netsuiteId'],
@@ -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'],
@@ -233,6 +233,8 @@ export * from './ModelAttributeListResource';
233
233
  export * from './ModelAttributeListResourceArrayResponse';
234
234
  export * from './ModelAttributeResource';
235
235
  export * from './ModelAttributeResourceArrayResponse';
236
+ export * from './NetsuiteSyncFailureCountResource';
237
+ export * from './NetsuiteSyncFailureCountResourceArrayResponse';
236
238
  export * from './OmnisendSyncLiteResource';
237
239
  export * from './OmnisendSyncLiteResourceArrayResponse';
238
240
  export * from './OrderFulfillmentLineItemResource';
@@ -566,8 +568,6 @@ export * from './StoreListResource';
566
568
  export * from './StoreListResourceArrayResponse';
567
569
  export * from './StoreLiteResource';
568
570
  export * from './StoreLiteResourceArrayResponse';
569
- export * from './StoreLocationResource';
570
- export * from './StoreLocationResourceArrayResponse';
571
571
  export * from './StoreResource';
572
572
  export * from './StoreResourceArrayResponse';
573
573
  export * from './StoreSpecialDateFrontendResource';
@@ -1,38 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface StoreLocationResource
16
- */
17
- export interface StoreLocationResource {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof StoreLocationResource
22
- */
23
- latitude: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof StoreLocationResource
28
- */
29
- longitude: number;
30
- }
31
- /**
32
- * Check if a given object implements the StoreLocationResource interface.
33
- */
34
- export declare function instanceOfStoreLocationResource(value: object): value is StoreLocationResource;
35
- export declare function StoreLocationResourceFromJSON(json: any): StoreLocationResource;
36
- export declare function StoreLocationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResource;
37
- export declare function StoreLocationResourceToJSON(json: any): StoreLocationResource;
38
- export declare function StoreLocationResourceToJSONTyped(value?: StoreLocationResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfStoreLocationResource = instanceOfStoreLocationResource;
17
- exports.StoreLocationResourceFromJSON = StoreLocationResourceFromJSON;
18
- exports.StoreLocationResourceFromJSONTyped = StoreLocationResourceFromJSONTyped;
19
- exports.StoreLocationResourceToJSON = StoreLocationResourceToJSON;
20
- exports.StoreLocationResourceToJSONTyped = StoreLocationResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the StoreLocationResource interface.
23
- */
24
- function instanceOfStoreLocationResource(value) {
25
- if (!('latitude' in value) || value['latitude'] === undefined)
26
- return false;
27
- if (!('longitude' in value) || value['longitude'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function StoreLocationResourceFromJSON(json) {
32
- return StoreLocationResourceFromJSONTyped(json, false);
33
- }
34
- function StoreLocationResourceFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'latitude': json['latitude'],
40
- 'longitude': json['longitude'],
41
- };
42
- }
43
- function StoreLocationResourceToJSON(json) {
44
- return StoreLocationResourceToJSONTyped(json, false);
45
- }
46
- function StoreLocationResourceToJSONTyped(value, ignoreDiscriminator) {
47
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'latitude': value['latitude'],
53
- 'longitude': value['longitude'],
54
- };
55
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { StoreLocationResource } from './StoreLocationResource';
13
- /**
14
- *
15
- * @export
16
- * @interface StoreLocationResourceArrayResponse
17
- */
18
- export interface StoreLocationResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<StoreLocationResource>}
22
- * @memberof StoreLocationResourceArrayResponse
23
- */
24
- data?: Array<StoreLocationResource>;
25
- }
26
- /**
27
- * Check if a given object implements the StoreLocationResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfStoreLocationResourceArrayResponse(value: object): value is StoreLocationResourceArrayResponse;
30
- export declare function StoreLocationResourceArrayResponseFromJSON(json: any): StoreLocationResourceArrayResponse;
31
- export declare function StoreLocationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResourceArrayResponse;
32
- export declare function StoreLocationResourceArrayResponseToJSON(json: any): StoreLocationResourceArrayResponse;
33
- export declare function StoreLocationResourceArrayResponseToJSONTyped(value?: StoreLocationResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfStoreLocationResourceArrayResponse = instanceOfStoreLocationResourceArrayResponse;
17
- exports.StoreLocationResourceArrayResponseFromJSON = StoreLocationResourceArrayResponseFromJSON;
18
- exports.StoreLocationResourceArrayResponseFromJSONTyped = StoreLocationResourceArrayResponseFromJSONTyped;
19
- exports.StoreLocationResourceArrayResponseToJSON = StoreLocationResourceArrayResponseToJSON;
20
- exports.StoreLocationResourceArrayResponseToJSONTyped = StoreLocationResourceArrayResponseToJSONTyped;
21
- var StoreLocationResource_1 = require("./StoreLocationResource");
22
- /**
23
- * Check if a given object implements the StoreLocationResourceArrayResponse interface.
24
- */
25
- function instanceOfStoreLocationResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function StoreLocationResourceArrayResponseFromJSON(json) {
29
- return StoreLocationResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function StoreLocationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(StoreLocationResource_1.StoreLocationResourceFromJSON)),
37
- };
38
- }
39
- function StoreLocationResourceArrayResponseToJSON(json) {
40
- return StoreLocationResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function StoreLocationResourceArrayResponseToJSONTyped(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(StoreLocationResource_1.StoreLocationResourceToJSON)),
49
- };
50
- }
@@ -1,75 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface StoreLocationResource
20
- */
21
- export interface StoreLocationResource {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof StoreLocationResource
26
- */
27
- latitude: number;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof StoreLocationResource
32
- */
33
- longitude: number;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the StoreLocationResource interface.
38
- */
39
- export function instanceOfStoreLocationResource(value: object): value is StoreLocationResource {
40
- if (!('latitude' in value) || value['latitude'] === undefined) return false;
41
- if (!('longitude' in value) || value['longitude'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function StoreLocationResourceFromJSON(json: any): StoreLocationResource {
46
- return StoreLocationResourceFromJSONTyped(json, false);
47
- }
48
-
49
- export function StoreLocationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResource {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'latitude': json['latitude'],
56
- 'longitude': json['longitude'],
57
- };
58
- }
59
-
60
- export function StoreLocationResourceToJSON(json: any): StoreLocationResource {
61
- return StoreLocationResourceToJSONTyped(json, false);
62
- }
63
-
64
- export function StoreLocationResourceToJSONTyped(value?: StoreLocationResource | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'latitude': value['latitude'],
72
- 'longitude': value['longitude'],
73
- };
74
- }
75
-
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { StoreLocationResource } from './StoreLocationResource';
17
- import {
18
- StoreLocationResourceFromJSON,
19
- StoreLocationResourceFromJSONTyped,
20
- StoreLocationResourceToJSON,
21
- StoreLocationResourceToJSONTyped,
22
- } from './StoreLocationResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface StoreLocationResourceArrayResponse
28
- */
29
- export interface StoreLocationResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<StoreLocationResource>}
33
- * @memberof StoreLocationResourceArrayResponse
34
- */
35
- data?: Array<StoreLocationResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the StoreLocationResourceArrayResponse interface.
40
- */
41
- export function instanceOfStoreLocationResourceArrayResponse(value: object): value is StoreLocationResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function StoreLocationResourceArrayResponseFromJSON(json: any): StoreLocationResourceArrayResponse {
46
- return StoreLocationResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function StoreLocationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(StoreLocationResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function StoreLocationResourceArrayResponseToJSON(json: any): StoreLocationResourceArrayResponse {
60
- return StoreLocationResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function StoreLocationResourceArrayResponseToJSONTyped(value?: StoreLocationResourceArrayResponse | 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(StoreLocationResourceToJSON)),
71
- };
72
- }
73
-