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