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

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.73
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.74
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.73 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.74 --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;
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)
@@ -50,7 +48,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
50
48
  'filePath': json['filePath'],
51
49
  'fileName': json['fileName'],
52
50
  'mimeType': json['mimeType'],
53
- 'altText': json['altText'],
51
+ 'altText': json['altText'] == null ? undefined : json['altText'],
54
52
  'index': json['index'],
55
53
  'fileId': json['fileId'],
56
54
  };
@@ -80,7 +80,7 @@ export interface IndexUserRequest {
80
80
  * @type {string}
81
81
  * @memberof IndexUserRequest
82
82
  */
83
- relatedType?: string;
83
+ relatedType?: IndexUserRequestRelatedTypeEnum;
84
84
  /**
85
85
  *
86
86
  * @type {boolean}
@@ -106,6 +106,14 @@ 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];
109
117
  /**
110
118
  * Check if a given object implements the IndexUserRequest interface.
111
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.IndexUserRequestSortDirectionEnum = exports.IndexUserRequestSortByEnum = void 0;
16
+ exports.IndexUserRequestRelatedTypeEnum = exports.IndexUserRequestSortDirectionEnum = exports.IndexUserRequestSortByEnum = void 0;
17
17
  exports.instanceOfIndexUserRequest = instanceOfIndexUserRequest;
18
18
  exports.IndexUserRequestFromJSON = IndexUserRequestFromJSON;
19
19
  exports.IndexUserRequestFromJSONTyped = IndexUserRequestFromJSONTyped;
@@ -35,6 +35,13 @@ 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
+ };
38
45
  /**
39
46
  * Check if a given object implements the IndexUserRequest interface.
40
47
  */
@@ -68,7 +68,7 @@ export interface SecurityCompaniesListRequest {
68
68
  * @type {string}
69
69
  * @memberof SecurityCompaniesListRequest
70
70
  */
71
- relatedType?: string;
71
+ relatedType?: SecurityCompaniesListRequestRelatedTypeEnum;
72
72
  /**
73
73
  *
74
74
  * @type {boolean}
@@ -96,6 +96,14 @@ 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];
99
107
  /**
100
108
  * Check if a given object implements the SecurityCompaniesListRequest interface.
101
109
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SecurityCompaniesListRequestSortDirectionEnum = exports.SecurityCompaniesListRequestSortByEnum = void 0;
16
+ exports.SecurityCompaniesListRequestRelatedTypeEnum = exports.SecurityCompaniesListRequestSortDirectionEnum = exports.SecurityCompaniesListRequestSortByEnum = void 0;
17
17
  exports.instanceOfSecurityCompaniesListRequest = instanceOfSecurityCompaniesListRequest;
18
18
  exports.SecurityCompaniesListRequestFromJSON = SecurityCompaniesListRequestFromJSON;
19
19
  exports.SecurityCompaniesListRequestFromJSONTyped = SecurityCompaniesListRequestFromJSONTyped;
@@ -37,6 +37,13 @@ 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
+ };
40
47
  /**
41
48
  * Check if a given object implements the SecurityCompaniesListRequest interface.
42
49
  */
@@ -32,34 +32,20 @@ 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 {string}
38
+ * @type {number}
39
39
  * @memberof UpdateUserRequest
40
40
  */
41
- mobile: string;
41
+ mobile?: number;
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;
54
48
  }
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];
63
49
  /**
64
50
  * Check if a given object implements the UpdateUserRequest interface.
65
51
  */
@@ -13,27 +13,15 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UpdateUserRequestRoleEnum = void 0;
17
16
  exports.instanceOfUpdateUserRequest = instanceOfUpdateUserRequest;
18
17
  exports.UpdateUserRequestFromJSON = UpdateUserRequestFromJSON;
19
18
  exports.UpdateUserRequestFromJSONTyped = UpdateUserRequestFromJSONTyped;
20
19
  exports.UpdateUserRequestToJSON = UpdateUserRequestToJSON;
21
20
  exports.UpdateUserRequestToJSONTyped = UpdateUserRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.UpdateUserRequestRoleEnum = {
26
- VenueManager: 'venue_manager',
27
- VenueStaff: 'venue_staff'
28
- };
29
21
  /**
30
22
  * Check if a given object implements the UpdateUserRequest interface.
31
23
  */
32
24
  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;
37
25
  return true;
38
26
  }
39
27
  function UpdateUserRequestFromJSON(json) {
@@ -46,10 +34,9 @@ function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
46
34
  return {
47
35
  'firstName': json['first_name'] == null ? undefined : json['first_name'],
48
36
  'lastName': json['last_name'] == null ? undefined : json['last_name'],
49
- 'email': json['email'],
50
- 'mobile': json['mobile'],
37
+ 'email': json['email'] == null ? undefined : json['email'],
38
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
51
39
  'password': json['password'] == null ? undefined : json['password'],
52
- 'role': json['role'] == null ? undefined : json['role'],
53
40
  };
54
41
  }
55
42
  function UpdateUserRequestToJSON(json) {
@@ -66,6 +53,5 @@ function UpdateUserRequestToJSONTyped(value, ignoreDiscriminator) {
66
53
  'email': value['email'],
67
54
  'mobile': value['mobile'],
68
55
  'password': value['password'],
69
- 'role': value['role'],
70
56
  };
71
57
  }
@@ -86,7 +86,7 @@ export interface VenuesListRequest {
86
86
  * @type {string}
87
87
  * @memberof VenuesListRequest
88
88
  */
89
- relatedType?: string;
89
+ relatedType?: VenuesListRequestRelatedTypeEnum;
90
90
  /**
91
91
  *
92
92
  * @type {boolean}
@@ -114,6 +114,14 @@ 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];
117
125
  /**
118
126
  * Check if a given object implements the VenuesListRequest interface.
119
127
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.VenuesListRequestSortDirectionEnum = exports.VenuesListRequestSortByEnum = void 0;
16
+ exports.VenuesListRequestRelatedTypeEnum = exports.VenuesListRequestSortDirectionEnum = exports.VenuesListRequestSortByEnum = void 0;
17
17
  exports.instanceOfVenuesListRequest = instanceOfVenuesListRequest;
18
18
  exports.VenuesListRequestFromJSON = VenuesListRequestFromJSON;
19
19
  exports.VenuesListRequestFromJSONTyped = VenuesListRequestFromJSONTyped;
@@ -37,6 +37,13 @@ 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
+ };
40
47
  /**
41
48
  * Check if a given object implements the VenuesListRequest interface.
42
49
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
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;
51
+ altText?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -71,7 +71,6 @@ 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;
75
74
  if (!('index' in value) || value['index'] === undefined) return false;
76
75
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
77
76
  return true;
@@ -91,7 +90,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
91
90
  'filePath': json['filePath'],
92
91
  'fileName': json['fileName'],
93
92
  'mimeType': json['mimeType'],
94
- 'altText': json['altText'],
93
+ 'altText': json['altText'] == null ? undefined : json['altText'],
95
94
  'index': json['index'],
96
95
  'fileId': json['fileId'],
97
96
  };
@@ -84,7 +84,7 @@ export interface IndexUserRequest {
84
84
  * @type {string}
85
85
  * @memberof IndexUserRequest
86
86
  */
87
- relatedType?: string;
87
+ relatedType?: IndexUserRequestRelatedTypeEnum;
88
88
  /**
89
89
  *
90
90
  * @type {boolean}
@@ -114,6 +114,15 @@ 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
+
117
126
 
118
127
  /**
119
128
  * 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?: string;
75
+ relatedType?: SecurityCompaniesListRequestRelatedTypeEnum;
76
76
  /**
77
77
  *
78
78
  * @type {boolean}
@@ -104,6 +104,15 @@ 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
+
107
116
 
108
117
  /**
109
118
  * Check if a given object implements the SecurityCompaniesListRequest interface.
@@ -36,44 +36,25 @@ 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 {string}
42
+ * @type {number}
43
43
  * @memberof UpdateUserRequest
44
44
  */
45
- mobile: string;
45
+ mobile?: number;
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;
58
52
  }
59
53
 
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
-
71
54
  /**
72
55
  * Check if a given object implements the UpdateUserRequest interface.
73
56
  */
74
57
  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;
77
58
  return true;
78
59
  }
79
60
 
@@ -89,10 +70,9 @@ export function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: b
89
70
 
90
71
  'firstName': json['first_name'] == null ? undefined : json['first_name'],
91
72
  'lastName': json['last_name'] == null ? undefined : json['last_name'],
92
- 'email': json['email'],
93
- 'mobile': json['mobile'],
73
+ 'email': json['email'] == null ? undefined : json['email'],
74
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
94
75
  'password': json['password'] == null ? undefined : json['password'],
95
- 'role': json['role'] == null ? undefined : json['role'],
96
76
  };
97
77
  }
98
78
 
@@ -112,7 +92,6 @@ export function UpdateUserRequestToJSONTyped(value?: UpdateUserRequest | null, i
112
92
  'email': value['email'],
113
93
  'mobile': value['mobile'],
114
94
  'password': value['password'],
115
- 'role': value['role'],
116
95
  };
117
96
  }
118
97
 
@@ -90,7 +90,7 @@ export interface VenuesListRequest {
90
90
  * @type {string}
91
91
  * @memberof VenuesListRequest
92
92
  */
93
- relatedType?: string;
93
+ relatedType?: VenuesListRequestRelatedTypeEnum;
94
94
  /**
95
95
  *
96
96
  * @type {boolean}
@@ -122,6 +122,15 @@ 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
+
125
134
 
126
135
  /**
127
136
  * Check if a given object implements the VenuesListRequest interface.