@digital8/security-registers-backend-ts-sdk 0.0.299 → 0.0.301

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 (60) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/dist/models/AssetFileForUploadResource.d.ts +4 -2
  4. package/dist/models/AuthRegisterGuardRequest.d.ts +6 -192
  5. package/dist/models/AuthRegisterGuardRequest.js +6 -88
  6. package/dist/models/AuthRegisterGuardRequestLicence.d.ts +98 -0
  7. package/dist/models/AuthRegisterGuardRequestLicence.js +95 -0
  8. package/dist/models/AuthRegisterGuardRequestProfileSignature.d.ts +50 -0
  9. package/dist/models/AuthRegisterGuardRequestProfileSignature.js +55 -0
  10. package/dist/models/BackAsset.d.ts +50 -0
  11. package/dist/models/BackAsset.js +55 -0
  12. package/dist/models/FirstAidAsset.d.ts +50 -0
  13. package/dist/models/FirstAidAsset.js +55 -0
  14. package/dist/models/FrontAsset.d.ts +50 -0
  15. package/dist/models/FrontAsset.js +55 -0
  16. package/dist/models/IncidentFieldSchemaResource.d.ts +4 -2
  17. package/dist/models/IncidentImageResource.d.ts +1 -1
  18. package/dist/models/IncidentImageResource.js +1 -3
  19. package/dist/models/IncidentVideoUploadTokenResource.d.ts +4 -2
  20. package/dist/models/LicencesStoreRequest.d.ts +10 -104
  21. package/dist/models/LicencesStoreRequest.js +10 -40
  22. package/dist/models/LicencesStoreRequestBackAsset.d.ts +50 -0
  23. package/dist/models/LicencesStoreRequestBackAsset.js +55 -0
  24. package/dist/models/LicencesUpdateRequest.d.ts +9 -104
  25. package/dist/models/LicencesUpdateRequest.js +9 -40
  26. package/dist/models/RegisterListResource.d.ts +2 -2
  27. package/dist/models/RegisterListResource.js +6 -2
  28. package/dist/models/RegisterResource.d.ts +2 -2
  29. package/dist/models/RegisterResource.js +8 -8
  30. package/dist/models/RosterResource.d.ts +1 -1
  31. package/dist/models/RosterResource.js +3 -4
  32. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  33. package/dist/models/RosterWithRegistersResource.js +4 -3
  34. package/dist/models/RsaAsset.d.ts +50 -0
  35. package/dist/models/RsaAsset.js +55 -0
  36. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +12 -8
  37. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +12 -8
  38. package/dist/models/index.d.ts +7 -0
  39. package/dist/models/index.js +7 -0
  40. package/package.json +1 -1
  41. package/src/models/AssetFileForUploadResource.ts +2 -2
  42. package/src/models/AuthRegisterGuardRequest.ts +23 -263
  43. package/src/models/AuthRegisterGuardRequestLicence.ts +181 -0
  44. package/src/models/AuthRegisterGuardRequestProfileSignature.ts +89 -0
  45. package/src/models/BackAsset.ts +89 -0
  46. package/src/models/FirstAidAsset.ts +89 -0
  47. package/src/models/FrontAsset.ts +89 -0
  48. package/src/models/IncidentFieldSchemaResource.ts +2 -2
  49. package/src/models/IncidentImageResource.ts +2 -3
  50. package/src/models/IncidentVideoUploadTokenResource.ts +2 -2
  51. package/src/models/LicencesStoreRequest.ts +31 -144
  52. package/src/models/LicencesStoreRequestBackAsset.ts +89 -0
  53. package/src/models/LicencesUpdateRequest.ts +24 -144
  54. package/src/models/RegisterListResource.ts +6 -4
  55. package/src/models/RegisterResource.ts +6 -6
  56. package/src/models/RosterResource.ts +3 -4
  57. package/src/models/RosterWithRegistersResource.ts +4 -3
  58. package/src/models/RsaAsset.ts +89 -0
  59. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +45 -16
  60. package/src/models/index.ts +7 -0
@@ -0,0 +1,55 @@
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.instanceOfAuthRegisterGuardRequestProfileSignature = instanceOfAuthRegisterGuardRequestProfileSignature;
17
+ exports.AuthRegisterGuardRequestProfileSignatureFromJSON = AuthRegisterGuardRequestProfileSignatureFromJSON;
18
+ exports.AuthRegisterGuardRequestProfileSignatureFromJSONTyped = AuthRegisterGuardRequestProfileSignatureFromJSONTyped;
19
+ exports.AuthRegisterGuardRequestProfileSignatureToJSON = AuthRegisterGuardRequestProfileSignatureToJSON;
20
+ exports.AuthRegisterGuardRequestProfileSignatureToJSONTyped = AuthRegisterGuardRequestProfileSignatureToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuthRegisterGuardRequestProfileSignature interface.
23
+ */
24
+ function instanceOfAuthRegisterGuardRequestProfileSignature(value) {
25
+ return true;
26
+ }
27
+ function AuthRegisterGuardRequestProfileSignatureFromJSON(json) {
28
+ return AuthRegisterGuardRequestProfileSignatureFromJSONTyped(json, false);
29
+ }
30
+ function AuthRegisterGuardRequestProfileSignatureFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'fileId': json['file_id'] == null ? undefined : json['file_id'],
36
+ 'fileName': json['file_name'] == null ? undefined : json['file_name'],
37
+ 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
38
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
39
+ };
40
+ }
41
+ function AuthRegisterGuardRequestProfileSignatureToJSON(json) {
42
+ return AuthRegisterGuardRequestProfileSignatureToJSONTyped(json, false);
43
+ }
44
+ function AuthRegisterGuardRequestProfileSignatureToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'file_id': value['fileId'],
51
+ 'file_name': value['fileName'],
52
+ 'mime_type': value['mimeType'],
53
+ 'alt_text': value['altText'],
54
+ };
55
+ }
@@ -0,0 +1,50 @@
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 BackAsset
16
+ */
17
+ export interface BackAsset {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof BackAsset
22
+ */
23
+ fileId?: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BackAsset
28
+ */
29
+ fileName?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BackAsset
34
+ */
35
+ mimeType?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof BackAsset
40
+ */
41
+ altText?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the BackAsset interface.
45
+ */
46
+ export declare function instanceOfBackAsset(value: object): value is BackAsset;
47
+ export declare function BackAssetFromJSON(json: any): BackAsset;
48
+ export declare function BackAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackAsset;
49
+ export declare function BackAssetToJSON(json: any): BackAsset;
50
+ export declare function BackAssetToJSONTyped(value?: BackAsset | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfBackAsset = instanceOfBackAsset;
17
+ exports.BackAssetFromJSON = BackAssetFromJSON;
18
+ exports.BackAssetFromJSONTyped = BackAssetFromJSONTyped;
19
+ exports.BackAssetToJSON = BackAssetToJSON;
20
+ exports.BackAssetToJSONTyped = BackAssetToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BackAsset interface.
23
+ */
24
+ function instanceOfBackAsset(value) {
25
+ return true;
26
+ }
27
+ function BackAssetFromJSON(json) {
28
+ return BackAssetFromJSONTyped(json, false);
29
+ }
30
+ function BackAssetFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'fileId': json['file_id'] == null ? undefined : json['file_id'],
36
+ 'fileName': json['file_name'] == null ? undefined : json['file_name'],
37
+ 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
38
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
39
+ };
40
+ }
41
+ function BackAssetToJSON(json) {
42
+ return BackAssetToJSONTyped(json, false);
43
+ }
44
+ function BackAssetToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'file_id': value['fileId'],
51
+ 'file_name': value['fileName'],
52
+ 'mime_type': value['mimeType'],
53
+ 'alt_text': value['altText'],
54
+ };
55
+ }
@@ -0,0 +1,50 @@
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 FirstAidAsset
16
+ */
17
+ export interface FirstAidAsset {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof FirstAidAsset
22
+ */
23
+ fileId?: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FirstAidAsset
28
+ */
29
+ fileName?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof FirstAidAsset
34
+ */
35
+ mimeType?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof FirstAidAsset
40
+ */
41
+ altText?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the FirstAidAsset interface.
45
+ */
46
+ export declare function instanceOfFirstAidAsset(value: object): value is FirstAidAsset;
47
+ export declare function FirstAidAssetFromJSON(json: any): FirstAidAsset;
48
+ export declare function FirstAidAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FirstAidAsset;
49
+ export declare function FirstAidAssetToJSON(json: any): FirstAidAsset;
50
+ export declare function FirstAidAssetToJSONTyped(value?: FirstAidAsset | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfFirstAidAsset = instanceOfFirstAidAsset;
17
+ exports.FirstAidAssetFromJSON = FirstAidAssetFromJSON;
18
+ exports.FirstAidAssetFromJSONTyped = FirstAidAssetFromJSONTyped;
19
+ exports.FirstAidAssetToJSON = FirstAidAssetToJSON;
20
+ exports.FirstAidAssetToJSONTyped = FirstAidAssetToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FirstAidAsset interface.
23
+ */
24
+ function instanceOfFirstAidAsset(value) {
25
+ return true;
26
+ }
27
+ function FirstAidAssetFromJSON(json) {
28
+ return FirstAidAssetFromJSONTyped(json, false);
29
+ }
30
+ function FirstAidAssetFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'fileId': json['file_id'] == null ? undefined : json['file_id'],
36
+ 'fileName': json['file_name'] == null ? undefined : json['file_name'],
37
+ 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
38
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
39
+ };
40
+ }
41
+ function FirstAidAssetToJSON(json) {
42
+ return FirstAidAssetToJSONTyped(json, false);
43
+ }
44
+ function FirstAidAssetToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'file_id': value['fileId'],
51
+ 'file_name': value['fileName'],
52
+ 'mime_type': value['mimeType'],
53
+ 'alt_text': value['altText'],
54
+ };
55
+ }
@@ -0,0 +1,50 @@
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 FrontAsset
16
+ */
17
+ export interface FrontAsset {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof FrontAsset
22
+ */
23
+ fileId?: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FrontAsset
28
+ */
29
+ fileName?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof FrontAsset
34
+ */
35
+ mimeType?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof FrontAsset
40
+ */
41
+ altText?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the FrontAsset interface.
45
+ */
46
+ export declare function instanceOfFrontAsset(value: object): value is FrontAsset;
47
+ export declare function FrontAssetFromJSON(json: any): FrontAsset;
48
+ export declare function FrontAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontAsset;
49
+ export declare function FrontAssetToJSON(json: any): FrontAsset;
50
+ export declare function FrontAssetToJSONTyped(value?: FrontAsset | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfFrontAsset = instanceOfFrontAsset;
17
+ exports.FrontAssetFromJSON = FrontAssetFromJSON;
18
+ exports.FrontAssetFromJSONTyped = FrontAssetFromJSONTyped;
19
+ exports.FrontAssetToJSON = FrontAssetToJSON;
20
+ exports.FrontAssetToJSONTyped = FrontAssetToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FrontAsset interface.
23
+ */
24
+ function instanceOfFrontAsset(value) {
25
+ return true;
26
+ }
27
+ function FrontAssetFromJSON(json) {
28
+ return FrontAssetFromJSONTyped(json, false);
29
+ }
30
+ function FrontAssetFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'fileId': json['file_id'] == null ? undefined : json['file_id'],
36
+ 'fileName': json['file_name'] == null ? undefined : json['file_name'],
37
+ 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
38
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
39
+ };
40
+ }
41
+ function FrontAssetToJSON(json) {
42
+ return FrontAssetToJSONTyped(json, false);
43
+ }
44
+ function FrontAssetToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'file_id': value['fileId'],
51
+ 'file_name': value['fileName'],
52
+ 'mime_type': value['mimeType'],
53
+ 'alt_text': value['altText'],
54
+ };
55
+ }
@@ -29,10 +29,12 @@ export interface IncidentFieldSchemaResource {
29
29
  state: object;
30
30
  /**
31
31
  *
32
- * @type {Array<boolean>}
32
+ * @type {{ [key: string]: boolean; }}
33
33
  * @memberof IncidentFieldSchemaResource
34
34
  */
35
- jsonSchema: Array<boolean>;
35
+ jsonSchema: {
36
+ [key: string]: boolean;
37
+ };
36
38
  /**
37
39
  *
38
40
  * @type {Date}
@@ -32,7 +32,7 @@ export interface IncidentImageResource {
32
32
  * @type {string}
33
33
  * @memberof IncidentImageResource
34
34
  */
35
- altText: string;
35
+ altText?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {number}
@@ -26,8 +26,6 @@ function instanceOfIncidentImageResource(value) {
26
26
  return false;
27
27
  if (!('mimeType' in value) || value['mimeType'] === undefined)
28
28
  return false;
29
- if (!('altText' in value) || value['altText'] === undefined)
30
- return false;
31
29
  if (!('assetId' in value) || value['assetId'] === undefined)
32
30
  return false;
33
31
  if (!('url' in value) || value['url'] === undefined)
@@ -44,7 +42,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
44
42
  return {
45
43
  'fileId': json['file_id'],
46
44
  'mimeType': json['mime_type'],
47
- 'altText': json['alt_text'],
45
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
48
46
  'assetId': json['asset_id'],
49
47
  'url': json['url'],
50
48
  };
@@ -35,10 +35,12 @@ export interface IncidentVideoUploadTokenResource {
35
35
  containerName: string;
36
36
  /**
37
37
  *
38
- * @type {Array<string>}
38
+ * @type {{ [key: string]: string; }}
39
39
  * @memberof IncidentVideoUploadTokenResource
40
40
  */
41
- headers: Array<string>;
41
+ headers: {
42
+ [key: string]: string;
43
+ };
42
44
  }
43
45
  /**
44
46
  * Check if a given object implements the IncidentVideoUploadTokenResource interface.
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
13
+ import type { AuthRegisterGuardRequestProfileSignature } from './AuthRegisterGuardRequestProfileSignature';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -53,124 +55,28 @@ export interface LicencesStoreRequest {
53
55
  expiryDate: Date;
54
56
  /**
55
57
  *
56
- * @type {Array<string>}
58
+ * @type {AuthRegisterGuardRequestProfileSignature}
57
59
  * @memberof LicencesStoreRequest
58
60
  */
59
- frontAsset: Array<string>;
61
+ frontAsset: AuthRegisterGuardRequestProfileSignature;
60
62
  /**
61
63
  *
62
- * @type {number}
63
- * @memberof LicencesStoreRequest
64
- */
65
- frontAssetFileId?: number;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof LicencesStoreRequest
70
- */
71
- frontAssetFileName?: string;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof LicencesStoreRequest
76
- */
77
- frontAssetMimeType?: string;
78
- /**
79
- *
80
- * @type {string}
81
- * @memberof LicencesStoreRequest
82
- */
83
- frontAssetAltText?: string;
84
- /**
85
- *
86
- * @type {Array<string>}
87
- * @memberof LicencesStoreRequest
88
- */
89
- backAsset?: Array<string>;
90
- /**
91
- *
92
- * @type {number}
93
- * @memberof LicencesStoreRequest
94
- */
95
- backAssetFileId?: number;
96
- /**
97
- *
98
- * @type {string}
99
- * @memberof LicencesStoreRequest
100
- */
101
- backAssetFileName?: string;
102
- /**
103
- *
104
- * @type {string}
105
- * @memberof LicencesStoreRequest
106
- */
107
- backAssetMimeType?: string;
108
- /**
109
- *
110
- * @type {string}
64
+ * @type {LicencesStoreRequestBackAsset}
111
65
  * @memberof LicencesStoreRequest
112
66
  */
113
- backAssetAltText?: string;
67
+ backAsset?: LicencesStoreRequestBackAsset | null;
114
68
  /**
115
69
  *
116
- * @type {Array<string>}
70
+ * @type {LicencesStoreRequestBackAsset}
117
71
  * @memberof LicencesStoreRequest
118
72
  */
119
- rsaAsset?: Array<string>;
73
+ rsaAsset?: LicencesStoreRequestBackAsset | null;
120
74
  /**
121
75
  *
122
- * @type {number}
123
- * @memberof LicencesStoreRequest
124
- */
125
- rsaAssetFileId?: number;
126
- /**
127
- *
128
- * @type {string}
129
- * @memberof LicencesStoreRequest
130
- */
131
- rsaAssetFileName?: string;
132
- /**
133
- *
134
- * @type {string}
135
- * @memberof LicencesStoreRequest
136
- */
137
- rsaAssetMimeType?: string;
138
- /**
139
- *
140
- * @type {string}
141
- * @memberof LicencesStoreRequest
142
- */
143
- rsaAssetAltText?: string;
144
- /**
145
- *
146
- * @type {Array<string>}
147
- * @memberof LicencesStoreRequest
148
- */
149
- firstAidAsset?: Array<string>;
150
- /**
151
- *
152
- * @type {number}
153
- * @memberof LicencesStoreRequest
154
- */
155
- firstAidAssetFileId?: number;
156
- /**
157
- *
158
- * @type {string}
159
- * @memberof LicencesStoreRequest
160
- */
161
- firstAidAssetFileName?: string;
162
- /**
163
- *
164
- * @type {string}
165
- * @memberof LicencesStoreRequest
166
- */
167
- firstAidAssetMimeType?: string;
168
- /**
169
- *
170
- * @type {string}
76
+ * @type {LicencesStoreRequestBackAsset}
171
77
  * @memberof LicencesStoreRequest
172
78
  */
173
- firstAidAssetAltText?: string;
79
+ firstAidAsset?: LicencesStoreRequestBackAsset | null;
174
80
  }
175
81
  /**
176
82
  * @export
@@ -19,6 +19,8 @@ exports.LicencesStoreRequestFromJSON = LicencesStoreRequestFromJSON;
19
19
  exports.LicencesStoreRequestFromJSONTyped = LicencesStoreRequestFromJSONTyped;
20
20
  exports.LicencesStoreRequestToJSON = LicencesStoreRequestToJSON;
21
21
  exports.LicencesStoreRequestToJSONTyped = LicencesStoreRequestToJSONTyped;
22
+ var LicencesStoreRequestBackAsset_1 = require("./LicencesStoreRequestBackAsset");
23
+ var AuthRegisterGuardRequestProfileSignature_1 = require("./AuthRegisterGuardRequestProfileSignature");
22
24
  /**
23
25
  * @export
24
26
  */
@@ -66,26 +68,10 @@ function LicencesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
66
68
  'firstName': json['first_name'],
67
69
  'lastName': json['last_name'],
68
70
  'expiryDate': (new Date(json['expiry_date'])),
69
- 'frontAsset': json['front_asset'],
70
- 'frontAssetFileId': json['front_asset.file_id'] == null ? undefined : json['front_asset.file_id'],
71
- 'frontAssetFileName': json['front_asset.file_name'] == null ? undefined : json['front_asset.file_name'],
72
- 'frontAssetMimeType': json['front_asset.mime_type'] == null ? undefined : json['front_asset.mime_type'],
73
- 'frontAssetAltText': json['front_asset.alt_text'] == null ? undefined : json['front_asset.alt_text'],
74
- 'backAsset': json['back_asset'] == null ? undefined : json['back_asset'],
75
- 'backAssetFileId': json['back_asset.file_id'] == null ? undefined : json['back_asset.file_id'],
76
- 'backAssetFileName': json['back_asset.file_name'] == null ? undefined : json['back_asset.file_name'],
77
- 'backAssetMimeType': json['back_asset.mime_type'] == null ? undefined : json['back_asset.mime_type'],
78
- 'backAssetAltText': json['back_asset.alt_text'] == null ? undefined : json['back_asset.alt_text'],
79
- 'rsaAsset': json['rsa_asset'] == null ? undefined : json['rsa_asset'],
80
- 'rsaAssetFileId': json['rsa_asset.file_id'] == null ? undefined : json['rsa_asset.file_id'],
81
- 'rsaAssetFileName': json['rsa_asset.file_name'] == null ? undefined : json['rsa_asset.file_name'],
82
- 'rsaAssetMimeType': json['rsa_asset.mime_type'] == null ? undefined : json['rsa_asset.mime_type'],
83
- 'rsaAssetAltText': json['rsa_asset.alt_text'] == null ? undefined : json['rsa_asset.alt_text'],
84
- 'firstAidAsset': json['first_aid_asset'] == null ? undefined : json['first_aid_asset'],
85
- 'firstAidAssetFileId': json['first_aid_asset.file_id'] == null ? undefined : json['first_aid_asset.file_id'],
86
- 'firstAidAssetFileName': json['first_aid_asset.file_name'] == null ? undefined : json['first_aid_asset.file_name'],
87
- 'firstAidAssetMimeType': json['first_aid_asset.mime_type'] == null ? undefined : json['first_aid_asset.mime_type'],
88
- 'firstAidAssetAltText': json['first_aid_asset.alt_text'] == null ? undefined : json['first_aid_asset.alt_text'],
71
+ 'frontAsset': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureFromJSON)(json['front_asset']),
72
+ 'backAsset': json['back_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['back_asset']),
73
+ 'rsaAsset': json['rsa_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['rsa_asset']),
74
+ 'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['first_aid_asset']),
89
75
  };
90
76
  }
91
77
  function LicencesStoreRequestToJSON(json) {
@@ -103,25 +89,9 @@ function LicencesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
103
89
  'first_name': value['firstName'],
104
90
  'last_name': value['lastName'],
105
91
  'expiry_date': ((value['expiryDate']).toISOString()),
106
- 'front_asset': value['frontAsset'],
107
- 'front_asset.file_id': value['frontAssetFileId'],
108
- 'front_asset.file_name': value['frontAssetFileName'],
109
- 'front_asset.mime_type': value['frontAssetMimeType'],
110
- 'front_asset.alt_text': value['frontAssetAltText'],
111
- 'back_asset': value['backAsset'],
112
- 'back_asset.file_id': value['backAssetFileId'],
113
- 'back_asset.file_name': value['backAssetFileName'],
114
- 'back_asset.mime_type': value['backAssetMimeType'],
115
- 'back_asset.alt_text': value['backAssetAltText'],
116
- 'rsa_asset': value['rsaAsset'],
117
- 'rsa_asset.file_id': value['rsaAssetFileId'],
118
- 'rsa_asset.file_name': value['rsaAssetFileName'],
119
- 'rsa_asset.mime_type': value['rsaAssetMimeType'],
120
- 'rsa_asset.alt_text': value['rsaAssetAltText'],
121
- 'first_aid_asset': value['firstAidAsset'],
122
- 'first_aid_asset.file_id': value['firstAidAssetFileId'],
123
- 'first_aid_asset.file_name': value['firstAidAssetFileName'],
124
- 'first_aid_asset.mime_type': value['firstAidAssetMimeType'],
125
- 'first_aid_asset.alt_text': value['firstAidAssetAltText'],
92
+ 'front_asset': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureToJSON)(value['frontAsset']),
93
+ 'back_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['backAsset']),
94
+ 'rsa_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['rsaAsset']),
95
+ 'first_aid_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['firstAidAsset']),
126
96
  };
127
97
  }