@digital8/security-registers-backend-ts-sdk 0.0.6 → 0.0.8
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 +4 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +12 -1
- package/dist/apis/GeneralApi.js +45 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/PaginatedSecurityCompanyResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSecurityCompanyResourceResponse.js +57 -0
- package/dist/models/SecurityCompaniesStoreRequest.d.ts +106 -0
- package/dist/models/SecurityCompaniesStoreRequest.js +93 -0
- package/dist/models/SecurityCompanyResource.d.ts +75 -0
- package/dist/models/SecurityCompanyResource.js +73 -0
- package/dist/models/SecurityCompanyResourceArrayResponse.d.ts +33 -0
- package/dist/models/SecurityCompanyResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +42 -0
- package/src/models/AddressResource.ts +2 -3
- package/src/models/PaginatedSecurityCompanyResourceResponse.ts +90 -0
- package/src/models/SecurityCompaniesStoreRequest.ts +167 -0
- package/src/models/SecurityCompanyResource.ts +133 -0
- package/src/models/SecurityCompanyResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -18,9 +18,13 @@ src/models/AssetResourceArrayResponse.ts
|
|
|
18
18
|
src/models/GenericResponse.ts
|
|
19
19
|
src/models/IndexUserRequest.ts
|
|
20
20
|
src/models/LoginAuthRequest.ts
|
|
21
|
+
src/models/PaginatedSecurityCompanyResourceResponse.ts
|
|
21
22
|
src/models/PaginatedUserResourceResponse.ts
|
|
22
23
|
src/models/PagingMetadata.ts
|
|
23
24
|
src/models/ResetPasswordAuthRequest.ts
|
|
25
|
+
src/models/SecurityCompaniesStoreRequest.ts
|
|
26
|
+
src/models/SecurityCompanyResource.ts
|
|
27
|
+
src/models/SecurityCompanyResourceArrayResponse.ts
|
|
24
28
|
src/models/SendForgotPasswordLinkAuthRequest.ts
|
|
25
29
|
src/models/StoreAssetFileRequest.ts
|
|
26
30
|
src/models/StoreUserRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.8
|
|
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/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.8 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdminRegisterRequest, AssetFileForUploadResource, GenericResponse, IndexUserRequest, LoginAuthRequest, PaginatedUserResourceResponse, ResetPasswordAuthRequest, SendForgotPasswordLinkAuthRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserResource } from '../models/index';
|
|
13
|
+
import type { AdminRegisterRequest, AssetFileForUploadResource, GenericResponse, IndexUserRequest, LoginAuthRequest, PaginatedUserResourceResponse, ResetPasswordAuthRequest, SecurityCompaniesStoreRequest, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserResource } from '../models/index';
|
|
14
14
|
export interface AdminRegisterOperationRequest {
|
|
15
15
|
adminRegisterRequest?: AdminRegisterRequest;
|
|
16
16
|
}
|
|
@@ -26,6 +26,9 @@ export interface LoginAuthOperationRequest {
|
|
|
26
26
|
export interface ResetPasswordAuthOperationRequest {
|
|
27
27
|
resetPasswordAuthRequest?: ResetPasswordAuthRequest;
|
|
28
28
|
}
|
|
29
|
+
export interface SecurityCompaniesStoreOperationRequest {
|
|
30
|
+
securityCompaniesStoreRequest?: SecurityCompaniesStoreRequest;
|
|
31
|
+
}
|
|
29
32
|
export interface SendForgotPasswordLinkAuthOperationRequest {
|
|
30
33
|
sendForgotPasswordLinkAuthRequest?: SendForgotPasswordLinkAuthRequest;
|
|
31
34
|
}
|
|
@@ -99,6 +102,14 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
99
102
|
* Auto-generated: resetPasswordAuth
|
|
100
103
|
*/
|
|
101
104
|
resetPasswordAuth(requestParameters?: ResetPasswordAuthOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
105
|
+
/**
|
|
106
|
+
* Auto-generated: securityCompanies.store
|
|
107
|
+
*/
|
|
108
|
+
securityCompaniesStoreRaw(requestParameters: SecurityCompaniesStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SecurityCompanyResource>>;
|
|
109
|
+
/**
|
|
110
|
+
* Auto-generated: securityCompanies.store
|
|
111
|
+
*/
|
|
112
|
+
securityCompaniesStore(requestParameters?: SecurityCompaniesStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SecurityCompanyResource>;
|
|
102
113
|
/**
|
|
103
114
|
* Auto-generated: sendForgotPasswordLinkAuth
|
|
104
115
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -385,6 +385,51 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
385
385
|
});
|
|
386
386
|
});
|
|
387
387
|
};
|
|
388
|
+
/**
|
|
389
|
+
* Auto-generated: securityCompanies.store
|
|
390
|
+
*/
|
|
391
|
+
GeneralApi.prototype.securityCompaniesStoreRaw = function (requestParameters, initOverrides) {
|
|
392
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
393
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
394
|
+
return __generator(this, function (_a) {
|
|
395
|
+
switch (_a.label) {
|
|
396
|
+
case 0:
|
|
397
|
+
queryParameters = {};
|
|
398
|
+
headerParameters = {};
|
|
399
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
400
|
+
urlPath = "/api/security-companies";
|
|
401
|
+
return [4 /*yield*/, this.request({
|
|
402
|
+
path: urlPath,
|
|
403
|
+
method: 'POST',
|
|
404
|
+
headers: headerParameters,
|
|
405
|
+
query: queryParameters,
|
|
406
|
+
body: (0, index_1.SecurityCompaniesStoreRequestToJSON)(requestParameters['securityCompaniesStoreRequest']),
|
|
407
|
+
}, initOverrides)];
|
|
408
|
+
case 1:
|
|
409
|
+
response = _a.sent();
|
|
410
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SecurityCompanyResourceFromJSON)(jsonValue); })];
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
});
|
|
414
|
+
};
|
|
415
|
+
/**
|
|
416
|
+
* Auto-generated: securityCompanies.store
|
|
417
|
+
*/
|
|
418
|
+
GeneralApi.prototype.securityCompaniesStore = function () {
|
|
419
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
420
|
+
var response;
|
|
421
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
422
|
+
return __generator(this, function (_a) {
|
|
423
|
+
switch (_a.label) {
|
|
424
|
+
case 0: return [4 /*yield*/, this.securityCompaniesStoreRaw(requestParameters, initOverrides)];
|
|
425
|
+
case 1:
|
|
426
|
+
response = _a.sent();
|
|
427
|
+
return [4 /*yield*/, response.value()];
|
|
428
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
});
|
|
432
|
+
};
|
|
388
433
|
/**
|
|
389
434
|
* Auto-generated: sendForgotPasswordLinkAuth
|
|
390
435
|
*/
|
|
@@ -24,8 +24,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
50
|
'addressLine1': json['addressLine1'],
|
|
53
|
-
'addressLine2': json['addressLine2'],
|
|
51
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
54
52
|
'suburb': json['suburb'],
|
|
55
53
|
'city': json['city'],
|
|
56
54
|
'state': json['state'],
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { SecurityCompanyResource } from './SecurityCompanyResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedSecurityCompanyResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedSecurityCompanyResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<SecurityCompanyResource>}
|
|
23
|
+
* @memberof PaginatedSecurityCompanyResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<SecurityCompanyResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedSecurityCompanyResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedSecurityCompanyResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedSecurityCompanyResourceResponse(value: object): value is PaginatedSecurityCompanyResourceResponse;
|
|
37
|
+
export declare function PaginatedSecurityCompanyResourceResponseFromJSON(json: any): PaginatedSecurityCompanyResourceResponse;
|
|
38
|
+
export declare function PaginatedSecurityCompanyResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSecurityCompanyResourceResponse;
|
|
39
|
+
export declare function PaginatedSecurityCompanyResourceResponseToJSON(json: any): PaginatedSecurityCompanyResourceResponse;
|
|
40
|
+
export declare function PaginatedSecurityCompanyResourceResponseToJSONTyped(value?: PaginatedSecurityCompanyResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedSecurityCompanyResourceResponse = instanceOfPaginatedSecurityCompanyResourceResponse;
|
|
17
|
+
exports.PaginatedSecurityCompanyResourceResponseFromJSON = PaginatedSecurityCompanyResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedSecurityCompanyResourceResponseFromJSONTyped = PaginatedSecurityCompanyResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedSecurityCompanyResourceResponseToJSON = PaginatedSecurityCompanyResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedSecurityCompanyResourceResponseToJSONTyped = PaginatedSecurityCompanyResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var SecurityCompanyResource_1 = require("./SecurityCompanyResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedSecurityCompanyResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedSecurityCompanyResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedSecurityCompanyResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedSecurityCompanyResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedSecurityCompanyResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(SecurityCompanyResource_1.SecurityCompanyResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedSecurityCompanyResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedSecurityCompanyResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedSecurityCompanyResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(SecurityCompanyResource_1.SecurityCompanyResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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 SecurityCompaniesStoreRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SecurityCompaniesStoreRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
28
|
+
*/
|
|
29
|
+
isEnabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
40
|
+
*/
|
|
41
|
+
licenseNumber: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
46
|
+
*/
|
|
47
|
+
addressLine1: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
52
|
+
*/
|
|
53
|
+
addressLine2?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
58
|
+
*/
|
|
59
|
+
suburb?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
64
|
+
*/
|
|
65
|
+
city?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
70
|
+
*/
|
|
71
|
+
state: SecurityCompaniesStoreRequestStateEnum;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
76
|
+
*/
|
|
77
|
+
postCode?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
82
|
+
*/
|
|
83
|
+
country?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const SecurityCompaniesStoreRequestStateEnum: {
|
|
89
|
+
readonly Qld: "QLD";
|
|
90
|
+
readonly Nsw: "NSW";
|
|
91
|
+
readonly Act: "ACT";
|
|
92
|
+
readonly Vic: "VIC";
|
|
93
|
+
readonly Tas: "TAS";
|
|
94
|
+
readonly Sa: "SA";
|
|
95
|
+
readonly Wa: "WA";
|
|
96
|
+
readonly Nt: "NT";
|
|
97
|
+
};
|
|
98
|
+
export type SecurityCompaniesStoreRequestStateEnum = typeof SecurityCompaniesStoreRequestStateEnum[keyof typeof SecurityCompaniesStoreRequestStateEnum];
|
|
99
|
+
/**
|
|
100
|
+
* Check if a given object implements the SecurityCompaniesStoreRequest interface.
|
|
101
|
+
*/
|
|
102
|
+
export declare function instanceOfSecurityCompaniesStoreRequest(value: object): value is SecurityCompaniesStoreRequest;
|
|
103
|
+
export declare function SecurityCompaniesStoreRequestFromJSON(json: any): SecurityCompaniesStoreRequest;
|
|
104
|
+
export declare function SecurityCompaniesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompaniesStoreRequest;
|
|
105
|
+
export declare function SecurityCompaniesStoreRequestToJSON(json: any): SecurityCompaniesStoreRequest;
|
|
106
|
+
export declare function SecurityCompaniesStoreRequestToJSONTyped(value?: SecurityCompaniesStoreRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,93 @@
|
|
|
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.SecurityCompaniesStoreRequestStateEnum = void 0;
|
|
17
|
+
exports.instanceOfSecurityCompaniesStoreRequest = instanceOfSecurityCompaniesStoreRequest;
|
|
18
|
+
exports.SecurityCompaniesStoreRequestFromJSON = SecurityCompaniesStoreRequestFromJSON;
|
|
19
|
+
exports.SecurityCompaniesStoreRequestFromJSONTyped = SecurityCompaniesStoreRequestFromJSONTyped;
|
|
20
|
+
exports.SecurityCompaniesStoreRequestToJSON = SecurityCompaniesStoreRequestToJSON;
|
|
21
|
+
exports.SecurityCompaniesStoreRequestToJSONTyped = SecurityCompaniesStoreRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SecurityCompaniesStoreRequestStateEnum = {
|
|
26
|
+
Qld: 'QLD',
|
|
27
|
+
Nsw: 'NSW',
|
|
28
|
+
Act: 'ACT',
|
|
29
|
+
Vic: 'VIC',
|
|
30
|
+
Tas: 'TAS',
|
|
31
|
+
Sa: 'SA',
|
|
32
|
+
Wa: 'WA',
|
|
33
|
+
Nt: 'NT'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the SecurityCompaniesStoreRequest interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfSecurityCompaniesStoreRequest(value) {
|
|
39
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('licenseNumber' in value) || value['licenseNumber'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function SecurityCompaniesStoreRequestFromJSON(json) {
|
|
52
|
+
return SecurityCompaniesStoreRequestFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function SecurityCompaniesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': json['name'],
|
|
60
|
+
'isEnabled': json['is_enabled'] == null ? undefined : json['is_enabled'],
|
|
61
|
+
'email': json['email'],
|
|
62
|
+
'licenseNumber': json['license_number'],
|
|
63
|
+
'addressLine1': json['address_line_1'],
|
|
64
|
+
'addressLine2': json['address_line_2'] == null ? undefined : json['address_line_2'],
|
|
65
|
+
'suburb': json['suburb'] == null ? undefined : json['suburb'],
|
|
66
|
+
'city': json['city'] == null ? undefined : json['city'],
|
|
67
|
+
'state': json['state'],
|
|
68
|
+
'postCode': json['post_code'] == null ? undefined : json['post_code'],
|
|
69
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function SecurityCompaniesStoreRequestToJSON(json) {
|
|
73
|
+
return SecurityCompaniesStoreRequestToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
function SecurityCompaniesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
76
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
'is_enabled': value['isEnabled'],
|
|
83
|
+
'email': value['email'],
|
|
84
|
+
'license_number': value['licenseNumber'],
|
|
85
|
+
'address_line_1': value['addressLine1'],
|
|
86
|
+
'address_line_2': value['addressLine2'],
|
|
87
|
+
'suburb': value['suburb'],
|
|
88
|
+
'city': value['city'],
|
|
89
|
+
'state': value['state'],
|
|
90
|
+
'post_code': value['postCode'],
|
|
91
|
+
'country': value['country'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 SecurityCompanyResource
|
|
17
|
+
*/
|
|
18
|
+
export interface SecurityCompanyResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof SecurityCompanyResource
|
|
23
|
+
*/
|
|
24
|
+
id?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SecurityCompanyResource
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SecurityCompanyResource
|
|
35
|
+
*/
|
|
36
|
+
email?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof SecurityCompanyResource
|
|
41
|
+
*/
|
|
42
|
+
isEnabled: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {AddressResource}
|
|
46
|
+
* @memberof SecurityCompanyResource
|
|
47
|
+
*/
|
|
48
|
+
address: AddressResource | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof SecurityCompanyResource
|
|
53
|
+
*/
|
|
54
|
+
licenseNumber: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof SecurityCompanyResource
|
|
59
|
+
*/
|
|
60
|
+
createdAt?: Date | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof SecurityCompanyResource
|
|
65
|
+
*/
|
|
66
|
+
updatedAt?: Date | null;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the SecurityCompanyResource interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource;
|
|
72
|
+
export declare function SecurityCompanyResourceFromJSON(json: any): SecurityCompanyResource;
|
|
73
|
+
export declare function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyResource;
|
|
74
|
+
export declare function SecurityCompanyResourceToJSON(json: any): SecurityCompanyResource;
|
|
75
|
+
export declare function SecurityCompanyResourceToJSONTyped(value?: SecurityCompanyResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.instanceOfSecurityCompanyResource = instanceOfSecurityCompanyResource;
|
|
17
|
+
exports.SecurityCompanyResourceFromJSON = SecurityCompanyResourceFromJSON;
|
|
18
|
+
exports.SecurityCompanyResourceFromJSONTyped = SecurityCompanyResourceFromJSONTyped;
|
|
19
|
+
exports.SecurityCompanyResourceToJSON = SecurityCompanyResourceToJSON;
|
|
20
|
+
exports.SecurityCompanyResourceToJSONTyped = SecurityCompanyResourceToJSONTyped;
|
|
21
|
+
var AddressResource_1 = require("./AddressResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SecurityCompanyResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSecurityCompanyResource(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('licenseNumber' in value) || value['licenseNumber'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function SecurityCompanyResourceFromJSON(json) {
|
|
37
|
+
return SecurityCompanyResourceFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
47
|
+
'isEnabled': json['isEnabled'],
|
|
48
|
+
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
49
|
+
'licenseNumber': json['license_number'],
|
|
50
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
51
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function SecurityCompanyResourceToJSON(json) {
|
|
55
|
+
return SecurityCompanyResourceToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function SecurityCompanyResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'name': value['name'],
|
|
66
|
+
'email': value['email'],
|
|
67
|
+
'isEnabled': value['isEnabled'],
|
|
68
|
+
'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
|
|
69
|
+
'license_number': value['licenseNumber'],
|
|
70
|
+
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
71
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -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 { SecurityCompanyResource } from './SecurityCompanyResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SecurityCompanyResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SecurityCompanyResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SecurityCompanyResource>}
|
|
22
|
+
* @memberof SecurityCompanyResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<SecurityCompanyResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the SecurityCompanyResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfSecurityCompanyResourceArrayResponse(value: object): value is SecurityCompanyResourceArrayResponse;
|
|
30
|
+
export declare function SecurityCompanyResourceArrayResponseFromJSON(json: any): SecurityCompanyResourceArrayResponse;
|
|
31
|
+
export declare function SecurityCompanyResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyResourceArrayResponse;
|
|
32
|
+
export declare function SecurityCompanyResourceArrayResponseToJSON(json: any): SecurityCompanyResourceArrayResponse;
|
|
33
|
+
export declare function SecurityCompanyResourceArrayResponseToJSONTyped(value?: SecurityCompanyResourceArrayResponse | 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.instanceOfSecurityCompanyResourceArrayResponse = instanceOfSecurityCompanyResourceArrayResponse;
|
|
17
|
+
exports.SecurityCompanyResourceArrayResponseFromJSON = SecurityCompanyResourceArrayResponseFromJSON;
|
|
18
|
+
exports.SecurityCompanyResourceArrayResponseFromJSONTyped = SecurityCompanyResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.SecurityCompanyResourceArrayResponseToJSON = SecurityCompanyResourceArrayResponseToJSON;
|
|
20
|
+
exports.SecurityCompanyResourceArrayResponseToJSONTyped = SecurityCompanyResourceArrayResponseToJSONTyped;
|
|
21
|
+
var SecurityCompanyResource_1 = require("./SecurityCompanyResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SecurityCompanyResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSecurityCompanyResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function SecurityCompanyResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return SecurityCompanyResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function SecurityCompanyResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(SecurityCompanyResource_1.SecurityCompanyResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function SecurityCompanyResourceArrayResponseToJSON(json) {
|
|
40
|
+
return SecurityCompanyResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function SecurityCompanyResourceArrayResponseToJSONTyped(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(SecurityCompanyResource_1.SecurityCompanyResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -10,9 +10,13 @@ export * from './AssetResourceArrayResponse';
|
|
|
10
10
|
export * from './GenericResponse';
|
|
11
11
|
export * from './IndexUserRequest';
|
|
12
12
|
export * from './LoginAuthRequest';
|
|
13
|
+
export * from './PaginatedSecurityCompanyResourceResponse';
|
|
13
14
|
export * from './PaginatedUserResourceResponse';
|
|
14
15
|
export * from './PagingMetadata';
|
|
15
16
|
export * from './ResetPasswordAuthRequest';
|
|
17
|
+
export * from './SecurityCompaniesStoreRequest';
|
|
18
|
+
export * from './SecurityCompanyResource';
|
|
19
|
+
export * from './SecurityCompanyResourceArrayResponse';
|
|
16
20
|
export * from './SendForgotPasswordLinkAuthRequest';
|
|
17
21
|
export * from './StoreAssetFileRequest';
|
|
18
22
|
export * from './StoreUserRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -28,9 +28,13 @@ __exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
|
28
28
|
__exportStar(require("./GenericResponse"), exports);
|
|
29
29
|
__exportStar(require("./IndexUserRequest"), exports);
|
|
30
30
|
__exportStar(require("./LoginAuthRequest"), exports);
|
|
31
|
+
__exportStar(require("./PaginatedSecurityCompanyResourceResponse"), exports);
|
|
31
32
|
__exportStar(require("./PaginatedUserResourceResponse"), exports);
|
|
32
33
|
__exportStar(require("./PagingMetadata"), exports);
|
|
33
34
|
__exportStar(require("./ResetPasswordAuthRequest"), exports);
|
|
35
|
+
__exportStar(require("./SecurityCompaniesStoreRequest"), exports);
|
|
36
|
+
__exportStar(require("./SecurityCompanyResource"), exports);
|
|
37
|
+
__exportStar(require("./SecurityCompanyResourceArrayResponse"), exports);
|
|
34
38
|
__exportStar(require("./SendForgotPasswordLinkAuthRequest"), exports);
|
|
35
39
|
__exportStar(require("./StoreAssetFileRequest"), exports);
|
|
36
40
|
__exportStar(require("./StoreUserRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -22,6 +22,8 @@ import type {
|
|
|
22
22
|
LoginAuthRequest,
|
|
23
23
|
PaginatedUserResourceResponse,
|
|
24
24
|
ResetPasswordAuthRequest,
|
|
25
|
+
SecurityCompaniesStoreRequest,
|
|
26
|
+
SecurityCompanyResource,
|
|
25
27
|
SendForgotPasswordLinkAuthRequest,
|
|
26
28
|
StoreAssetFileRequest,
|
|
27
29
|
StoreUserRequest,
|
|
@@ -44,6 +46,10 @@ import {
|
|
|
44
46
|
PaginatedUserResourceResponseToJSON,
|
|
45
47
|
ResetPasswordAuthRequestFromJSON,
|
|
46
48
|
ResetPasswordAuthRequestToJSON,
|
|
49
|
+
SecurityCompaniesStoreRequestFromJSON,
|
|
50
|
+
SecurityCompaniesStoreRequestToJSON,
|
|
51
|
+
SecurityCompanyResourceFromJSON,
|
|
52
|
+
SecurityCompanyResourceToJSON,
|
|
47
53
|
SendForgotPasswordLinkAuthRequestFromJSON,
|
|
48
54
|
SendForgotPasswordLinkAuthRequestToJSON,
|
|
49
55
|
StoreAssetFileRequestFromJSON,
|
|
@@ -78,6 +84,10 @@ export interface ResetPasswordAuthOperationRequest {
|
|
|
78
84
|
resetPasswordAuthRequest?: ResetPasswordAuthRequest;
|
|
79
85
|
}
|
|
80
86
|
|
|
87
|
+
export interface SecurityCompaniesStoreOperationRequest {
|
|
88
|
+
securityCompaniesStoreRequest?: SecurityCompaniesStoreRequest;
|
|
89
|
+
}
|
|
90
|
+
|
|
81
91
|
export interface SendForgotPasswordLinkAuthOperationRequest {
|
|
82
92
|
sendForgotPasswordLinkAuthRequest?: SendForgotPasswordLinkAuthRequest;
|
|
83
93
|
}
|
|
@@ -323,6 +333,38 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
323
333
|
return await response.value();
|
|
324
334
|
}
|
|
325
335
|
|
|
336
|
+
/**
|
|
337
|
+
* Auto-generated: securityCompanies.store
|
|
338
|
+
*/
|
|
339
|
+
async securityCompaniesStoreRaw(requestParameters: SecurityCompaniesStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SecurityCompanyResource>> {
|
|
340
|
+
const queryParameters: any = {};
|
|
341
|
+
|
|
342
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
343
|
+
|
|
344
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
let urlPath = `/api/security-companies`;
|
|
348
|
+
|
|
349
|
+
const response = await this.request({
|
|
350
|
+
path: urlPath,
|
|
351
|
+
method: 'POST',
|
|
352
|
+
headers: headerParameters,
|
|
353
|
+
query: queryParameters,
|
|
354
|
+
body: SecurityCompaniesStoreRequestToJSON(requestParameters['securityCompaniesStoreRequest']),
|
|
355
|
+
}, initOverrides);
|
|
356
|
+
|
|
357
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SecurityCompanyResourceFromJSON(jsonValue));
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Auto-generated: securityCompanies.store
|
|
362
|
+
*/
|
|
363
|
+
async securityCompaniesStore(requestParameters: SecurityCompaniesStoreOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SecurityCompanyResource> {
|
|
364
|
+
const response = await this.securityCompaniesStoreRaw(requestParameters, initOverrides);
|
|
365
|
+
return await response.value();
|
|
366
|
+
}
|
|
367
|
+
|
|
326
368
|
/**
|
|
327
369
|
* Auto-generated: sendForgotPasswordLinkAuth
|
|
328
370
|
*/
|
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,7 +80,6 @@ export interface AddressResource {
|
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
83
|
-
if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
|
|
84
83
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
85
84
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
86
85
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
102
101
|
|
|
103
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
104
103
|
'addressLine1': json['addressLine1'],
|
|
105
|
-
'addressLine2': json['addressLine2'],
|
|
104
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
106
105
|
'suburb': json['suburb'],
|
|
107
106
|
'city': json['city'],
|
|
108
107
|
'state': json['state'],
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { SecurityCompanyResource } from './SecurityCompanyResource';
|
|
24
|
+
import {
|
|
25
|
+
SecurityCompanyResourceFromJSON,
|
|
26
|
+
SecurityCompanyResourceFromJSONTyped,
|
|
27
|
+
SecurityCompanyResourceToJSON,
|
|
28
|
+
SecurityCompanyResourceToJSONTyped,
|
|
29
|
+
} from './SecurityCompanyResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedSecurityCompanyResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedSecurityCompanyResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<SecurityCompanyResource>}
|
|
40
|
+
* @memberof PaginatedSecurityCompanyResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<SecurityCompanyResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedSecurityCompanyResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedSecurityCompanyResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedSecurityCompanyResourceResponse(value: object): value is PaginatedSecurityCompanyResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedSecurityCompanyResourceResponseFromJSON(json: any): PaginatedSecurityCompanyResourceResponse {
|
|
61
|
+
return PaginatedSecurityCompanyResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedSecurityCompanyResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSecurityCompanyResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(SecurityCompanyResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedSecurityCompanyResourceResponseToJSON(json: any): PaginatedSecurityCompanyResourceResponse {
|
|
76
|
+
return PaginatedSecurityCompanyResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedSecurityCompanyResourceResponseToJSONTyped(value?: PaginatedSecurityCompanyResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(SecurityCompanyResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,167 @@
|
|
|
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 SecurityCompaniesStoreRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SecurityCompaniesStoreRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
32
|
+
*/
|
|
33
|
+
isEnabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
44
|
+
*/
|
|
45
|
+
licenseNumber: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
50
|
+
*/
|
|
51
|
+
addressLine1: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
56
|
+
*/
|
|
57
|
+
addressLine2?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
62
|
+
*/
|
|
63
|
+
suburb?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
68
|
+
*/
|
|
69
|
+
city?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
74
|
+
*/
|
|
75
|
+
state: SecurityCompaniesStoreRequestStateEnum;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
80
|
+
*/
|
|
81
|
+
postCode?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof SecurityCompaniesStoreRequest
|
|
86
|
+
*/
|
|
87
|
+
country?: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const SecurityCompaniesStoreRequestStateEnum = {
|
|
95
|
+
Qld: 'QLD',
|
|
96
|
+
Nsw: 'NSW',
|
|
97
|
+
Act: 'ACT',
|
|
98
|
+
Vic: 'VIC',
|
|
99
|
+
Tas: 'TAS',
|
|
100
|
+
Sa: 'SA',
|
|
101
|
+
Wa: 'WA',
|
|
102
|
+
Nt: 'NT'
|
|
103
|
+
} as const;
|
|
104
|
+
export type SecurityCompaniesStoreRequestStateEnum = typeof SecurityCompaniesStoreRequestStateEnum[keyof typeof SecurityCompaniesStoreRequestStateEnum];
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the SecurityCompaniesStoreRequest interface.
|
|
109
|
+
*/
|
|
110
|
+
export function instanceOfSecurityCompaniesStoreRequest(value: object): value is SecurityCompaniesStoreRequest {
|
|
111
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
112
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
113
|
+
if (!('licenseNumber' in value) || value['licenseNumber'] === undefined) return false;
|
|
114
|
+
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
115
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function SecurityCompaniesStoreRequestFromJSON(json: any): SecurityCompaniesStoreRequest {
|
|
120
|
+
return SecurityCompaniesStoreRequestFromJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function SecurityCompaniesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompaniesStoreRequest {
|
|
124
|
+
if (json == null) {
|
|
125
|
+
return json;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'name': json['name'],
|
|
130
|
+
'isEnabled': json['is_enabled'] == null ? undefined : json['is_enabled'],
|
|
131
|
+
'email': json['email'],
|
|
132
|
+
'licenseNumber': json['license_number'],
|
|
133
|
+
'addressLine1': json['address_line_1'],
|
|
134
|
+
'addressLine2': json['address_line_2'] == null ? undefined : json['address_line_2'],
|
|
135
|
+
'suburb': json['suburb'] == null ? undefined : json['suburb'],
|
|
136
|
+
'city': json['city'] == null ? undefined : json['city'],
|
|
137
|
+
'state': json['state'],
|
|
138
|
+
'postCode': json['post_code'] == null ? undefined : json['post_code'],
|
|
139
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function SecurityCompaniesStoreRequestToJSON(json: any): SecurityCompaniesStoreRequest {
|
|
144
|
+
return SecurityCompaniesStoreRequestToJSONTyped(json, false);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function SecurityCompaniesStoreRequestToJSONTyped(value?: SecurityCompaniesStoreRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
148
|
+
if (value == null) {
|
|
149
|
+
return value;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'name': value['name'],
|
|
155
|
+
'is_enabled': value['isEnabled'],
|
|
156
|
+
'email': value['email'],
|
|
157
|
+
'license_number': value['licenseNumber'],
|
|
158
|
+
'address_line_1': value['addressLine1'],
|
|
159
|
+
'address_line_2': value['addressLine2'],
|
|
160
|
+
'suburb': value['suburb'],
|
|
161
|
+
'city': value['city'],
|
|
162
|
+
'state': value['state'],
|
|
163
|
+
'post_code': value['postCode'],
|
|
164
|
+
'country': value['country'],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -0,0 +1,133 @@
|
|
|
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 SecurityCompanyResource
|
|
28
|
+
*/
|
|
29
|
+
export interface SecurityCompanyResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SecurityCompanyResource
|
|
34
|
+
*/
|
|
35
|
+
id?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SecurityCompanyResource
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SecurityCompanyResource
|
|
46
|
+
*/
|
|
47
|
+
email?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof SecurityCompanyResource
|
|
52
|
+
*/
|
|
53
|
+
isEnabled: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {AddressResource}
|
|
57
|
+
* @memberof SecurityCompanyResource
|
|
58
|
+
*/
|
|
59
|
+
address: AddressResource | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SecurityCompanyResource
|
|
64
|
+
*/
|
|
65
|
+
licenseNumber: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof SecurityCompanyResource
|
|
70
|
+
*/
|
|
71
|
+
createdAt?: Date | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof SecurityCompanyResource
|
|
76
|
+
*/
|
|
77
|
+
updatedAt?: Date | null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the SecurityCompanyResource interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
|
|
84
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
85
|
+
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
86
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
87
|
+
if (!('licenseNumber' in value) || value['licenseNumber'] === undefined) return false;
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function SecurityCompanyResourceFromJSON(json: any): SecurityCompanyResource {
|
|
92
|
+
return SecurityCompanyResourceFromJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyResource {
|
|
96
|
+
if (json == null) {
|
|
97
|
+
return json;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
102
|
+
'name': json['name'],
|
|
103
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
104
|
+
'isEnabled': json['isEnabled'],
|
|
105
|
+
'address': AddressResourceFromJSON(json['address']),
|
|
106
|
+
'licenseNumber': json['license_number'],
|
|
107
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
108
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function SecurityCompanyResourceToJSON(json: any): SecurityCompanyResource {
|
|
113
|
+
return SecurityCompanyResourceToJSONTyped(json, false);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function SecurityCompanyResourceToJSONTyped(value?: SecurityCompanyResource | null, ignoreDiscriminator: boolean = false): any {
|
|
117
|
+
if (value == null) {
|
|
118
|
+
return value;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'id': value['id'],
|
|
124
|
+
'name': value['name'],
|
|
125
|
+
'email': value['email'],
|
|
126
|
+
'isEnabled': value['isEnabled'],
|
|
127
|
+
'address': AddressResourceToJSON(value['address']),
|
|
128
|
+
'license_number': value['licenseNumber'],
|
|
129
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
130
|
+
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
@@ -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 { SecurityCompanyResource } from './SecurityCompanyResource';
|
|
17
|
+
import {
|
|
18
|
+
SecurityCompanyResourceFromJSON,
|
|
19
|
+
SecurityCompanyResourceFromJSONTyped,
|
|
20
|
+
SecurityCompanyResourceToJSON,
|
|
21
|
+
SecurityCompanyResourceToJSONTyped,
|
|
22
|
+
} from './SecurityCompanyResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SecurityCompanyResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface SecurityCompanyResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<SecurityCompanyResource>}
|
|
33
|
+
* @memberof SecurityCompanyResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<SecurityCompanyResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SecurityCompanyResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSecurityCompanyResourceArrayResponse(value: object): value is SecurityCompanyResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SecurityCompanyResourceArrayResponseFromJSON(json: any): SecurityCompanyResourceArrayResponse {
|
|
46
|
+
return SecurityCompanyResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SecurityCompanyResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SecurityCompanyResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SecurityCompanyResourceArrayResponseToJSON(json: any): SecurityCompanyResourceArrayResponse {
|
|
60
|
+
return SecurityCompanyResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SecurityCompanyResourceArrayResponseToJSONTyped(value?: SecurityCompanyResourceArrayResponse | 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(SecurityCompanyResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -12,9 +12,13 @@ export * from './AssetResourceArrayResponse';
|
|
|
12
12
|
export * from './GenericResponse';
|
|
13
13
|
export * from './IndexUserRequest';
|
|
14
14
|
export * from './LoginAuthRequest';
|
|
15
|
+
export * from './PaginatedSecurityCompanyResourceResponse';
|
|
15
16
|
export * from './PaginatedUserResourceResponse';
|
|
16
17
|
export * from './PagingMetadata';
|
|
17
18
|
export * from './ResetPasswordAuthRequest';
|
|
19
|
+
export * from './SecurityCompaniesStoreRequest';
|
|
20
|
+
export * from './SecurityCompanyResource';
|
|
21
|
+
export * from './SecurityCompanyResourceArrayResponse';
|
|
18
22
|
export * from './SendForgotPasswordLinkAuthRequest';
|
|
19
23
|
export * from './StoreAssetFileRequest';
|
|
20
24
|
export * from './StoreUserRequest';
|