@digital8/security-registers-backend-ts-sdk 0.0.435 → 0.0.437

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 (33) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +12 -1
  4. package/dist/apis/GeneralApi.js +55 -0
  5. package/dist/models/AssetResource.d.ts +1 -1
  6. package/dist/models/AssetResource.js +1 -3
  7. package/dist/models/IncidentImageResource.d.ts +1 -1
  8. package/dist/models/IncidentImageResource.js +1 -3
  9. package/dist/models/MobileAppConfigRequest.d.ts +46 -0
  10. package/dist/models/MobileAppConfigRequest.js +63 -0
  11. package/dist/models/MobileAppConfigResource.d.ts +58 -0
  12. package/dist/models/MobileAppConfigResource.js +69 -0
  13. package/dist/models/MobileAppConfigResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/MobileAppConfigResourceArrayResponse.js +50 -0
  15. package/dist/models/RegisterListResource.d.ts +5 -5
  16. package/dist/models/RegisterListResource.js +5 -10
  17. package/dist/models/RegisterResource.d.ts +1 -1
  18. package/dist/models/RegisterResource.js +3 -1
  19. package/dist/models/RosterResource.d.ts +1 -1
  20. package/dist/models/RosterResource.js +4 -3
  21. package/dist/models/index.d.ts +3 -0
  22. package/dist/models/index.js +3 -0
  23. package/package.json +1 -1
  24. package/src/apis/GeneralApi.ts +50 -0
  25. package/src/models/AssetResource.ts +2 -3
  26. package/src/models/IncidentImageResource.ts +2 -3
  27. package/src/models/MobileAppConfigRequest.ts +86 -0
  28. package/src/models/MobileAppConfigResource.ts +103 -0
  29. package/src/models/MobileAppConfigResourceArrayResponse.ts +73 -0
  30. package/src/models/RegisterListResource.ts +9 -12
  31. package/src/models/RegisterResource.ts +3 -2
  32. package/src/models/RosterResource.ts +4 -3
  33. package/src/models/index.ts +3 -0
@@ -81,6 +81,9 @@ src/models/LicencesStoreRequestBackAsset.ts
81
81
  src/models/LicencesUpdateRequest.ts
82
82
  src/models/LicencesVerifyRequest.ts
83
83
  src/models/LoginAuthRequest.ts
84
+ src/models/MobileAppConfigRequest.ts
85
+ src/models/MobileAppConfigResource.ts
86
+ src/models/MobileAppConfigResourceArrayResponse.ts
84
87
  src/models/MobileDeviceResource.ts
85
88
  src/models/MobileDeviceResourceArrayResponse.ts
86
89
  src/models/MobileInitResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.435
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.437
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.435 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.437 --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 { AssetFileForUploadResource, AuthChangePasswordRequest, AuthProfileUpdateRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, LoginAuthRequest, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, ResetPasswordAuthRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, SettingsLicenceVerificationFallbackUpdateRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
13
+ import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthProfileUpdateRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, LoginAuthRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, ResetPasswordAuthRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, SettingsLicenceVerificationFallbackUpdateRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
14
14
  export interface AuthChangePasswordOperationRequest {
15
15
  authChangePasswordRequest?: AuthChangePasswordRequest;
16
16
  }
@@ -144,6 +144,9 @@ export interface LicencesVerifyOperationRequest {
144
144
  export interface LoginAuthOperationRequest {
145
145
  loginAuthRequest?: LoginAuthRequest;
146
146
  }
147
+ export interface MobileAppConfigOperationRequest {
148
+ mobileAppConfigRequest?: MobileAppConfigRequest;
149
+ }
147
150
  export interface NotificationPreferencesBulkOperationRequest {
148
151
  notificationPreferencesBulkRequest?: NotificationPreferencesBulkRequest;
149
152
  }
@@ -681,6 +684,14 @@ export declare class GeneralApi extends runtime.BaseAPI {
681
684
  * Auto-generated: logoutAuth
682
685
  */
683
686
  logoutAuth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
687
+ /**
688
+ * Auto-generated: mobile.appConfig
689
+ */
690
+ mobileAppConfigRaw(requestParameters: MobileAppConfigOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MobileAppConfigResource>>;
691
+ /**
692
+ * Auto-generated: mobile.appConfig
693
+ */
694
+ mobileAppConfig(requestParameters?: MobileAppConfigOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MobileAppConfigResource>;
684
695
  /**
685
696
  * Auto-generated: mobile.init
686
697
  */
@@ -2487,6 +2487,61 @@ var GeneralApi = /** @class */ (function (_super) {
2487
2487
  });
2488
2488
  });
2489
2489
  };
2490
+ /**
2491
+ * Auto-generated: mobile.appConfig
2492
+ */
2493
+ GeneralApi.prototype.mobileAppConfigRaw = function (requestParameters, initOverrides) {
2494
+ return __awaiter(this, void 0, void 0, function () {
2495
+ var queryParameters, headerParameters, token, tokenString, urlPath, response;
2496
+ return __generator(this, function (_a) {
2497
+ switch (_a.label) {
2498
+ case 0:
2499
+ queryParameters = {};
2500
+ headerParameters = {};
2501
+ headerParameters['Content-Type'] = 'application/json';
2502
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2503
+ token = this.configuration.accessToken;
2504
+ return [4 /*yield*/, token("bearerAuth", [])];
2505
+ case 1:
2506
+ tokenString = _a.sent();
2507
+ if (tokenString) {
2508
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2509
+ }
2510
+ _a.label = 2;
2511
+ case 2:
2512
+ urlPath = "/api/mobile/app-config";
2513
+ return [4 /*yield*/, this.request({
2514
+ path: urlPath,
2515
+ method: 'POST',
2516
+ headers: headerParameters,
2517
+ query: queryParameters,
2518
+ body: (0, index_1.MobileAppConfigRequestToJSON)(requestParameters['mobileAppConfigRequest']),
2519
+ }, initOverrides)];
2520
+ case 3:
2521
+ response = _a.sent();
2522
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.MobileAppConfigResourceFromJSON)(jsonValue); })];
2523
+ }
2524
+ });
2525
+ });
2526
+ };
2527
+ /**
2528
+ * Auto-generated: mobile.appConfig
2529
+ */
2530
+ GeneralApi.prototype.mobileAppConfig = function () {
2531
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
2532
+ var response;
2533
+ if (requestParameters === void 0) { requestParameters = {}; }
2534
+ return __generator(this, function (_a) {
2535
+ switch (_a.label) {
2536
+ case 0: return [4 /*yield*/, this.mobileAppConfigRaw(requestParameters, initOverrides)];
2537
+ case 1:
2538
+ response = _a.sent();
2539
+ return [4 /*yield*/, response.value()];
2540
+ case 2: return [2 /*return*/, _a.sent()];
2541
+ }
2542
+ });
2543
+ });
2544
+ };
2490
2545
  /**
2491
2546
  * Auto-generated: mobile.init
2492
2547
  */
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText: string;
47
+ altText?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -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)
@@ -52,7 +50,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
52
50
  'filePath': json['filePath'],
53
51
  'fileName': json['fileName'],
54
52
  'mimeType': json['mimeType'],
55
- 'altText': json['altText'],
53
+ 'altText': json['altText'] == null ? undefined : json['altText'],
56
54
  'index': json['index'],
57
55
  'fileId': json['fileId'],
58
56
  'isExternal': json['isExternal'],
@@ -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
  };
@@ -0,0 +1,46 @@
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 MobileAppConfigRequest
16
+ */
17
+ export interface MobileAppConfigRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MobileAppConfigRequest
22
+ */
23
+ platform: MobileAppConfigRequestPlatformEnum;
24
+ /**
25
+ * The app's current version as a semantic version string (e.g. "1.4.2").
26
+ * @type {string}
27
+ * @memberof MobileAppConfigRequest
28
+ */
29
+ appVersion: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const MobileAppConfigRequestPlatformEnum: {
35
+ readonly Ios: "ios";
36
+ readonly Android: "android";
37
+ };
38
+ export type MobileAppConfigRequestPlatformEnum = typeof MobileAppConfigRequestPlatformEnum[keyof typeof MobileAppConfigRequestPlatformEnum];
39
+ /**
40
+ * Check if a given object implements the MobileAppConfigRequest interface.
41
+ */
42
+ export declare function instanceOfMobileAppConfigRequest(value: object): value is MobileAppConfigRequest;
43
+ export declare function MobileAppConfigRequestFromJSON(json: any): MobileAppConfigRequest;
44
+ export declare function MobileAppConfigRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigRequest;
45
+ export declare function MobileAppConfigRequestToJSON(json: any): MobileAppConfigRequest;
46
+ export declare function MobileAppConfigRequestToJSONTyped(value?: MobileAppConfigRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.MobileAppConfigRequestPlatformEnum = void 0;
17
+ exports.instanceOfMobileAppConfigRequest = instanceOfMobileAppConfigRequest;
18
+ exports.MobileAppConfigRequestFromJSON = MobileAppConfigRequestFromJSON;
19
+ exports.MobileAppConfigRequestFromJSONTyped = MobileAppConfigRequestFromJSONTyped;
20
+ exports.MobileAppConfigRequestToJSON = MobileAppConfigRequestToJSON;
21
+ exports.MobileAppConfigRequestToJSONTyped = MobileAppConfigRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.MobileAppConfigRequestPlatformEnum = {
26
+ Ios: 'ios',
27
+ Android: 'android'
28
+ };
29
+ /**
30
+ * Check if a given object implements the MobileAppConfigRequest interface.
31
+ */
32
+ function instanceOfMobileAppConfigRequest(value) {
33
+ if (!('platform' in value) || value['platform'] === undefined)
34
+ return false;
35
+ if (!('appVersion' in value) || value['appVersion'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function MobileAppConfigRequestFromJSON(json) {
40
+ return MobileAppConfigRequestFromJSONTyped(json, false);
41
+ }
42
+ function MobileAppConfigRequestFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'platform': json['platform'],
48
+ 'appVersion': json['app_version'],
49
+ };
50
+ }
51
+ function MobileAppConfigRequestToJSON(json) {
52
+ return MobileAppConfigRequestToJSONTyped(json, false);
53
+ }
54
+ function MobileAppConfigRequestToJSONTyped(value, ignoreDiscriminator) {
55
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'platform': value['platform'],
61
+ 'app_version': value['appVersion'],
62
+ };
63
+ }
@@ -0,0 +1,58 @@
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 MobileAppConfigResource
16
+ */
17
+ export interface MobileAppConfigResource {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MobileAppConfigResource
22
+ */
23
+ platform: MobileAppConfigResourcePlatformEnum;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof MobileAppConfigResource
28
+ */
29
+ forceUpdate: boolean;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof MobileAppConfigResource
34
+ */
35
+ updateUrl: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof MobileAppConfigResource
40
+ */
41
+ message?: string | null;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const MobileAppConfigResourcePlatformEnum: {
47
+ readonly Ios: "ios";
48
+ readonly Android: "android";
49
+ };
50
+ export type MobileAppConfigResourcePlatformEnum = typeof MobileAppConfigResourcePlatformEnum[keyof typeof MobileAppConfigResourcePlatformEnum];
51
+ /**
52
+ * Check if a given object implements the MobileAppConfigResource interface.
53
+ */
54
+ export declare function instanceOfMobileAppConfigResource(value: object): value is MobileAppConfigResource;
55
+ export declare function MobileAppConfigResourceFromJSON(json: any): MobileAppConfigResource;
56
+ export declare function MobileAppConfigResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigResource;
57
+ export declare function MobileAppConfigResourceToJSON(json: any): MobileAppConfigResource;
58
+ export declare function MobileAppConfigResourceToJSONTyped(value?: MobileAppConfigResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
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.MobileAppConfigResourcePlatformEnum = void 0;
17
+ exports.instanceOfMobileAppConfigResource = instanceOfMobileAppConfigResource;
18
+ exports.MobileAppConfigResourceFromJSON = MobileAppConfigResourceFromJSON;
19
+ exports.MobileAppConfigResourceFromJSONTyped = MobileAppConfigResourceFromJSONTyped;
20
+ exports.MobileAppConfigResourceToJSON = MobileAppConfigResourceToJSON;
21
+ exports.MobileAppConfigResourceToJSONTyped = MobileAppConfigResourceToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.MobileAppConfigResourcePlatformEnum = {
26
+ Ios: 'ios',
27
+ Android: 'android'
28
+ };
29
+ /**
30
+ * Check if a given object implements the MobileAppConfigResource interface.
31
+ */
32
+ function instanceOfMobileAppConfigResource(value) {
33
+ if (!('platform' in value) || value['platform'] === undefined)
34
+ return false;
35
+ if (!('forceUpdate' in value) || value['forceUpdate'] === undefined)
36
+ return false;
37
+ if (!('updateUrl' in value) || value['updateUrl'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function MobileAppConfigResourceFromJSON(json) {
42
+ return MobileAppConfigResourceFromJSONTyped(json, false);
43
+ }
44
+ function MobileAppConfigResourceFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'platform': json['platform'],
50
+ 'forceUpdate': json['forceUpdate'],
51
+ 'updateUrl': json['updateUrl'],
52
+ 'message': json['message'] == null ? undefined : json['message'],
53
+ };
54
+ }
55
+ function MobileAppConfigResourceToJSON(json) {
56
+ return MobileAppConfigResourceToJSONTyped(json, false);
57
+ }
58
+ function MobileAppConfigResourceToJSONTyped(value, ignoreDiscriminator) {
59
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'platform': value['platform'],
65
+ 'forceUpdate': value['forceUpdate'],
66
+ 'updateUrl': value['updateUrl'],
67
+ 'message': value['message'],
68
+ };
69
+ }
@@ -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 { MobileAppConfigResource } from './MobileAppConfigResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MobileAppConfigResourceArrayResponse
17
+ */
18
+ export interface MobileAppConfigResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<MobileAppConfigResource>}
22
+ * @memberof MobileAppConfigResourceArrayResponse
23
+ */
24
+ data?: Array<MobileAppConfigResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the MobileAppConfigResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfMobileAppConfigResourceArrayResponse(value: object): value is MobileAppConfigResourceArrayResponse;
30
+ export declare function MobileAppConfigResourceArrayResponseFromJSON(json: any): MobileAppConfigResourceArrayResponse;
31
+ export declare function MobileAppConfigResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigResourceArrayResponse;
32
+ export declare function MobileAppConfigResourceArrayResponseToJSON(json: any): MobileAppConfigResourceArrayResponse;
33
+ export declare function MobileAppConfigResourceArrayResponseToJSONTyped(value?: MobileAppConfigResourceArrayResponse | 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.instanceOfMobileAppConfigResourceArrayResponse = instanceOfMobileAppConfigResourceArrayResponse;
17
+ exports.MobileAppConfigResourceArrayResponseFromJSON = MobileAppConfigResourceArrayResponseFromJSON;
18
+ exports.MobileAppConfigResourceArrayResponseFromJSONTyped = MobileAppConfigResourceArrayResponseFromJSONTyped;
19
+ exports.MobileAppConfigResourceArrayResponseToJSON = MobileAppConfigResourceArrayResponseToJSON;
20
+ exports.MobileAppConfigResourceArrayResponseToJSONTyped = MobileAppConfigResourceArrayResponseToJSONTyped;
21
+ var MobileAppConfigResource_1 = require("./MobileAppConfigResource");
22
+ /**
23
+ * Check if a given object implements the MobileAppConfigResourceArrayResponse interface.
24
+ */
25
+ function instanceOfMobileAppConfigResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function MobileAppConfigResourceArrayResponseFromJSON(json) {
29
+ return MobileAppConfigResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function MobileAppConfigResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(MobileAppConfigResource_1.MobileAppConfigResourceFromJSON)),
37
+ };
38
+ }
39
+ function MobileAppConfigResourceArrayResponseToJSON(json) {
40
+ return MobileAppConfigResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function MobileAppConfigResourceArrayResponseToJSONTyped(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(MobileAppConfigResource_1.MobileAppConfigResourceToJSON)),
49
+ };
50
+ }
@@ -46,13 +46,13 @@ export interface RegisterListResource {
46
46
  * @type {Date}
47
47
  * @memberof RegisterListResource
48
48
  */
49
- finishDateTime: Date;
49
+ finishDateTime?: Date | null;
50
50
  /**
51
51
  *
52
- * @type {string}
52
+ * @type {object}
53
53
  * @memberof RegisterListResource
54
54
  */
55
- shiftLength: string;
55
+ shiftLength: object;
56
56
  /**
57
57
  *
58
58
  * @type {number}
@@ -64,7 +64,7 @@ export interface RegisterListResource {
64
64
  * @type {string}
65
65
  * @memberof RegisterListResource
66
66
  */
67
- badgeNumber: string;
67
+ badgeNumber?: string | null;
68
68
  /**
69
69
  *
70
70
  * @type {Date}
@@ -154,7 +154,7 @@ export interface RegisterListResource {
154
154
  * @type {number}
155
155
  * @memberof RegisterListResource
156
156
  */
157
- signOffLong: number;
157
+ signOffLong?: number | null;
158
158
  /**
159
159
  *
160
160
  * @type {boolean}
@@ -39,14 +39,10 @@ function instanceOfRegisterListResource(value) {
39
39
  return false;
40
40
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
41
41
  return false;
42
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
43
- return false;
44
42
  if (!('shiftLength' in value) || value['shiftLength'] === undefined)
45
43
  return false;
46
44
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
47
45
  return false;
48
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
49
- return false;
50
46
  if (!('rampReadAt' in value) || value['rampReadAt'] === undefined)
51
47
  return false;
52
48
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
@@ -73,8 +69,6 @@ function instanceOfRegisterListResource(value) {
73
69
  return false;
74
70
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
75
71
  return false;
76
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
77
- return false;
78
72
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
79
73
  return false;
80
74
  return true;
@@ -91,10 +85,10 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
91
85
  'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
92
86
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
93
87
  'startDateTime': (new Date(json['startDateTime'])),
94
- 'finishDateTime': (new Date(json['finishDateTime'])),
88
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
95
89
  'shiftLength': json['shiftLength'],
96
90
  'signOffStatus': json['signOffStatus'],
97
- 'badgeNumber': json['badgeNumber'],
91
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
98
92
  'rampReadAt': (new Date(json['rampReadAt'])),
99
93
  'licenceNumber': json['licenceNumber'],
100
94
  'licenceFirstName': json['licenceFirstName'],
@@ -109,7 +103,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
109
103
  'signOnLat': json['signOnLat'],
110
104
  'signOnLong': json['signOnLong'],
111
105
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
112
- 'signOffLong': json['signOffLong'],
106
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
113
107
  'hasIncidents': json['hasIncidents'],
114
108
  };
115
109
  }
@@ -117,6 +111,7 @@ function RegisterListResourceToJSON(json) {
117
111
  return RegisterListResourceToJSONTyped(json, false);
118
112
  }
119
113
  function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
114
+ var _a;
120
115
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
121
116
  if (value == null) {
122
117
  return value;
@@ -126,7 +121,7 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
126
121
  'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
127
122
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
128
123
  'startDateTime': ((value['startDateTime']).toISOString()),
129
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
124
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
130
125
  'shiftLength': value['shiftLength'],
131
126
  'signOffStatus': value['signOffStatus'],
132
127
  'badgeNumber': value['badgeNumber'],
@@ -112,7 +112,7 @@ export interface RegisterResource {
112
112
  * @type {number}
113
113
  * @memberof RegisterResource
114
114
  */
115
- signOffLong?: number | null;
115
+ signOffLong: number;
116
116
  /**
117
117
  *
118
118
  * @type {string}
@@ -61,6 +61,8 @@ function instanceOfRegisterResource(value) {
61
61
  return false;
62
62
  if (!('signOffLat' in value) || value['signOffLat'] === undefined)
63
63
  return false;
64
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
65
+ return false;
64
66
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
65
67
  return false;
66
68
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -96,7 +98,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
96
98
  'signOnLat': json['signOnLat'],
97
99
  'signOnLong': json['signOnLong'],
98
100
  'signOffLat': json['signOffLat'],
99
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
101
+ 'signOffLong': json['signOffLong'],
100
102
  'licenceNumber': json['licenceNumber'],
101
103
  'licenceExpiry': json['licenceExpiry'],
102
104
  'licenceFirstName': json['licenceFirstName'],
@@ -47,7 +47,7 @@ export interface RosterResource {
47
47
  * @type {Date}
48
48
  * @memberof RosterResource
49
49
  */
50
- finishDateTime?: Date | null;
50
+ finishDateTime: Date;
51
51
  /**
52
52
  *
53
53
  * @type {boolean}
@@ -40,6 +40,8 @@ function instanceOfRosterResource(value) {
40
40
  return false;
41
41
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
42
42
  return false;
43
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
44
+ return false;
43
45
  if (!('isCompliant' in value) || value['isCompliant'] === undefined)
44
46
  return false;
45
47
  if (!('isComplete' in value) || value['isComplete'] === undefined)
@@ -62,7 +64,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
62
64
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
63
65
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
64
66
  'startDateTime': (new Date(json['startDateTime'])),
65
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
67
+ 'finishDateTime': (new Date(json['finishDateTime'])),
66
68
  'isCompliant': json['isCompliant'],
67
69
  'isComplete': json['isComplete'],
68
70
  'signOffStatus': json['signOffStatus'],
@@ -73,7 +75,6 @@ function RosterResourceToJSON(json) {
73
75
  return RosterResourceToJSONTyped(json, false);
74
76
  }
75
77
  function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
76
- var _a;
77
78
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
78
79
  if (value == null) {
79
80
  return value;
@@ -83,7 +84,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
83
84
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
84
85
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
85
86
  'startDateTime': ((value['startDateTime']).toISOString()),
86
- 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
87
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
87
88
  'isCompliant': value['isCompliant'],
88
89
  'isComplete': value['isComplete'],
89
90
  'signOffStatus': value['signOffStatus'],
@@ -73,6 +73,9 @@ export * from './LicencesStoreRequestBackAsset';
73
73
  export * from './LicencesUpdateRequest';
74
74
  export * from './LicencesVerifyRequest';
75
75
  export * from './LoginAuthRequest';
76
+ export * from './MobileAppConfigRequest';
77
+ export * from './MobileAppConfigResource';
78
+ export * from './MobileAppConfigResourceArrayResponse';
76
79
  export * from './MobileDeviceResource';
77
80
  export * from './MobileDeviceResourceArrayResponse';
78
81
  export * from './MobileInitResource';
@@ -91,6 +91,9 @@ __exportStar(require("./LicencesStoreRequestBackAsset"), exports);
91
91
  __exportStar(require("./LicencesUpdateRequest"), exports);
92
92
  __exportStar(require("./LicencesVerifyRequest"), exports);
93
93
  __exportStar(require("./LoginAuthRequest"), exports);
94
+ __exportStar(require("./MobileAppConfigRequest"), exports);
95
+ __exportStar(require("./MobileAppConfigResource"), exports);
96
+ __exportStar(require("./MobileAppConfigResourceArrayResponse"), exports);
94
97
  __exportStar(require("./MobileDeviceResource"), exports);
95
98
  __exportStar(require("./MobileDeviceResourceArrayResponse"), exports);
96
99
  __exportStar(require("./MobileInitResource"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.435",
3
+ "version": "0.0.437",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -51,6 +51,8 @@ import type {
51
51
  LicencesUpdateRequest,
52
52
  LicencesVerifyRequest,
53
53
  LoginAuthRequest,
54
+ MobileAppConfigRequest,
55
+ MobileAppConfigResource,
54
56
  MobileDeviceResource,
55
57
  MobileInitResource,
56
58
  NotificationPreferenceResource,
@@ -191,6 +193,10 @@ import {
191
193
  LicencesVerifyRequestToJSON,
192
194
  LoginAuthRequestFromJSON,
193
195
  LoginAuthRequestToJSON,
196
+ MobileAppConfigRequestFromJSON,
197
+ MobileAppConfigRequestToJSON,
198
+ MobileAppConfigResourceFromJSON,
199
+ MobileAppConfigResourceToJSON,
194
200
  MobileDeviceResourceFromJSON,
195
201
  MobileDeviceResourceToJSON,
196
202
  MobileInitResourceFromJSON,
@@ -499,6 +505,10 @@ export interface LoginAuthOperationRequest {
499
505
  loginAuthRequest?: LoginAuthRequest;
500
506
  }
501
507
 
508
+ export interface MobileAppConfigOperationRequest {
509
+ mobileAppConfigRequest?: MobileAppConfigRequest;
510
+ }
511
+
502
512
  export interface NotificationPreferencesBulkOperationRequest {
503
513
  notificationPreferencesBulkRequest?: NotificationPreferencesBulkRequest;
504
514
  }
@@ -2640,6 +2650,46 @@ export class GeneralApi extends runtime.BaseAPI {
2640
2650
  return await response.value();
2641
2651
  }
2642
2652
 
2653
+ /**
2654
+ * Auto-generated: mobile.appConfig
2655
+ */
2656
+ async mobileAppConfigRaw(requestParameters: MobileAppConfigOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MobileAppConfigResource>> {
2657
+ const queryParameters: any = {};
2658
+
2659
+ const headerParameters: runtime.HTTPHeaders = {};
2660
+
2661
+ headerParameters['Content-Type'] = 'application/json';
2662
+
2663
+ if (this.configuration && this.configuration.accessToken) {
2664
+ const token = this.configuration.accessToken;
2665
+ const tokenString = await token("bearerAuth", []);
2666
+
2667
+ if (tokenString) {
2668
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2669
+ }
2670
+ }
2671
+
2672
+ let urlPath = `/api/mobile/app-config`;
2673
+
2674
+ const response = await this.request({
2675
+ path: urlPath,
2676
+ method: 'POST',
2677
+ headers: headerParameters,
2678
+ query: queryParameters,
2679
+ body: MobileAppConfigRequestToJSON(requestParameters['mobileAppConfigRequest']),
2680
+ }, initOverrides);
2681
+
2682
+ return new runtime.JSONApiResponse(response, (jsonValue) => MobileAppConfigResourceFromJSON(jsonValue));
2683
+ }
2684
+
2685
+ /**
2686
+ * Auto-generated: mobile.appConfig
2687
+ */
2688
+ async mobileAppConfig(requestParameters: MobileAppConfigOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MobileAppConfigResource> {
2689
+ const response = await this.mobileAppConfigRaw(requestParameters, initOverrides);
2690
+ return await response.value();
2691
+ }
2692
+
2643
2693
  /**
2644
2694
  * Auto-generated: mobile.init
2645
2695
  */
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText: string;
51
+ altText?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -83,7 +83,6 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
83
83
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
84
84
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
85
85
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
86
- if (!('altText' in value) || value['altText'] === undefined) return false;
87
86
  if (!('index' in value) || value['index'] === undefined) return false;
88
87
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
89
88
  if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
@@ -104,7 +103,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
104
103
  'filePath': json['filePath'],
105
104
  'fileName': json['fileName'],
106
105
  'mimeType': json['mimeType'],
107
- 'altText': json['altText'],
106
+ 'altText': json['altText'] == null ? undefined : json['altText'],
108
107
  'index': json['index'],
109
108
  'fileId': json['fileId'],
110
109
  'isExternal': json['isExternal'],
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
36
36
  * @type {string}
37
37
  * @memberof IncidentImageResource
38
38
  */
39
- altText: string;
39
+ altText?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {number}
@@ -57,7 +57,6 @@ export interface IncidentImageResource {
57
57
  export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
58
58
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
59
59
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
60
- if (!('altText' in value) || value['altText'] === undefined) return false;
61
60
  if (!('assetId' in value) || value['assetId'] === undefined) return false;
62
61
  if (!('url' in value) || value['url'] === undefined) return false;
63
62
  return true;
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
75
74
 
76
75
  'fileId': json['file_id'],
77
76
  'mimeType': json['mime_type'],
78
- 'altText': json['alt_text'],
77
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
79
78
  'assetId': json['asset_id'],
80
79
  'url': json['url'],
81
80
  };
@@ -0,0 +1,86 @@
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 MobileAppConfigRequest
20
+ */
21
+ export interface MobileAppConfigRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof MobileAppConfigRequest
26
+ */
27
+ platform: MobileAppConfigRequestPlatformEnum;
28
+ /**
29
+ * The app's current version as a semantic version string (e.g. "1.4.2").
30
+ * @type {string}
31
+ * @memberof MobileAppConfigRequest
32
+ */
33
+ appVersion: string;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const MobileAppConfigRequestPlatformEnum = {
41
+ Ios: 'ios',
42
+ Android: 'android'
43
+ } as const;
44
+ export type MobileAppConfigRequestPlatformEnum = typeof MobileAppConfigRequestPlatformEnum[keyof typeof MobileAppConfigRequestPlatformEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the MobileAppConfigRequest interface.
49
+ */
50
+ export function instanceOfMobileAppConfigRequest(value: object): value is MobileAppConfigRequest {
51
+ if (!('platform' in value) || value['platform'] === undefined) return false;
52
+ if (!('appVersion' in value) || value['appVersion'] === undefined) return false;
53
+ return true;
54
+ }
55
+
56
+ export function MobileAppConfigRequestFromJSON(json: any): MobileAppConfigRequest {
57
+ return MobileAppConfigRequestFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function MobileAppConfigRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigRequest {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'platform': json['platform'],
67
+ 'appVersion': json['app_version'],
68
+ };
69
+ }
70
+
71
+ export function MobileAppConfigRequestToJSON(json: any): MobileAppConfigRequest {
72
+ return MobileAppConfigRequestToJSONTyped(json, false);
73
+ }
74
+
75
+ export function MobileAppConfigRequestToJSONTyped(value?: MobileAppConfigRequest | null, ignoreDiscriminator: boolean = false): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+
80
+ return {
81
+
82
+ 'platform': value['platform'],
83
+ 'app_version': value['appVersion'],
84
+ };
85
+ }
86
+
@@ -0,0 +1,103 @@
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 MobileAppConfigResource
20
+ */
21
+ export interface MobileAppConfigResource {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof MobileAppConfigResource
26
+ */
27
+ platform: MobileAppConfigResourcePlatformEnum;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof MobileAppConfigResource
32
+ */
33
+ forceUpdate: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof MobileAppConfigResource
38
+ */
39
+ updateUrl: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof MobileAppConfigResource
44
+ */
45
+ message?: string | null;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const MobileAppConfigResourcePlatformEnum = {
53
+ Ios: 'ios',
54
+ Android: 'android'
55
+ } as const;
56
+ export type MobileAppConfigResourcePlatformEnum = typeof MobileAppConfigResourcePlatformEnum[keyof typeof MobileAppConfigResourcePlatformEnum];
57
+
58
+
59
+ /**
60
+ * Check if a given object implements the MobileAppConfigResource interface.
61
+ */
62
+ export function instanceOfMobileAppConfigResource(value: object): value is MobileAppConfigResource {
63
+ if (!('platform' in value) || value['platform'] === undefined) return false;
64
+ if (!('forceUpdate' in value) || value['forceUpdate'] === undefined) return false;
65
+ if (!('updateUrl' in value) || value['updateUrl'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function MobileAppConfigResourceFromJSON(json: any): MobileAppConfigResource {
70
+ return MobileAppConfigResourceFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function MobileAppConfigResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigResource {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'platform': json['platform'],
80
+ 'forceUpdate': json['forceUpdate'],
81
+ 'updateUrl': json['updateUrl'],
82
+ 'message': json['message'] == null ? undefined : json['message'],
83
+ };
84
+ }
85
+
86
+ export function MobileAppConfigResourceToJSON(json: any): MobileAppConfigResource {
87
+ return MobileAppConfigResourceToJSONTyped(json, false);
88
+ }
89
+
90
+ export function MobileAppConfigResourceToJSONTyped(value?: MobileAppConfigResource | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'platform': value['platform'],
98
+ 'forceUpdate': value['forceUpdate'],
99
+ 'updateUrl': value['updateUrl'],
100
+ 'message': value['message'],
101
+ };
102
+ }
103
+
@@ -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 { MobileAppConfigResource } from './MobileAppConfigResource';
17
+ import {
18
+ MobileAppConfigResourceFromJSON,
19
+ MobileAppConfigResourceFromJSONTyped,
20
+ MobileAppConfigResourceToJSON,
21
+ MobileAppConfigResourceToJSONTyped,
22
+ } from './MobileAppConfigResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface MobileAppConfigResourceArrayResponse
28
+ */
29
+ export interface MobileAppConfigResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<MobileAppConfigResource>}
33
+ * @memberof MobileAppConfigResourceArrayResponse
34
+ */
35
+ data?: Array<MobileAppConfigResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the MobileAppConfigResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfMobileAppConfigResourceArrayResponse(value: object): value is MobileAppConfigResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function MobileAppConfigResourceArrayResponseFromJSON(json: any): MobileAppConfigResourceArrayResponse {
46
+ return MobileAppConfigResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function MobileAppConfigResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(MobileAppConfigResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function MobileAppConfigResourceArrayResponseToJSON(json: any): MobileAppConfigResourceArrayResponse {
60
+ return MobileAppConfigResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function MobileAppConfigResourceArrayResponseToJSONTyped(value?: MobileAppConfigResourceArrayResponse | 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(MobileAppConfigResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -63,13 +63,13 @@ export interface RegisterListResource {
63
63
  * @type {Date}
64
64
  * @memberof RegisterListResource
65
65
  */
66
- finishDateTime: Date;
66
+ finishDateTime?: Date | null;
67
67
  /**
68
68
  *
69
- * @type {string}
69
+ * @type {object}
70
70
  * @memberof RegisterListResource
71
71
  */
72
- shiftLength: string;
72
+ shiftLength: object;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -81,7 +81,7 @@ export interface RegisterListResource {
81
81
  * @type {string}
82
82
  * @memberof RegisterListResource
83
83
  */
84
- badgeNumber: string;
84
+ badgeNumber?: string | null;
85
85
  /**
86
86
  *
87
87
  * @type {Date}
@@ -171,7 +171,7 @@ export interface RegisterListResource {
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLong: number;
174
+ signOffLong?: number | null;
175
175
  /**
176
176
  *
177
177
  * @type {boolean}
@@ -199,10 +199,8 @@ export function instanceOfRegisterListResource(value: object): value is Register
199
199
  if (!('user' in value) || value['user'] === undefined) return false;
200
200
  if (!('venue' in value) || value['venue'] === undefined) return false;
201
201
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
202
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
203
202
  if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
204
203
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
205
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
206
204
  if (!('rampReadAt' in value) || value['rampReadAt'] === undefined) return false;
207
205
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
208
206
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -216,7 +214,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
216
214
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
217
215
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
218
216
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
219
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
220
217
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
221
218
  return true;
222
219
  }
@@ -235,10 +232,10 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
235
232
  'user': UserLiteResourceFromJSON(json['user']),
236
233
  'venue': VenueLiteResourceFromJSON(json['venue']),
237
234
  'startDateTime': (new Date(json['startDateTime'])),
238
- 'finishDateTime': (new Date(json['finishDateTime'])),
235
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
239
236
  'shiftLength': json['shiftLength'],
240
237
  'signOffStatus': json['signOffStatus'],
241
- 'badgeNumber': json['badgeNumber'],
238
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
242
239
  'rampReadAt': (new Date(json['rampReadAt'])),
243
240
  'licenceNumber': json['licenceNumber'],
244
241
  'licenceFirstName': json['licenceFirstName'],
@@ -253,7 +250,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
253
250
  'signOnLat': json['signOnLat'],
254
251
  'signOnLong': json['signOnLong'],
255
252
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
256
- 'signOffLong': json['signOffLong'],
253
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
257
254
  'hasIncidents': json['hasIncidents'],
258
255
  };
259
256
  }
@@ -273,7 +270,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
273
270
  'user': UserLiteResourceToJSON(value['user']),
274
271
  'venue': VenueLiteResourceToJSON(value['venue']),
275
272
  'startDateTime': ((value['startDateTime']).toISOString()),
276
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
273
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
277
274
  'shiftLength': value['shiftLength'],
278
275
  'signOffStatus': value['signOffStatus'],
279
276
  'badgeNumber': value['badgeNumber'],
@@ -129,7 +129,7 @@ export interface RegisterResource {
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLong?: number | null;
132
+ signOffLong: number;
133
133
  /**
134
134
  *
135
135
  * @type {string}
@@ -210,6 +210,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
210
210
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
211
211
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
212
212
  if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
213
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
213
214
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
214
215
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
215
216
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -243,7 +244,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
243
244
  'signOnLat': json['signOnLat'],
244
245
  'signOnLong': json['signOnLong'],
245
246
  'signOffLat': json['signOffLat'],
246
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
247
+ 'signOffLong': json['signOffLong'],
247
248
  'licenceNumber': json['licenceNumber'],
248
249
  'licenceExpiry': json['licenceExpiry'],
249
250
  'licenceFirstName': json['licenceFirstName'],
@@ -70,7 +70,7 @@ export interface RosterResource {
70
70
  * @type {Date}
71
71
  * @memberof RosterResource
72
72
  */
73
- finishDateTime?: Date | null;
73
+ finishDateTime: Date;
74
74
  /**
75
75
  *
76
76
  * @type {boolean}
@@ -116,6 +116,7 @@ export function instanceOfRosterResource(value: object): value is RosterResource
116
116
  if (!('venue' in value) || value['venue'] === undefined) return false;
117
117
  if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
118
118
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
119
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
119
120
  if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
120
121
  if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
121
122
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
@@ -137,7 +138,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
137
138
  'venue': VenueLiteResourceFromJSON(json['venue']),
138
139
  'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
139
140
  'startDateTime': (new Date(json['startDateTime'])),
140
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
141
+ 'finishDateTime': (new Date(json['finishDateTime'])),
141
142
  'isCompliant': json['isCompliant'],
142
143
  'isComplete': json['isComplete'],
143
144
  'signOffStatus': json['signOffStatus'],
@@ -160,7 +161,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
160
161
  'venue': VenueLiteResourceToJSON(value['venue']),
161
162
  'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
162
163
  'startDateTime': ((value['startDateTime']).toISOString()),
163
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
164
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
164
165
  'isCompliant': value['isCompliant'],
165
166
  'isComplete': value['isComplete'],
166
167
  'signOffStatus': value['signOffStatus'],
@@ -75,6 +75,9 @@ export * from './LicencesStoreRequestBackAsset';
75
75
  export * from './LicencesUpdateRequest';
76
76
  export * from './LicencesVerifyRequest';
77
77
  export * from './LoginAuthRequest';
78
+ export * from './MobileAppConfigRequest';
79
+ export * from './MobileAppConfigResource';
80
+ export * from './MobileAppConfigResourceArrayResponse';
78
81
  export * from './MobileDeviceResource';
79
82
  export * from './MobileDeviceResourceArrayResponse';
80
83
  export * from './MobileInitResource';