@digital8/security-registers-backend-ts-sdk 0.0.74 → 0.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.74
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.76
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.74 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.76 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText?: string | null;
47
+ altText: string;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -30,6 +30,8 @@ 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;
33
35
  if (!('index' in value) || value['index'] === undefined)
34
36
  return false;
35
37
  if (!('fileId' in value) || value['fileId'] === undefined)
@@ -48,7 +50,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
48
50
  'filePath': json['filePath'],
49
51
  'fileName': json['fileName'],
50
52
  'mimeType': json['mimeType'],
51
- 'altText': json['altText'] == null ? undefined : json['altText'],
53
+ 'altText': json['altText'],
52
54
  'index': json['index'],
53
55
  'fileId': json['fileId'],
54
56
  };
@@ -80,7 +80,7 @@ export interface IndexUserRequest {
80
80
  * @type {string}
81
81
  * @memberof IndexUserRequest
82
82
  */
83
- relatedType?: IndexUserRequestRelatedTypeEnum;
83
+ relatedType?: string;
84
84
  /**
85
85
  *
86
86
  * @type {boolean}
@@ -106,14 +106,6 @@ export declare const IndexUserRequestSortDirectionEnum: {
106
106
  readonly Desc: "desc";
107
107
  };
108
108
  export type IndexUserRequestSortDirectionEnum = typeof IndexUserRequestSortDirectionEnum[keyof typeof IndexUserRequestSortDirectionEnum];
109
- /**
110
- * @export
111
- */
112
- export declare const IndexUserRequestRelatedTypeEnum: {
113
- readonly Venue: "venue";
114
- readonly SecurityCompany: "securityCompany";
115
- };
116
- export type IndexUserRequestRelatedTypeEnum = typeof IndexUserRequestRelatedTypeEnum[keyof typeof IndexUserRequestRelatedTypeEnum];
117
109
  /**
118
110
  * Check if a given object implements the IndexUserRequest interface.
119
111
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.IndexUserRequestRelatedTypeEnum = exports.IndexUserRequestSortDirectionEnum = exports.IndexUserRequestSortByEnum = void 0;
16
+ exports.IndexUserRequestSortDirectionEnum = exports.IndexUserRequestSortByEnum = void 0;
17
17
  exports.instanceOfIndexUserRequest = instanceOfIndexUserRequest;
18
18
  exports.IndexUserRequestFromJSON = IndexUserRequestFromJSON;
19
19
  exports.IndexUserRequestFromJSONTyped = IndexUserRequestFromJSONTyped;
@@ -35,13 +35,6 @@ exports.IndexUserRequestSortDirectionEnum = {
35
35
  Asc: 'asc',
36
36
  Desc: 'desc'
37
37
  };
38
- /**
39
- * @export
40
- */
41
- exports.IndexUserRequestRelatedTypeEnum = {
42
- Venue: 'venue',
43
- SecurityCompany: 'securityCompany'
44
- };
45
38
  /**
46
39
  * Check if a given object implements the IndexUserRequest interface.
47
40
  */
@@ -68,7 +68,7 @@ export interface SecurityCompaniesListRequest {
68
68
  * @type {string}
69
69
  * @memberof SecurityCompaniesListRequest
70
70
  */
71
- relatedType?: SecurityCompaniesListRequestRelatedTypeEnum;
71
+ relatedType?: string;
72
72
  /**
73
73
  *
74
74
  * @type {boolean}
@@ -96,14 +96,6 @@ export declare const SecurityCompaniesListRequestSortDirectionEnum: {
96
96
  readonly Desc: "desc";
97
97
  };
98
98
  export type SecurityCompaniesListRequestSortDirectionEnum = typeof SecurityCompaniesListRequestSortDirectionEnum[keyof typeof SecurityCompaniesListRequestSortDirectionEnum];
99
- /**
100
- * @export
101
- */
102
- export declare const SecurityCompaniesListRequestRelatedTypeEnum: {
103
- readonly User: "user";
104
- readonly Venue: "venue";
105
- };
106
- export type SecurityCompaniesListRequestRelatedTypeEnum = typeof SecurityCompaniesListRequestRelatedTypeEnum[keyof typeof SecurityCompaniesListRequestRelatedTypeEnum];
107
99
  /**
108
100
  * Check if a given object implements the SecurityCompaniesListRequest interface.
109
101
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SecurityCompaniesListRequestRelatedTypeEnum = exports.SecurityCompaniesListRequestSortDirectionEnum = exports.SecurityCompaniesListRequestSortByEnum = void 0;
16
+ exports.SecurityCompaniesListRequestSortDirectionEnum = exports.SecurityCompaniesListRequestSortByEnum = void 0;
17
17
  exports.instanceOfSecurityCompaniesListRequest = instanceOfSecurityCompaniesListRequest;
18
18
  exports.SecurityCompaniesListRequestFromJSON = SecurityCompaniesListRequestFromJSON;
19
19
  exports.SecurityCompaniesListRequestFromJSONTyped = SecurityCompaniesListRequestFromJSONTyped;
@@ -37,13 +37,6 @@ exports.SecurityCompaniesListRequestSortDirectionEnum = {
37
37
  Asc: 'asc',
38
38
  Desc: 'desc'
39
39
  };
40
- /**
41
- * @export
42
- */
43
- exports.SecurityCompaniesListRequestRelatedTypeEnum = {
44
- User: 'user',
45
- Venue: 'venue'
46
- };
47
40
  /**
48
41
  * Check if a given object implements the SecurityCompaniesListRequest interface.
49
42
  */
@@ -33,7 +33,7 @@ export interface SecurityCompanyResource {
33
33
  * @type {string}
34
34
  * @memberof SecurityCompanyResource
35
35
  */
36
- email?: string | null;
36
+ email: string;
37
37
  /**
38
38
  *
39
39
  * @type {boolean}
@@ -25,6 +25,8 @@ var AddressResource_1 = require("./AddressResource");
25
25
  function instanceOfSecurityCompanyResource(value) {
26
26
  if (!('name' in value) || value['name'] === undefined)
27
27
  return false;
28
+ if (!('email' in value) || value['email'] === undefined)
29
+ return false;
28
30
  if (!('isEnabled' in value) || value['isEnabled'] === undefined)
29
31
  return false;
30
32
  if (!('address' in value) || value['address'] === undefined)
@@ -43,7 +45,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
43
45
  return {
44
46
  'id': json['id'] == null ? undefined : json['id'],
45
47
  'name': json['name'],
46
- 'email': json['email'] == null ? undefined : json['email'],
48
+ 'email': json['email'],
47
49
  'isEnabled': json['isEnabled'],
48
50
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
49
51
  'licenceNumber': json['licenceNumber'],
@@ -32,20 +32,34 @@ export interface UpdateUserRequest {
32
32
  * @type {string}
33
33
  * @memberof UpdateUserRequest
34
34
  */
35
- email?: string;
35
+ email: string;
36
36
  /**
37
37
  *
38
- * @type {number}
38
+ * @type {string}
39
39
  * @memberof UpdateUserRequest
40
40
  */
41
- mobile?: number;
41
+ mobile: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
45
45
  * @memberof UpdateUserRequest
46
46
  */
47
47
  password?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof UpdateUserRequest
52
+ */
53
+ role?: UpdateUserRequestRoleEnum;
48
54
  }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const UpdateUserRequestRoleEnum: {
59
+ readonly VenueManager: "venue_manager";
60
+ readonly VenueStaff: "venue_staff";
61
+ };
62
+ export type UpdateUserRequestRoleEnum = typeof UpdateUserRequestRoleEnum[keyof typeof UpdateUserRequestRoleEnum];
49
63
  /**
50
64
  * Check if a given object implements the UpdateUserRequest interface.
51
65
  */
@@ -13,15 +13,27 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateUserRequestRoleEnum = void 0;
16
17
  exports.instanceOfUpdateUserRequest = instanceOfUpdateUserRequest;
17
18
  exports.UpdateUserRequestFromJSON = UpdateUserRequestFromJSON;
18
19
  exports.UpdateUserRequestFromJSONTyped = UpdateUserRequestFromJSONTyped;
19
20
  exports.UpdateUserRequestToJSON = UpdateUserRequestToJSON;
20
21
  exports.UpdateUserRequestToJSONTyped = UpdateUserRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.UpdateUserRequestRoleEnum = {
26
+ VenueManager: 'venue_manager',
27
+ VenueStaff: 'venue_staff'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the UpdateUserRequest interface.
23
31
  */
24
32
  function instanceOfUpdateUserRequest(value) {
33
+ if (!('email' in value) || value['email'] === undefined)
34
+ return false;
35
+ if (!('mobile' in value) || value['mobile'] === undefined)
36
+ return false;
25
37
  return true;
26
38
  }
27
39
  function UpdateUserRequestFromJSON(json) {
@@ -34,9 +46,10 @@ function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
34
46
  return {
35
47
  'firstName': json['first_name'] == null ? undefined : json['first_name'],
36
48
  'lastName': json['last_name'] == null ? undefined : json['last_name'],
37
- 'email': json['email'] == null ? undefined : json['email'],
38
- 'mobile': json['mobile'] == null ? undefined : json['mobile'],
49
+ 'email': json['email'],
50
+ 'mobile': json['mobile'],
39
51
  'password': json['password'] == null ? undefined : json['password'],
52
+ 'role': json['role'] == null ? undefined : json['role'],
40
53
  };
41
54
  }
42
55
  function UpdateUserRequestToJSON(json) {
@@ -53,5 +66,6 @@ function UpdateUserRequestToJSONTyped(value, ignoreDiscriminator) {
53
66
  'email': value['email'],
54
67
  'mobile': value['mobile'],
55
68
  'password': value['password'],
69
+ 'role': value['role'],
56
70
  };
57
71
  }
@@ -86,7 +86,7 @@ export interface VenuesListRequest {
86
86
  * @type {string}
87
87
  * @memberof VenuesListRequest
88
88
  */
89
- relatedType?: VenuesListRequestRelatedTypeEnum;
89
+ relatedType?: string;
90
90
  /**
91
91
  *
92
92
  * @type {boolean}
@@ -114,14 +114,6 @@ export declare const VenuesListRequestSortDirectionEnum: {
114
114
  readonly Desc: "desc";
115
115
  };
116
116
  export type VenuesListRequestSortDirectionEnum = typeof VenuesListRequestSortDirectionEnum[keyof typeof VenuesListRequestSortDirectionEnum];
117
- /**
118
- * @export
119
- */
120
- export declare const VenuesListRequestRelatedTypeEnum: {
121
- readonly User: "user";
122
- readonly SecurityCompany: "securityCompany";
123
- };
124
- export type VenuesListRequestRelatedTypeEnum = typeof VenuesListRequestRelatedTypeEnum[keyof typeof VenuesListRequestRelatedTypeEnum];
125
117
  /**
126
118
  * Check if a given object implements the VenuesListRequest interface.
127
119
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.VenuesListRequestRelatedTypeEnum = exports.VenuesListRequestSortDirectionEnum = exports.VenuesListRequestSortByEnum = void 0;
16
+ exports.VenuesListRequestSortDirectionEnum = exports.VenuesListRequestSortByEnum = void 0;
17
17
  exports.instanceOfVenuesListRequest = instanceOfVenuesListRequest;
18
18
  exports.VenuesListRequestFromJSON = VenuesListRequestFromJSON;
19
19
  exports.VenuesListRequestFromJSONTyped = VenuesListRequestFromJSONTyped;
@@ -37,13 +37,6 @@ exports.VenuesListRequestSortDirectionEnum = {
37
37
  Asc: 'asc',
38
38
  Desc: 'desc'
39
39
  };
40
- /**
41
- * @export
42
- */
43
- exports.VenuesListRequestRelatedTypeEnum = {
44
- User: 'user',
45
- SecurityCompany: 'securityCompany'
46
- };
47
40
  /**
48
41
  * Check if a given object implements the VenuesListRequest interface.
49
42
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText?: string | null;
51
+ altText: string;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -71,6 +71,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
71
71
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
72
72
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
73
73
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
74
+ if (!('altText' in value) || value['altText'] === undefined) return false;
74
75
  if (!('index' in value) || value['index'] === undefined) return false;
75
76
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
76
77
  return true;
@@ -90,7 +91,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
90
91
  'filePath': json['filePath'],
91
92
  'fileName': json['fileName'],
92
93
  'mimeType': json['mimeType'],
93
- 'altText': json['altText'] == null ? undefined : json['altText'],
94
+ 'altText': json['altText'],
94
95
  'index': json['index'],
95
96
  'fileId': json['fileId'],
96
97
  };
@@ -84,7 +84,7 @@ export interface IndexUserRequest {
84
84
  * @type {string}
85
85
  * @memberof IndexUserRequest
86
86
  */
87
- relatedType?: IndexUserRequestRelatedTypeEnum;
87
+ relatedType?: string;
88
88
  /**
89
89
  *
90
90
  * @type {boolean}
@@ -114,15 +114,6 @@ export const IndexUserRequestSortDirectionEnum = {
114
114
  } as const;
115
115
  export type IndexUserRequestSortDirectionEnum = typeof IndexUserRequestSortDirectionEnum[keyof typeof IndexUserRequestSortDirectionEnum];
116
116
 
117
- /**
118
- * @export
119
- */
120
- export const IndexUserRequestRelatedTypeEnum = {
121
- Venue: 'venue',
122
- SecurityCompany: 'securityCompany'
123
- } as const;
124
- export type IndexUserRequestRelatedTypeEnum = typeof IndexUserRequestRelatedTypeEnum[keyof typeof IndexUserRequestRelatedTypeEnum];
125
-
126
117
 
127
118
  /**
128
119
  * Check if a given object implements the IndexUserRequest interface.
@@ -72,7 +72,7 @@ export interface SecurityCompaniesListRequest {
72
72
  * @type {string}
73
73
  * @memberof SecurityCompaniesListRequest
74
74
  */
75
- relatedType?: SecurityCompaniesListRequestRelatedTypeEnum;
75
+ relatedType?: string;
76
76
  /**
77
77
  *
78
78
  * @type {boolean}
@@ -104,15 +104,6 @@ export const SecurityCompaniesListRequestSortDirectionEnum = {
104
104
  } as const;
105
105
  export type SecurityCompaniesListRequestSortDirectionEnum = typeof SecurityCompaniesListRequestSortDirectionEnum[keyof typeof SecurityCompaniesListRequestSortDirectionEnum];
106
106
 
107
- /**
108
- * @export
109
- */
110
- export const SecurityCompaniesListRequestRelatedTypeEnum = {
111
- User: 'user',
112
- Venue: 'venue'
113
- } as const;
114
- export type SecurityCompaniesListRequestRelatedTypeEnum = typeof SecurityCompaniesListRequestRelatedTypeEnum[keyof typeof SecurityCompaniesListRequestRelatedTypeEnum];
115
-
116
107
 
117
108
  /**
118
109
  * Check if a given object implements the SecurityCompaniesListRequest interface.
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
44
44
  * @type {string}
45
45
  * @memberof SecurityCompanyResource
46
46
  */
47
- email?: string | null;
47
+ email: string;
48
48
  /**
49
49
  *
50
50
  * @type {boolean}
@@ -82,6 +82,7 @@ export interface SecurityCompanyResource {
82
82
  */
83
83
  export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
84
84
  if (!('name' in value) || value['name'] === undefined) return false;
85
+ if (!('email' in value) || value['email'] === undefined) return false;
85
86
  if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
86
87
  if (!('address' in value) || value['address'] === undefined) return false;
87
88
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
@@ -100,7 +101,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
100
101
 
101
102
  'id': json['id'] == null ? undefined : json['id'],
102
103
  'name': json['name'],
103
- 'email': json['email'] == null ? undefined : json['email'],
104
+ 'email': json['email'],
104
105
  'isEnabled': json['isEnabled'],
105
106
  'address': AddressResourceFromJSON(json['address']),
106
107
  'licenceNumber': json['licenceNumber'],
@@ -36,25 +36,44 @@ export interface UpdateUserRequest {
36
36
  * @type {string}
37
37
  * @memberof UpdateUserRequest
38
38
  */
39
- email?: string;
39
+ email: string;
40
40
  /**
41
41
  *
42
- * @type {number}
42
+ * @type {string}
43
43
  * @memberof UpdateUserRequest
44
44
  */
45
- mobile?: number;
45
+ mobile: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
49
49
  * @memberof UpdateUserRequest
50
50
  */
51
51
  password?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof UpdateUserRequest
56
+ */
57
+ role?: UpdateUserRequestRoleEnum;
52
58
  }
53
59
 
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const UpdateUserRequestRoleEnum = {
65
+ VenueManager: 'venue_manager',
66
+ VenueStaff: 'venue_staff'
67
+ } as const;
68
+ export type UpdateUserRequestRoleEnum = typeof UpdateUserRequestRoleEnum[keyof typeof UpdateUserRequestRoleEnum];
69
+
70
+
54
71
  /**
55
72
  * Check if a given object implements the UpdateUserRequest interface.
56
73
  */
57
74
  export function instanceOfUpdateUserRequest(value: object): value is UpdateUserRequest {
75
+ if (!('email' in value) || value['email'] === undefined) return false;
76
+ if (!('mobile' in value) || value['mobile'] === undefined) return false;
58
77
  return true;
59
78
  }
60
79
 
@@ -70,9 +89,10 @@ export function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: b
70
89
 
71
90
  'firstName': json['first_name'] == null ? undefined : json['first_name'],
72
91
  'lastName': json['last_name'] == null ? undefined : json['last_name'],
73
- 'email': json['email'] == null ? undefined : json['email'],
74
- 'mobile': json['mobile'] == null ? undefined : json['mobile'],
92
+ 'email': json['email'],
93
+ 'mobile': json['mobile'],
75
94
  'password': json['password'] == null ? undefined : json['password'],
95
+ 'role': json['role'] == null ? undefined : json['role'],
76
96
  };
77
97
  }
78
98
 
@@ -92,6 +112,7 @@ export function UpdateUserRequestToJSONTyped(value?: UpdateUserRequest | null, i
92
112
  'email': value['email'],
93
113
  'mobile': value['mobile'],
94
114
  'password': value['password'],
115
+ 'role': value['role'],
95
116
  };
96
117
  }
97
118
 
@@ -90,7 +90,7 @@ export interface VenuesListRequest {
90
90
  * @type {string}
91
91
  * @memberof VenuesListRequest
92
92
  */
93
- relatedType?: VenuesListRequestRelatedTypeEnum;
93
+ relatedType?: string;
94
94
  /**
95
95
  *
96
96
  * @type {boolean}
@@ -122,15 +122,6 @@ export const VenuesListRequestSortDirectionEnum = {
122
122
  } as const;
123
123
  export type VenuesListRequestSortDirectionEnum = typeof VenuesListRequestSortDirectionEnum[keyof typeof VenuesListRequestSortDirectionEnum];
124
124
 
125
- /**
126
- * @export
127
- */
128
- export const VenuesListRequestRelatedTypeEnum = {
129
- User: 'user',
130
- SecurityCompany: 'securityCompany'
131
- } as const;
132
- export type VenuesListRequestRelatedTypeEnum = typeof VenuesListRequestRelatedTypeEnum[keyof typeof VenuesListRequestRelatedTypeEnum];
133
-
134
125
 
135
126
  /**
136
127
  * Check if a given object implements the VenuesListRequest interface.