@digital8/security-registers-backend-ts-sdk 0.0.436 → 0.0.438

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 (39) 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/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +3 -1
  7. package/dist/models/AssetResource.d.ts +1 -1
  8. package/dist/models/AssetResource.js +1 -3
  9. package/dist/models/IncidentImageResource.d.ts +1 -1
  10. package/dist/models/IncidentImageResource.js +3 -1
  11. package/dist/models/MobileAppConfigRequest.d.ts +46 -0
  12. package/dist/models/MobileAppConfigRequest.js +63 -0
  13. package/dist/models/MobileAppConfigResource.d.ts +58 -0
  14. package/dist/models/MobileAppConfigResource.js +69 -0
  15. package/dist/models/MobileAppConfigResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/MobileAppConfigResourceArrayResponse.js +50 -0
  17. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  18. package/dist/models/RegisterGroupedByRosterResource.js +3 -4
  19. package/dist/models/RegisterListResource.d.ts +1 -1
  20. package/dist/models/RegisterListResource.js +3 -1
  21. package/dist/models/RegisterResource.d.ts +1 -1
  22. package/dist/models/RegisterResource.js +3 -1
  23. package/dist/models/RosterResource.d.ts +1 -1
  24. package/dist/models/RosterResource.js +3 -4
  25. package/dist/models/index.d.ts +3 -0
  26. package/dist/models/index.js +3 -0
  27. package/package.json +1 -1
  28. package/src/apis/GeneralApi.ts +50 -0
  29. package/src/models/AddressResource.ts +3 -2
  30. package/src/models/AssetResource.ts +2 -3
  31. package/src/models/IncidentImageResource.ts +3 -2
  32. package/src/models/MobileAppConfigRequest.ts +86 -0
  33. package/src/models/MobileAppConfigResource.ts +103 -0
  34. package/src/models/MobileAppConfigResourceArrayResponse.ts +73 -0
  35. package/src/models/RegisterGroupedByRosterResource.ts +3 -4
  36. package/src/models/RegisterListResource.ts +3 -2
  37. package/src/models/RegisterResource.ts +3 -2
  38. package/src/models/RosterResource.ts +3 -4
  39. 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.436
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.438
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.436 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.438 --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
  */
@@ -32,7 +32,7 @@ export interface AddressResource {
32
32
  * @type {string}
33
33
  * @memberof AddressResource
34
34
  */
35
- addressLine2?: string | null;
35
+ addressLine2: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
24
24
  function instanceOfAddressResource(value) {
25
25
  if (!('addressLine1' in value) || value['addressLine1'] === undefined)
26
26
  return false;
27
+ if (!('addressLine2' in value) || value['addressLine2'] === undefined)
28
+ return false;
27
29
  if (!('suburb' in value) || value['suburb'] === undefined)
28
30
  return false;
29
31
  if (!('city' in value) || value['city'] === undefined)
@@ -48,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
48
50
  return {
49
51
  'id': json['id'] == null ? undefined : json['id'],
50
52
  'addressLine1': json['addressLine1'],
51
- 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
53
+ 'addressLine2': json['addressLine2'],
52
54
  'suburb': json['suburb'],
53
55
  'city': json['city'],
54
56
  'state': json['state'],
@@ -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 | null;
35
+ altText: string;
36
36
  /**
37
37
  *
38
38
  * @type {number}
@@ -26,6 +26,8 @@ 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;
29
31
  if (!('assetId' in value) || value['assetId'] === undefined)
30
32
  return false;
31
33
  if (!('url' in value) || value['url'] === undefined)
@@ -42,7 +44,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
42
44
  return {
43
45
  'fileId': json['file_id'],
44
46
  'mimeType': json['mime_type'],
45
- 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
47
+ 'altText': json['alt_text'],
46
48
  'assetId': json['asset_id'],
47
49
  'url': json['url'],
48
50
  };
@@ -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
+ }
@@ -52,7 +52,7 @@ export interface RegisterGroupedByRosterResource {
52
52
  * @type {Date}
53
53
  * @memberof RegisterGroupedByRosterResource
54
54
  */
55
- finishDateTime: Date;
55
+ finishDateTime?: Date | null;
56
56
  /**
57
57
  *
58
58
  * @type {Array<RegisterListResource>}
@@ -32,8 +32,6 @@ function instanceOfRegisterGroupedByRosterResource(value) {
32
32
  return false;
33
33
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
34
34
  return false;
35
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
36
- return false;
37
35
  if (!('registers' in value) || value['registers'] === undefined)
38
36
  return false;
39
37
  return true;
@@ -51,7 +49,7 @@ function RegisterGroupedByRosterResourceFromJSONTyped(json, ignoreDiscriminator)
51
49
  'timezone': json['timezone'],
52
50
  'state': json['state'],
53
51
  'startDateTime': (new Date(json['startDateTime'])),
54
- 'finishDateTime': (new Date(json['finishDateTime'])),
52
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
55
53
  'registers': (json['registers'] == null ? null : json['registers'].map(RegisterListResource_1.RegisterListResourceFromJSON)),
56
54
  };
57
55
  }
@@ -59,6 +57,7 @@ function RegisterGroupedByRosterResourceToJSON(json) {
59
57
  return RegisterGroupedByRosterResourceToJSONTyped(json, false);
60
58
  }
61
59
  function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator) {
60
+ var _a;
62
61
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
63
62
  if (value == null) {
64
63
  return value;
@@ -69,7 +68,7 @@ function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator)
69
68
  'timezone': value['timezone'],
70
69
  'state': value['state'],
71
70
  'startDateTime': ((value['startDateTime']).toISOString()),
72
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
71
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
73
72
  'registers': (value['registers'] == null ? null : value['registers'].map(RegisterListResource_1.RegisterListResourceToJSON)),
74
73
  };
75
74
  }
@@ -148,7 +148,7 @@ export interface RegisterListResource {
148
148
  * @type {number}
149
149
  * @memberof RegisterListResource
150
150
  */
151
- signOffLat?: number | null;
151
+ signOffLat: number;
152
152
  /**
153
153
  *
154
154
  * @type {number}
@@ -69,6 +69,8 @@ function instanceOfRegisterListResource(value) {
69
69
  return false;
70
70
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
71
71
  return false;
72
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
73
+ return false;
72
74
  if (!('signOffLong' in value) || value['signOffLong'] === undefined)
73
75
  return false;
74
76
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
@@ -104,7 +106,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
104
106
  'firstAid': json['firstAid'],
105
107
  'signOnLat': json['signOnLat'],
106
108
  'signOnLong': json['signOnLong'],
107
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
109
+ 'signOffLat': json['signOffLat'],
108
110
  'signOffLong': json['signOffLong'],
109
111
  'hasIncidents': json['hasIncidents'],
110
112
  };
@@ -106,7 +106,7 @@ export interface RegisterResource {
106
106
  * @type {number}
107
107
  * @memberof RegisterResource
108
108
  */
109
- signOffLat?: number | null;
109
+ signOffLat: number;
110
110
  /**
111
111
  *
112
112
  * @type {number}
@@ -59,6 +59,8 @@ function instanceOfRegisterResource(value) {
59
59
  return false;
60
60
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
61
61
  return false;
62
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined)
63
+ return false;
62
64
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
63
65
  return false;
64
66
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -93,7 +95,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
93
95
  'firstAidImage': json['firstAidImage'],
94
96
  'signOnLat': json['signOnLat'],
95
97
  'signOnLong': json['signOnLong'],
96
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
98
+ 'signOffLat': json['signOffLat'],
97
99
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
98
100
  'licenceNumber': json['licenceNumber'],
99
101
  'licenceExpiry': json['licenceExpiry'],
@@ -47,7 +47,7 @@ export interface RosterResource {
47
47
  * @type {Date}
48
48
  * @memberof RosterResource
49
49
  */
50
- finishDateTime: Date;
50
+ finishDateTime?: Date | null;
51
51
  /**
52
52
  *
53
53
  * @type {boolean}