@digital8/laravel-auth-template-ts-sdk 0.0.28 → 0.0.30
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.
- package/.openapi-generator/FILES +2 -0
- package/README.md +2 -2
- package/dist/models/AddressResource.d.ts +80 -0
- package/dist/models/AddressResource.js +79 -0
- package/dist/models/AddressResourceArrayResponse.d.ts +33 -0
- package/dist/models/AddressResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/models/AddressResource.ts +136 -0
- package/src/models/AddressResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,8 @@ package.json
|
|
|
6
6
|
src/apis/GeneralApi.ts
|
|
7
7
|
src/apis/index.ts
|
|
8
8
|
src/index.ts
|
|
9
|
+
src/models/AddressResource.ts
|
|
10
|
+
src/models/AddressResourceArrayResponse.ts
|
|
9
11
|
src/models/AssetFileForUploadResource.ts
|
|
10
12
|
src/models/AssetFileForUploadResourceArrayResponse.ts
|
|
11
13
|
src/models/AssetLiteResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/laravel-auth-template-ts-sdk@0.0.
|
|
1
|
+
## @digital8/laravel-auth-template-ts-sdk@0.0.30
|
|
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/laravel-auth-template-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/laravel-auth-template-ts-sdk@0.0.30 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -0,0 +1,80 @@
|
|
|
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 AddressResource
|
|
16
|
+
*/
|
|
17
|
+
export interface AddressResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AddressResource
|
|
22
|
+
*/
|
|
23
|
+
id?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AddressResource
|
|
28
|
+
*/
|
|
29
|
+
addressLine1: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AddressResource
|
|
34
|
+
*/
|
|
35
|
+
addressLine2?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AddressResource
|
|
40
|
+
*/
|
|
41
|
+
suburb: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AddressResource
|
|
46
|
+
*/
|
|
47
|
+
city: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AddressResource
|
|
52
|
+
*/
|
|
53
|
+
state: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AddressResource
|
|
58
|
+
*/
|
|
59
|
+
postCode: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AddressResource
|
|
64
|
+
*/
|
|
65
|
+
country: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AddressResource
|
|
70
|
+
*/
|
|
71
|
+
fullAddress: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the AddressResource interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfAddressResource(value: object): value is AddressResource;
|
|
77
|
+
export declare function AddressResourceFromJSON(json: any): AddressResource;
|
|
78
|
+
export declare function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressResource;
|
|
79
|
+
export declare function AddressResourceToJSON(json: any): AddressResource;
|
|
80
|
+
export declare function AddressResourceToJSONTyped(value?: AddressResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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.instanceOfAddressResource = instanceOfAddressResource;
|
|
17
|
+
exports.AddressResourceFromJSON = AddressResourceFromJSON;
|
|
18
|
+
exports.AddressResourceFromJSONTyped = AddressResourceFromJSONTyped;
|
|
19
|
+
exports.AddressResourceToJSON = AddressResourceToJSON;
|
|
20
|
+
exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AddressResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAddressResource(value) {
|
|
25
|
+
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('city' in value) || value['city'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('postCode' in value) || value['postCode'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('country' in value) || value['country'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('fullAddress' in value) || value['fullAddress'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AddressResourceFromJSON(json) {
|
|
42
|
+
return AddressResourceFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
+
'addressLine1': json['addressLine1'],
|
|
51
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
52
|
+
'suburb': json['suburb'],
|
|
53
|
+
'city': json['city'],
|
|
54
|
+
'state': json['state'],
|
|
55
|
+
'postCode': json['postCode'],
|
|
56
|
+
'country': json['country'],
|
|
57
|
+
'fullAddress': json['fullAddress'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function AddressResourceToJSON(json) {
|
|
61
|
+
return AddressResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function AddressResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
64
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'addressLine1': value['addressLine1'],
|
|
71
|
+
'addressLine2': value['addressLine2'],
|
|
72
|
+
'suburb': value['suburb'],
|
|
73
|
+
'city': value['city'],
|
|
74
|
+
'state': value['state'],
|
|
75
|
+
'postCode': value['postCode'],
|
|
76
|
+
'country': value['country'],
|
|
77
|
+
'fullAddress': value['fullAddress'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AddressResource } from './AddressResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddressResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AddressResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AddressResource>}
|
|
22
|
+
* @memberof AddressResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<AddressResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AddressResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAddressResourceArrayResponse(value: object): value is AddressResourceArrayResponse;
|
|
30
|
+
export declare function AddressResourceArrayResponseFromJSON(json: any): AddressResourceArrayResponse;
|
|
31
|
+
export declare function AddressResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressResourceArrayResponse;
|
|
32
|
+
export declare function AddressResourceArrayResponseToJSON(json: any): AddressResourceArrayResponse;
|
|
33
|
+
export declare function AddressResourceArrayResponseToJSONTyped(value?: AddressResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAddressResourceArrayResponse = instanceOfAddressResourceArrayResponse;
|
|
17
|
+
exports.AddressResourceArrayResponseFromJSON = AddressResourceArrayResponseFromJSON;
|
|
18
|
+
exports.AddressResourceArrayResponseFromJSONTyped = AddressResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.AddressResourceArrayResponseToJSON = AddressResourceArrayResponseToJSON;
|
|
20
|
+
exports.AddressResourceArrayResponseToJSONTyped = AddressResourceArrayResponseToJSONTyped;
|
|
21
|
+
var AddressResource_1 = require("./AddressResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AddressResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAddressResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function AddressResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return AddressResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function AddressResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(AddressResource_1.AddressResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AddressResourceArrayResponseToJSON(json) {
|
|
40
|
+
return AddressResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AddressResourceArrayResponseToJSONTyped(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(AddressResource_1.AddressResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AddressResource"), exports);
|
|
20
|
+
__exportStar(require("./AddressResourceArrayResponse"), exports);
|
|
19
21
|
__exportStar(require("./AssetFileForUploadResource"), exports);
|
|
20
22
|
__exportStar(require("./AssetFileForUploadResourceArrayResponse"), exports);
|
|
21
23
|
__exportStar(require("./AssetLiteResource"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,136 @@
|
|
|
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 AddressResource
|
|
20
|
+
*/
|
|
21
|
+
export interface AddressResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AddressResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AddressResource
|
|
32
|
+
*/
|
|
33
|
+
addressLine1: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AddressResource
|
|
38
|
+
*/
|
|
39
|
+
addressLine2?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AddressResource
|
|
44
|
+
*/
|
|
45
|
+
suburb: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AddressResource
|
|
50
|
+
*/
|
|
51
|
+
city: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof AddressResource
|
|
56
|
+
*/
|
|
57
|
+
state: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AddressResource
|
|
62
|
+
*/
|
|
63
|
+
postCode: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof AddressResource
|
|
68
|
+
*/
|
|
69
|
+
country: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof AddressResource
|
|
74
|
+
*/
|
|
75
|
+
fullAddress: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the AddressResource interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
+
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
83
|
+
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
84
|
+
if (!('city' in value) || value['city'] === undefined) return false;
|
|
85
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
86
|
+
if (!('postCode' in value) || value['postCode'] === undefined) return false;
|
|
87
|
+
if (!('country' in value) || value['country'] === undefined) return false;
|
|
88
|
+
if (!('fullAddress' in value) || value['fullAddress'] === undefined) return false;
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function AddressResourceFromJSON(json: any): AddressResource {
|
|
93
|
+
return AddressResourceFromJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressResource {
|
|
97
|
+
if (json == null) {
|
|
98
|
+
return json;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
+
'addressLine1': json['addressLine1'],
|
|
104
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
105
|
+
'suburb': json['suburb'],
|
|
106
|
+
'city': json['city'],
|
|
107
|
+
'state': json['state'],
|
|
108
|
+
'postCode': json['postCode'],
|
|
109
|
+
'country': json['country'],
|
|
110
|
+
'fullAddress': json['fullAddress'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function AddressResourceToJSON(json: any): AddressResource {
|
|
115
|
+
return AddressResourceToJSONTyped(json, false);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function AddressResourceToJSONTyped(value?: AddressResource | null, ignoreDiscriminator: boolean = false): any {
|
|
119
|
+
if (value == null) {
|
|
120
|
+
return value;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'id': value['id'],
|
|
126
|
+
'addressLine1': value['addressLine1'],
|
|
127
|
+
'addressLine2': value['addressLine2'],
|
|
128
|
+
'suburb': value['suburb'],
|
|
129
|
+
'city': value['city'],
|
|
130
|
+
'state': value['state'],
|
|
131
|
+
'postCode': value['postCode'],
|
|
132
|
+
'country': value['country'],
|
|
133
|
+
'fullAddress': value['fullAddress'],
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
@@ -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 { AddressResource } from './AddressResource';
|
|
17
|
+
import {
|
|
18
|
+
AddressResourceFromJSON,
|
|
19
|
+
AddressResourceFromJSONTyped,
|
|
20
|
+
AddressResourceToJSON,
|
|
21
|
+
AddressResourceToJSONTyped,
|
|
22
|
+
} from './AddressResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AddressResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface AddressResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AddressResource>}
|
|
33
|
+
* @memberof AddressResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<AddressResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AddressResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAddressResourceArrayResponse(value: object): value is AddressResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AddressResourceArrayResponseFromJSON(json: any): AddressResourceArrayResponse {
|
|
46
|
+
return AddressResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AddressResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AddressResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AddressResourceArrayResponseToJSON(json: any): AddressResourceArrayResponse {
|
|
60
|
+
return AddressResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AddressResourceArrayResponseToJSONTyped(value?: AddressResourceArrayResponse | 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(AddressResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AddressResource';
|
|
4
|
+
export * from './AddressResourceArrayResponse';
|
|
3
5
|
export * from './AssetFileForUploadResource';
|
|
4
6
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
5
7
|
export * from './AssetLiteResource';
|