@digital8/security-registers-backend-ts-sdk 0.0.3 → 0.0.5
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 -1
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +12 -12
- package/dist/apis/GeneralApi.js +45 -45
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.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 +75 -0
- package/dist/models/SecurityCompanyResourceArrayResponse.d.ts +33 -0
- package/dist/models/SecurityCompanyResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +42 -39
- package/src/models/AssetResource.ts +2 -3
- package/src/models/PaginatedSecurityCompanyResourceResponse.ts +90 -0
- package/src/models/SecurityCompaniesStoreRequest.ts +167 -0
- package/src/models/SecurityCompanyResource.ts +134 -0
- package/src/models/SecurityCompanyResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +4 -1
- package/dist/models/AdminRegisterRequest.d.ts +0 -56
- package/dist/models/AdminRegisterRequest.js +0 -67
- package/src/models/AdminRegisterRequest.ts +0 -102
package/.openapi-generator/FILES
CHANGED
|
@@ -8,7 +8,6 @@ src/apis/index.ts
|
|
|
8
8
|
src/index.ts
|
|
9
9
|
src/models/AddressResource.ts
|
|
10
10
|
src/models/AddressResourceArrayResponse.ts
|
|
11
|
-
src/models/AdminRegisterRequest.ts
|
|
12
11
|
src/models/AssetFileForUploadResource.ts
|
|
13
12
|
src/models/AssetFileForUploadResourceArrayResponse.ts
|
|
14
13
|
src/models/AssetLiteResource.ts
|
|
@@ -18,9 +17,13 @@ src/models/AssetResourceArrayResponse.ts
|
|
|
18
17
|
src/models/GenericResponse.ts
|
|
19
18
|
src/models/IndexUserRequest.ts
|
|
20
19
|
src/models/LoginAuthRequest.ts
|
|
20
|
+
src/models/PaginatedSecurityCompanyResourceResponse.ts
|
|
21
21
|
src/models/PaginatedUserResourceResponse.ts
|
|
22
22
|
src/models/PagingMetadata.ts
|
|
23
23
|
src/models/ResetPasswordAuthRequest.ts
|
|
24
|
+
src/models/SecurityCompaniesStoreRequest.ts
|
|
25
|
+
src/models/SecurityCompanyResource.ts
|
|
26
|
+
src/models/SecurityCompanyResourceArrayResponse.ts
|
|
24
27
|
src/models/SendForgotPasswordLinkAuthRequest.ts
|
|
25
28
|
src/models/StoreAssetFileRequest.ts
|
|
26
29
|
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.5
|
|
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.5 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,10 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface AdminRegisterOperationRequest {
|
|
15
|
-
adminRegisterRequest?: AdminRegisterRequest;
|
|
16
|
-
}
|
|
13
|
+
import type { AssetFileForUploadResource, GenericResponse, IndexUserRequest, LoginAuthRequest, PaginatedUserResourceResponse, ResetPasswordAuthRequest, SecurityCompaniesStoreRequest, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserResource } from '../models/index';
|
|
17
14
|
export interface DestroyUserRequest {
|
|
18
15
|
user: number;
|
|
19
16
|
}
|
|
@@ -26,6 +23,9 @@ export interface LoginAuthOperationRequest {
|
|
|
26
23
|
export interface ResetPasswordAuthOperationRequest {
|
|
27
24
|
resetPasswordAuthRequest?: ResetPasswordAuthRequest;
|
|
28
25
|
}
|
|
26
|
+
export interface SecurityCompaniesStoreOperationRequest {
|
|
27
|
+
securityCompaniesStoreRequest?: SecurityCompaniesStoreRequest;
|
|
28
|
+
}
|
|
29
29
|
export interface SendForgotPasswordLinkAuthOperationRequest {
|
|
30
30
|
sendForgotPasswordLinkAuthRequest?: SendForgotPasswordLinkAuthRequest;
|
|
31
31
|
}
|
|
@@ -43,14 +43,6 @@ export interface UpdateUserOperationRequest {
|
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
45
|
export declare class GeneralApi extends runtime.BaseAPI {
|
|
46
|
-
/**
|
|
47
|
-
* Auto-generated: admin.register
|
|
48
|
-
*/
|
|
49
|
-
adminRegisterRaw(requestParameters: AdminRegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResource>>;
|
|
50
|
-
/**
|
|
51
|
-
* Auto-generated: admin.register
|
|
52
|
-
*/
|
|
53
|
-
adminRegister(requestParameters?: AdminRegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResource>;
|
|
54
46
|
/**
|
|
55
47
|
* Auto-generated: destroyUser
|
|
56
48
|
*/
|
|
@@ -99,6 +91,14 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
99
91
|
* Auto-generated: resetPasswordAuth
|
|
100
92
|
*/
|
|
101
93
|
resetPasswordAuth(requestParameters?: ResetPasswordAuthOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
94
|
+
/**
|
|
95
|
+
* Auto-generated: securityCompanies.store
|
|
96
|
+
*/
|
|
97
|
+
securityCompaniesStoreRaw(requestParameters: SecurityCompaniesStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SecurityCompanyResource>>;
|
|
98
|
+
/**
|
|
99
|
+
* Auto-generated: securityCompanies.store
|
|
100
|
+
*/
|
|
101
|
+
securityCompaniesStore(requestParameters?: SecurityCompaniesStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SecurityCompanyResource>;
|
|
102
102
|
/**
|
|
103
103
|
* Auto-generated: sendForgotPasswordLinkAuth
|
|
104
104
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -75,51 +75,6 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function GeneralApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
* Auto-generated: admin.register
|
|
80
|
-
*/
|
|
81
|
-
GeneralApi.prototype.adminRegisterRaw = function (requestParameters, initOverrides) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
queryParameters = {};
|
|
88
|
-
headerParameters = {};
|
|
89
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
-
urlPath = "/api/users/register-admin-user";
|
|
91
|
-
return [4 /*yield*/, this.request({
|
|
92
|
-
path: urlPath,
|
|
93
|
-
method: 'POST',
|
|
94
|
-
headers: headerParameters,
|
|
95
|
-
query: queryParameters,
|
|
96
|
-
body: (0, index_1.AdminRegisterRequestToJSON)(requestParameters['adminRegisterRequest']),
|
|
97
|
-
}, initOverrides)];
|
|
98
|
-
case 1:
|
|
99
|
-
response = _a.sent();
|
|
100
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserResourceFromJSON)(jsonValue); })];
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Auto-generated: admin.register
|
|
107
|
-
*/
|
|
108
|
-
GeneralApi.prototype.adminRegister = function () {
|
|
109
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
110
|
-
var response;
|
|
111
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
112
|
-
return __generator(this, function (_a) {
|
|
113
|
-
switch (_a.label) {
|
|
114
|
-
case 0: return [4 /*yield*/, this.adminRegisterRaw(requestParameters, initOverrides)];
|
|
115
|
-
case 1:
|
|
116
|
-
response = _a.sent();
|
|
117
|
-
return [4 /*yield*/, response.value()];
|
|
118
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
78
|
/**
|
|
124
79
|
* Auto-generated: destroyUser
|
|
125
80
|
*/
|
|
@@ -385,6 +340,51 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
385
340
|
});
|
|
386
341
|
});
|
|
387
342
|
};
|
|
343
|
+
/**
|
|
344
|
+
* Auto-generated: securityCompanies.store
|
|
345
|
+
*/
|
|
346
|
+
GeneralApi.prototype.securityCompaniesStoreRaw = function (requestParameters, initOverrides) {
|
|
347
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
348
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
349
|
+
return __generator(this, function (_a) {
|
|
350
|
+
switch (_a.label) {
|
|
351
|
+
case 0:
|
|
352
|
+
queryParameters = {};
|
|
353
|
+
headerParameters = {};
|
|
354
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
355
|
+
urlPath = "/api/security-companies";
|
|
356
|
+
return [4 /*yield*/, this.request({
|
|
357
|
+
path: urlPath,
|
|
358
|
+
method: 'POST',
|
|
359
|
+
headers: headerParameters,
|
|
360
|
+
query: queryParameters,
|
|
361
|
+
body: (0, index_1.SecurityCompaniesStoreRequestToJSON)(requestParameters['securityCompaniesStoreRequest']),
|
|
362
|
+
}, initOverrides)];
|
|
363
|
+
case 1:
|
|
364
|
+
response = _a.sent();
|
|
365
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SecurityCompanyResourceFromJSON)(jsonValue); })];
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
});
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Auto-generated: securityCompanies.store
|
|
372
|
+
*/
|
|
373
|
+
GeneralApi.prototype.securityCompaniesStore = function () {
|
|
374
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
375
|
+
var response;
|
|
376
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
377
|
+
return __generator(this, function (_a) {
|
|
378
|
+
switch (_a.label) {
|
|
379
|
+
case 0: return [4 /*yield*/, this.securityCompaniesStoreRaw(requestParameters, initOverrides)];
|
|
380
|
+
case 1:
|
|
381
|
+
response = _a.sent();
|
|
382
|
+
return [4 /*yield*/, response.value()];
|
|
383
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
});
|
|
387
|
+
};
|
|
388
388
|
/**
|
|
389
389
|
* Auto-generated: sendForgotPasswordLinkAuth
|
|
390
390
|
*/
|
|
@@ -30,8 +30,6 @@ function instanceOfAssetResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('index' in value) || value['index'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
'filePath': json['filePath'],
|
|
51
49
|
'fileName': json['fileName'],
|
|
52
50
|
'mimeType': json['mimeType'],
|
|
53
|
-
'altText': json['altText'],
|
|
51
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
54
52
|
'index': json['index'],
|
|
55
53
|
'fileId': json['fileId'],
|
|
56
54
|
};
|
|
@@ -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;
|
|
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,75 @@
|
|
|
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 (!('email' in value) || value['email'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('licenseNumber' in value) || value['licenseNumber'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function SecurityCompanyResourceFromJSON(json) {
|
|
39
|
+
return SecurityCompanyResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'email': json['email'],
|
|
49
|
+
'isEnabled': json['isEnabled'],
|
|
50
|
+
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
51
|
+
'licenseNumber': json['license_number'],
|
|
52
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
53
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function SecurityCompanyResourceToJSON(json) {
|
|
57
|
+
return SecurityCompanyResourceToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function SecurityCompanyResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
'email': value['email'],
|
|
69
|
+
'isEnabled': value['isEnabled'],
|
|
70
|
+
'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
|
|
71
|
+
'license_number': value['licenseNumber'],
|
|
72
|
+
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
73
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
74
|
+
};
|
|
75
|
+
}
|