@gizone/rrs-client 3.11.12-alpha.22 → 3.11.12-alpha.6

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 (252) hide show
  1. package/.openapi-generator/FILES +14 -26
  2. package/api.ts +1 -2
  3. package/apis/access-api.ts +31 -31
  4. package/apis/calendar-api.ts +209 -231
  5. package/apis/common-api.ts +0 -192
  6. package/apis/{maintenance-standard-api.ts → inspection-api.ts} +692 -289
  7. package/apis/message-api.ts +223 -201
  8. package/apis/setting-api.ts +243 -596
  9. package/apis/space-api.ts +329 -0
  10. package/apis/work-order-api.ts +204 -339
  11. package/dist/api.d.ts +1 -2
  12. package/dist/api.js +1 -2
  13. package/dist/apis/access-api.d.ts +21 -21
  14. package/dist/apis/access-api.js +22 -22
  15. package/dist/apis/calendar-api.d.ts +123 -131
  16. package/dist/apis/calendar-api.js +164 -177
  17. package/dist/apis/common-api.d.ts +0 -102
  18. package/dist/apis/common-api.js +0 -144
  19. package/dist/apis/inspection-api.d.ts +846 -0
  20. package/dist/apis/{maintenance-standard-api.js → inspection-api.js} +485 -226
  21. package/dist/apis/message-api.d.ts +125 -117
  22. package/dist/apis/message-api.js +171 -132
  23. package/dist/apis/setting-api.d.ts +144 -334
  24. package/dist/apis/setting-api.js +187 -433
  25. package/dist/apis/space-api.d.ts +159 -0
  26. package/dist/apis/space-api.js +272 -0
  27. package/dist/apis/work-order-api.d.ts +116 -191
  28. package/dist/apis/work-order-api.js +160 -241
  29. package/dist/esm/api.d.ts +1 -2
  30. package/dist/esm/api.js +1 -2
  31. package/dist/esm/apis/access-api.d.ts +21 -21
  32. package/dist/esm/apis/access-api.js +22 -22
  33. package/dist/esm/apis/calendar-api.d.ts +123 -131
  34. package/dist/esm/apis/calendar-api.js +164 -177
  35. package/dist/esm/apis/common-api.d.ts +0 -102
  36. package/dist/esm/apis/common-api.js +0 -144
  37. package/dist/esm/apis/inspection-api.d.ts +846 -0
  38. package/dist/esm/apis/{maintenance-standard-api.js → inspection-api.js} +480 -221
  39. package/dist/esm/apis/message-api.d.ts +125 -117
  40. package/dist/esm/apis/message-api.js +171 -132
  41. package/dist/esm/apis/setting-api.d.ts +144 -334
  42. package/dist/esm/apis/setting-api.js +187 -433
  43. package/dist/esm/apis/space-api.d.ts +159 -0
  44. package/dist/esm/apis/space-api.js +272 -0
  45. package/dist/esm/apis/work-order-api.d.ts +116 -191
  46. package/dist/esm/apis/work-order-api.js +160 -241
  47. package/dist/esm/models/{excel-import-result-dtocalendar-export-dto.d.ts → calendar-add-redis-list-vo.d.ts} +21 -9
  48. package/dist/esm/models/file-dto.d.ts +3 -3
  49. package/dist/esm/models/get-user-wx200-response.d.ts +4 -4
  50. package/dist/esm/models/index.d.ts +13 -24
  51. package/dist/esm/models/index.js +13 -24
  52. package/dist/esm/models/inspection-point-item.d.ts +0 -12
  53. package/dist/esm/models/ipage-access-vo.d.ts +6 -6
  54. package/dist/esm/models/{json-result-sys-user-msg-dto.d.ts → json-result-calendar-add-redis-list-vo.d.ts} +11 -11
  55. package/dist/esm/models/{json-result-page-dto-sys-user-msg-dto.d.ts → json-result-page-dto-sys-user-msg-list-dto.d.ts} +11 -11
  56. package/dist/esm/models/json-result-space-edit-before-and-after-dto.d.ts +56 -0
  57. package/dist/{models/json-result-park-info-dto.d.ts → esm/models/json-result-sys-user-msg-do.d.ts} +11 -11
  58. package/dist/esm/models/maintenance-history-dto.d.ts +6 -0
  59. package/dist/esm/models/maintenance-history-dto.js +6 -0
  60. package/dist/esm/models/{page-dto-sys-user-msg-dto.d.ts → page-dto-sys-user-msg-list-dto.d.ts} +7 -7
  61. package/dist/esm/models/period-detail-resp.d.ts +6 -0
  62. package/dist/esm/models/period-detail-resp.js +6 -0
  63. package/dist/esm/models/plan-add-vo.d.ts +1 -1
  64. package/dist/esm/models/plan-edit-vo.d.ts +1 -1
  65. package/dist/esm/models/plan-item-add-vo.d.ts +1 -1
  66. package/dist/esm/models/plan-item-edit-vo.d.ts +1 -1
  67. package/dist/esm/models/space-edit-before-and-after-dto.d.ts +31 -0
  68. package/dist/esm/models/space-edit-excel-dto.d.ts +78 -0
  69. package/dist/esm/models/sys-dept.d.ts +0 -6
  70. package/dist/esm/models/sys-user-msg-do.d.ts +90 -0
  71. package/dist/{models/sys-user-msg-dto.d.ts → esm/models/sys-user-msg-list-dto.d.ts} +28 -30
  72. package/dist/esm/models/sys-user-msg-search-list-vo.d.ts +54 -0
  73. package/dist/esm/models/sys-user.d.ts +4 -4
  74. package/dist/esm/models/work-order-add-vo.d.ts +4 -23
  75. package/dist/esm/models/{system-user-msg-type-enum.d.ts → work-order-check-before-acceptance-adopt-vo.d.ts} +15 -6
  76. package/dist/{models/work-order-dept-settings-add-or-update-vo.d.ts → esm/models/work-order-check-before-acceptance-no-vo.d.ts} +12 -12
  77. package/dist/esm/models/work-order-detail-dto.d.ts +6 -19
  78. package/dist/esm/models/work-order-detail-dto.js +6 -0
  79. package/dist/esm/models/work-order-search-dto.d.ts +6 -0
  80. package/dist/esm/models/work-order-search-dto.js +6 -0
  81. package/dist/esm/models/work-order-type-enum.d.ts +1 -1
  82. package/dist/esm/models/work-order-type-enum.js +1 -1
  83. package/dist/models/{excel-import-result-dtocalendar-export-dto.d.ts → calendar-add-redis-list-vo.d.ts} +21 -9
  84. package/dist/models/file-dto.d.ts +3 -3
  85. package/dist/models/get-user-wx200-response.d.ts +4 -4
  86. package/dist/models/index.d.ts +13 -24
  87. package/dist/models/index.js +13 -24
  88. package/dist/models/inspection-point-item.d.ts +0 -12
  89. package/dist/models/ipage-access-vo.d.ts +6 -6
  90. package/dist/models/{json-result-page-dto-sys-user-msg-dto.d.ts → json-result-calendar-add-redis-list-vo.d.ts} +11 -11
  91. package/dist/models/json-result-page-dto-sys-user-msg-list-dto.d.ts +56 -0
  92. package/dist/models/json-result-space-edit-before-and-after-dto.d.ts +56 -0
  93. package/dist/{esm/models/json-result-park-info-dto.d.ts → models/json-result-sys-user-msg-do.d.ts} +11 -11
  94. package/dist/models/maintenance-history-dto.d.ts +6 -0
  95. package/dist/models/maintenance-history-dto.js +6 -0
  96. package/dist/models/{page-dto-sys-user-msg-dto.d.ts → page-dto-sys-user-msg-list-dto.d.ts} +7 -7
  97. package/dist/models/period-detail-resp.d.ts +6 -0
  98. package/dist/models/period-detail-resp.js +6 -0
  99. package/dist/models/plan-add-vo.d.ts +1 -1
  100. package/dist/models/plan-edit-vo.d.ts +1 -1
  101. package/dist/models/plan-item-add-vo.d.ts +1 -1
  102. package/dist/models/plan-item-edit-vo.d.ts +1 -1
  103. package/dist/models/space-edit-before-and-after-dto.d.ts +31 -0
  104. package/dist/models/space-edit-excel-dto.d.ts +78 -0
  105. package/dist/models/sys-dept.d.ts +0 -6
  106. package/dist/models/sys-user-msg-do.d.ts +90 -0
  107. package/dist/{esm/models/sys-user-msg-dto.d.ts → models/sys-user-msg-list-dto.d.ts} +28 -30
  108. package/dist/models/sys-user-msg-search-list-vo.d.ts +54 -0
  109. package/dist/models/sys-user.d.ts +4 -4
  110. package/dist/models/work-order-add-vo.d.ts +4 -23
  111. package/dist/{esm/models/system-user-msg-type-enum.js → models/work-order-check-before-acceptance-adopt-vo.d.ts} +15 -7
  112. package/dist/{esm/models/work-order-dept-settings-add-or-update-vo.d.ts → models/work-order-check-before-acceptance-no-vo.d.ts} +12 -12
  113. package/dist/models/work-order-detail-dto.d.ts +6 -19
  114. package/dist/models/work-order-detail-dto.js +6 -0
  115. package/dist/models/work-order-search-dto.d.ts +6 -0
  116. package/dist/models/work-order-search-dto.js +6 -0
  117. package/dist/models/work-order-type-enum.d.ts +1 -1
  118. package/dist/models/work-order-type-enum.js +1 -1
  119. package/models/{excel-import-result-dtocalendar-export-dto.ts → calendar-add-redis-list-vo.ts} +21 -9
  120. package/models/file-dto.ts +3 -3
  121. package/models/get-user-wx200-response.ts +4 -4
  122. package/models/index.ts +13 -24
  123. package/models/inspection-point-item.ts +0 -12
  124. package/models/ipage-access-vo.ts +6 -6
  125. package/models/{json-result-sys-user-msg-dto.ts → json-result-calendar-add-redis-list-vo.ts} +11 -11
  126. package/models/{json-result-page-dto-sys-user-msg-dto.ts → json-result-page-dto-sys-user-msg-list-dto.ts} +11 -11
  127. package/models/{json-result-work-order-dept-settings-entity.ts → json-result-space-edit-before-and-after-dto.ts} +11 -11
  128. package/models/{json-result-park-info-dto.ts → json-result-sys-user-msg-do.ts} +11 -11
  129. package/models/maintenance-history-dto.ts +6 -0
  130. package/models/{page-dto-sys-user-msg-dto.ts → page-dto-sys-user-msg-list-dto.ts} +7 -7
  131. package/models/period-detail-resp.ts +6 -0
  132. package/models/plan-add-vo.ts +1 -1
  133. package/models/plan-edit-vo.ts +1 -1
  134. package/models/plan-item-add-vo.ts +1 -1
  135. package/models/plan-item-edit-vo.ts +1 -1
  136. package/models/space-edit-before-and-after-dto.ts +39 -0
  137. package/models/space-edit-excel-dto.ts +84 -0
  138. package/models/sys-dept.ts +0 -6
  139. package/models/sys-user-msg-do.ts +96 -0
  140. package/models/{sys-user-msg-dto.ts → sys-user-msg-list-dto.ts} +28 -36
  141. package/models/sys-user-msg-search-list-vo.ts +60 -0
  142. package/models/sys-user.ts +4 -4
  143. package/models/work-order-add-vo.ts +4 -25
  144. package/models/{system-user-msg-type-enum.ts → work-order-check-before-acceptance-adopt-vo.ts} +15 -10
  145. package/models/{work-order-dept-settings-add-or-update-vo.ts → work-order-check-before-acceptance-no-vo.ts} +12 -12
  146. package/models/work-order-detail-dto.ts +6 -21
  147. package/models/work-order-search-dto.ts +6 -0
  148. package/models/work-order-type-enum.ts +1 -1
  149. package/package.json +1 -1
  150. package/apis/inspection-standard-api.ts +0 -1111
  151. package/dist/apis/inspection-standard-api.d.ts +0 -574
  152. package/dist/apis/inspection-standard-api.js +0 -872
  153. package/dist/apis/maintenance-standard-api.d.ts +0 -614
  154. package/dist/esm/apis/inspection-standard-api.d.ts +0 -574
  155. package/dist/esm/apis/inspection-standard-api.js +0 -865
  156. package/dist/esm/apis/maintenance-standard-api.d.ts +0 -614
  157. package/dist/esm/models/dept-relation-dto.d.ts +0 -120
  158. package/dist/esm/models/dept-relation.d.ts +0 -84
  159. package/dist/esm/models/excel-import-result-dtoinspection-standard-import-dto.d.ts +0 -31
  160. package/dist/esm/models/excel-import-result-dtomaintenance-standard-import-dto.d.ts +0 -31
  161. package/dist/esm/models/inspection-standard-import-dto.d.ts +0 -108
  162. package/dist/esm/models/json-result-excel-import-result-dtocalendar-export-dto.d.ts +0 -56
  163. package/dist/esm/models/json-result-excel-import-result-dtoinspection-standard-import-dto.d.ts +0 -56
  164. package/dist/esm/models/json-result-excel-import-result-dtomaintenance-standard-import-dto.d.ts +0 -56
  165. package/dist/esm/models/json-result-list-work-order-dept-settings-entity.d.ts +0 -56
  166. package/dist/esm/models/json-result-work-order-dept-settings-entity.d.ts +0 -56
  167. package/dist/esm/models/json-result-work-order-dept-settings-entity.js +0 -14
  168. package/dist/esm/models/maintenance-standard-import-dto.d.ts +0 -114
  169. package/dist/esm/models/maintenance-standard-import-dto.js +0 -14
  170. package/dist/esm/models/page-dto-sys-user-msg-dto.js +0 -14
  171. package/dist/esm/models/park-info-dto.d.ts +0 -85
  172. package/dist/esm/models/park-info-dto.js +0 -14
  173. package/dist/esm/models/park-info-edit-vo.d.ts +0 -49
  174. package/dist/esm/models/park-info-edit-vo.js +0 -14
  175. package/dist/esm/models/sys-user-msg-dto.js +0 -14
  176. package/dist/esm/models/system-user-msg-source-type-enum.d.ts +0 -23
  177. package/dist/esm/models/system-user-msg-source-type-enum.js +0 -24
  178. package/dist/esm/models/work-order-dept-settings-add-or-update-vo.js +0 -14
  179. package/dist/esm/models/work-order-dept-settings-entity.d.ts +0 -67
  180. package/dist/esm/models/work-order-dept-settings-entity.js +0 -14
  181. package/dist/esm/models/work-order-issue-type-enum.d.ts +0 -26
  182. package/dist/esm/models/work-order-issue-type-enum.js +0 -27
  183. package/dist/models/dept-relation-dto.d.ts +0 -120
  184. package/dist/models/dept-relation.d.ts +0 -84
  185. package/dist/models/excel-import-result-dtoinspection-standard-import-dto.d.ts +0 -31
  186. package/dist/models/excel-import-result-dtomaintenance-standard-import-dto.d.ts +0 -31
  187. package/dist/models/inspection-standard-import-dto.d.ts +0 -108
  188. package/dist/models/json-result-excel-import-result-dtocalendar-export-dto.d.ts +0 -56
  189. package/dist/models/json-result-excel-import-result-dtoinspection-standard-import-dto.d.ts +0 -56
  190. package/dist/models/json-result-excel-import-result-dtomaintenance-standard-import-dto.d.ts +0 -56
  191. package/dist/models/json-result-list-work-order-dept-settings-entity.d.ts +0 -56
  192. package/dist/models/json-result-sys-user-msg-dto.d.ts +0 -56
  193. package/dist/models/json-result-work-order-dept-settings-entity.d.ts +0 -56
  194. package/dist/models/json-result-work-order-dept-settings-entity.js +0 -15
  195. package/dist/models/maintenance-standard-import-dto.d.ts +0 -114
  196. package/dist/models/maintenance-standard-import-dto.js +0 -15
  197. package/dist/models/page-dto-sys-user-msg-dto.js +0 -15
  198. package/dist/models/park-info-dto.d.ts +0 -85
  199. package/dist/models/park-info-dto.js +0 -15
  200. package/dist/models/park-info-edit-vo.d.ts +0 -49
  201. package/dist/models/park-info-edit-vo.js +0 -15
  202. package/dist/models/sys-user-msg-dto.js +0 -15
  203. package/dist/models/system-user-msg-source-type-enum.d.ts +0 -23
  204. package/dist/models/system-user-msg-source-type-enum.js +0 -27
  205. package/dist/models/system-user-msg-type-enum.d.ts +0 -21
  206. package/dist/models/system-user-msg-type-enum.js +0 -25
  207. package/dist/models/work-order-dept-settings-add-or-update-vo.js +0 -15
  208. package/dist/models/work-order-dept-settings-entity.d.ts +0 -67
  209. package/dist/models/work-order-dept-settings-entity.js +0 -15
  210. package/dist/models/work-order-issue-type-enum.d.ts +0 -26
  211. package/dist/models/work-order-issue-type-enum.js +0 -30
  212. package/models/dept-relation-dto.ts +0 -126
  213. package/models/dept-relation.ts +0 -90
  214. package/models/excel-import-result-dtoinspection-standard-import-dto.ts +0 -39
  215. package/models/excel-import-result-dtomaintenance-standard-import-dto.ts +0 -39
  216. package/models/inspection-standard-import-dto.ts +0 -114
  217. package/models/json-result-excel-import-result-dtocalendar-export-dto.ts +0 -66
  218. package/models/json-result-excel-import-result-dtoinspection-standard-import-dto.ts +0 -66
  219. package/models/json-result-excel-import-result-dtomaintenance-standard-import-dto.ts +0 -66
  220. package/models/json-result-list-work-order-dept-settings-entity.ts +0 -66
  221. package/models/maintenance-standard-import-dto.ts +0 -120
  222. package/models/park-info-dto.ts +0 -93
  223. package/models/park-info-edit-vo.ts +0 -57
  224. package/models/system-user-msg-source-type-enum.ts +0 -33
  225. package/models/work-order-dept-settings-entity.ts +0 -77
  226. package/models/work-order-issue-type-enum.ts +0 -36
  227. /package/dist/esm/models/{dept-relation-dto.js → calendar-add-redis-list-vo.js} +0 -0
  228. /package/dist/esm/models/{dept-relation.js → json-result-calendar-add-redis-list-vo.js} +0 -0
  229. /package/dist/esm/models/{excel-import-result-dtocalendar-export-dto.js → json-result-page-dto-sys-user-msg-list-dto.js} +0 -0
  230. /package/dist/esm/models/{excel-import-result-dtoinspection-standard-import-dto.js → json-result-space-edit-before-and-after-dto.js} +0 -0
  231. /package/dist/esm/models/{excel-import-result-dtomaintenance-standard-import-dto.js → json-result-sys-user-msg-do.js} +0 -0
  232. /package/dist/esm/models/{inspection-standard-import-dto.js → page-dto-sys-user-msg-list-dto.js} +0 -0
  233. /package/dist/esm/models/{json-result-excel-import-result-dtocalendar-export-dto.js → space-edit-before-and-after-dto.js} +0 -0
  234. /package/dist/esm/models/{json-result-excel-import-result-dtoinspection-standard-import-dto.js → space-edit-excel-dto.js} +0 -0
  235. /package/dist/esm/models/{json-result-excel-import-result-dtomaintenance-standard-import-dto.js → sys-user-msg-do.js} +0 -0
  236. /package/dist/esm/models/{json-result-list-work-order-dept-settings-entity.js → sys-user-msg-list-dto.js} +0 -0
  237. /package/dist/esm/models/{json-result-page-dto-sys-user-msg-dto.js → sys-user-msg-search-list-vo.js} +0 -0
  238. /package/dist/esm/models/{json-result-park-info-dto.js → work-order-check-before-acceptance-adopt-vo.js} +0 -0
  239. /package/dist/esm/models/{json-result-sys-user-msg-dto.js → work-order-check-before-acceptance-no-vo.js} +0 -0
  240. /package/dist/models/{dept-relation-dto.js → calendar-add-redis-list-vo.js} +0 -0
  241. /package/dist/models/{dept-relation.js → json-result-calendar-add-redis-list-vo.js} +0 -0
  242. /package/dist/models/{excel-import-result-dtocalendar-export-dto.js → json-result-page-dto-sys-user-msg-list-dto.js} +0 -0
  243. /package/dist/models/{excel-import-result-dtoinspection-standard-import-dto.js → json-result-space-edit-before-and-after-dto.js} +0 -0
  244. /package/dist/models/{excel-import-result-dtomaintenance-standard-import-dto.js → json-result-sys-user-msg-do.js} +0 -0
  245. /package/dist/models/{inspection-standard-import-dto.js → page-dto-sys-user-msg-list-dto.js} +0 -0
  246. /package/dist/models/{json-result-excel-import-result-dtocalendar-export-dto.js → space-edit-before-and-after-dto.js} +0 -0
  247. /package/dist/models/{json-result-excel-import-result-dtoinspection-standard-import-dto.js → space-edit-excel-dto.js} +0 -0
  248. /package/dist/models/{json-result-excel-import-result-dtomaintenance-standard-import-dto.js → sys-user-msg-do.js} +0 -0
  249. /package/dist/models/{json-result-list-work-order-dept-settings-entity.js → sys-user-msg-list-dto.js} +0 -0
  250. /package/dist/models/{json-result-page-dto-sys-user-msg-dto.js → sys-user-msg-search-list-vo.js} +0 -0
  251. /package/dist/models/{json-result-park-info-dto.js → work-order-check-before-acceptance-adopt-vo.js} +0 -0
  252. /package/dist/models/{json-result-sys-user-msg-dto.js → work-order-check-before-acceptance-no-vo.js} +0 -0
@@ -1,872 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * OpenAPI definition
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: v0
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.InspectionStandardApi = exports.InspectionStandardApiFactory = exports.InspectionStandardApiFp = exports.InspectionStandardApiAxiosParamCreator = void 0;
26
- const axios_1 = require("axios");
27
- // Some imports not used depending on template conditions
28
- // @ts-ignore
29
- const common_1 = require("../common");
30
- // @ts-ignore
31
- const base_1 = require("../base");
32
- /**
33
- * InspectionStandardApi - axios parameter creator
34
- * @export
35
- */
36
- const InspectionStandardApiAxiosParamCreator = function (configuration) {
37
- return {
38
- /**
39
- *
40
- * @summary 添加巡检标准
41
- * @param {Array<InspectionStandardAddOrUpdateVO>} inspectionStandardAddOrUpdateVO
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- createInspectionStandard: (inspectionStandardAddOrUpdateVO_1, ...args_1) => __awaiter(this, [inspectionStandardAddOrUpdateVO_1, ...args_1], void 0, function* (inspectionStandardAddOrUpdateVO, options = {}) {
46
- // verify required parameter 'inspectionStandardAddOrUpdateVO' is not null or undefined
47
- (0, common_1.assertParamExists)('createInspectionStandard', 'inspectionStandardAddOrUpdateVO', inspectionStandardAddOrUpdateVO);
48
- const localVarPath = `/gizone/inspectionStandard`;
49
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
- let baseOptions;
52
- if (configuration) {
53
- baseOptions = configuration.baseOptions;
54
- }
55
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
56
- const localVarHeaderParameter = {};
57
- const localVarQueryParameter = {};
58
- // authentication tokenScheme required
59
- // http bearer authentication required
60
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
61
- localVarHeaderParameter['Content-Type'] = 'application/json';
62
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
63
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
64
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
65
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inspectionStandardAddOrUpdateVO, localVarRequestOptions, configuration);
66
- return {
67
- url: (0, common_1.toPathString)(localVarUrlObj),
68
- options: localVarRequestOptions,
69
- };
70
- }),
71
- /**
72
- *
73
- * @summary 删除巡检标准
74
- * @param {number} id 巡检标准id
75
- * @param {*} [options] Override http request option.
76
- * @throws {RequiredError}
77
- */
78
- deleteInspectionStandard: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
79
- // verify required parameter 'id' is not null or undefined
80
- (0, common_1.assertParamExists)('deleteInspectionStandard', 'id', id);
81
- const localVarPath = `/gizone/inspectionStandard/{id}`
82
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
83
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
85
- let baseOptions;
86
- if (configuration) {
87
- baseOptions = configuration.baseOptions;
88
- }
89
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
90
- const localVarHeaderParameter = {};
91
- const localVarQueryParameter = {};
92
- // authentication tokenScheme required
93
- // http bearer authentication required
94
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
95
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
96
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
97
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
98
- return {
99
- url: (0, common_1.toPathString)(localVarUrlObj),
100
- options: localVarRequestOptions,
101
- };
102
- }),
103
- /**
104
- *
105
- * @summary 批量删除巡检标准
106
- * @param {Array<number>} requestBody
107
- * @param {*} [options] Override http request option.
108
- * @throws {RequiredError}
109
- */
110
- deleteInspectionStandards: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
111
- // verify required parameter 'requestBody' is not null or undefined
112
- (0, common_1.assertParamExists)('deleteInspectionStandards', 'requestBody', requestBody);
113
- const localVarPath = `/gizone/inspectionStandard/delBatch`;
114
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
115
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
116
- let baseOptions;
117
- if (configuration) {
118
- baseOptions = configuration.baseOptions;
119
- }
120
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
121
- const localVarHeaderParameter = {};
122
- const localVarQueryParameter = {};
123
- // authentication tokenScheme required
124
- // http bearer authentication required
125
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
126
- localVarHeaderParameter['Content-Type'] = 'application/json';
127
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
131
- return {
132
- url: (0, common_1.toPathString)(localVarUrlObj),
133
- options: localVarRequestOptions,
134
- };
135
- }),
136
- /**
137
- *
138
- * @summary 巡检标准详情
139
- * @param {number} id
140
- * @param {*} [options] Override http request option.
141
- * @throws {RequiredError}
142
- */
143
- getInspectionStandard: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
144
- // verify required parameter 'id' is not null or undefined
145
- (0, common_1.assertParamExists)('getInspectionStandard', 'id', id);
146
- const localVarPath = `/gizone/inspectionStandard/{id}`
147
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
148
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
149
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
150
- let baseOptions;
151
- if (configuration) {
152
- baseOptions = configuration.baseOptions;
153
- }
154
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
155
- const localVarHeaderParameter = {};
156
- const localVarQueryParameter = {};
157
- // authentication tokenScheme required
158
- // http bearer authentication required
159
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
160
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
161
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
162
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
163
- return {
164
- url: (0, common_1.toPathString)(localVarUrlObj),
165
- options: localVarRequestOptions,
166
- };
167
- }),
168
- /**
169
- *
170
- * @summary 巡检标准导入-确认导入
171
- * @param {*} [options] Override http request option.
172
- * @throws {RequiredError}
173
- */
174
- inspectionStandardBatchImportConfirm: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
175
- const localVarPath = `/gizone/inspectionStandard/batchImport/confirm`;
176
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
177
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
178
- let baseOptions;
179
- if (configuration) {
180
- baseOptions = configuration.baseOptions;
181
- }
182
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
183
- const localVarHeaderParameter = {};
184
- const localVarQueryParameter = {};
185
- // authentication tokenScheme required
186
- // http bearer authentication required
187
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
188
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
189
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
190
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
191
- return {
192
- url: (0, common_1.toPathString)(localVarUrlObj),
193
- options: localVarRequestOptions,
194
- };
195
- }),
196
- /**
197
- *
198
- * @summary 巡检标准导入-预览结果
199
- * @param {*} [options] Override http request option.
200
- * @throws {RequiredError}
201
- */
202
- inspectionStandardBatchImportPreview: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
203
- const localVarPath = `/gizone/inspectionStandard/batchImport/preview`;
204
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
205
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
206
- let baseOptions;
207
- if (configuration) {
208
- baseOptions = configuration.baseOptions;
209
- }
210
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
211
- const localVarHeaderParameter = {};
212
- const localVarQueryParameter = {};
213
- // authentication tokenScheme required
214
- // http bearer authentication required
215
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
216
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
217
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
218
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
219
- return {
220
- url: (0, common_1.toPathString)(localVarUrlObj),
221
- options: localVarRequestOptions,
222
- };
223
- }),
224
- /**
225
- *
226
- * @summary 巡检标准导入-下载模板
227
- * @param {*} [options] Override http request option.
228
- * @throws {RequiredError}
229
- */
230
- inspectionStandardBatchImportTemplate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
231
- const localVarPath = `/gizone/inspectionStandard/batchImport/template`;
232
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
233
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
234
- let baseOptions;
235
- if (configuration) {
236
- baseOptions = configuration.baseOptions;
237
- }
238
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
239
- const localVarHeaderParameter = {};
240
- const localVarQueryParameter = {};
241
- // authentication tokenScheme required
242
- // http bearer authentication required
243
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
244
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
245
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
246
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
247
- return {
248
- url: (0, common_1.toPathString)(localVarUrlObj),
249
- options: localVarRequestOptions,
250
- };
251
- }),
252
- /**
253
- *
254
- * @summary 巡检标准导入-上传文件
255
- * @param {number} parkId 园区id
256
- * @param {File} file
257
- * @param {string} [language] 语言
258
- * @param {*} [options] Override http request option.
259
- * @throws {RequiredError}
260
- */
261
- inspectionStandardBatchImportUpload: (parkId_1, file_1, language_1, ...args_1) => __awaiter(this, [parkId_1, file_1, language_1, ...args_1], void 0, function* (parkId, file, language, options = {}) {
262
- // verify required parameter 'parkId' is not null or undefined
263
- (0, common_1.assertParamExists)('inspectionStandardBatchImportUpload', 'parkId', parkId);
264
- // verify required parameter 'file' is not null or undefined
265
- (0, common_1.assertParamExists)('inspectionStandardBatchImportUpload', 'file', file);
266
- const localVarPath = `/gizone/inspectionStandard/batchImport/upload`;
267
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
268
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
269
- let baseOptions;
270
- if (configuration) {
271
- baseOptions = configuration.baseOptions;
272
- }
273
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
274
- const localVarHeaderParameter = {};
275
- const localVarQueryParameter = {};
276
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
277
- // authentication tokenScheme required
278
- // http bearer authentication required
279
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
280
- if (parkId !== undefined) {
281
- localVarFormParams.append('parkId', parkId);
282
- }
283
- if (language !== undefined) {
284
- localVarFormParams.append('language', language);
285
- }
286
- if (file !== undefined) {
287
- localVarFormParams.append('file', file);
288
- }
289
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
290
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
291
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
293
- localVarRequestOptions.data = localVarFormParams;
294
- return {
295
- url: (0, common_1.toPathString)(localVarUrlObj),
296
- options: localVarRequestOptions,
297
- };
298
- }),
299
- /**
300
- *
301
- * @summary 巡检标准列表
302
- * @param {number} parkId 园区id
303
- * @param {number} pageSize 每页数量
304
- * @param {number} page 页码
305
- * @param {string} [searchValue] 内容
306
- * @param {InspectionCategoryEnum} [category] 巡检分类
307
- * @param {WorkOrderPlanRepeatsEnum} [repeats] 周期
308
- * @param {*} [options] Override http request option.
309
- * @throws {RequiredError}
310
- */
311
- listInspectionStandard: (parkId_1, pageSize_1, page_1, searchValue_1, category_1, repeats_1, ...args_1) => __awaiter(this, [parkId_1, pageSize_1, page_1, searchValue_1, category_1, repeats_1, ...args_1], void 0, function* (parkId, pageSize, page, searchValue, category, repeats, options = {}) {
312
- // verify required parameter 'parkId' is not null or undefined
313
- (0, common_1.assertParamExists)('listInspectionStandard', 'parkId', parkId);
314
- // verify required parameter 'pageSize' is not null or undefined
315
- (0, common_1.assertParamExists)('listInspectionStandard', 'pageSize', pageSize);
316
- // verify required parameter 'page' is not null or undefined
317
- (0, common_1.assertParamExists)('listInspectionStandard', 'page', page);
318
- const localVarPath = `/gizone/inspectionStandard`;
319
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
320
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
321
- let baseOptions;
322
- if (configuration) {
323
- baseOptions = configuration.baseOptions;
324
- }
325
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
326
- const localVarHeaderParameter = {};
327
- const localVarQueryParameter = {};
328
- // authentication tokenScheme required
329
- // http bearer authentication required
330
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
331
- if (searchValue !== undefined) {
332
- localVarQueryParameter['searchValue'] = searchValue;
333
- }
334
- if (category !== undefined) {
335
- localVarQueryParameter['category'] = category;
336
- }
337
- if (parkId !== undefined) {
338
- localVarQueryParameter['parkId'] = parkId;
339
- }
340
- if (pageSize !== undefined) {
341
- localVarQueryParameter['pageSize'] = pageSize;
342
- }
343
- if (page !== undefined) {
344
- localVarQueryParameter['page'] = page;
345
- }
346
- if (repeats !== undefined) {
347
- localVarQueryParameter['repeats'] = repeats;
348
- }
349
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
350
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
351
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
352
- return {
353
- url: (0, common_1.toPathString)(localVarUrlObj),
354
- options: localVarRequestOptions,
355
- };
356
- }),
357
- /**
358
- *
359
- * @summary 同步其他园区巡检标准
360
- * @param {number} parkIdOne
361
- * @param {number} parkIdTwo
362
- * @param {*} [options] Override http request option.
363
- * @throws {RequiredError}
364
- */
365
- syncInspectionStandard: (parkIdOne_1, parkIdTwo_1, ...args_1) => __awaiter(this, [parkIdOne_1, parkIdTwo_1, ...args_1], void 0, function* (parkIdOne, parkIdTwo, options = {}) {
366
- // verify required parameter 'parkIdOne' is not null or undefined
367
- (0, common_1.assertParamExists)('syncInspectionStandard', 'parkIdOne', parkIdOne);
368
- // verify required parameter 'parkIdTwo' is not null or undefined
369
- (0, common_1.assertParamExists)('syncInspectionStandard', 'parkIdTwo', parkIdTwo);
370
- const localVarPath = `/gizone/inspectionStandard/sync/park/inspectionStandard`;
371
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
372
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
373
- let baseOptions;
374
- if (configuration) {
375
- baseOptions = configuration.baseOptions;
376
- }
377
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
378
- const localVarHeaderParameter = {};
379
- const localVarQueryParameter = {};
380
- // authentication tokenScheme required
381
- // http bearer authentication required
382
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
383
- if (parkIdOne !== undefined) {
384
- localVarQueryParameter['parkIdOne'] = parkIdOne;
385
- }
386
- if (parkIdTwo !== undefined) {
387
- localVarQueryParameter['parkIdTwo'] = parkIdTwo;
388
- }
389
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
390
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
391
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
392
- return {
393
- url: (0, common_1.toPathString)(localVarUrlObj),
394
- options: localVarRequestOptions,
395
- };
396
- }),
397
- /**
398
- *
399
- * @summary 修改巡检标准
400
- * @param {number} id
401
- * @param {InspectionStandardAddOrUpdateVO} inspectionStandardAddOrUpdateVO
402
- * @param {*} [options] Override http request option.
403
- * @throws {RequiredError}
404
- */
405
- updateInspectionStandard: (id_1, inspectionStandardAddOrUpdateVO_1, ...args_1) => __awaiter(this, [id_1, inspectionStandardAddOrUpdateVO_1, ...args_1], void 0, function* (id, inspectionStandardAddOrUpdateVO, options = {}) {
406
- // verify required parameter 'id' is not null or undefined
407
- (0, common_1.assertParamExists)('updateInspectionStandard', 'id', id);
408
- // verify required parameter 'inspectionStandardAddOrUpdateVO' is not null or undefined
409
- (0, common_1.assertParamExists)('updateInspectionStandard', 'inspectionStandardAddOrUpdateVO', inspectionStandardAddOrUpdateVO);
410
- const localVarPath = `/gizone/inspectionStandard/{id}`
411
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
412
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
413
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
414
- let baseOptions;
415
- if (configuration) {
416
- baseOptions = configuration.baseOptions;
417
- }
418
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
419
- const localVarHeaderParameter = {};
420
- const localVarQueryParameter = {};
421
- // authentication tokenScheme required
422
- // http bearer authentication required
423
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
424
- localVarHeaderParameter['Content-Type'] = 'application/json';
425
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
426
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
427
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
428
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inspectionStandardAddOrUpdateVO, localVarRequestOptions, configuration);
429
- return {
430
- url: (0, common_1.toPathString)(localVarUrlObj),
431
- options: localVarRequestOptions,
432
- };
433
- }),
434
- };
435
- };
436
- exports.InspectionStandardApiAxiosParamCreator = InspectionStandardApiAxiosParamCreator;
437
- /**
438
- * InspectionStandardApi - functional programming interface
439
- * @export
440
- */
441
- const InspectionStandardApiFp = function (configuration) {
442
- const localVarAxiosParamCreator = (0, exports.InspectionStandardApiAxiosParamCreator)(configuration);
443
- return {
444
- /**
445
- *
446
- * @summary 添加巡检标准
447
- * @param {Array<InspectionStandardAddOrUpdateVO>} inspectionStandardAddOrUpdateVO
448
- * @param {*} [options] Override http request option.
449
- * @throws {RequiredError}
450
- */
451
- createInspectionStandard(inspectionStandardAddOrUpdateVO, options) {
452
- return __awaiter(this, void 0, void 0, function* () {
453
- var _a, _b, _c;
454
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createInspectionStandard(inspectionStandardAddOrUpdateVO, options);
455
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
456
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InspectionStandardApi.createInspectionStandard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
457
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
458
- });
459
- },
460
- /**
461
- *
462
- * @summary 删除巡检标准
463
- * @param {number} id 巡检标准id
464
- * @param {*} [options] Override http request option.
465
- * @throws {RequiredError}
466
- */
467
- deleteInspectionStandard(id, options) {
468
- return __awaiter(this, void 0, void 0, function* () {
469
- var _a, _b, _c;
470
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInspectionStandard(id, options);
471
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
472
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InspectionStandardApi.deleteInspectionStandard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
473
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
474
- });
475
- },
476
- /**
477
- *
478
- * @summary 批量删除巡检标准
479
- * @param {Array<number>} requestBody
480
- * @param {*} [options] Override http request option.
481
- * @throws {RequiredError}
482
- */
483
- deleteInspectionStandards(requestBody, options) {
484
- return __awaiter(this, void 0, void 0, function* () {
485
- var _a, _b, _c;
486
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInspectionStandards(requestBody, options);
487
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
488
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InspectionStandardApi.deleteInspectionStandards']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
489
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
490
- });
491
- },
492
- /**
493
- *
494
- * @summary 巡检标准详情
495
- * @param {number} id
496
- * @param {*} [options] Override http request option.
497
- * @throws {RequiredError}
498
- */
499
- getInspectionStandard(id, options) {
500
- return __awaiter(this, void 0, void 0, function* () {
501
- var _a, _b, _c;
502
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getInspectionStandard(id, options);
503
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
504
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InspectionStandardApi.getInspectionStandard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
505
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
506
- });
507
- },
508
- /**
509
- *
510
- * @summary 巡检标准导入-确认导入
511
- * @param {*} [options] Override http request option.
512
- * @throws {RequiredError}
513
- */
514
- inspectionStandardBatchImportConfirm(options) {
515
- return __awaiter(this, void 0, void 0, function* () {
516
- var _a, _b, _c;
517
- const localVarAxiosArgs = yield localVarAxiosParamCreator.inspectionStandardBatchImportConfirm(options);
518
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
519
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InspectionStandardApi.inspectionStandardBatchImportConfirm']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
520
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
521
- });
522
- },
523
- /**
524
- *
525
- * @summary 巡检标准导入-预览结果
526
- * @param {*} [options] Override http request option.
527
- * @throws {RequiredError}
528
- */
529
- inspectionStandardBatchImportPreview(options) {
530
- return __awaiter(this, void 0, void 0, function* () {
531
- var _a, _b, _c;
532
- const localVarAxiosArgs = yield localVarAxiosParamCreator.inspectionStandardBatchImportPreview(options);
533
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
534
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InspectionStandardApi.inspectionStandardBatchImportPreview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
535
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
536
- });
537
- },
538
- /**
539
- *
540
- * @summary 巡检标准导入-下载模板
541
- * @param {*} [options] Override http request option.
542
- * @throws {RequiredError}
543
- */
544
- inspectionStandardBatchImportTemplate(options) {
545
- return __awaiter(this, void 0, void 0, function* () {
546
- var _a, _b, _c;
547
- const localVarAxiosArgs = yield localVarAxiosParamCreator.inspectionStandardBatchImportTemplate(options);
548
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
549
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InspectionStandardApi.inspectionStandardBatchImportTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
550
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
551
- });
552
- },
553
- /**
554
- *
555
- * @summary 巡检标准导入-上传文件
556
- * @param {number} parkId 园区id
557
- * @param {File} file
558
- * @param {string} [language] 语言
559
- * @param {*} [options] Override http request option.
560
- * @throws {RequiredError}
561
- */
562
- inspectionStandardBatchImportUpload(parkId, file, language, options) {
563
- return __awaiter(this, void 0, void 0, function* () {
564
- var _a, _b, _c;
565
- const localVarAxiosArgs = yield localVarAxiosParamCreator.inspectionStandardBatchImportUpload(parkId, file, language, options);
566
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
567
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InspectionStandardApi.inspectionStandardBatchImportUpload']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
568
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
569
- });
570
- },
571
- /**
572
- *
573
- * @summary 巡检标准列表
574
- * @param {number} parkId 园区id
575
- * @param {number} pageSize 每页数量
576
- * @param {number} page 页码
577
- * @param {string} [searchValue] 内容
578
- * @param {InspectionCategoryEnum} [category] 巡检分类
579
- * @param {WorkOrderPlanRepeatsEnum} [repeats] 周期
580
- * @param {*} [options] Override http request option.
581
- * @throws {RequiredError}
582
- */
583
- listInspectionStandard(parkId, pageSize, page, searchValue, category, repeats, options) {
584
- return __awaiter(this, void 0, void 0, function* () {
585
- var _a, _b, _c;
586
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listInspectionStandard(parkId, pageSize, page, searchValue, category, repeats, options);
587
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
588
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InspectionStandardApi.listInspectionStandard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
589
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
590
- });
591
- },
592
- /**
593
- *
594
- * @summary 同步其他园区巡检标准
595
- * @param {number} parkIdOne
596
- * @param {number} parkIdTwo
597
- * @param {*} [options] Override http request option.
598
- * @throws {RequiredError}
599
- */
600
- syncInspectionStandard(parkIdOne, parkIdTwo, options) {
601
- return __awaiter(this, void 0, void 0, function* () {
602
- var _a, _b, _c;
603
- const localVarAxiosArgs = yield localVarAxiosParamCreator.syncInspectionStandard(parkIdOne, parkIdTwo, options);
604
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
605
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InspectionStandardApi.syncInspectionStandard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
606
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
607
- });
608
- },
609
- /**
610
- *
611
- * @summary 修改巡检标准
612
- * @param {number} id
613
- * @param {InspectionStandardAddOrUpdateVO} inspectionStandardAddOrUpdateVO
614
- * @param {*} [options] Override http request option.
615
- * @throws {RequiredError}
616
- */
617
- updateInspectionStandard(id, inspectionStandardAddOrUpdateVO, options) {
618
- return __awaiter(this, void 0, void 0, function* () {
619
- var _a, _b, _c;
620
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateInspectionStandard(id, inspectionStandardAddOrUpdateVO, options);
621
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
622
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InspectionStandardApi.updateInspectionStandard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
623
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
624
- });
625
- },
626
- };
627
- };
628
- exports.InspectionStandardApiFp = InspectionStandardApiFp;
629
- /**
630
- * InspectionStandardApi - factory interface
631
- * @export
632
- */
633
- const InspectionStandardApiFactory = function (configuration, basePath, axios) {
634
- const localVarFp = (0, exports.InspectionStandardApiFp)(configuration);
635
- return {
636
- /**
637
- *
638
- * @summary 添加巡检标准
639
- * @param {InspectionStandardApiCreateInspectionStandardRequest} requestParameters Request parameters.
640
- * @param {*} [options] Override http request option.
641
- * @throws {RequiredError}
642
- */
643
- createInspectionStandard(requestParameters, options) {
644
- return localVarFp.createInspectionStandard(requestParameters.inspectionStandardAddOrUpdateVO, options).then((request) => request(axios, basePath));
645
- },
646
- /**
647
- *
648
- * @summary 删除巡检标准
649
- * @param {InspectionStandardApiDeleteInspectionStandardRequest} requestParameters Request parameters.
650
- * @param {*} [options] Override http request option.
651
- * @throws {RequiredError}
652
- */
653
- deleteInspectionStandard(requestParameters, options) {
654
- return localVarFp.deleteInspectionStandard(requestParameters.id, options).then((request) => request(axios, basePath));
655
- },
656
- /**
657
- *
658
- * @summary 批量删除巡检标准
659
- * @param {InspectionStandardApiDeleteInspectionStandardsRequest} requestParameters Request parameters.
660
- * @param {*} [options] Override http request option.
661
- * @throws {RequiredError}
662
- */
663
- deleteInspectionStandards(requestParameters, options) {
664
- return localVarFp.deleteInspectionStandards(requestParameters.requestBody, options).then((request) => request(axios, basePath));
665
- },
666
- /**
667
- *
668
- * @summary 巡检标准详情
669
- * @param {InspectionStandardApiGetInspectionStandardRequest} requestParameters Request parameters.
670
- * @param {*} [options] Override http request option.
671
- * @throws {RequiredError}
672
- */
673
- getInspectionStandard(requestParameters, options) {
674
- return localVarFp.getInspectionStandard(requestParameters.id, options).then((request) => request(axios, basePath));
675
- },
676
- /**
677
- *
678
- * @summary 巡检标准导入-确认导入
679
- * @param {*} [options] Override http request option.
680
- * @throws {RequiredError}
681
- */
682
- inspectionStandardBatchImportConfirm(options) {
683
- return localVarFp.inspectionStandardBatchImportConfirm(options).then((request) => request(axios, basePath));
684
- },
685
- /**
686
- *
687
- * @summary 巡检标准导入-预览结果
688
- * @param {*} [options] Override http request option.
689
- * @throws {RequiredError}
690
- */
691
- inspectionStandardBatchImportPreview(options) {
692
- return localVarFp.inspectionStandardBatchImportPreview(options).then((request) => request(axios, basePath));
693
- },
694
- /**
695
- *
696
- * @summary 巡检标准导入-下载模板
697
- * @param {*} [options] Override http request option.
698
- * @throws {RequiredError}
699
- */
700
- inspectionStandardBatchImportTemplate(options) {
701
- return localVarFp.inspectionStandardBatchImportTemplate(options).then((request) => request(axios, basePath));
702
- },
703
- /**
704
- *
705
- * @summary 巡检标准导入-上传文件
706
- * @param {InspectionStandardApiInspectionStandardBatchImportUploadRequest} requestParameters Request parameters.
707
- * @param {*} [options] Override http request option.
708
- * @throws {RequiredError}
709
- */
710
- inspectionStandardBatchImportUpload(requestParameters, options) {
711
- return localVarFp.inspectionStandardBatchImportUpload(requestParameters.parkId, requestParameters.file, requestParameters.language, options).then((request) => request(axios, basePath));
712
- },
713
- /**
714
- *
715
- * @summary 巡检标准列表
716
- * @param {InspectionStandardApiListInspectionStandardRequest} requestParameters Request parameters.
717
- * @param {*} [options] Override http request option.
718
- * @throws {RequiredError}
719
- */
720
- listInspectionStandard(requestParameters, options) {
721
- return localVarFp.listInspectionStandard(requestParameters.parkId, requestParameters.pageSize, requestParameters.page, requestParameters.searchValue, requestParameters.category, requestParameters.repeats, options).then((request) => request(axios, basePath));
722
- },
723
- /**
724
- *
725
- * @summary 同步其他园区巡检标准
726
- * @param {InspectionStandardApiSyncInspectionStandardRequest} requestParameters Request parameters.
727
- * @param {*} [options] Override http request option.
728
- * @throws {RequiredError}
729
- */
730
- syncInspectionStandard(requestParameters, options) {
731
- return localVarFp.syncInspectionStandard(requestParameters.parkIdOne, requestParameters.parkIdTwo, options).then((request) => request(axios, basePath));
732
- },
733
- /**
734
- *
735
- * @summary 修改巡检标准
736
- * @param {InspectionStandardApiUpdateInspectionStandardRequest} requestParameters Request parameters.
737
- * @param {*} [options] Override http request option.
738
- * @throws {RequiredError}
739
- */
740
- updateInspectionStandard(requestParameters, options) {
741
- return localVarFp.updateInspectionStandard(requestParameters.id, requestParameters.inspectionStandardAddOrUpdateVO, options).then((request) => request(axios, basePath));
742
- },
743
- };
744
- };
745
- exports.InspectionStandardApiFactory = InspectionStandardApiFactory;
746
- /**
747
- * InspectionStandardApi - object-oriented interface
748
- * @export
749
- * @class InspectionStandardApi
750
- * @extends {BaseAPI}
751
- */
752
- class InspectionStandardApi extends base_1.BaseAPI {
753
- /**
754
- *
755
- * @summary 添加巡检标准
756
- * @param {InspectionStandardApiCreateInspectionStandardRequest} requestParameters Request parameters.
757
- * @param {*} [options] Override http request option.
758
- * @throws {RequiredError}
759
- * @memberof InspectionStandardApi
760
- */
761
- createInspectionStandard(requestParameters, options) {
762
- return (0, exports.InspectionStandardApiFp)(this.configuration).createInspectionStandard(requestParameters.inspectionStandardAddOrUpdateVO, options).then((request) => request(this.axios, this.basePath));
763
- }
764
- /**
765
- *
766
- * @summary 删除巡检标准
767
- * @param {InspectionStandardApiDeleteInspectionStandardRequest} requestParameters Request parameters.
768
- * @param {*} [options] Override http request option.
769
- * @throws {RequiredError}
770
- * @memberof InspectionStandardApi
771
- */
772
- deleteInspectionStandard(requestParameters, options) {
773
- return (0, exports.InspectionStandardApiFp)(this.configuration).deleteInspectionStandard(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
774
- }
775
- /**
776
- *
777
- * @summary 批量删除巡检标准
778
- * @param {InspectionStandardApiDeleteInspectionStandardsRequest} requestParameters Request parameters.
779
- * @param {*} [options] Override http request option.
780
- * @throws {RequiredError}
781
- * @memberof InspectionStandardApi
782
- */
783
- deleteInspectionStandards(requestParameters, options) {
784
- return (0, exports.InspectionStandardApiFp)(this.configuration).deleteInspectionStandards(requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
785
- }
786
- /**
787
- *
788
- * @summary 巡检标准详情
789
- * @param {InspectionStandardApiGetInspectionStandardRequest} requestParameters Request parameters.
790
- * @param {*} [options] Override http request option.
791
- * @throws {RequiredError}
792
- * @memberof InspectionStandardApi
793
- */
794
- getInspectionStandard(requestParameters, options) {
795
- return (0, exports.InspectionStandardApiFp)(this.configuration).getInspectionStandard(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
796
- }
797
- /**
798
- *
799
- * @summary 巡检标准导入-确认导入
800
- * @param {*} [options] Override http request option.
801
- * @throws {RequiredError}
802
- * @memberof InspectionStandardApi
803
- */
804
- inspectionStandardBatchImportConfirm(options) {
805
- return (0, exports.InspectionStandardApiFp)(this.configuration).inspectionStandardBatchImportConfirm(options).then((request) => request(this.axios, this.basePath));
806
- }
807
- /**
808
- *
809
- * @summary 巡检标准导入-预览结果
810
- * @param {*} [options] Override http request option.
811
- * @throws {RequiredError}
812
- * @memberof InspectionStandardApi
813
- */
814
- inspectionStandardBatchImportPreview(options) {
815
- return (0, exports.InspectionStandardApiFp)(this.configuration).inspectionStandardBatchImportPreview(options).then((request) => request(this.axios, this.basePath));
816
- }
817
- /**
818
- *
819
- * @summary 巡检标准导入-下载模板
820
- * @param {*} [options] Override http request option.
821
- * @throws {RequiredError}
822
- * @memberof InspectionStandardApi
823
- */
824
- inspectionStandardBatchImportTemplate(options) {
825
- return (0, exports.InspectionStandardApiFp)(this.configuration).inspectionStandardBatchImportTemplate(options).then((request) => request(this.axios, this.basePath));
826
- }
827
- /**
828
- *
829
- * @summary 巡检标准导入-上传文件
830
- * @param {InspectionStandardApiInspectionStandardBatchImportUploadRequest} requestParameters Request parameters.
831
- * @param {*} [options] Override http request option.
832
- * @throws {RequiredError}
833
- * @memberof InspectionStandardApi
834
- */
835
- inspectionStandardBatchImportUpload(requestParameters, options) {
836
- return (0, exports.InspectionStandardApiFp)(this.configuration).inspectionStandardBatchImportUpload(requestParameters.parkId, requestParameters.file, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
837
- }
838
- /**
839
- *
840
- * @summary 巡检标准列表
841
- * @param {InspectionStandardApiListInspectionStandardRequest} requestParameters Request parameters.
842
- * @param {*} [options] Override http request option.
843
- * @throws {RequiredError}
844
- * @memberof InspectionStandardApi
845
- */
846
- listInspectionStandard(requestParameters, options) {
847
- return (0, exports.InspectionStandardApiFp)(this.configuration).listInspectionStandard(requestParameters.parkId, requestParameters.pageSize, requestParameters.page, requestParameters.searchValue, requestParameters.category, requestParameters.repeats, options).then((request) => request(this.axios, this.basePath));
848
- }
849
- /**
850
- *
851
- * @summary 同步其他园区巡检标准
852
- * @param {InspectionStandardApiSyncInspectionStandardRequest} requestParameters Request parameters.
853
- * @param {*} [options] Override http request option.
854
- * @throws {RequiredError}
855
- * @memberof InspectionStandardApi
856
- */
857
- syncInspectionStandard(requestParameters, options) {
858
- return (0, exports.InspectionStandardApiFp)(this.configuration).syncInspectionStandard(requestParameters.parkIdOne, requestParameters.parkIdTwo, options).then((request) => request(this.axios, this.basePath));
859
- }
860
- /**
861
- *
862
- * @summary 修改巡检标准
863
- * @param {InspectionStandardApiUpdateInspectionStandardRequest} requestParameters Request parameters.
864
- * @param {*} [options] Override http request option.
865
- * @throws {RequiredError}
866
- * @memberof InspectionStandardApi
867
- */
868
- updateInspectionStandard(requestParameters, options) {
869
- return (0, exports.InspectionStandardApiFp)(this.configuration).updateInspectionStandard(requestParameters.id, requestParameters.inspectionStandardAddOrUpdateVO, options).then((request) => request(this.axios, this.basePath));
870
- }
871
- }
872
- exports.InspectionStandardApi = InspectionStandardApi;