@digital8/cctv-web-app-ts-sdk 0.0.1

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 (219) hide show
  1. package/.openapi-generator/FILES +77 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +46 -0
  5. package/dist/apis/AccountApi.d.ts +45 -0
  6. package/dist/apis/AccountApi.js +210 -0
  7. package/dist/apis/AuthApi.d.ts +90 -0
  8. package/dist/apis/AuthApi.js +458 -0
  9. package/dist/apis/CompaniesApi.d.ts +102 -0
  10. package/dist/apis/CompaniesApi.js +442 -0
  11. package/dist/apis/DashboardApi.d.ts +26 -0
  12. package/dist/apis/DashboardApi.js +122 -0
  13. package/dist/apis/FormAApi.d.ts +90 -0
  14. package/dist/apis/FormAApi.js +395 -0
  15. package/dist/apis/FormBApi.d.ts +79 -0
  16. package/dist/apis/FormBApi.js +350 -0
  17. package/dist/apis/FormCApi.d.ts +90 -0
  18. package/dist/apis/FormCApi.js +395 -0
  19. package/dist/apis/ManagerApi.d.ts +42 -0
  20. package/dist/apis/ManagerApi.js +180 -0
  21. package/dist/apis/ManagersApi.d.ts +71 -0
  22. package/dist/apis/ManagersApi.js +307 -0
  23. package/dist/apis/NotificationsApi.d.ts +40 -0
  24. package/dist/apis/NotificationsApi.js +171 -0
  25. package/dist/apis/QuestionsApi.d.ts +71 -0
  26. package/dist/apis/QuestionsApi.js +307 -0
  27. package/dist/apis/TechniciansApi.d.ts +73 -0
  28. package/dist/apis/TechniciansApi.js +308 -0
  29. package/dist/apis/UploadApi.d.ts +29 -0
  30. package/dist/apis/UploadApi.js +125 -0
  31. package/dist/apis/VenueApi.d.ts +41 -0
  32. package/dist/apis/VenueApi.js +176 -0
  33. package/dist/apis/VenuesApi.d.ts +144 -0
  34. package/dist/apis/VenuesApi.js +623 -0
  35. package/dist/apis/index.d.ts +15 -0
  36. package/dist/apis/index.js +33 -0
  37. package/dist/index.d.ts +3 -0
  38. package/dist/index.js +21 -0
  39. package/dist/models/AssetFileForUploadResource.d.ts +52 -0
  40. package/dist/models/AssetFileForUploadResource.js +63 -0
  41. package/dist/models/AssetFileForUploadResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/AssetFileForUploadResourceArrayResponse.js +50 -0
  43. package/dist/models/AssetLiteResource.d.ts +38 -0
  44. package/dist/models/AssetLiteResource.js +53 -0
  45. package/dist/models/AssetLiteResourceArrayResponse.d.ts +33 -0
  46. package/dist/models/AssetLiteResourceArrayResponse.js +50 -0
  47. package/dist/models/AssetResource.d.ts +62 -0
  48. package/dist/models/AssetResource.js +67 -0
  49. package/dist/models/AssetResourceArrayResponse.d.ts +33 -0
  50. package/dist/models/AssetResourceArrayResponse.js +50 -0
  51. package/dist/models/CompanyResource.d.ts +56 -0
  52. package/dist/models/CompanyResource.js +67 -0
  53. package/dist/models/CompanyResourceArrayResponse.d.ts +33 -0
  54. package/dist/models/CompanyResourceArrayResponse.js +50 -0
  55. package/dist/models/CreateFormARequest.d.ts +81 -0
  56. package/dist/models/CreateFormARequest.js +73 -0
  57. package/dist/models/CreateFormARequestAnswersInner.d.ts +38 -0
  58. package/dist/models/CreateFormARequestAnswersInner.js +55 -0
  59. package/dist/models/CreateNotificationSilenceRequest.d.ts +46 -0
  60. package/dist/models/CreateNotificationSilenceRequest.js +63 -0
  61. package/dist/models/CreateOrUpdateCompanyRequest.d.ts +50 -0
  62. package/dist/models/CreateOrUpdateCompanyRequest.js +61 -0
  63. package/dist/models/CreateOrUpdateFormCRequest.d.ts +98 -0
  64. package/dist/models/CreateOrUpdateFormCRequest.js +80 -0
  65. package/dist/models/CreateOrUpdateManagerRequest.d.ts +92 -0
  66. package/dist/models/CreateOrUpdateManagerRequest.js +81 -0
  67. package/dist/models/CreateOrUpdateQuestionRequest.d.ts +38 -0
  68. package/dist/models/CreateOrUpdateQuestionRequest.js +53 -0
  69. package/dist/models/CreateOrUpdateTechnicianRequest.d.ts +56 -0
  70. package/dist/models/CreateOrUpdateTechnicianRequest.js +65 -0
  71. package/dist/models/CreateOrUpdateVenueRequest.d.ts +93 -0
  72. package/dist/models/CreateOrUpdateVenueRequest.js +86 -0
  73. package/dist/models/CreateOrUpdateVenueRequestHoursInner.d.ts +38 -0
  74. package/dist/models/CreateOrUpdateVenueRequestHoursInner.js +55 -0
  75. package/dist/models/FindNearbyVenuesRequest.d.ts +38 -0
  76. package/dist/models/FindNearbyVenuesRequest.js +55 -0
  77. package/dist/models/FormAResource.d.ts +122 -0
  78. package/dist/models/FormAResource.js +101 -0
  79. package/dist/models/FormAResourceArrayResponse.d.ts +33 -0
  80. package/dist/models/FormAResourceArrayResponse.js +50 -0
  81. package/dist/models/FormBResource.d.ts +86 -0
  82. package/dist/models/FormBResource.js +75 -0
  83. package/dist/models/FormBResourceArrayResponse.d.ts +33 -0
  84. package/dist/models/FormBResourceArrayResponse.js +50 -0
  85. package/dist/models/FormCResource.d.ts +112 -0
  86. package/dist/models/FormCResource.js +101 -0
  87. package/dist/models/FormCResourceArrayResponse.d.ts +33 -0
  88. package/dist/models/FormCResourceArrayResponse.js +50 -0
  89. package/dist/models/GenericResponse.d.ts +32 -0
  90. package/dist/models/GenericResponse.js +49 -0
  91. package/dist/models/GetUploadUrlRequest.d.ts +56 -0
  92. package/dist/models/GetUploadUrlRequest.js +71 -0
  93. package/dist/models/ManagerResource.d.ts +128 -0
  94. package/dist/models/ManagerResource.js +107 -0
  95. package/dist/models/ManagerResourceArrayResponse.d.ts +33 -0
  96. package/dist/models/ManagerResourceArrayResponse.js +50 -0
  97. package/dist/models/PaginatedCompanyResourceResponse.d.ts +40 -0
  98. package/dist/models/PaginatedCompanyResourceResponse.js +57 -0
  99. package/dist/models/PaginatedFormAResourceResponse.d.ts +40 -0
  100. package/dist/models/PaginatedFormAResourceResponse.js +57 -0
  101. package/dist/models/PaginatedFormBResourceResponse.d.ts +40 -0
  102. package/dist/models/PaginatedFormBResourceResponse.js +57 -0
  103. package/dist/models/PaginatedFormCResourceResponse.d.ts +40 -0
  104. package/dist/models/PaginatedFormCResourceResponse.js +57 -0
  105. package/dist/models/PaginatedManagerResourceResponse.d.ts +40 -0
  106. package/dist/models/PaginatedManagerResourceResponse.js +57 -0
  107. package/dist/models/PaginatedQuestionResourceResponse.d.ts +40 -0
  108. package/dist/models/PaginatedQuestionResourceResponse.js +57 -0
  109. package/dist/models/PaginatedTechnicianResourceResponse.d.ts +40 -0
  110. package/dist/models/PaginatedTechnicianResourceResponse.js +57 -0
  111. package/dist/models/PaginatedVenueResourceResponse.d.ts +40 -0
  112. package/dist/models/PaginatedVenueResourceResponse.js +57 -0
  113. package/dist/models/PagingMetadata.d.ts +68 -0
  114. package/dist/models/PagingMetadata.js +75 -0
  115. package/dist/models/QuestionResource.d.ts +50 -0
  116. package/dist/models/QuestionResource.js +61 -0
  117. package/dist/models/QuestionResourceArrayResponse.d.ts +33 -0
  118. package/dist/models/QuestionResourceArrayResponse.js +50 -0
  119. package/dist/models/SearchCompaniesRequest.d.ts +90 -0
  120. package/dist/models/SearchCompaniesRequest.js +78 -0
  121. package/dist/models/SearchTechniciansRequest.d.ts +92 -0
  122. package/dist/models/SearchTechniciansRequest.js +80 -0
  123. package/dist/models/TechnicianResource.d.ts +80 -0
  124. package/dist/models/TechnicianResource.js +81 -0
  125. package/dist/models/TechnicianResourceArrayResponse.d.ts +33 -0
  126. package/dist/models/TechnicianResourceArrayResponse.js +50 -0
  127. package/dist/models/UpdateFormARequest.d.ts +57 -0
  128. package/dist/models/UpdateFormARequest.js +60 -0
  129. package/dist/models/UpdateFormARequestAnswersInner.d.ts +38 -0
  130. package/dist/models/UpdateFormARequestAnswersInner.js +55 -0
  131. package/dist/models/UpdateFormBRequest.d.ts +50 -0
  132. package/dist/models/UpdateFormBRequest.js +56 -0
  133. package/dist/models/UpdateNonTradingDaysRequest.d.ts +32 -0
  134. package/dist/models/UpdateNonTradingDaysRequest.js +49 -0
  135. package/dist/models/UserResource.d.ts +68 -0
  136. package/dist/models/UserResource.js +71 -0
  137. package/dist/models/UserResourceArrayResponse.d.ts +33 -0
  138. package/dist/models/UserResourceArrayResponse.js +50 -0
  139. package/dist/models/VenueResource.d.ts +153 -0
  140. package/dist/models/VenueResource.js +132 -0
  141. package/dist/models/VenueResourceArrayResponse.d.ts +33 -0
  142. package/dist/models/VenueResourceArrayResponse.js +50 -0
  143. package/dist/models/index.d.ts +52 -0
  144. package/dist/models/index.js +70 -0
  145. package/dist/runtime.d.ts +184 -0
  146. package/dist/runtime.js +564 -0
  147. package/package.json +19 -0
  148. package/src/apis/AccountApi.ts +132 -0
  149. package/src/apis/AuthApi.ts +291 -0
  150. package/src/apis/CompaniesApi.ts +341 -0
  151. package/src/apis/DashboardApi.ts +59 -0
  152. package/src/apis/FormAApi.ts +301 -0
  153. package/src/apis/FormBApi.ts +262 -0
  154. package/src/apis/FormCApi.ts +298 -0
  155. package/src/apis/ManagerApi.ts +133 -0
  156. package/src/apis/ManagersApi.ts +228 -0
  157. package/src/apis/NotificationsApi.ts +110 -0
  158. package/src/apis/QuestionsApi.ts +225 -0
  159. package/src/apis/TechniciansApi.ts +234 -0
  160. package/src/apis/UploadApi.ts +69 -0
  161. package/src/apis/VenueApi.ts +121 -0
  162. package/src/apis/VenuesApi.ts +492 -0
  163. package/src/apis/index.ts +17 -0
  164. package/src/index.ts +5 -0
  165. package/src/models/AssetFileForUploadResource.ts +93 -0
  166. package/src/models/AssetFileForUploadResourceArrayResponse.ts +73 -0
  167. package/src/models/AssetLiteResource.ts +74 -0
  168. package/src/models/AssetLiteResourceArrayResponse.ts +73 -0
  169. package/src/models/AssetResource.ts +109 -0
  170. package/src/models/AssetResourceArrayResponse.ts +73 -0
  171. package/src/models/CompanyResource.ts +102 -0
  172. package/src/models/CompanyResourceArrayResponse.ts +73 -0
  173. package/src/models/CreateFormARequest.ts +140 -0
  174. package/src/models/CreateFormARequestAnswersInner.ts +75 -0
  175. package/src/models/CreateNotificationSilenceRequest.ts +86 -0
  176. package/src/models/CreateOrUpdateCompanyRequest.ts +92 -0
  177. package/src/models/CreateOrUpdateFormCRequest.ts +157 -0
  178. package/src/models/CreateOrUpdateManagerRequest.ts +151 -0
  179. package/src/models/CreateOrUpdateQuestionRequest.ts +74 -0
  180. package/src/models/CreateOrUpdateTechnicianRequest.ts +101 -0
  181. package/src/models/CreateOrUpdateVenueRequest.ts +161 -0
  182. package/src/models/CreateOrUpdateVenueRequestHoursInner.ts +75 -0
  183. package/src/models/FindNearbyVenuesRequest.ts +75 -0
  184. package/src/models/FormAResource.ts +196 -0
  185. package/src/models/FormAResourceArrayResponse.ts +73 -0
  186. package/src/models/FormBResource.ts +141 -0
  187. package/src/models/FormBResourceArrayResponse.ts +73 -0
  188. package/src/models/FormCResource.ts +196 -0
  189. package/src/models/FormCResourceArrayResponse.ts +73 -0
  190. package/src/models/GenericResponse.ts +65 -0
  191. package/src/models/GetUploadUrlRequest.ts +99 -0
  192. package/src/models/ManagerResource.ts +206 -0
  193. package/src/models/ManagerResourceArrayResponse.ts +73 -0
  194. package/src/models/PaginatedCompanyResourceResponse.ts +90 -0
  195. package/src/models/PaginatedFormAResourceResponse.ts +90 -0
  196. package/src/models/PaginatedFormBResourceResponse.ts +90 -0
  197. package/src/models/PaginatedFormCResourceResponse.ts +90 -0
  198. package/src/models/PaginatedManagerResourceResponse.ts +90 -0
  199. package/src/models/PaginatedQuestionResourceResponse.ts +90 -0
  200. package/src/models/PaginatedTechnicianResourceResponse.ts +90 -0
  201. package/src/models/PaginatedVenueResourceResponse.ts +90 -0
  202. package/src/models/PagingMetadata.ts +120 -0
  203. package/src/models/QuestionResource.ts +92 -0
  204. package/src/models/QuestionResourceArrayResponse.ts +73 -0
  205. package/src/models/SearchCompaniesRequest.ts +141 -0
  206. package/src/models/SearchTechniciansRequest.ts +143 -0
  207. package/src/models/TechnicianResource.ts +137 -0
  208. package/src/models/TechnicianResourceArrayResponse.ts +73 -0
  209. package/src/models/UpdateFormARequest.ts +106 -0
  210. package/src/models/UpdateFormARequestAnswersInner.ts +75 -0
  211. package/src/models/UpdateFormBRequest.ts +89 -0
  212. package/src/models/UpdateNonTradingDaysRequest.ts +65 -0
  213. package/src/models/UserResource.ts +118 -0
  214. package/src/models/UserResourceArrayResponse.ts +73 -0
  215. package/src/models/VenueResource.ts +254 -0
  216. package/src/models/VenueResourceArrayResponse.ts +73 -0
  217. package/src/models/index.ts +54 -0
  218. package/src/runtime.ts +432 -0
  219. package/tsconfig.json +20 -0
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * CCTV Registers API
6
+ * API documentation for the CCTV Registers application
7
+ *
8
+ * The version of the OpenAPI document: 0.1.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.instanceOfQuestionResource = instanceOfQuestionResource;
17
+ exports.QuestionResourceFromJSON = QuestionResourceFromJSON;
18
+ exports.QuestionResourceFromJSONTyped = QuestionResourceFromJSONTyped;
19
+ exports.QuestionResourceToJSON = QuestionResourceToJSON;
20
+ exports.QuestionResourceToJSONTyped = QuestionResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the QuestionResource interface.
23
+ */
24
+ function instanceOfQuestionResource(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('title' in value) || value['title'] === undefined)
28
+ return false;
29
+ if (!('isCoreQuestion' in value) || value['isCoreQuestion'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function QuestionResourceFromJSON(json) {
34
+ return QuestionResourceFromJSONTyped(json, false);
35
+ }
36
+ function QuestionResourceFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'title': json['title'],
43
+ 'isCoreQuestion': json['isCoreQuestion'],
44
+ 'createdAt': json['created_at'] == null ? undefined : json['created_at'],
45
+ };
46
+ }
47
+ function QuestionResourceToJSON(json) {
48
+ return QuestionResourceToJSONTyped(json, false);
49
+ }
50
+ function QuestionResourceToJSONTyped(value, ignoreDiscriminator) {
51
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'id': value['id'],
57
+ 'title': value['title'],
58
+ 'isCoreQuestion': value['isCoreQuestion'],
59
+ 'created_at': value['createdAt'],
60
+ };
61
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * CCTV Registers API
3
+ * API documentation for the CCTV Registers application
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 { QuestionResource } from './QuestionResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface QuestionResourceArrayResponse
17
+ */
18
+ export interface QuestionResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<QuestionResource>}
22
+ * @memberof QuestionResourceArrayResponse
23
+ */
24
+ data?: Array<QuestionResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the QuestionResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfQuestionResourceArrayResponse(value: object): value is QuestionResourceArrayResponse;
30
+ export declare function QuestionResourceArrayResponseFromJSON(json: any): QuestionResourceArrayResponse;
31
+ export declare function QuestionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionResourceArrayResponse;
32
+ export declare function QuestionResourceArrayResponseToJSON(json: any): QuestionResourceArrayResponse;
33
+ export declare function QuestionResourceArrayResponseToJSONTyped(value?: QuestionResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * CCTV Registers API
6
+ * API documentation for the CCTV Registers application
7
+ *
8
+ * The version of the OpenAPI document: 0.1.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.instanceOfQuestionResourceArrayResponse = instanceOfQuestionResourceArrayResponse;
17
+ exports.QuestionResourceArrayResponseFromJSON = QuestionResourceArrayResponseFromJSON;
18
+ exports.QuestionResourceArrayResponseFromJSONTyped = QuestionResourceArrayResponseFromJSONTyped;
19
+ exports.QuestionResourceArrayResponseToJSON = QuestionResourceArrayResponseToJSON;
20
+ exports.QuestionResourceArrayResponseToJSONTyped = QuestionResourceArrayResponseToJSONTyped;
21
+ var QuestionResource_1 = require("./QuestionResource");
22
+ /**
23
+ * Check if a given object implements the QuestionResourceArrayResponse interface.
24
+ */
25
+ function instanceOfQuestionResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function QuestionResourceArrayResponseFromJSON(json) {
29
+ return QuestionResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function QuestionResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(QuestionResource_1.QuestionResourceFromJSON)),
37
+ };
38
+ }
39
+ function QuestionResourceArrayResponseToJSON(json) {
40
+ return QuestionResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function QuestionResourceArrayResponseToJSONTyped(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(QuestionResource_1.QuestionResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,90 @@
1
+ /**
2
+ * CCTV Registers API
3
+ * API documentation for the CCTV Registers application
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 SearchCompaniesRequest
16
+ */
17
+ export interface SearchCompaniesRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SearchCompaniesRequest
22
+ */
23
+ search?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SearchCompaniesRequest
28
+ */
29
+ sortBy?: SearchCompaniesRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SearchCompaniesRequest
34
+ */
35
+ sortDirection?: SearchCompaniesRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SearchCompaniesRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof SearchCompaniesRequest
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof SearchCompaniesRequest
52
+ */
53
+ relatedId?: number;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof SearchCompaniesRequest
58
+ */
59
+ relatedType?: string;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof SearchCompaniesRequest
64
+ */
65
+ includesRelations?: boolean;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const SearchCompaniesRequestSortByEnum: {
71
+ readonly Name: "name";
72
+ readonly CreatedAt: "created_at";
73
+ };
74
+ export type SearchCompaniesRequestSortByEnum = typeof SearchCompaniesRequestSortByEnum[keyof typeof SearchCompaniesRequestSortByEnum];
75
+ /**
76
+ * @export
77
+ */
78
+ export declare const SearchCompaniesRequestSortDirectionEnum: {
79
+ readonly Asc: "asc";
80
+ readonly Desc: "desc";
81
+ };
82
+ export type SearchCompaniesRequestSortDirectionEnum = typeof SearchCompaniesRequestSortDirectionEnum[keyof typeof SearchCompaniesRequestSortDirectionEnum];
83
+ /**
84
+ * Check if a given object implements the SearchCompaniesRequest interface.
85
+ */
86
+ export declare function instanceOfSearchCompaniesRequest(value: object): value is SearchCompaniesRequest;
87
+ export declare function SearchCompaniesRequestFromJSON(json: any): SearchCompaniesRequest;
88
+ export declare function SearchCompaniesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchCompaniesRequest;
89
+ export declare function SearchCompaniesRequestToJSON(json: any): SearchCompaniesRequest;
90
+ export declare function SearchCompaniesRequestToJSONTyped(value?: SearchCompaniesRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * CCTV Registers API
6
+ * API documentation for the CCTV Registers application
7
+ *
8
+ * The version of the OpenAPI document: 0.1.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.SearchCompaniesRequestSortDirectionEnum = exports.SearchCompaniesRequestSortByEnum = void 0;
17
+ exports.instanceOfSearchCompaniesRequest = instanceOfSearchCompaniesRequest;
18
+ exports.SearchCompaniesRequestFromJSON = SearchCompaniesRequestFromJSON;
19
+ exports.SearchCompaniesRequestFromJSONTyped = SearchCompaniesRequestFromJSONTyped;
20
+ exports.SearchCompaniesRequestToJSON = SearchCompaniesRequestToJSON;
21
+ exports.SearchCompaniesRequestToJSONTyped = SearchCompaniesRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SearchCompaniesRequestSortByEnum = {
26
+ Name: 'name',
27
+ CreatedAt: 'created_at'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ exports.SearchCompaniesRequestSortDirectionEnum = {
33
+ Asc: 'asc',
34
+ Desc: 'desc'
35
+ };
36
+ /**
37
+ * Check if a given object implements the SearchCompaniesRequest interface.
38
+ */
39
+ function instanceOfSearchCompaniesRequest(value) {
40
+ return true;
41
+ }
42
+ function SearchCompaniesRequestFromJSON(json) {
43
+ return SearchCompaniesRequestFromJSONTyped(json, false);
44
+ }
45
+ function SearchCompaniesRequestFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'search': json['search'] == null ? undefined : json['search'],
51
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
52
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
53
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
54
+ 'page': json['page'] == null ? undefined : json['page'],
55
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
56
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
57
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
58
+ };
59
+ }
60
+ function SearchCompaniesRequestToJSON(json) {
61
+ return SearchCompaniesRequestToJSONTyped(json, false);
62
+ }
63
+ function SearchCompaniesRequestToJSONTyped(value, ignoreDiscriminator) {
64
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'search': value['search'],
70
+ 'sortBy': value['sortBy'],
71
+ 'sortDirection': value['sortDirection'],
72
+ 'per_page': value['perPage'],
73
+ 'page': value['page'],
74
+ 'related_id': value['relatedId'],
75
+ 'related_type': value['relatedType'],
76
+ 'includes_relations': value['includesRelations'],
77
+ };
78
+ }
@@ -0,0 +1,92 @@
1
+ /**
2
+ * CCTV Registers API
3
+ * API documentation for the CCTV Registers application
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 SearchTechniciansRequest
16
+ */
17
+ export interface SearchTechniciansRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SearchTechniciansRequest
22
+ */
23
+ search?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SearchTechniciansRequest
28
+ */
29
+ sortBy?: SearchTechniciansRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SearchTechniciansRequest
34
+ */
35
+ sortDirection?: SearchTechniciansRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SearchTechniciansRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof SearchTechniciansRequest
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof SearchTechniciansRequest
52
+ */
53
+ relatedId?: number;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof SearchTechniciansRequest
58
+ */
59
+ relatedType?: string;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof SearchTechniciansRequest
64
+ */
65
+ includesRelations?: boolean;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const SearchTechniciansRequestSortByEnum: {
71
+ readonly CompanyName: "company_name";
72
+ readonly LicenceExpiryDate: "licence_expiry_date";
73
+ readonly State: "state";
74
+ readonly CreatedAt: "created_at";
75
+ };
76
+ export type SearchTechniciansRequestSortByEnum = typeof SearchTechniciansRequestSortByEnum[keyof typeof SearchTechniciansRequestSortByEnum];
77
+ /**
78
+ * @export
79
+ */
80
+ export declare const SearchTechniciansRequestSortDirectionEnum: {
81
+ readonly Asc: "asc";
82
+ readonly Desc: "desc";
83
+ };
84
+ export type SearchTechniciansRequestSortDirectionEnum = typeof SearchTechniciansRequestSortDirectionEnum[keyof typeof SearchTechniciansRequestSortDirectionEnum];
85
+ /**
86
+ * Check if a given object implements the SearchTechniciansRequest interface.
87
+ */
88
+ export declare function instanceOfSearchTechniciansRequest(value: object): value is SearchTechniciansRequest;
89
+ export declare function SearchTechniciansRequestFromJSON(json: any): SearchTechniciansRequest;
90
+ export declare function SearchTechniciansRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchTechniciansRequest;
91
+ export declare function SearchTechniciansRequestToJSON(json: any): SearchTechniciansRequest;
92
+ export declare function SearchTechniciansRequestToJSONTyped(value?: SearchTechniciansRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * CCTV Registers API
6
+ * API documentation for the CCTV Registers application
7
+ *
8
+ * The version of the OpenAPI document: 0.1.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.SearchTechniciansRequestSortDirectionEnum = exports.SearchTechniciansRequestSortByEnum = void 0;
17
+ exports.instanceOfSearchTechniciansRequest = instanceOfSearchTechniciansRequest;
18
+ exports.SearchTechniciansRequestFromJSON = SearchTechniciansRequestFromJSON;
19
+ exports.SearchTechniciansRequestFromJSONTyped = SearchTechniciansRequestFromJSONTyped;
20
+ exports.SearchTechniciansRequestToJSON = SearchTechniciansRequestToJSON;
21
+ exports.SearchTechniciansRequestToJSONTyped = SearchTechniciansRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SearchTechniciansRequestSortByEnum = {
26
+ CompanyName: 'company_name',
27
+ LicenceExpiryDate: 'licence_expiry_date',
28
+ State: 'state',
29
+ CreatedAt: 'created_at'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.SearchTechniciansRequestSortDirectionEnum = {
35
+ Asc: 'asc',
36
+ Desc: 'desc'
37
+ };
38
+ /**
39
+ * Check if a given object implements the SearchTechniciansRequest interface.
40
+ */
41
+ function instanceOfSearchTechniciansRequest(value) {
42
+ return true;
43
+ }
44
+ function SearchTechniciansRequestFromJSON(json) {
45
+ return SearchTechniciansRequestFromJSONTyped(json, false);
46
+ }
47
+ function SearchTechniciansRequestFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'search': json['search'] == null ? undefined : json['search'],
53
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
54
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
55
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
56
+ 'page': json['page'] == null ? undefined : json['page'],
57
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
58
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
59
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
60
+ };
61
+ }
62
+ function SearchTechniciansRequestToJSON(json) {
63
+ return SearchTechniciansRequestToJSONTyped(json, false);
64
+ }
65
+ function SearchTechniciansRequestToJSONTyped(value, ignoreDiscriminator) {
66
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'search': value['search'],
72
+ 'sortBy': value['sortBy'],
73
+ 'sortDirection': value['sortDirection'],
74
+ 'per_page': value['perPage'],
75
+ 'page': value['page'],
76
+ 'related_id': value['relatedId'],
77
+ 'related_type': value['relatedType'],
78
+ 'includes_relations': value['includesRelations'],
79
+ };
80
+ }
@@ -0,0 +1,80 @@
1
+ /**
2
+ * CCTV Registers API
3
+ * API documentation for the CCTV Registers application
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 TechnicianResource
16
+ */
17
+ export interface TechnicianResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof TechnicianResource
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TechnicianResource
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TechnicianResource
34
+ */
35
+ email: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof TechnicianResource
40
+ */
41
+ licenceNumber: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof TechnicianResource
46
+ */
47
+ licenceExpiryDate: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof TechnicianResource
52
+ */
53
+ phone?: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof TechnicianResource
58
+ */
59
+ companyName: string;
60
+ /**
61
+ *
62
+ * @type {object}
63
+ * @memberof TechnicianResource
64
+ */
65
+ user: object;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof TechnicianResource
70
+ */
71
+ state: string;
72
+ }
73
+ /**
74
+ * Check if a given object implements the TechnicianResource interface.
75
+ */
76
+ export declare function instanceOfTechnicianResource(value: object): value is TechnicianResource;
77
+ export declare function TechnicianResourceFromJSON(json: any): TechnicianResource;
78
+ export declare function TechnicianResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TechnicianResource;
79
+ export declare function TechnicianResourceToJSON(json: any): TechnicianResource;
80
+ export declare function TechnicianResourceToJSONTyped(value?: TechnicianResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * CCTV Registers API
6
+ * API documentation for the CCTV Registers application
7
+ *
8
+ * The version of the OpenAPI document: 0.1.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.instanceOfTechnicianResource = instanceOfTechnicianResource;
17
+ exports.TechnicianResourceFromJSON = TechnicianResourceFromJSON;
18
+ exports.TechnicianResourceFromJSONTyped = TechnicianResourceFromJSONTyped;
19
+ exports.TechnicianResourceToJSON = TechnicianResourceToJSON;
20
+ exports.TechnicianResourceToJSONTyped = TechnicianResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TechnicianResource interface.
23
+ */
24
+ function instanceOfTechnicianResource(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('email' in value) || value['email'] === undefined)
30
+ return false;
31
+ if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
32
+ return false;
33
+ if (!('licenceExpiryDate' in value) || value['licenceExpiryDate'] === undefined)
34
+ return false;
35
+ if (!('companyName' in value) || value['companyName'] === undefined)
36
+ return false;
37
+ if (!('user' in value) || value['user'] === undefined)
38
+ return false;
39
+ if (!('state' in value) || value['state'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function TechnicianResourceFromJSON(json) {
44
+ return TechnicianResourceFromJSONTyped(json, false);
45
+ }
46
+ function TechnicianResourceFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'name': json['name'],
53
+ 'email': json['email'],
54
+ 'licenceNumber': json['licence_number'],
55
+ 'licenceExpiryDate': json['licence_expiry_date'],
56
+ 'phone': json['phone'] == null ? undefined : json['phone'],
57
+ 'companyName': json['company_name'],
58
+ 'user': json['user'],
59
+ 'state': json['state'],
60
+ };
61
+ }
62
+ function TechnicianResourceToJSON(json) {
63
+ return TechnicianResourceToJSONTyped(json, false);
64
+ }
65
+ function TechnicianResourceToJSONTyped(value, ignoreDiscriminator) {
66
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ 'email': value['email'],
74
+ 'licence_number': value['licenceNumber'],
75
+ 'licence_expiry_date': value['licenceExpiryDate'],
76
+ 'phone': value['phone'],
77
+ 'company_name': value['companyName'],
78
+ 'user': value['user'],
79
+ 'state': value['state'],
80
+ };
81
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * CCTV Registers API
3
+ * API documentation for the CCTV Registers application
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 { TechnicianResource } from './TechnicianResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TechnicianResourceArrayResponse
17
+ */
18
+ export interface TechnicianResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<TechnicianResource>}
22
+ * @memberof TechnicianResourceArrayResponse
23
+ */
24
+ data?: Array<TechnicianResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the TechnicianResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfTechnicianResourceArrayResponse(value: object): value is TechnicianResourceArrayResponse;
30
+ export declare function TechnicianResourceArrayResponseFromJSON(json: any): TechnicianResourceArrayResponse;
31
+ export declare function TechnicianResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TechnicianResourceArrayResponse;
32
+ export declare function TechnicianResourceArrayResponseToJSON(json: any): TechnicianResourceArrayResponse;
33
+ export declare function TechnicianResourceArrayResponseToJSONTyped(value?: TechnicianResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;