@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,395 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.FormCApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var FormCApi = /** @class */ (function (_super) {
74
+ __extends(FormCApi, _super);
75
+ function FormCApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Auto-generated: exportFormC
80
+ */
81
+ FormCApi.prototype.exportFormCRaw = function (initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, urlPath, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ headerParameters = {};
89
+ urlPath = "/api/form-c/export";
90
+ return [4 /*yield*/, this.request({
91
+ path: urlPath,
92
+ method: 'GET',
93
+ headers: headerParameters,
94
+ query: queryParameters,
95
+ }, initOverrides)];
96
+ case 1:
97
+ response = _a.sent();
98
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FormCResourceFromJSON)(jsonValue); })];
99
+ }
100
+ });
101
+ });
102
+ };
103
+ /**
104
+ * Auto-generated: exportFormC
105
+ */
106
+ FormCApi.prototype.exportFormC = function (initOverrides) {
107
+ return __awaiter(this, void 0, void 0, function () {
108
+ var response;
109
+ return __generator(this, function (_a) {
110
+ switch (_a.label) {
111
+ case 0: return [4 /*yield*/, this.exportFormCRaw(initOverrides)];
112
+ case 1:
113
+ response = _a.sent();
114
+ return [4 /*yield*/, response.value()];
115
+ case 2: return [2 /*return*/, _a.sent()];
116
+ }
117
+ });
118
+ });
119
+ };
120
+ /**
121
+ * Auto-generated: formC.destroy
122
+ */
123
+ FormCApi.prototype.formCDestroyRaw = function (requestParameters, initOverrides) {
124
+ return __awaiter(this, void 0, void 0, function () {
125
+ var queryParameters, headerParameters, urlPath, response;
126
+ return __generator(this, function (_a) {
127
+ switch (_a.label) {
128
+ case 0:
129
+ if (requestParameters['formC'] == null) {
130
+ throw new runtime.RequiredError('formC', 'Required parameter "formC" was null or undefined when calling formCDestroy().');
131
+ }
132
+ queryParameters = {};
133
+ headerParameters = {};
134
+ urlPath = "/api/form-c/{form_c}";
135
+ urlPath = urlPath.replace("{".concat("form_c", "}"), encodeURIComponent(String(requestParameters['formC'])));
136
+ return [4 /*yield*/, this.request({
137
+ path: urlPath,
138
+ method: 'DELETE',
139
+ headers: headerParameters,
140
+ query: queryParameters,
141
+ }, initOverrides)];
142
+ case 1:
143
+ response = _a.sent();
144
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
145
+ }
146
+ });
147
+ });
148
+ };
149
+ /**
150
+ * Auto-generated: formC.destroy
151
+ */
152
+ FormCApi.prototype.formCDestroy = function (requestParameters, initOverrides) {
153
+ return __awaiter(this, void 0, void 0, function () {
154
+ var response;
155
+ return __generator(this, function (_a) {
156
+ switch (_a.label) {
157
+ case 0: return [4 /*yield*/, this.formCDestroyRaw(requestParameters, initOverrides)];
158
+ case 1:
159
+ response = _a.sent();
160
+ return [4 /*yield*/, response.value()];
161
+ case 2: return [2 /*return*/, _a.sent()];
162
+ }
163
+ });
164
+ });
165
+ };
166
+ /**
167
+ * Auto-generated: formC.index
168
+ */
169
+ FormCApi.prototype.formCIndexRaw = function (initOverrides) {
170
+ return __awaiter(this, void 0, void 0, function () {
171
+ var queryParameters, headerParameters, urlPath, response;
172
+ return __generator(this, function (_a) {
173
+ switch (_a.label) {
174
+ case 0:
175
+ queryParameters = {};
176
+ headerParameters = {};
177
+ urlPath = "/api/form-c";
178
+ return [4 /*yield*/, this.request({
179
+ path: urlPath,
180
+ method: 'GET',
181
+ headers: headerParameters,
182
+ query: queryParameters,
183
+ }, initOverrides)];
184
+ case 1:
185
+ response = _a.sent();
186
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FormCResourceFromJSON)(jsonValue); })];
187
+ }
188
+ });
189
+ });
190
+ };
191
+ /**
192
+ * Auto-generated: formC.index
193
+ */
194
+ FormCApi.prototype.formCIndex = function (initOverrides) {
195
+ return __awaiter(this, void 0, void 0, function () {
196
+ var response;
197
+ return __generator(this, function (_a) {
198
+ switch (_a.label) {
199
+ case 0: return [4 /*yield*/, this.formCIndexRaw(initOverrides)];
200
+ case 1:
201
+ response = _a.sent();
202
+ return [4 /*yield*/, response.value()];
203
+ case 2: return [2 /*return*/, _a.sent()];
204
+ }
205
+ });
206
+ });
207
+ };
208
+ /**
209
+ * Auto-generated: formC.show
210
+ */
211
+ FormCApi.prototype.formCShowRaw = function (requestParameters, initOverrides) {
212
+ return __awaiter(this, void 0, void 0, function () {
213
+ var queryParameters, headerParameters, urlPath, response;
214
+ return __generator(this, function (_a) {
215
+ switch (_a.label) {
216
+ case 0:
217
+ if (requestParameters['formC'] == null) {
218
+ throw new runtime.RequiredError('formC', 'Required parameter "formC" was null or undefined when calling formCShow().');
219
+ }
220
+ queryParameters = {};
221
+ headerParameters = {};
222
+ urlPath = "/api/form-c/{form_c}";
223
+ urlPath = urlPath.replace("{".concat("form_c", "}"), encodeURIComponent(String(requestParameters['formC'])));
224
+ return [4 /*yield*/, this.request({
225
+ path: urlPath,
226
+ method: 'GET',
227
+ headers: headerParameters,
228
+ query: queryParameters,
229
+ }, initOverrides)];
230
+ case 1:
231
+ response = _a.sent();
232
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FormCResourceFromJSON)(jsonValue); })];
233
+ }
234
+ });
235
+ });
236
+ };
237
+ /**
238
+ * Auto-generated: formC.show
239
+ */
240
+ FormCApi.prototype.formCShow = function (requestParameters, initOverrides) {
241
+ return __awaiter(this, void 0, void 0, function () {
242
+ var response;
243
+ return __generator(this, function (_a) {
244
+ switch (_a.label) {
245
+ case 0: return [4 /*yield*/, this.formCShowRaw(requestParameters, initOverrides)];
246
+ case 1:
247
+ response = _a.sent();
248
+ return [4 /*yield*/, response.value()];
249
+ case 2: return [2 /*return*/, _a.sent()];
250
+ }
251
+ });
252
+ });
253
+ };
254
+ /**
255
+ * Auto-generated: formC.store
256
+ */
257
+ FormCApi.prototype.formCStoreRaw = function (requestParameters, initOverrides) {
258
+ return __awaiter(this, void 0, void 0, function () {
259
+ var queryParameters, headerParameters, urlPath, response;
260
+ return __generator(this, function (_a) {
261
+ switch (_a.label) {
262
+ case 0:
263
+ queryParameters = {};
264
+ headerParameters = {};
265
+ headerParameters['Content-Type'] = 'application/json';
266
+ urlPath = "/api/form-c";
267
+ return [4 /*yield*/, this.request({
268
+ path: urlPath,
269
+ method: 'POST',
270
+ headers: headerParameters,
271
+ query: queryParameters,
272
+ body: (0, index_1.CreateOrUpdateFormCRequestToJSON)(requestParameters['createOrUpdateFormCRequest']),
273
+ }, initOverrides)];
274
+ case 1:
275
+ response = _a.sent();
276
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FormCResourceFromJSON)(jsonValue); })];
277
+ }
278
+ });
279
+ });
280
+ };
281
+ /**
282
+ * Auto-generated: formC.store
283
+ */
284
+ FormCApi.prototype.formCStore = function () {
285
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
286
+ var response;
287
+ if (requestParameters === void 0) { requestParameters = {}; }
288
+ return __generator(this, function (_a) {
289
+ switch (_a.label) {
290
+ case 0: return [4 /*yield*/, this.formCStoreRaw(requestParameters, initOverrides)];
291
+ case 1:
292
+ response = _a.sent();
293
+ return [4 /*yield*/, response.value()];
294
+ case 2: return [2 /*return*/, _a.sent()];
295
+ }
296
+ });
297
+ });
298
+ };
299
+ /**
300
+ * Auto-generated: printFormC
301
+ */
302
+ FormCApi.prototype.printFormCRaw = function (requestParameters, initOverrides) {
303
+ return __awaiter(this, void 0, void 0, function () {
304
+ var queryParameters, headerParameters, urlPath, response;
305
+ return __generator(this, function (_a) {
306
+ switch (_a.label) {
307
+ case 0:
308
+ if (requestParameters['id'] == null) {
309
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling printFormC().');
310
+ }
311
+ queryParameters = {};
312
+ headerParameters = {};
313
+ urlPath = "/api/form-c/{id}/print";
314
+ urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
315
+ return [4 /*yield*/, this.request({
316
+ path: urlPath,
317
+ method: 'GET',
318
+ headers: headerParameters,
319
+ query: queryParameters,
320
+ }, initOverrides)];
321
+ case 1:
322
+ response = _a.sent();
323
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FormCResourceFromJSON)(jsonValue); })];
324
+ }
325
+ });
326
+ });
327
+ };
328
+ /**
329
+ * Auto-generated: printFormC
330
+ */
331
+ FormCApi.prototype.printFormC = function (requestParameters, initOverrides) {
332
+ return __awaiter(this, void 0, void 0, function () {
333
+ var response;
334
+ return __generator(this, function (_a) {
335
+ switch (_a.label) {
336
+ case 0: return [4 /*yield*/, this.printFormCRaw(requestParameters, initOverrides)];
337
+ case 1:
338
+ response = _a.sent();
339
+ return [4 /*yield*/, response.value()];
340
+ case 2: return [2 /*return*/, _a.sent()];
341
+ }
342
+ });
343
+ });
344
+ };
345
+ /**
346
+ * Auto-generated: updateFormC
347
+ */
348
+ FormCApi.prototype.updateFormCRaw = function (requestParameters, initOverrides) {
349
+ return __awaiter(this, void 0, void 0, function () {
350
+ var queryParameters, headerParameters, urlPath, response;
351
+ return __generator(this, function (_a) {
352
+ switch (_a.label) {
353
+ case 0:
354
+ if (requestParameters['formC'] == null) {
355
+ throw new runtime.RequiredError('formC', 'Required parameter "formC" was null or undefined when calling updateFormC().');
356
+ }
357
+ queryParameters = {};
358
+ headerParameters = {};
359
+ headerParameters['Content-Type'] = 'application/json';
360
+ urlPath = "/api/form-c/{formC}";
361
+ urlPath = urlPath.replace("{".concat("formC", "}"), encodeURIComponent(String(requestParameters['formC'])));
362
+ return [4 /*yield*/, this.request({
363
+ path: urlPath,
364
+ method: 'POST',
365
+ headers: headerParameters,
366
+ query: queryParameters,
367
+ body: (0, index_1.CreateOrUpdateFormCRequestToJSON)(requestParameters['createOrUpdateFormCRequest']),
368
+ }, initOverrides)];
369
+ case 1:
370
+ response = _a.sent();
371
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FormCResourceFromJSON)(jsonValue); })];
372
+ }
373
+ });
374
+ });
375
+ };
376
+ /**
377
+ * Auto-generated: updateFormC
378
+ */
379
+ FormCApi.prototype.updateFormC = function (requestParameters, initOverrides) {
380
+ return __awaiter(this, void 0, void 0, function () {
381
+ var response;
382
+ return __generator(this, function (_a) {
383
+ switch (_a.label) {
384
+ case 0: return [4 /*yield*/, this.updateFormCRaw(requestParameters, initOverrides)];
385
+ case 1:
386
+ response = _a.sent();
387
+ return [4 /*yield*/, response.value()];
388
+ case 2: return [2 /*return*/, _a.sent()];
389
+ }
390
+ });
391
+ });
392
+ };
393
+ return FormCApi;
394
+ }(runtime.BaseAPI));
395
+ exports.FormCApi = FormCApi;
@@ -0,0 +1,42 @@
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 * as runtime from '../runtime';
13
+ import type { GenericResponse, ManagerResource } from '../models/index';
14
+ export interface AddVenueManagerRequest {
15
+ manager: number;
16
+ code: number;
17
+ }
18
+ export interface RemoveVenueManagerRequest {
19
+ manager: number;
20
+ venue: number;
21
+ }
22
+ /**
23
+ *
24
+ */
25
+ export declare class ManagerApi extends runtime.BaseAPI {
26
+ /**
27
+ * Auto-generated: addVenueManager
28
+ */
29
+ addVenueManagerRaw(requestParameters: AddVenueManagerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
30
+ /**
31
+ * Auto-generated: addVenueManager
32
+ */
33
+ addVenueManager(requestParameters: AddVenueManagerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
34
+ /**
35
+ * Auto-generated: removeVenueManager
36
+ */
37
+ removeVenueManagerRaw(requestParameters: RemoveVenueManagerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ManagerResource>>;
38
+ /**
39
+ * Auto-generated: removeVenueManager
40
+ */
41
+ removeVenueManager(requestParameters: RemoveVenueManagerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagerResource>;
42
+ }
@@ -0,0 +1,180 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.ManagerApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var ManagerApi = /** @class */ (function (_super) {
74
+ __extends(ManagerApi, _super);
75
+ function ManagerApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Auto-generated: addVenueManager
80
+ */
81
+ ManagerApi.prototype.addVenueManagerRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, urlPath, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (requestParameters['manager'] == null) {
88
+ throw new runtime.RequiredError('manager', 'Required parameter "manager" was null or undefined when calling addVenueManager().');
89
+ }
90
+ if (requestParameters['code'] == null) {
91
+ throw new runtime.RequiredError('code', 'Required parameter "code" was null or undefined when calling addVenueManager().');
92
+ }
93
+ queryParameters = {};
94
+ headerParameters = {};
95
+ urlPath = "/api/manager/{manager}/join/{code}";
96
+ urlPath = urlPath.replace("{".concat("manager", "}"), encodeURIComponent(String(requestParameters['manager'])));
97
+ urlPath = urlPath.replace("{".concat("code", "}"), encodeURIComponent(String(requestParameters['code'])));
98
+ return [4 /*yield*/, this.request({
99
+ path: urlPath,
100
+ method: 'POST',
101
+ headers: headerParameters,
102
+ query: queryParameters,
103
+ }, initOverrides)];
104
+ case 1:
105
+ response = _a.sent();
106
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
107
+ }
108
+ });
109
+ });
110
+ };
111
+ /**
112
+ * Auto-generated: addVenueManager
113
+ */
114
+ ManagerApi.prototype.addVenueManager = function (requestParameters, initOverrides) {
115
+ return __awaiter(this, void 0, void 0, function () {
116
+ var response;
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0: return [4 /*yield*/, this.addVenueManagerRaw(requestParameters, initOverrides)];
120
+ case 1:
121
+ response = _a.sent();
122
+ return [4 /*yield*/, response.value()];
123
+ case 2: return [2 /*return*/, _a.sent()];
124
+ }
125
+ });
126
+ });
127
+ };
128
+ /**
129
+ * Auto-generated: removeVenueManager
130
+ */
131
+ ManagerApi.prototype.removeVenueManagerRaw = function (requestParameters, initOverrides) {
132
+ return __awaiter(this, void 0, void 0, function () {
133
+ var queryParameters, headerParameters, urlPath, response;
134
+ return __generator(this, function (_a) {
135
+ switch (_a.label) {
136
+ case 0:
137
+ if (requestParameters['manager'] == null) {
138
+ throw new runtime.RequiredError('manager', 'Required parameter "manager" was null or undefined when calling removeVenueManager().');
139
+ }
140
+ if (requestParameters['venue'] == null) {
141
+ throw new runtime.RequiredError('venue', 'Required parameter "venue" was null or undefined when calling removeVenueManager().');
142
+ }
143
+ queryParameters = {};
144
+ headerParameters = {};
145
+ urlPath = "/api/manager/{manager}/remove/{venue}";
146
+ urlPath = urlPath.replace("{".concat("manager", "}"), encodeURIComponent(String(requestParameters['manager'])));
147
+ urlPath = urlPath.replace("{".concat("venue", "}"), encodeURIComponent(String(requestParameters['venue'])));
148
+ return [4 /*yield*/, this.request({
149
+ path: urlPath,
150
+ method: 'POST',
151
+ headers: headerParameters,
152
+ query: queryParameters,
153
+ }, initOverrides)];
154
+ case 1:
155
+ response = _a.sent();
156
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ManagerResourceFromJSON)(jsonValue); })];
157
+ }
158
+ });
159
+ });
160
+ };
161
+ /**
162
+ * Auto-generated: removeVenueManager
163
+ */
164
+ ManagerApi.prototype.removeVenueManager = function (requestParameters, initOverrides) {
165
+ return __awaiter(this, void 0, void 0, function () {
166
+ var response;
167
+ return __generator(this, function (_a) {
168
+ switch (_a.label) {
169
+ case 0: return [4 /*yield*/, this.removeVenueManagerRaw(requestParameters, initOverrides)];
170
+ case 1:
171
+ response = _a.sent();
172
+ return [4 /*yield*/, response.value()];
173
+ case 2: return [2 /*return*/, _a.sent()];
174
+ }
175
+ });
176
+ });
177
+ };
178
+ return ManagerApi;
179
+ }(runtime.BaseAPI));
180
+ exports.ManagerApi = ManagerApi;