@digital8/lighting-illusions-ts-sdk 0.0.2562 → 0.0.2564

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.
@@ -605,8 +605,6 @@ src/models/StoreListResource.ts
605
605
  src/models/StoreListResourceArrayResponse.ts
606
606
  src/models/StoreLiteResource.ts
607
607
  src/models/StoreLiteResourceArrayResponse.ts
608
- src/models/StoreLocationResource.ts
609
- src/models/StoreLocationResourceArrayResponse.ts
610
608
  src/models/StoreResource.ts
611
609
  src/models/StoreResourceArrayResponse.ts
612
610
  src/models/StoreSpecialDateFrontendResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/lighting-illusions-ts-sdk@0.0.2562
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2564
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.2562 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2564 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- line2?: string | null;
35
+ line2: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -26,6 +26,8 @@ function instanceOfAddressFrontendResource(value) {
26
26
  return false;
27
27
  if (!('line1' in value) || value['line1'] === undefined)
28
28
  return false;
29
+ if (!('line2' in value) || value['line2'] === undefined)
30
+ return false;
29
31
  if (!('postcode' in value) || value['postcode'] === undefined)
30
32
  return false;
31
33
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -48,7 +50,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
48
50
  return {
49
51
  'company': json['company'],
50
52
  'line1': json['line1'],
51
- 'line2': json['line2'] == null ? undefined : json['line2'],
53
+ 'line2': json['line2'],
52
54
  'postcode': json['postcode'],
53
55
  'suburb': json['suburb'],
54
56
  'country': json['country'],
@@ -38,7 +38,7 @@ export interface AddressResource {
38
38
  * @type {string}
39
39
  * @memberof AddressResource
40
40
  */
41
- addresseeName?: string | null;
41
+ addresseeName: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -56,7 +56,7 @@ export interface AddressResource {
56
56
  * @type {string}
57
57
  * @memberof AddressResource
58
58
  */
59
- line2?: string | null;
59
+ line2: string;
60
60
  /**
61
61
  *
62
62
  * @type {string}
@@ -22,10 +22,14 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressResource interface.
23
23
  */
24
24
  function instanceOfAddressResource(value) {
25
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
+ return false;
25
27
  if (!('company' in value) || value['company'] === undefined)
26
28
  return false;
27
29
  if (!('line1' in value) || value['line1'] === undefined)
28
30
  return false;
31
+ if (!('line2' in value) || value['line2'] === undefined)
32
+ return false;
29
33
  if (!('postcode' in value) || value['postcode'] === undefined)
30
34
  return false;
31
35
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -49,10 +53,10 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
49
53
  'id': json['id'] == null ? undefined : json['id'],
50
54
  'type': json['type'] == null ? undefined : json['type'],
51
55
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
52
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
56
+ 'addresseeName': json['addresseeName'],
53
57
  'company': json['company'],
54
58
  'line1': json['line1'],
55
- 'line2': json['line2'] == null ? undefined : json['line2'],
59
+ 'line2': json['line2'],
56
60
  'postcode': json['postcode'],
57
61
  'suburb': json['suburb'],
58
62
  'country': json['country'],
@@ -39,7 +39,7 @@ export interface OrderFulfillmentResource {
39
39
  * @type {string}
40
40
  * @memberof OrderFulfillmentResource
41
41
  */
42
- trackingNumber?: string | null;
42
+ trackingNumber: string;
43
43
  /**
44
44
  *
45
45
  * @type {string}
@@ -29,6 +29,8 @@ function instanceOfOrderFulfillmentResource(value) {
29
29
  return false;
30
30
  if (!('dateShipped' in value) || value['dateShipped'] === undefined)
31
31
  return false;
32
+ if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
33
+ return false;
32
34
  if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
33
35
  return false;
34
36
  if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
@@ -52,7 +54,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
52
54
  'id': json['id'],
53
55
  'orderId': json['orderId'],
54
56
  'dateShipped': (new Date(json['dateShipped'])),
55
- 'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
57
+ 'trackingNumber': json['trackingNumber'],
56
58
  'trackingUrl': json['trackingUrl'],
57
59
  'trackingCompany': json['trackingCompany'],
58
60
  'docnum': json['docnum'],
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
44
44
  * @type {string}
45
45
  * @memberof StoreFrontendResource
46
46
  */
47
- website: string;
47
+ website?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -28,8 +28,6 @@ function instanceOfStoreFrontendResource(value) {
28
28
  return false;
29
29
  if (!('email' in value) || value['email'] === undefined)
30
30
  return false;
31
- if (!('website' in value) || value['website'] === undefined)
32
- return false;
33
31
  if (!('phone' in value) || value['phone'] === undefined)
34
32
  return false;
35
33
  if (!('latitude' in value) || value['latitude'] === undefined)
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
56
54
  'siteId': json['siteId'],
57
55
  'name': json['name'],
58
56
  'email': json['email'],
59
- 'website': json['website'],
57
+ 'website': json['website'] == null ? undefined : json['website'],
60
58
  'phone': json['phone'],
61
59
  'address': json['address'] == null ? undefined : json['address'],
62
60
  'latitude': json['latitude'],
@@ -72,7 +72,7 @@ export interface StoreResource {
72
72
  * @type {string}
73
73
  * @memberof StoreResource
74
74
  */
75
- website?: string | null;
75
+ website: string;
76
76
  /**
77
77
  *
78
78
  * @type {number}
@@ -38,6 +38,8 @@ function instanceOfStoreResource(value) {
38
38
  return false;
39
39
  if (!('email' in value) || value['email'] === undefined)
40
40
  return false;
41
+ if (!('website' in value) || value['website'] === undefined)
42
+ return false;
41
43
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
42
44
  return false;
43
45
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
@@ -66,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
66
68
  'latitude': json['latitude'],
67
69
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
68
70
  'email': json['email'],
69
- 'website': json['website'] == null ? undefined : json['website'],
71
+ 'website': json['website'],
70
72
  'netsuiteId': json['netsuiteId'],
71
73
  'displayNetsuiteId': json['displayNetsuiteId'],
72
74
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -566,8 +566,6 @@ export * from './StoreListResource';
566
566
  export * from './StoreListResourceArrayResponse';
567
567
  export * from './StoreLiteResource';
568
568
  export * from './StoreLiteResourceArrayResponse';
569
- export * from './StoreLocationResource';
570
- export * from './StoreLocationResourceArrayResponse';
571
569
  export * from './StoreResource';
572
570
  export * from './StoreResourceArrayResponse';
573
571
  export * from './StoreSpecialDateFrontendResource';
@@ -584,8 +584,6 @@ __exportStar(require("./StoreListResource"), exports);
584
584
  __exportStar(require("./StoreListResourceArrayResponse"), exports);
585
585
  __exportStar(require("./StoreLiteResource"), exports);
586
586
  __exportStar(require("./StoreLiteResourceArrayResponse"), exports);
587
- __exportStar(require("./StoreLocationResource"), exports);
588
- __exportStar(require("./StoreLocationResourceArrayResponse"), exports);
589
587
  __exportStar(require("./StoreResource"), exports);
590
588
  __exportStar(require("./StoreResourceArrayResponse"), exports);
591
589
  __exportStar(require("./StoreSpecialDateFrontendResource"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2562",
3
+ "version": "0.0.2564",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- line2?: string | null;
39
+ line2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -75,6 +75,7 @@ export interface AddressFrontendResource {
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
76
  if (!('company' in value) || value['company'] === undefined) return false;
77
77
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
+ if (!('line2' in value) || value['line2'] === undefined) return false;
78
79
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
79
80
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
80
81
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -95,7 +96,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
95
96
 
96
97
  'company': json['company'],
97
98
  'line1': json['line1'],
98
- 'line2': json['line2'] == null ? undefined : json['line2'],
99
+ 'line2': json['line2'],
99
100
  'postcode': json['postcode'],
100
101
  'suburb': json['suburb'],
101
102
  'country': json['country'],
@@ -42,7 +42,7 @@ export interface AddressResource {
42
42
  * @type {string}
43
43
  * @memberof AddressResource
44
44
  */
45
- addresseeName?: string | null;
45
+ addresseeName: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -60,7 +60,7 @@ export interface AddressResource {
60
60
  * @type {string}
61
61
  * @memberof AddressResource
62
62
  */
63
- line2?: string | null;
63
+ line2: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
@@ -97,8 +97,10 @@ export interface AddressResource {
97
97
  * Check if a given object implements the AddressResource interface.
98
98
  */
99
99
  export function instanceOfAddressResource(value: object): value is AddressResource {
100
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
100
101
  if (!('company' in value) || value['company'] === undefined) return false;
101
102
  if (!('line1' in value) || value['line1'] === undefined) return false;
103
+ if (!('line2' in value) || value['line2'] === undefined) return false;
102
104
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
103
105
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
104
106
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -120,10 +122,10 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
120
122
  'id': json['id'] == null ? undefined : json['id'],
121
123
  'type': json['type'] == null ? undefined : json['type'],
122
124
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
123
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
125
+ 'addresseeName': json['addresseeName'],
124
126
  'company': json['company'],
125
127
  'line1': json['line1'],
126
- 'line2': json['line2'] == null ? undefined : json['line2'],
128
+ 'line2': json['line2'],
127
129
  'postcode': json['postcode'],
128
130
  'suburb': json['suburb'],
129
131
  'country': json['country'],
@@ -50,7 +50,7 @@ export interface OrderFulfillmentResource {
50
50
  * @type {string}
51
51
  * @memberof OrderFulfillmentResource
52
52
  */
53
- trackingNumber?: string | null;
53
+ trackingNumber: string;
54
54
  /**
55
55
  *
56
56
  * @type {string}
@@ -102,6 +102,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
102
102
  if (!('id' in value) || value['id'] === undefined) return false;
103
103
  if (!('orderId' in value) || value['orderId'] === undefined) return false;
104
104
  if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
105
+ if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
105
106
  if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
106
107
  if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
107
108
  if (!('docnum' in value) || value['docnum'] === undefined) return false;
@@ -123,7 +124,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
123
124
  'id': json['id'],
124
125
  'orderId': json['orderId'],
125
126
  'dateShipped': (new Date(json['dateShipped'])),
126
- 'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
127
+ 'trackingNumber': json['trackingNumber'],
127
128
  'trackingUrl': json['trackingUrl'],
128
129
  'trackingCompany': json['trackingCompany'],
129
130
  'docnum': json['docnum'],
@@ -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'],
@@ -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}
@@ -150,6 +150,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
150
150
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
152
  if (!('email' in value) || value['email'] === undefined) return false;
153
+ if (!('website' in value) || value['website'] === undefined) return false;
153
154
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
154
155
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
155
156
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -176,7 +177,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
176
177
  'latitude': json['latitude'],
177
178
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
178
179
  'email': json['email'],
179
- 'website': json['website'] == null ? undefined : json['website'],
180
+ 'website': json['website'],
180
181
  'netsuiteId': json['netsuiteId'],
181
182
  'displayNetsuiteId': json['displayNetsuiteId'],
182
183
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -568,8 +568,6 @@ export * from './StoreListResource';
568
568
  export * from './StoreListResourceArrayResponse';
569
569
  export * from './StoreLiteResource';
570
570
  export * from './StoreLiteResourceArrayResponse';
571
- export * from './StoreLocationResource';
572
- export * from './StoreLocationResourceArrayResponse';
573
571
  export * from './StoreResource';
574
572
  export * from './StoreResourceArrayResponse';
575
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
-