windmill-client 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/build.sh +0 -1
  2. package/dist/core/ApiError.js +15 -0
  3. package/dist/core/ApiRequestOptions.js +2 -0
  4. package/dist/core/ApiResult.js +2 -0
  5. package/dist/core/CancelablePromise.js +94 -0
  6. package/dist/core/OpenAPI.js +14 -0
  7. package/dist/core/request.js +269 -0
  8. package/dist/index.d.ts +97 -0
  9. package/dist/index.js +87 -0
  10. package/dist/models/AppWithLastVersion.js +15 -0
  11. package/dist/models/AppWithLastVersionWDraft.js +5 -0
  12. package/dist/models/AuditLog.js +32 -0
  13. package/dist/models/BranchAll.js +5 -0
  14. package/dist/models/BranchOne.js +5 -0
  15. package/dist/models/CompletedJob.js +26 -0
  16. package/dist/models/ContextualVariable.js +5 -0
  17. package/dist/models/CreateInput.js +5 -0
  18. package/dist/models/CreateResource.js +5 -0
  19. package/dist/models/CreateVariable.js +5 -0
  20. package/dist/models/CreateWorkspace.js +5 -0
  21. package/dist/models/EditResource.js +5 -0
  22. package/dist/models/EditResourceType.js +5 -0
  23. package/dist/models/EditSchedule.js +5 -0
  24. package/dist/models/EditVariable.js +5 -0
  25. package/dist/models/EditWorkspaceUser.js +5 -0
  26. package/dist/models/Flow.js +5 -0
  27. package/dist/models/FlowMetadata.js +5 -0
  28. package/dist/models/FlowModule.js +5 -0
  29. package/dist/models/FlowModuleValue.js +5 -0
  30. package/dist/models/FlowPreview.js +5 -0
  31. package/dist/models/FlowStatus.js +5 -0
  32. package/dist/models/FlowStatusModule.js +18 -0
  33. package/dist/models/FlowValue.js +5 -0
  34. package/dist/models/Folder.js +5 -0
  35. package/dist/models/ForloopFlow.js +5 -0
  36. package/dist/models/GlobalUserInfo.js +14 -0
  37. package/dist/models/Group.js +5 -0
  38. package/dist/models/Identity.js +5 -0
  39. package/dist/models/Input.js +5 -0
  40. package/dist/models/InputTransform.js +5 -0
  41. package/dist/models/JavascriptTransform.js +5 -0
  42. package/dist/models/Job.js +14 -0
  43. package/dist/models/ListableApp.js +15 -0
  44. package/dist/models/ListableRawApp.d.ts +9 -0
  45. package/dist/models/ListableRawApp.js +5 -0
  46. package/dist/models/ListableResource.js +5 -0
  47. package/dist/models/ListableVariable.js +5 -0
  48. package/dist/models/Login.js +5 -0
  49. package/dist/models/MainArgSignature.js +14 -0
  50. package/dist/models/NewSchedule.js +5 -0
  51. package/dist/models/NewScript.js +24 -0
  52. package/dist/models/NewScriptWithDraft.js +5 -0
  53. package/dist/models/NewToken.js +5 -0
  54. package/dist/models/NewTokenImpersonate.js +5 -0
  55. package/dist/models/NewUser.js +5 -0
  56. package/dist/models/OpenFlow.js +5 -0
  57. package/dist/models/OpenFlowWPath.js +5 -0
  58. package/dist/models/PathFlow.js +5 -0
  59. package/dist/models/PathScript.js +5 -0
  60. package/dist/models/Policy.js +15 -0
  61. package/dist/models/Preview.js +16 -0
  62. package/dist/models/QueuedJob.js +26 -0
  63. package/dist/models/RawScript.js +16 -0
  64. package/dist/models/Resource.js +5 -0
  65. package/dist/models/ResourceType.js +5 -0
  66. package/dist/models/Retry.js +5 -0
  67. package/dist/models/RunnableType.js +12 -0
  68. package/dist/models/Schedule.js +5 -0
  69. package/dist/models/Script.js +24 -0
  70. package/dist/models/ScriptArgs.js +5 -0
  71. package/dist/models/SlackToken.js +5 -0
  72. package/dist/models/StaticTransform.js +5 -0
  73. package/dist/models/TokenResponse.js +5 -0
  74. package/dist/models/TruncatedToken.js +5 -0
  75. package/dist/models/UpdateInput.js +5 -0
  76. package/dist/models/Usage.js +5 -0
  77. package/dist/models/User.js +5 -0
  78. package/dist/models/UserWorkspaceList.js +5 -0
  79. package/dist/models/WorkerPing.js +5 -0
  80. package/dist/models/Workspace.js +5 -0
  81. package/dist/models/WorkspaceInvite.js +5 -0
  82. package/dist/services/AdminService.js +56 -0
  83. package/{src → dist}/services/AppService.d.ts +19 -18
  84. package/dist/services/AppService.js +211 -0
  85. package/dist/services/AuditService.js +47 -0
  86. package/dist/services/CaptureService.js +56 -0
  87. package/dist/services/DraftService.js +24 -0
  88. package/{src → dist}/services/FavoriteService.d.ts +2 -2
  89. package/dist/services/FavoriteService.js +40 -0
  90. package/dist/services/FlowService.js +200 -0
  91. package/dist/services/FolderService.js +155 -0
  92. package/{src → dist}/services/GranularAclService.d.ts +3 -3
  93. package/dist/services/GranularAclService.js +60 -0
  94. package/dist/services/GroupService.js +140 -0
  95. package/dist/services/InputService.js +99 -0
  96. package/{src → dist}/services/JobService.d.ts +12 -0
  97. package/dist/services/JobService.js +579 -0
  98. package/dist/services/OauthService.js +124 -0
  99. package/dist/services/RawAppService.d.ts +103 -0
  100. package/dist/services/RawAppService.js +110 -0
  101. package/dist/services/ResourceService.js +244 -0
  102. package/dist/services/ScheduleService.js +134 -0
  103. package/dist/services/ScriptService.js +339 -0
  104. package/dist/services/SettingsService.js +30 -0
  105. package/dist/services/UserService.js +376 -0
  106. package/dist/services/VariableService.js +123 -0
  107. package/dist/services/WorkerService.js +34 -0
  108. package/dist/services/WorkspaceService.js +275 -0
  109. package/package.json +1 -1
  110. package/publish.sh +3 -0
  111. package/src/core/OpenAPI.ts +1 -1
  112. package/src/index.ts +2 -0
  113. package/src/models/ListableRawApp.ts +14 -0
  114. package/src/services/AppService.ts +33 -32
  115. package/src/services/FavoriteService.ts +2 -2
  116. package/src/services/GranularAclService.ts +3 -3
  117. package/src/services/JobService.ts +25 -0
  118. package/src/services/RawAppService.ts +209 -0
  119. package/tsconfig.json +1 -1
  120. /package/{src → dist}/core/ApiError.d.ts +0 -0
  121. /package/{src → dist}/core/ApiRequestOptions.d.ts +0 -0
  122. /package/{src → dist}/core/ApiResult.d.ts +0 -0
  123. /package/{src → dist}/core/CancelablePromise.d.ts +0 -0
  124. /package/{src → dist}/core/OpenAPI.d.ts +0 -0
  125. /package/{src → dist}/core/request.d.ts +0 -0
  126. /package/{src → dist}/models/AppWithLastVersion.d.ts +0 -0
  127. /package/{src → dist}/models/AppWithLastVersionWDraft.d.ts +0 -0
  128. /package/{src → dist}/models/AuditLog.d.ts +0 -0
  129. /package/{src → dist}/models/BranchAll.d.ts +0 -0
  130. /package/{src → dist}/models/BranchOne.d.ts +0 -0
  131. /package/{src → dist}/models/CompletedJob.d.ts +0 -0
  132. /package/{src → dist}/models/ContextualVariable.d.ts +0 -0
  133. /package/{src → dist}/models/CreateInput.d.ts +0 -0
  134. /package/{src → dist}/models/CreateResource.d.ts +0 -0
  135. /package/{src → dist}/models/CreateVariable.d.ts +0 -0
  136. /package/{src → dist}/models/CreateWorkspace.d.ts +0 -0
  137. /package/{src → dist}/models/EditResource.d.ts +0 -0
  138. /package/{src → dist}/models/EditResourceType.d.ts +0 -0
  139. /package/{src → dist}/models/EditSchedule.d.ts +0 -0
  140. /package/{src → dist}/models/EditVariable.d.ts +0 -0
  141. /package/{src → dist}/models/EditWorkspaceUser.d.ts +0 -0
  142. /package/{src → dist}/models/Flow.d.ts +0 -0
  143. /package/{src → dist}/models/FlowMetadata.d.ts +0 -0
  144. /package/{src → dist}/models/FlowModule.d.ts +0 -0
  145. /package/{src → dist}/models/FlowModuleValue.d.ts +0 -0
  146. /package/{src → dist}/models/FlowPreview.d.ts +0 -0
  147. /package/{src → dist}/models/FlowStatus.d.ts +0 -0
  148. /package/{src → dist}/models/FlowStatusModule.d.ts +0 -0
  149. /package/{src → dist}/models/FlowValue.d.ts +0 -0
  150. /package/{src → dist}/models/Folder.d.ts +0 -0
  151. /package/{src → dist}/models/ForloopFlow.d.ts +0 -0
  152. /package/{src → dist}/models/GlobalUserInfo.d.ts +0 -0
  153. /package/{src → dist}/models/Group.d.ts +0 -0
  154. /package/{src → dist}/models/Identity.d.ts +0 -0
  155. /package/{src → dist}/models/Input.d.ts +0 -0
  156. /package/{src → dist}/models/InputTransform.d.ts +0 -0
  157. /package/{src → dist}/models/JavascriptTransform.d.ts +0 -0
  158. /package/{src → dist}/models/Job.d.ts +0 -0
  159. /package/{src → dist}/models/ListableApp.d.ts +0 -0
  160. /package/{src → dist}/models/ListableResource.d.ts +0 -0
  161. /package/{src → dist}/models/ListableVariable.d.ts +0 -0
  162. /package/{src → dist}/models/Login.d.ts +0 -0
  163. /package/{src → dist}/models/MainArgSignature.d.ts +0 -0
  164. /package/{src → dist}/models/NewSchedule.d.ts +0 -0
  165. /package/{src → dist}/models/NewScript.d.ts +0 -0
  166. /package/{src → dist}/models/NewScriptWithDraft.d.ts +0 -0
  167. /package/{src → dist}/models/NewToken.d.ts +0 -0
  168. /package/{src → dist}/models/NewTokenImpersonate.d.ts +0 -0
  169. /package/{src → dist}/models/NewUser.d.ts +0 -0
  170. /package/{src → dist}/models/OpenFlow.d.ts +0 -0
  171. /package/{src → dist}/models/OpenFlowWPath.d.ts +0 -0
  172. /package/{src → dist}/models/PathFlow.d.ts +0 -0
  173. /package/{src → dist}/models/PathScript.d.ts +0 -0
  174. /package/{src → dist}/models/Policy.d.ts +0 -0
  175. /package/{src → dist}/models/Preview.d.ts +0 -0
  176. /package/{src → dist}/models/QueuedJob.d.ts +0 -0
  177. /package/{src → dist}/models/RawScript.d.ts +0 -0
  178. /package/{src → dist}/models/Resource.d.ts +0 -0
  179. /package/{src → dist}/models/ResourceType.d.ts +0 -0
  180. /package/{src → dist}/models/Retry.d.ts +0 -0
  181. /package/{src → dist}/models/RunnableType.d.ts +0 -0
  182. /package/{src → dist}/models/Schedule.d.ts +0 -0
  183. /package/{src → dist}/models/Script.d.ts +0 -0
  184. /package/{src → dist}/models/ScriptArgs.d.ts +0 -0
  185. /package/{src → dist}/models/SlackToken.d.ts +0 -0
  186. /package/{src → dist}/models/StaticTransform.d.ts +0 -0
  187. /package/{src → dist}/models/TokenResponse.d.ts +0 -0
  188. /package/{src → dist}/models/TruncatedToken.d.ts +0 -0
  189. /package/{src → dist}/models/UpdateInput.d.ts +0 -0
  190. /package/{src → dist}/models/Usage.d.ts +0 -0
  191. /package/{src → dist}/models/User.d.ts +0 -0
  192. /package/{src → dist}/models/UserWorkspaceList.d.ts +0 -0
  193. /package/{src → dist}/models/WorkerPing.d.ts +0 -0
  194. /package/{src → dist}/models/Workspace.d.ts +0 -0
  195. /package/{src → dist}/models/WorkspaceInvite.d.ts +0 -0
  196. /package/{src → dist}/services/AdminService.d.ts +0 -0
  197. /package/{src → dist}/services/AuditService.d.ts +0 -0
  198. /package/{src → dist}/services/CaptureService.d.ts +0 -0
  199. /package/{src → dist}/services/DraftService.d.ts +0 -0
  200. /package/{src → dist}/services/FlowService.d.ts +0 -0
  201. /package/{src → dist}/services/FolderService.d.ts +0 -0
  202. /package/{src → dist}/services/GroupService.d.ts +0 -0
  203. /package/{src → dist}/services/InputService.d.ts +0 -0
  204. /package/{src → dist}/services/OauthService.d.ts +0 -0
  205. /package/{src → dist}/services/ResourceService.d.ts +0 -0
  206. /package/{src → dist}/services/ScheduleService.d.ts +0 -0
  207. /package/{src → dist}/services/ScriptService.d.ts +0 -0
  208. /package/{src → dist}/services/SettingsService.d.ts +0 -0
  209. /package/{src → dist}/services/UserService.d.ts +0 -0
  210. /package/{src → dist}/services/VariableService.d.ts +0 -0
  211. /package/{src → dist}/services/WorkerService.d.ts +0 -0
  212. /package/{src → dist}/services/WorkspaceService.d.ts +0 -0
@@ -0,0 +1,103 @@
1
+ import type { ListableRawApp } from '../models/ListableRawApp';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class RawAppService {
4
+ /**
5
+ * list all available raw apps
6
+ * @returns ListableRawApp All available raw apps
7
+ * @throws ApiError
8
+ */
9
+ static listRawApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }: {
10
+ workspace: string;
11
+ /**
12
+ * which page to return (start at 1, default 1)
13
+ */
14
+ page?: number;
15
+ /**
16
+ * number of items to return for a given page (default 30, max 100)
17
+ */
18
+ perPage?: number;
19
+ /**
20
+ * order by desc order (default true)
21
+ */
22
+ orderDesc?: boolean;
23
+ /**
24
+ * mask to filter exact matching user creator
25
+ */
26
+ createdBy?: string;
27
+ /**
28
+ * mask to filter matching starting path
29
+ */
30
+ pathStart?: string;
31
+ /**
32
+ * mask to filter exact matching path
33
+ */
34
+ pathExact?: string;
35
+ /**
36
+ * (default false)
37
+ * show only the starred items
38
+ *
39
+ */
40
+ starredOnly?: boolean;
41
+ }): CancelablePromise<Array<ListableRawApp>>;
42
+ /**
43
+ * does an app exisst at path
44
+ * @returns boolean app exists
45
+ * @throws ApiError
46
+ */
47
+ static existsRawApp({ workspace, path, }: {
48
+ workspace: string;
49
+ path: string;
50
+ }): CancelablePromise<boolean>;
51
+ /**
52
+ * get app by path
53
+ * @returns string app details
54
+ * @throws ApiError
55
+ */
56
+ static getRawAppData({ workspace, version, path, }: {
57
+ workspace: string;
58
+ version: number;
59
+ path: string;
60
+ }): CancelablePromise<string>;
61
+ /**
62
+ * create raw app
63
+ * @returns string raw app created
64
+ * @throws ApiError
65
+ */
66
+ static createRawApp({ workspace, requestBody, }: {
67
+ workspace: string;
68
+ /**
69
+ * new raw app
70
+ */
71
+ requestBody: {
72
+ path: string;
73
+ value: string;
74
+ summary: string;
75
+ };
76
+ }): CancelablePromise<string>;
77
+ /**
78
+ * update app
79
+ * @returns string app updated
80
+ * @throws ApiError
81
+ */
82
+ static updateRawApp({ workspace, path, requestBody, }: {
83
+ workspace: string;
84
+ path: string;
85
+ /**
86
+ * updateraw app
87
+ */
88
+ requestBody: {
89
+ path?: string;
90
+ summary?: string;
91
+ value?: string;
92
+ };
93
+ }): CancelablePromise<string>;
94
+ /**
95
+ * delete raw app
96
+ * @returns string app deleted
97
+ * @throws ApiError
98
+ */
99
+ static deleteRawApp({ workspace, path, }: {
100
+ workspace: string;
101
+ path: string;
102
+ }): CancelablePromise<string>;
103
+ }
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RawAppService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class RawAppService {
7
+ /**
8
+ * list all available raw apps
9
+ * @returns ListableRawApp All available raw apps
10
+ * @throws ApiError
11
+ */
12
+ static listRawApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/w/{workspace}/raw_apps/list',
16
+ path: {
17
+ 'workspace': workspace,
18
+ },
19
+ query: {
20
+ 'page': page,
21
+ 'per_page': perPage,
22
+ 'order_desc': orderDesc,
23
+ 'created_by': createdBy,
24
+ 'path_start': pathStart,
25
+ 'path_exact': pathExact,
26
+ 'starred_only': starredOnly,
27
+ },
28
+ });
29
+ }
30
+ /**
31
+ * does an app exisst at path
32
+ * @returns boolean app exists
33
+ * @throws ApiError
34
+ */
35
+ static existsRawApp({ workspace, path, }) {
36
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
37
+ method: 'GET',
38
+ url: '/w/{workspace}/raw_apps/exists/{path}',
39
+ path: {
40
+ 'workspace': workspace,
41
+ 'path': path,
42
+ },
43
+ });
44
+ }
45
+ /**
46
+ * get app by path
47
+ * @returns string app details
48
+ * @throws ApiError
49
+ */
50
+ static getRawAppData({ workspace, version, path, }) {
51
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
52
+ method: 'GET',
53
+ url: '/w/{workspace}/apps/get_data/{version}/{path}',
54
+ path: {
55
+ 'workspace': workspace,
56
+ 'version': version,
57
+ 'path': path,
58
+ },
59
+ });
60
+ }
61
+ /**
62
+ * create raw app
63
+ * @returns string raw app created
64
+ * @throws ApiError
65
+ */
66
+ static createRawApp({ workspace, requestBody, }) {
67
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
68
+ method: 'POST',
69
+ url: '/w/{workspace}/raw_apps/create',
70
+ path: {
71
+ 'workspace': workspace,
72
+ },
73
+ body: requestBody,
74
+ mediaType: 'application/json',
75
+ });
76
+ }
77
+ /**
78
+ * update app
79
+ * @returns string app updated
80
+ * @throws ApiError
81
+ */
82
+ static updateRawApp({ workspace, path, requestBody, }) {
83
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
84
+ method: 'POST',
85
+ url: '/w/{workspace}/raw_apps/update/{path}',
86
+ path: {
87
+ 'workspace': workspace,
88
+ 'path': path,
89
+ },
90
+ body: requestBody,
91
+ mediaType: 'application/json',
92
+ });
93
+ }
94
+ /**
95
+ * delete raw app
96
+ * @returns string app deleted
97
+ * @throws ApiError
98
+ */
99
+ static deleteRawApp({ workspace, path, }) {
100
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
101
+ method: 'DELETE',
102
+ url: '/w/{workspace}/raw_apps/delete/{path}',
103
+ path: {
104
+ 'workspace': workspace,
105
+ 'path': path,
106
+ },
107
+ });
108
+ }
109
+ }
110
+ exports.RawAppService = RawAppService;
@@ -0,0 +1,244 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class ResourceService {
7
+ /**
8
+ * create resource
9
+ * @returns string resource created
10
+ * @throws ApiError
11
+ */
12
+ static createResource({ workspace, requestBody, }) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'POST',
15
+ url: '/w/{workspace}/resources/create',
16
+ path: {
17
+ 'workspace': workspace,
18
+ },
19
+ body: requestBody,
20
+ mediaType: 'application/json',
21
+ });
22
+ }
23
+ /**
24
+ * delete resource
25
+ * @returns string resource deleted
26
+ * @throws ApiError
27
+ */
28
+ static deleteResource({ workspace, path, }) {
29
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
30
+ method: 'DELETE',
31
+ url: '/w/{workspace}/resources/delete/{path}',
32
+ path: {
33
+ 'workspace': workspace,
34
+ 'path': path,
35
+ },
36
+ });
37
+ }
38
+ /**
39
+ * update resource
40
+ * @returns string resource updated
41
+ * @throws ApiError
42
+ */
43
+ static updateResource({ workspace, path, requestBody, }) {
44
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
45
+ method: 'POST',
46
+ url: '/w/{workspace}/resources/update/{path}',
47
+ path: {
48
+ 'workspace': workspace,
49
+ 'path': path,
50
+ },
51
+ body: requestBody,
52
+ mediaType: 'application/json',
53
+ });
54
+ }
55
+ /**
56
+ * update resource value
57
+ * @returns string resource value updated
58
+ * @throws ApiError
59
+ */
60
+ static updateResourceValue({ workspace, path, requestBody, }) {
61
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
62
+ method: 'POST',
63
+ url: '/w/{workspace}/resources/update_value/{path}',
64
+ path: {
65
+ 'workspace': workspace,
66
+ 'path': path,
67
+ },
68
+ body: requestBody,
69
+ mediaType: 'application/json',
70
+ });
71
+ }
72
+ /**
73
+ * get resource
74
+ * @returns Resource resource
75
+ * @throws ApiError
76
+ */
77
+ static getResource({ workspace, path, }) {
78
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
79
+ method: 'GET',
80
+ url: '/w/{workspace}/resources/get/{path}',
81
+ path: {
82
+ 'workspace': workspace,
83
+ 'path': path,
84
+ },
85
+ });
86
+ }
87
+ /**
88
+ * get resource value
89
+ * @returns any resource value
90
+ * @throws ApiError
91
+ */
92
+ static getResourceValue({ workspace, path, }) {
93
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
94
+ method: 'GET',
95
+ url: '/w/{workspace}/resources/get_value/{path}',
96
+ path: {
97
+ 'workspace': workspace,
98
+ 'path': path,
99
+ },
100
+ });
101
+ }
102
+ /**
103
+ * does resource exists
104
+ * @returns boolean does resource exists
105
+ * @throws ApiError
106
+ */
107
+ static existsResource({ workspace, path, }) {
108
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
109
+ method: 'GET',
110
+ url: '/w/{workspace}/resources/exists/{path}',
111
+ path: {
112
+ 'workspace': workspace,
113
+ 'path': path,
114
+ },
115
+ });
116
+ }
117
+ /**
118
+ * list resources
119
+ * @returns ListableResource resource list
120
+ * @throws ApiError
121
+ */
122
+ static listResource({ workspace, page, perPage, resourceType, resourceTypeExclude, }) {
123
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
124
+ method: 'GET',
125
+ url: '/w/{workspace}/resources/list',
126
+ path: {
127
+ 'workspace': workspace,
128
+ },
129
+ query: {
130
+ 'page': page,
131
+ 'per_page': perPage,
132
+ 'resource_type': resourceType,
133
+ 'resource_type_exclude': resourceTypeExclude,
134
+ },
135
+ });
136
+ }
137
+ /**
138
+ * create resource_type
139
+ * @returns string resource_type created
140
+ * @throws ApiError
141
+ */
142
+ static createResourceType({ workspace, requestBody, }) {
143
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
144
+ method: 'POST',
145
+ url: '/w/{workspace}/resources/type/create',
146
+ path: {
147
+ 'workspace': workspace,
148
+ },
149
+ body: requestBody,
150
+ mediaType: 'application/json',
151
+ });
152
+ }
153
+ /**
154
+ * delete resource_type
155
+ * @returns string resource_type deleted
156
+ * @throws ApiError
157
+ */
158
+ static deleteResourceType({ workspace, path, }) {
159
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
160
+ method: 'DELETE',
161
+ url: '/w/{workspace}/resources/type/delete/{path}',
162
+ path: {
163
+ 'workspace': workspace,
164
+ 'path': path,
165
+ },
166
+ });
167
+ }
168
+ /**
169
+ * update resource_type
170
+ * @returns string resource_type updated
171
+ * @throws ApiError
172
+ */
173
+ static updateResourceType({ workspace, path, requestBody, }) {
174
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
175
+ method: 'POST',
176
+ url: '/w/{workspace}/resources/type/update/{path}',
177
+ path: {
178
+ 'workspace': workspace,
179
+ 'path': path,
180
+ },
181
+ body: requestBody,
182
+ mediaType: 'application/json',
183
+ });
184
+ }
185
+ /**
186
+ * get resource_type
187
+ * @returns ResourceType resource_type deleted
188
+ * @throws ApiError
189
+ */
190
+ static getResourceType({ workspace, path, }) {
191
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
192
+ method: 'GET',
193
+ url: '/w/{workspace}/resources/type/get/{path}',
194
+ path: {
195
+ 'workspace': workspace,
196
+ 'path': path,
197
+ },
198
+ });
199
+ }
200
+ /**
201
+ * does resource_type exists
202
+ * @returns boolean does resource_type exist
203
+ * @throws ApiError
204
+ */
205
+ static existsResourceType({ workspace, path, }) {
206
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
207
+ method: 'GET',
208
+ url: '/w/{workspace}/resources/type/exists/{path}',
209
+ path: {
210
+ 'workspace': workspace,
211
+ 'path': path,
212
+ },
213
+ });
214
+ }
215
+ /**
216
+ * list resource_types
217
+ * @returns ResourceType resource_type list
218
+ * @throws ApiError
219
+ */
220
+ static listResourceType({ workspace, }) {
221
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
222
+ method: 'GET',
223
+ url: '/w/{workspace}/resources/type/list',
224
+ path: {
225
+ 'workspace': workspace,
226
+ },
227
+ });
228
+ }
229
+ /**
230
+ * list resource_types names
231
+ * @returns string resource_type list
232
+ * @throws ApiError
233
+ */
234
+ static listResourceTypeNames({ workspace, }) {
235
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
236
+ method: 'GET',
237
+ url: '/w/{workspace}/resources/type/listnames',
238
+ path: {
239
+ 'workspace': workspace,
240
+ },
241
+ });
242
+ }
243
+ }
244
+ exports.ResourceService = ResourceService;
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScheduleService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class ScheduleService {
7
+ /**
8
+ * preview schedule
9
+ * @returns string List of 5 estimated upcoming execution events (in UTC)
10
+ * @throws ApiError
11
+ */
12
+ static previewSchedule({ requestBody, }) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'POST',
15
+ url: '/schedules/preview',
16
+ body: requestBody,
17
+ mediaType: 'application/json',
18
+ });
19
+ }
20
+ /**
21
+ * create schedule
22
+ * @returns string schedule created
23
+ * @throws ApiError
24
+ */
25
+ static createSchedule({ workspace, requestBody, }) {
26
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
27
+ method: 'POST',
28
+ url: '/w/{workspace}/schedules/create',
29
+ path: {
30
+ 'workspace': workspace,
31
+ },
32
+ body: requestBody,
33
+ mediaType: 'application/json',
34
+ });
35
+ }
36
+ /**
37
+ * update schedule
38
+ * @returns string schedule updated
39
+ * @throws ApiError
40
+ */
41
+ static updateSchedule({ workspace, path, requestBody, }) {
42
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
43
+ method: 'POST',
44
+ url: '/w/{workspace}/schedules/update/{path}',
45
+ path: {
46
+ 'workspace': workspace,
47
+ 'path': path,
48
+ },
49
+ body: requestBody,
50
+ mediaType: 'application/json',
51
+ });
52
+ }
53
+ /**
54
+ * set enabled schedule
55
+ * @returns string schedule enabled set
56
+ * @throws ApiError
57
+ */
58
+ static setScheduleEnabled({ workspace, path, requestBody, }) {
59
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
60
+ method: 'POST',
61
+ url: '/w/{workspace}/schedules/setenabled/{path}',
62
+ path: {
63
+ 'workspace': workspace,
64
+ 'path': path,
65
+ },
66
+ body: requestBody,
67
+ mediaType: 'application/json',
68
+ });
69
+ }
70
+ /**
71
+ * delete schedule
72
+ * @returns string schedule deleted
73
+ * @throws ApiError
74
+ */
75
+ static deleteSchedule({ workspace, path, }) {
76
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
77
+ method: 'DELETE',
78
+ url: '/w/{workspace}/schedules/delete/{path}',
79
+ path: {
80
+ 'workspace': workspace,
81
+ 'path': path,
82
+ },
83
+ });
84
+ }
85
+ /**
86
+ * get schedule
87
+ * @returns Schedule schedule deleted
88
+ * @throws ApiError
89
+ */
90
+ static getSchedule({ workspace, path, }) {
91
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
92
+ method: 'GET',
93
+ url: '/w/{workspace}/schedules/get/{path}',
94
+ path: {
95
+ 'workspace': workspace,
96
+ 'path': path,
97
+ },
98
+ });
99
+ }
100
+ /**
101
+ * does schedule exists
102
+ * @returns boolean schedule exists
103
+ * @throws ApiError
104
+ */
105
+ static existsSchedule({ workspace, path, }) {
106
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
107
+ method: 'GET',
108
+ url: '/w/{workspace}/schedules/exists/{path}',
109
+ path: {
110
+ 'workspace': workspace,
111
+ 'path': path,
112
+ },
113
+ });
114
+ }
115
+ /**
116
+ * list schedules
117
+ * @returns Schedule schedule list
118
+ * @throws ApiError
119
+ */
120
+ static listSchedules({ workspace, page, perPage, }) {
121
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
122
+ method: 'GET',
123
+ url: '/w/{workspace}/schedules/list',
124
+ path: {
125
+ 'workspace': workspace,
126
+ },
127
+ query: {
128
+ 'page': page,
129
+ 'per_page': perPage,
130
+ },
131
+ });
132
+ }
133
+ }
134
+ exports.ScheduleService = ScheduleService;