@digital8/security-registers-backend-ts-sdk 0.0.121 → 0.0.123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +79 -1
  4. package/dist/apis/GeneralApi.js +390 -0
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +3 -1
  7. package/dist/models/LicenceListResource.d.ts +81 -0
  8. package/dist/models/LicenceListResource.js +81 -0
  9. package/dist/models/LicenceListResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/LicenceListResourceArrayResponse.js +50 -0
  11. package/dist/models/LicenceLiteResource.d.ts +44 -0
  12. package/dist/models/LicenceLiteResource.js +57 -0
  13. package/dist/models/LicenceLiteResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/LicenceLiteResourceArrayResponse.js +50 -0
  15. package/dist/models/LicenceResource.d.ts +111 -0
  16. package/dist/models/LicenceResource.js +99 -0
  17. package/dist/models/LicenceResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/LicenceResourceArrayResponse.js +50 -0
  19. package/dist/models/LicencesListAllRequest.d.ts +92 -0
  20. package/dist/models/LicencesListAllRequest.js +83 -0
  21. package/dist/models/LicencesListRequest.d.ts +116 -0
  22. package/dist/models/LicencesListRequest.js +91 -0
  23. package/dist/models/LicencesStoreRequest.d.ts +100 -0
  24. package/dist/models/LicencesStoreRequest.js +95 -0
  25. package/dist/models/LicencesUpdateRequest.d.ts +74 -0
  26. package/dist/models/LicencesUpdateRequest.js +63 -0
  27. package/dist/models/LicencesVerifyRequest.d.ts +64 -0
  28. package/dist/models/LicencesVerifyRequest.js +77 -0
  29. package/dist/models/PaginatedLicenceListResourceResponse.d.ts +40 -0
  30. package/dist/models/PaginatedLicenceListResourceResponse.js +57 -0
  31. package/dist/models/PaginatedLicenceResourceResponse.d.ts +40 -0
  32. package/dist/models/PaginatedLicenceResourceResponse.js +57 -0
  33. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  34. package/dist/models/SecurityCompanyResource.js +1 -3
  35. package/dist/models/index.d.ts +13 -0
  36. package/dist/models/index.js +13 -0
  37. package/package.json +1 -1
  38. package/src/apis/GeneralApi.ts +351 -0
  39. package/src/models/AddressResource.ts +3 -2
  40. package/src/models/LicenceListResource.ts +144 -0
  41. package/src/models/LicenceListResourceArrayResponse.ts +73 -0
  42. package/src/models/LicenceLiteResource.ts +83 -0
  43. package/src/models/LicenceLiteResourceArrayResponse.ts +73 -0
  44. package/src/models/LicenceResource.ts +188 -0
  45. package/src/models/LicenceResourceArrayResponse.ts +73 -0
  46. package/src/models/LicencesListAllRequest.ts +142 -0
  47. package/src/models/LicencesListRequest.ts +174 -0
  48. package/src/models/LicencesStoreRequest.ts +161 -0
  49. package/src/models/LicencesUpdateRequest.ts +121 -0
  50. package/src/models/LicencesVerifyRequest.ts +110 -0
  51. package/src/models/PaginatedLicenceListResourceResponse.ts +90 -0
  52. package/src/models/PaginatedLicenceResourceResponse.ts +90 -0
  53. package/src/models/SecurityCompanyResource.ts +2 -3
  54. package/src/models/index.ts +13 -0
@@ -0,0 +1,92 @@
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 LicencesListAllRequest
16
+ */
17
+ export interface LicencesListAllRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LicencesListAllRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LicencesListAllRequest
28
+ */
29
+ sortBy?: LicencesListAllRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof LicencesListAllRequest
34
+ */
35
+ sortDirection?: LicencesListAllRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof LicencesListAllRequest
40
+ */
41
+ relatedId?: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof LicencesListAllRequest
46
+ */
47
+ relatedType?: LicencesListAllRequestRelatedTypeEnum;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof LicencesListAllRequest
52
+ */
53
+ includesRelations?: boolean;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof LicencesListAllRequest
58
+ */
59
+ state?: Array<string>;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const LicencesListAllRequestSortByEnum: {
65
+ readonly ExpiryDate: "expiry_date";
66
+ readonly FirstName: "first_name";
67
+ readonly LicenceNumber: "licence_number";
68
+ };
69
+ export type LicencesListAllRequestSortByEnum = typeof LicencesListAllRequestSortByEnum[keyof typeof LicencesListAllRequestSortByEnum];
70
+ /**
71
+ * @export
72
+ */
73
+ export declare const LicencesListAllRequestSortDirectionEnum: {
74
+ readonly Asc: "asc";
75
+ readonly Desc: "desc";
76
+ };
77
+ export type LicencesListAllRequestSortDirectionEnum = typeof LicencesListAllRequestSortDirectionEnum[keyof typeof LicencesListAllRequestSortDirectionEnum];
78
+ /**
79
+ * @export
80
+ */
81
+ export declare const LicencesListAllRequestRelatedTypeEnum: {
82
+ readonly User: "user";
83
+ };
84
+ export type LicencesListAllRequestRelatedTypeEnum = typeof LicencesListAllRequestRelatedTypeEnum[keyof typeof LicencesListAllRequestRelatedTypeEnum];
85
+ /**
86
+ * Check if a given object implements the LicencesListAllRequest interface.
87
+ */
88
+ export declare function instanceOfLicencesListAllRequest(value: object): value is LicencesListAllRequest;
89
+ export declare function LicencesListAllRequestFromJSON(json: any): LicencesListAllRequest;
90
+ export declare function LicencesListAllRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesListAllRequest;
91
+ export declare function LicencesListAllRequestToJSON(json: any): LicencesListAllRequest;
92
+ export declare function LicencesListAllRequestToJSONTyped(value?: LicencesListAllRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,83 @@
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.LicencesListAllRequestRelatedTypeEnum = exports.LicencesListAllRequestSortDirectionEnum = exports.LicencesListAllRequestSortByEnum = void 0;
17
+ exports.instanceOfLicencesListAllRequest = instanceOfLicencesListAllRequest;
18
+ exports.LicencesListAllRequestFromJSON = LicencesListAllRequestFromJSON;
19
+ exports.LicencesListAllRequestFromJSONTyped = LicencesListAllRequestFromJSONTyped;
20
+ exports.LicencesListAllRequestToJSON = LicencesListAllRequestToJSON;
21
+ exports.LicencesListAllRequestToJSONTyped = LicencesListAllRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.LicencesListAllRequestSortByEnum = {
26
+ ExpiryDate: 'expiry_date',
27
+ FirstName: 'first_name',
28
+ LicenceNumber: 'licence_number'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.LicencesListAllRequestSortDirectionEnum = {
34
+ Asc: 'asc',
35
+ Desc: 'desc'
36
+ };
37
+ /**
38
+ * @export
39
+ */
40
+ exports.LicencesListAllRequestRelatedTypeEnum = {
41
+ User: 'user'
42
+ };
43
+ /**
44
+ * Check if a given object implements the LicencesListAllRequest interface.
45
+ */
46
+ function instanceOfLicencesListAllRequest(value) {
47
+ return true;
48
+ }
49
+ function LicencesListAllRequestFromJSON(json) {
50
+ return LicencesListAllRequestFromJSONTyped(json, false);
51
+ }
52
+ function LicencesListAllRequestFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'search': json['search'] == null ? undefined : json['search'],
58
+ 'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
59
+ 'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
60
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
61
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
62
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
63
+ 'state': json['state'] == null ? undefined : json['state'],
64
+ };
65
+ }
66
+ function LicencesListAllRequestToJSON(json) {
67
+ return LicencesListAllRequestToJSONTyped(json, false);
68
+ }
69
+ function LicencesListAllRequestToJSONTyped(value, ignoreDiscriminator) {
70
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'search': value['search'],
76
+ 'sort_by': value['sortBy'],
77
+ 'sort_direction': value['sortDirection'],
78
+ 'related_id': value['relatedId'],
79
+ 'related_type': value['relatedType'],
80
+ 'includes_relations': value['includesRelations'],
81
+ 'state': value['state'],
82
+ };
83
+ }
@@ -0,0 +1,116 @@
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 LicencesListRequest
16
+ */
17
+ export interface LicencesListRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LicencesListRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LicencesListRequest
28
+ */
29
+ sortBy?: LicencesListRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof LicencesListRequest
34
+ */
35
+ sortDirection?: LicencesListRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof LicencesListRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof LicencesListRequest
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof LicencesListRequest
52
+ */
53
+ state?: Array<string>;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof LicencesListRequest
58
+ */
59
+ beforeExpiryDate?: Date;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof LicencesListRequest
64
+ */
65
+ afterExpiryDate?: Date;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof LicencesListRequest
70
+ */
71
+ relatedId?: number;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof LicencesListRequest
76
+ */
77
+ relatedType?: LicencesListRequestRelatedTypeEnum;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof LicencesListRequest
82
+ */
83
+ includesRelations?: boolean;
84
+ }
85
+ /**
86
+ * @export
87
+ */
88
+ export declare const LicencesListRequestSortByEnum: {
89
+ readonly ExpiryDate: "expiry_date";
90
+ readonly FirstName: "first_name";
91
+ readonly LicenceNumber: "licence_number";
92
+ };
93
+ export type LicencesListRequestSortByEnum = typeof LicencesListRequestSortByEnum[keyof typeof LicencesListRequestSortByEnum];
94
+ /**
95
+ * @export
96
+ */
97
+ export declare const LicencesListRequestSortDirectionEnum: {
98
+ readonly Asc: "asc";
99
+ readonly Desc: "desc";
100
+ };
101
+ export type LicencesListRequestSortDirectionEnum = typeof LicencesListRequestSortDirectionEnum[keyof typeof LicencesListRequestSortDirectionEnum];
102
+ /**
103
+ * @export
104
+ */
105
+ export declare const LicencesListRequestRelatedTypeEnum: {
106
+ readonly User: "user";
107
+ };
108
+ export type LicencesListRequestRelatedTypeEnum = typeof LicencesListRequestRelatedTypeEnum[keyof typeof LicencesListRequestRelatedTypeEnum];
109
+ /**
110
+ * Check if a given object implements the LicencesListRequest interface.
111
+ */
112
+ export declare function instanceOfLicencesListRequest(value: object): value is LicencesListRequest;
113
+ export declare function LicencesListRequestFromJSON(json: any): LicencesListRequest;
114
+ export declare function LicencesListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesListRequest;
115
+ export declare function LicencesListRequestToJSON(json: any): LicencesListRequest;
116
+ export declare function LicencesListRequestToJSONTyped(value?: LicencesListRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,91 @@
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.LicencesListRequestRelatedTypeEnum = exports.LicencesListRequestSortDirectionEnum = exports.LicencesListRequestSortByEnum = void 0;
17
+ exports.instanceOfLicencesListRequest = instanceOfLicencesListRequest;
18
+ exports.LicencesListRequestFromJSON = LicencesListRequestFromJSON;
19
+ exports.LicencesListRequestFromJSONTyped = LicencesListRequestFromJSONTyped;
20
+ exports.LicencesListRequestToJSON = LicencesListRequestToJSON;
21
+ exports.LicencesListRequestToJSONTyped = LicencesListRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.LicencesListRequestSortByEnum = {
26
+ ExpiryDate: 'expiry_date',
27
+ FirstName: 'first_name',
28
+ LicenceNumber: 'licence_number'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.LicencesListRequestSortDirectionEnum = {
34
+ Asc: 'asc',
35
+ Desc: 'desc'
36
+ };
37
+ /**
38
+ * @export
39
+ */
40
+ exports.LicencesListRequestRelatedTypeEnum = {
41
+ User: 'user'
42
+ };
43
+ /**
44
+ * Check if a given object implements the LicencesListRequest interface.
45
+ */
46
+ function instanceOfLicencesListRequest(value) {
47
+ return true;
48
+ }
49
+ function LicencesListRequestFromJSON(json) {
50
+ return LicencesListRequestFromJSONTyped(json, false);
51
+ }
52
+ function LicencesListRequestFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'search': json['search'] == null ? undefined : json['search'],
58
+ 'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
59
+ 'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
60
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
61
+ 'page': json['page'] == null ? undefined : json['page'],
62
+ 'state': json['state'] == null ? undefined : json['state'],
63
+ 'beforeExpiryDate': json['before_expiry_date'] == null ? undefined : (new Date(json['before_expiry_date'])),
64
+ 'afterExpiryDate': json['after_expiry_date'] == null ? undefined : (new Date(json['after_expiry_date'])),
65
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
66
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
67
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
68
+ };
69
+ }
70
+ function LicencesListRequestToJSON(json) {
71
+ return LicencesListRequestToJSONTyped(json, false);
72
+ }
73
+ function LicencesListRequestToJSONTyped(value, ignoreDiscriminator) {
74
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+ 'search': value['search'],
80
+ 'sort_by': value['sortBy'],
81
+ 'sort_direction': value['sortDirection'],
82
+ 'per_page': value['perPage'],
83
+ 'page': value['page'],
84
+ 'state': value['state'],
85
+ 'before_expiry_date': value['beforeExpiryDate'] == null ? undefined : ((value['beforeExpiryDate']).toISOString()),
86
+ 'after_expiry_date': value['afterExpiryDate'] == null ? undefined : ((value['afterExpiryDate']).toISOString()),
87
+ 'related_id': value['relatedId'],
88
+ 'related_type': value['relatedType'],
89
+ 'includes_relations': value['includesRelations'],
90
+ };
91
+ }
@@ -0,0 +1,100 @@
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 LicencesStoreRequest
16
+ */
17
+ export interface LicencesStoreRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LicencesStoreRequest
22
+ */
23
+ userId: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LicencesStoreRequest
28
+ */
29
+ state: LicencesStoreRequestStateEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof LicencesStoreRequest
34
+ */
35
+ licenceNumber: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof LicencesStoreRequest
40
+ */
41
+ firstName: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof LicencesStoreRequest
46
+ */
47
+ lastName: string;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof LicencesStoreRequest
52
+ */
53
+ expiryDate: Date;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof LicencesStoreRequest
58
+ */
59
+ frontAssetId: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof LicencesStoreRequest
64
+ */
65
+ backAssetId?: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof LicencesStoreRequest
70
+ */
71
+ rsaAssetId?: number;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof LicencesStoreRequest
76
+ */
77
+ firstAidAssetId?: number;
78
+ }
79
+ /**
80
+ * @export
81
+ */
82
+ export declare const LicencesStoreRequestStateEnum: {
83
+ readonly Qld: "QLD";
84
+ readonly Nsw: "NSW";
85
+ readonly Act: "ACT";
86
+ readonly Vic: "VIC";
87
+ readonly Tas: "TAS";
88
+ readonly Sa: "SA";
89
+ readonly Wa: "WA";
90
+ readonly Nt: "NT";
91
+ };
92
+ export type LicencesStoreRequestStateEnum = typeof LicencesStoreRequestStateEnum[keyof typeof LicencesStoreRequestStateEnum];
93
+ /**
94
+ * Check if a given object implements the LicencesStoreRequest interface.
95
+ */
96
+ export declare function instanceOfLicencesStoreRequest(value: object): value is LicencesStoreRequest;
97
+ export declare function LicencesStoreRequestFromJSON(json: any): LicencesStoreRequest;
98
+ export declare function LicencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesStoreRequest;
99
+ export declare function LicencesStoreRequestToJSON(json: any): LicencesStoreRequest;
100
+ export declare function LicencesStoreRequestToJSONTyped(value?: LicencesStoreRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,95 @@
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.LicencesStoreRequestStateEnum = void 0;
17
+ exports.instanceOfLicencesStoreRequest = instanceOfLicencesStoreRequest;
18
+ exports.LicencesStoreRequestFromJSON = LicencesStoreRequestFromJSON;
19
+ exports.LicencesStoreRequestFromJSONTyped = LicencesStoreRequestFromJSONTyped;
20
+ exports.LicencesStoreRequestToJSON = LicencesStoreRequestToJSON;
21
+ exports.LicencesStoreRequestToJSONTyped = LicencesStoreRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.LicencesStoreRequestStateEnum = {
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 LicencesStoreRequest interface.
37
+ */
38
+ function instanceOfLicencesStoreRequest(value) {
39
+ if (!('userId' in value) || value['userId'] === undefined)
40
+ return false;
41
+ if (!('state' in value) || value['state'] === undefined)
42
+ return false;
43
+ if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
44
+ return false;
45
+ if (!('firstName' in value) || value['firstName'] === undefined)
46
+ return false;
47
+ if (!('lastName' in value) || value['lastName'] === undefined)
48
+ return false;
49
+ if (!('expiryDate' in value) || value['expiryDate'] === undefined)
50
+ return false;
51
+ if (!('frontAssetId' in value) || value['frontAssetId'] === undefined)
52
+ return false;
53
+ return true;
54
+ }
55
+ function LicencesStoreRequestFromJSON(json) {
56
+ return LicencesStoreRequestFromJSONTyped(json, false);
57
+ }
58
+ function LicencesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+ 'userId': json['user_id'],
64
+ 'state': json['state'],
65
+ 'licenceNumber': json['licence_number'],
66
+ 'firstName': json['first_name'],
67
+ 'lastName': json['last_name'],
68
+ 'expiryDate': (new Date(json['expiry_date'])),
69
+ 'frontAssetId': json['front_asset_id'],
70
+ 'backAssetId': json['back_asset_id'] == null ? undefined : json['back_asset_id'],
71
+ 'rsaAssetId': json['rsa_asset_id'] == null ? undefined : json['rsa_asset_id'],
72
+ 'firstAidAssetId': json['first_aid_asset_id'] == null ? undefined : json['first_aid_asset_id'],
73
+ };
74
+ }
75
+ function LicencesStoreRequestToJSON(json) {
76
+ return LicencesStoreRequestToJSONTyped(json, false);
77
+ }
78
+ function LicencesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
79
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+ return {
84
+ 'user_id': value['userId'],
85
+ 'state': value['state'],
86
+ 'licence_number': value['licenceNumber'],
87
+ 'first_name': value['firstName'],
88
+ 'last_name': value['lastName'],
89
+ 'expiry_date': ((value['expiryDate']).toISOString()),
90
+ 'front_asset_id': value['frontAssetId'],
91
+ 'back_asset_id': value['backAssetId'],
92
+ 'rsa_asset_id': value['rsaAssetId'],
93
+ 'first_aid_asset_id': value['firstAidAssetId'],
94
+ };
95
+ }
@@ -0,0 +1,74 @@
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 LicencesUpdateRequest
16
+ */
17
+ export interface LicencesUpdateRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LicencesUpdateRequest
22
+ */
23
+ licenceNumber?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LicencesUpdateRequest
28
+ */
29
+ firstName?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof LicencesUpdateRequest
34
+ */
35
+ lastName?: string;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof LicencesUpdateRequest
40
+ */
41
+ expiryDate?: Date;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof LicencesUpdateRequest
46
+ */
47
+ frontAssetId?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof LicencesUpdateRequest
52
+ */
53
+ backAssetId?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof LicencesUpdateRequest
58
+ */
59
+ rsaAssetId?: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof LicencesUpdateRequest
64
+ */
65
+ firstAidAssetId?: number;
66
+ }
67
+ /**
68
+ * Check if a given object implements the LicencesUpdateRequest interface.
69
+ */
70
+ export declare function instanceOfLicencesUpdateRequest(value: object): value is LicencesUpdateRequest;
71
+ export declare function LicencesUpdateRequestFromJSON(json: any): LicencesUpdateRequest;
72
+ export declare function LicencesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesUpdateRequest;
73
+ export declare function LicencesUpdateRequestToJSON(json: any): LicencesUpdateRequest;
74
+ export declare function LicencesUpdateRequestToJSONTyped(value?: LicencesUpdateRequest | null, ignoreDiscriminator?: boolean): any;