@digital8/security-registers-backend-ts-sdk 0.0.77 → 0.0.79

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 (42) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +28 -3
  4. package/dist/apis/GeneralApi.js +117 -4
  5. package/dist/models/AssetResource.d.ts +1 -1
  6. package/dist/models/AssetResource.js +3 -1
  7. package/dist/models/IndexMinimalUserRequest.d.ts +104 -0
  8. package/dist/models/IndexMinimalUserRequest.js +84 -0
  9. package/dist/models/SecurityCompaniesListAllRequest.d.ts +94 -0
  10. package/dist/models/SecurityCompaniesListAllRequest.js +82 -0
  11. package/dist/models/SecurityCompanyLiteResource.d.ts +38 -0
  12. package/dist/models/SecurityCompanyLiteResource.js +53 -0
  13. package/dist/models/SecurityCompanyLiteResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/SecurityCompanyLiteResourceArrayResponse.js +50 -0
  15. package/dist/models/StoreUserRequest.d.ts +2 -2
  16. package/dist/models/UpdateUserRequest.d.ts +3 -17
  17. package/dist/models/UpdateUserRequest.js +2 -16
  18. package/dist/models/UsersCreateWithRoleRequest.d.ts +2 -2
  19. package/dist/models/UsersRegisterVenueManagerRequest.d.ts +2 -2
  20. package/dist/models/VenueLiteResource.d.ts +38 -0
  21. package/dist/models/VenueLiteResource.js +53 -0
  22. package/dist/models/VenueLiteResourceArrayResponse.d.ts +33 -0
  23. package/dist/models/VenueLiteResourceArrayResponse.js +50 -0
  24. package/dist/models/VenuesListAllRequest.d.ts +112 -0
  25. package/dist/models/VenuesListAllRequest.js +88 -0
  26. package/dist/models/index.d.ts +7 -0
  27. package/dist/models/index.js +7 -0
  28. package/package.json +1 -1
  29. package/src/apis/GeneralApi.ts +113 -3
  30. package/src/models/AssetResource.ts +3 -2
  31. package/src/models/IndexMinimalUserRequest.ts +159 -0
  32. package/src/models/SecurityCompaniesListAllRequest.ts +145 -0
  33. package/src/models/SecurityCompanyLiteResource.ts +74 -0
  34. package/src/models/SecurityCompanyLiteResourceArrayResponse.ts +73 -0
  35. package/src/models/StoreUserRequest.ts +2 -2
  36. package/src/models/UpdateUserRequest.ts +5 -26
  37. package/src/models/UsersCreateWithRoleRequest.ts +2 -2
  38. package/src/models/UsersRegisterVenueManagerRequest.ts +2 -2
  39. package/src/models/VenueLiteResource.ts +74 -0
  40. package/src/models/VenueLiteResourceArrayResponse.ts +73 -0
  41. package/src/models/VenuesListAllRequest.ts +169 -0
  42. package/src/models/index.ts +7 -0
@@ -0,0 +1,145 @@
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 SecurityCompaniesListAllRequest
20
+ */
21
+ export interface SecurityCompaniesListAllRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SecurityCompaniesListAllRequest
26
+ */
27
+ search?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SecurityCompaniesListAllRequest
32
+ */
33
+ sortBy?: SecurityCompaniesListAllRequestSortByEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SecurityCompaniesListAllRequest
38
+ */
39
+ sortDirection?: SecurityCompaniesListAllRequestSortDirectionEnum;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof SecurityCompaniesListAllRequest
44
+ */
45
+ relatedId?: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof SecurityCompaniesListAllRequest
50
+ */
51
+ relatedType?: string;
52
+ /**
53
+ *
54
+ * @type {boolean}
55
+ * @memberof SecurityCompaniesListAllRequest
56
+ */
57
+ includesRelations?: boolean;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof SecurityCompaniesListAllRequest
62
+ */
63
+ isEnabled?: Array<string>;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof SecurityCompaniesListAllRequest
68
+ */
69
+ addressState?: Array<string>;
70
+ }
71
+
72
+
73
+ /**
74
+ * @export
75
+ */
76
+ export const SecurityCompaniesListAllRequestSortByEnum = {
77
+ Name: 'name',
78
+ Email: 'email',
79
+ IsEnabled: 'is_enabled',
80
+ LicenceNumber: 'licence_number',
81
+ CreatedAt: 'created_at',
82
+ UpdatedAt: 'updated_at'
83
+ } as const;
84
+ export type SecurityCompaniesListAllRequestSortByEnum = typeof SecurityCompaniesListAllRequestSortByEnum[keyof typeof SecurityCompaniesListAllRequestSortByEnum];
85
+
86
+ /**
87
+ * @export
88
+ */
89
+ export const SecurityCompaniesListAllRequestSortDirectionEnum = {
90
+ Asc: 'asc',
91
+ Desc: 'desc'
92
+ } as const;
93
+ export type SecurityCompaniesListAllRequestSortDirectionEnum = typeof SecurityCompaniesListAllRequestSortDirectionEnum[keyof typeof SecurityCompaniesListAllRequestSortDirectionEnum];
94
+
95
+
96
+ /**
97
+ * Check if a given object implements the SecurityCompaniesListAllRequest interface.
98
+ */
99
+ export function instanceOfSecurityCompaniesListAllRequest(value: object): value is SecurityCompaniesListAllRequest {
100
+ return true;
101
+ }
102
+
103
+ export function SecurityCompaniesListAllRequestFromJSON(json: any): SecurityCompaniesListAllRequest {
104
+ return SecurityCompaniesListAllRequestFromJSONTyped(json, false);
105
+ }
106
+
107
+ export function SecurityCompaniesListAllRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompaniesListAllRequest {
108
+ if (json == null) {
109
+ return json;
110
+ }
111
+ return {
112
+
113
+ 'search': json['search'] == null ? undefined : json['search'],
114
+ 'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
115
+ 'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
116
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
117
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
118
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
119
+ 'isEnabled': json['is_enabled'] == null ? undefined : json['is_enabled'],
120
+ 'addressState': json['address-state'] == null ? undefined : json['address-state'],
121
+ };
122
+ }
123
+
124
+ export function SecurityCompaniesListAllRequestToJSON(json: any): SecurityCompaniesListAllRequest {
125
+ return SecurityCompaniesListAllRequestToJSONTyped(json, false);
126
+ }
127
+
128
+ export function SecurityCompaniesListAllRequestToJSONTyped(value?: SecurityCompaniesListAllRequest | null, ignoreDiscriminator: boolean = false): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+
133
+ return {
134
+
135
+ 'search': value['search'],
136
+ 'sort_by': value['sortBy'],
137
+ 'sort_direction': value['sortDirection'],
138
+ 'related_id': value['relatedId'],
139
+ 'related_type': value['relatedType'],
140
+ 'includes_relations': value['includesRelations'],
141
+ 'is_enabled': value['isEnabled'],
142
+ 'address-state': value['addressState'],
143
+ };
144
+ }
145
+
@@ -0,0 +1,74 @@
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 SecurityCompanyLiteResource
20
+ */
21
+ export interface SecurityCompanyLiteResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof SecurityCompanyLiteResource
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SecurityCompanyLiteResource
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SecurityCompanyLiteResource interface.
38
+ */
39
+ export function instanceOfSecurityCompanyLiteResource(value: object): value is SecurityCompanyLiteResource {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function SecurityCompanyLiteResourceFromJSON(json: any): SecurityCompanyLiteResource {
45
+ return SecurityCompanyLiteResourceFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function SecurityCompanyLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyLiteResource {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'id': json['id'] == null ? undefined : json['id'],
55
+ 'name': json['name'],
56
+ };
57
+ }
58
+
59
+ export function SecurityCompanyLiteResourceToJSON(json: any): SecurityCompanyLiteResource {
60
+ return SecurityCompanyLiteResourceToJSONTyped(json, false);
61
+ }
62
+
63
+ export function SecurityCompanyLiteResourceToJSONTyped(value?: SecurityCompanyLiteResource | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'id': value['id'],
71
+ 'name': value['name'],
72
+ };
73
+ }
74
+
@@ -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 { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
17
+ import {
18
+ SecurityCompanyLiteResourceFromJSON,
19
+ SecurityCompanyLiteResourceFromJSONTyped,
20
+ SecurityCompanyLiteResourceToJSON,
21
+ SecurityCompanyLiteResourceToJSONTyped,
22
+ } from './SecurityCompanyLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SecurityCompanyLiteResourceArrayResponse
28
+ */
29
+ export interface SecurityCompanyLiteResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<SecurityCompanyLiteResource>}
33
+ * @memberof SecurityCompanyLiteResourceArrayResponse
34
+ */
35
+ data?: Array<SecurityCompanyLiteResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SecurityCompanyLiteResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfSecurityCompanyLiteResourceArrayResponse(value: object): value is SecurityCompanyLiteResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function SecurityCompanyLiteResourceArrayResponseFromJSON(json: any): SecurityCompanyLiteResourceArrayResponse {
46
+ return SecurityCompanyLiteResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SecurityCompanyLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyLiteResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SecurityCompanyLiteResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function SecurityCompanyLiteResourceArrayResponseToJSON(json: any): SecurityCompanyLiteResourceArrayResponse {
60
+ return SecurityCompanyLiteResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function SecurityCompanyLiteResourceArrayResponseToJSONTyped(value?: SecurityCompanyLiteResourceArrayResponse | 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(SecurityCompanyLiteResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -39,10 +39,10 @@ export interface StoreUserRequest {
39
39
  email: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {number}
43
43
  * @memberof StoreUserRequest
44
44
  */
45
- mobile: string;
45
+ mobile: number;
46
46
  }
47
47
 
48
48
  /**
@@ -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
 
@@ -39,10 +39,10 @@ export interface UsersCreateWithRoleRequest {
39
39
  email: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {number}
43
43
  * @memberof UsersCreateWithRoleRequest
44
44
  */
45
- mobile: string;
45
+ mobile: number;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -39,10 +39,10 @@ export interface UsersRegisterVenueManagerRequest {
39
39
  email: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {number}
43
43
  * @memberof UsersRegisterVenueManagerRequest
44
44
  */
45
- mobile: string;
45
+ mobile: number;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -0,0 +1,74 @@
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 VenueLiteResource
20
+ */
21
+ export interface VenueLiteResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof VenueLiteResource
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof VenueLiteResource
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the VenueLiteResource interface.
38
+ */
39
+ export function instanceOfVenueLiteResource(value: object): value is VenueLiteResource {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function VenueLiteResourceFromJSON(json: any): VenueLiteResource {
45
+ return VenueLiteResourceFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function VenueLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenueLiteResource {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'id': json['id'] == null ? undefined : json['id'],
55
+ 'name': json['name'],
56
+ };
57
+ }
58
+
59
+ export function VenueLiteResourceToJSON(json: any): VenueLiteResource {
60
+ return VenueLiteResourceToJSONTyped(json, false);
61
+ }
62
+
63
+ export function VenueLiteResourceToJSONTyped(value?: VenueLiteResource | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'id': value['id'],
71
+ 'name': value['name'],
72
+ };
73
+ }
74
+
@@ -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 { VenueLiteResource } from './VenueLiteResource';
17
+ import {
18
+ VenueLiteResourceFromJSON,
19
+ VenueLiteResourceFromJSONTyped,
20
+ VenueLiteResourceToJSON,
21
+ VenueLiteResourceToJSONTyped,
22
+ } from './VenueLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface VenueLiteResourceArrayResponse
28
+ */
29
+ export interface VenueLiteResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<VenueLiteResource>}
33
+ * @memberof VenueLiteResourceArrayResponse
34
+ */
35
+ data?: Array<VenueLiteResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the VenueLiteResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfVenueLiteResourceArrayResponse(value: object): value is VenueLiteResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function VenueLiteResourceArrayResponseFromJSON(json: any): VenueLiteResourceArrayResponse {
46
+ return VenueLiteResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function VenueLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenueLiteResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(VenueLiteResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function VenueLiteResourceArrayResponseToJSON(json: any): VenueLiteResourceArrayResponse {
60
+ return VenueLiteResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function VenueLiteResourceArrayResponseToJSONTyped(value?: VenueLiteResourceArrayResponse | 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(VenueLiteResourceToJSON)),
71
+ };
72
+ }
73
+