windmill-client 0.2.0 → 0.2.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 (198) hide show
  1. package/dist/core/ApiError.d.ts +10 -0
  2. package/dist/core/ApiError.js +15 -0
  3. package/dist/core/ApiRequestOptions.d.ts +13 -0
  4. package/dist/core/ApiRequestOptions.js +2 -0
  5. package/dist/core/ApiResult.d.ts +7 -0
  6. package/dist/core/ApiResult.js +2 -0
  7. package/dist/core/CancelablePromise.d.ts +26 -0
  8. package/dist/core/CancelablePromise.js +94 -0
  9. package/dist/core/OpenAPI.d.ts +16 -0
  10. package/dist/core/OpenAPI.js +14 -0
  11. package/dist/core/request.d.ts +13 -0
  12. package/dist/core/request.js +269 -0
  13. package/dist/index.d.ts +95 -0
  14. package/dist/index.js +85 -0
  15. package/dist/models/AppWithLastVersion.d.ts +21 -0
  16. package/dist/models/AppWithLastVersion.js +15 -0
  17. package/dist/models/AppWithLastVersionWDraft.d.ts +5 -0
  18. package/dist/models/AppWithLastVersionWDraft.js +5 -0
  19. package/dist/models/AuditLog.d.ts +32 -0
  20. package/dist/models/AuditLog.js +32 -0
  21. package/dist/models/BranchAll.d.ts +10 -0
  22. package/dist/models/BranchAll.js +5 -0
  23. package/dist/models/BranchOne.d.ts +10 -0
  24. package/dist/models/BranchOne.js +5 -0
  25. package/dist/models/CompletedJob.d.ts +57 -0
  26. package/dist/models/CompletedJob.js +26 -0
  27. package/dist/models/ContextualVariable.d.ts +5 -0
  28. package/dist/models/ContextualVariable.js +5 -0
  29. package/dist/models/CreateInput.d.ts +4 -0
  30. package/dist/models/CreateInput.js +5 -0
  31. package/dist/models/CreateResource.d.ts +6 -0
  32. package/dist/models/CreateResource.js +5 -0
  33. package/dist/models/CreateVariable.d.ts +8 -0
  34. package/dist/models/CreateVariable.js +5 -0
  35. package/dist/models/CreateWorkspace.d.ts +5 -0
  36. package/dist/models/CreateWorkspace.js +5 -0
  37. package/dist/models/EditResource.d.ts +5 -0
  38. package/dist/models/EditResource.js +5 -0
  39. package/dist/models/EditResourceType.d.ts +4 -0
  40. package/dist/models/EditResourceType.js +5 -0
  41. package/dist/models/EditSchedule.d.ts +6 -0
  42. package/dist/models/EditSchedule.js +5 -0
  43. package/dist/models/EditVariable.d.ts +6 -0
  44. package/dist/models/EditVariable.js +5 -0
  45. package/dist/models/EditWorkspaceUser.d.ts +5 -0
  46. package/dist/models/EditWorkspaceUser.js +5 -0
  47. package/dist/models/Flow.d.ts +3 -0
  48. package/dist/models/Flow.js +5 -0
  49. package/dist/models/FlowMetadata.d.ts +11 -0
  50. package/dist/models/FlowMetadata.js +5 -0
  51. package/dist/models/FlowModule.d.ts +18 -0
  52. package/dist/models/FlowModule.js +5 -0
  53. package/dist/models/FlowModuleValue.d.ts +8 -0
  54. package/dist/models/FlowModuleValue.js +5 -0
  55. package/dist/models/FlowPreview.d.ts +7 -0
  56. package/dist/models/FlowPreview.js +5 -0
  57. package/dist/models/FlowStatus.d.ts +12 -0
  58. package/dist/models/FlowStatus.js +5 -0
  59. package/dist/models/FlowStatusModule.d.ts +34 -0
  60. package/dist/models/FlowStatusModule.js +18 -0
  61. package/dist/models/FlowValue.d.ts +6 -0
  62. package/dist/models/FlowValue.js +5 -0
  63. package/dist/models/Folder.d.ts +5 -0
  64. package/dist/models/Folder.js +5 -0
  65. package/dist/models/ForloopFlow.d.ts +9 -0
  66. package/dist/models/ForloopFlow.js +5 -0
  67. package/dist/models/GlobalUserInfo.d.ts +14 -0
  68. package/dist/models/GlobalUserInfo.js +14 -0
  69. package/dist/models/Group.d.ts +6 -0
  70. package/dist/models/Group.js +5 -0
  71. package/dist/models/Identity.d.ts +4 -0
  72. package/dist/models/Identity.js +5 -0
  73. package/dist/models/Input.d.ts +8 -0
  74. package/dist/models/Input.js +5 -0
  75. package/dist/models/InputTransform.d.ts +3 -0
  76. package/dist/models/InputTransform.js +5 -0
  77. package/dist/models/JavascriptTransform.d.ts +4 -0
  78. package/dist/models/JavascriptTransform.js +5 -0
  79. package/dist/models/Job.d.ts +11 -0
  80. package/dist/models/Job.js +14 -0
  81. package/dist/models/ListableApp.d.ts +18 -0
  82. package/dist/models/ListableApp.js +15 -0
  83. package/dist/models/ListableResource.d.ts +14 -0
  84. package/dist/models/ListableResource.js +5 -0
  85. package/dist/models/ListableVariable.d.ts +14 -0
  86. package/dist/models/ListableVariable.js +5 -0
  87. package/dist/models/Login.d.ts +4 -0
  88. package/dist/models/Login.js +5 -0
  89. package/dist/models/MainArgSignature.d.ts +33 -0
  90. package/dist/models/MainArgSignature.js +14 -0
  91. package/dist/models/NewSchedule.d.ts +10 -0
  92. package/dist/models/NewSchedule.js +5 -0
  93. package/dist/models/NewScript.d.ts +29 -0
  94. package/dist/models/NewScript.js +24 -0
  95. package/dist/models/NewScriptWithDraft.d.ts +5 -0
  96. package/dist/models/NewScriptWithDraft.js +5 -0
  97. package/dist/models/NewToken.d.ts +4 -0
  98. package/dist/models/NewToken.js +5 -0
  99. package/dist/models/NewTokenImpersonate.d.ts +5 -0
  100. package/dist/models/NewTokenImpersonate.js +5 -0
  101. package/dist/models/NewUser.d.ts +5 -0
  102. package/dist/models/NewUser.js +5 -0
  103. package/dist/models/OpenFlow.d.ts +7 -0
  104. package/dist/models/OpenFlow.js +5 -0
  105. package/dist/models/OpenFlowWPath.d.ts +4 -0
  106. package/dist/models/OpenFlowWPath.js +5 -0
  107. package/dist/models/PathFlow.d.ts +6 -0
  108. package/dist/models/PathFlow.js +5 -0
  109. package/dist/models/PathScript.d.ts +7 -0
  110. package/dist/models/PathScript.js +5 -0
  111. package/dist/models/Policy.d.ts +13 -0
  112. package/dist/models/Policy.js +15 -0
  113. package/dist/models/Preview.d.ts +16 -0
  114. package/dist/models/Preview.js +16 -0
  115. package/dist/models/QueuedJob.d.ts +55 -0
  116. package/dist/models/QueuedJob.js +26 -0
  117. package/dist/models/RawScript.d.ts +18 -0
  118. package/dist/models/RawScript.js +16 -0
  119. package/dist/models/Resource.d.ts +9 -0
  120. package/dist/models/Resource.js +5 -0
  121. package/dist/models/ResourceType.d.ts +6 -0
  122. package/dist/models/ResourceType.js +5 -0
  123. package/dist/models/Retry.d.ts +11 -0
  124. package/dist/models/Retry.js +5 -0
  125. package/dist/models/RunnableType.d.ts +5 -0
  126. package/dist/models/RunnableType.js +12 -0
  127. package/dist/models/Schedule.d.ts +15 -0
  128. package/dist/models/Schedule.js +5 -0
  129. package/dist/models/Script.d.ts +43 -0
  130. package/dist/models/Script.js +24 -0
  131. package/dist/models/ScriptArgs.d.ts +1 -0
  132. package/dist/models/ScriptArgs.js +5 -0
  133. package/dist/models/SlackToken.d.ts +8 -0
  134. package/dist/models/SlackToken.js +5 -0
  135. package/dist/models/StaticTransform.d.ts +4 -0
  136. package/dist/models/StaticTransform.js +5 -0
  137. package/dist/models/TokenResponse.d.ts +6 -0
  138. package/dist/models/TokenResponse.js +5 -0
  139. package/dist/models/TruncatedToken.d.ts +7 -0
  140. package/dist/models/TruncatedToken.js +5 -0
  141. package/dist/models/UpdateInput.d.ts +5 -0
  142. package/dist/models/UpdateInput.js +5 -0
  143. package/dist/models/Usage.d.ts +3 -0
  144. package/dist/models/Usage.js +5 -0
  145. package/dist/models/User.d.ts +14 -0
  146. package/dist/models/User.js +5 -0
  147. package/dist/models/UserWorkspaceList.d.ts +8 -0
  148. package/dist/models/UserWorkspaceList.js +5 -0
  149. package/dist/models/WorkerPing.d.ts +8 -0
  150. package/dist/models/WorkerPing.js +5 -0
  151. package/dist/models/Workspace.d.ts +6 -0
  152. package/dist/models/Workspace.js +5 -0
  153. package/dist/models/WorkspaceInvite.d.ts +6 -0
  154. package/dist/models/WorkspaceInvite.js +5 -0
  155. package/dist/services/AdminService.d.ts +39 -0
  156. package/dist/services/AdminService.js +56 -0
  157. package/dist/services/AppService.d.ts +194 -0
  158. package/dist/services/AppService.js +211 -0
  159. package/dist/services/AuditService.d.ts +53 -0
  160. package/dist/services/AuditService.js +47 -0
  161. package/dist/services/CaptureService.d.ts +30 -0
  162. package/dist/services/CaptureService.js +56 -0
  163. package/dist/services/DraftService.d.ts +16 -0
  164. package/dist/services/DraftService.js +24 -0
  165. package/dist/services/FavoriteService.d.ts +27 -0
  166. package/dist/services/FavoriteService.js +40 -0
  167. package/dist/services/FlowService.d.ts +186 -0
  168. package/dist/services/FlowService.js +200 -0
  169. package/dist/services/FolderService.d.ts +128 -0
  170. package/dist/services/FolderService.js +155 -0
  171. package/dist/services/GranularAclService.d.ts +46 -0
  172. package/dist/services/GranularAclService.js +60 -0
  173. package/dist/services/GroupService.d.ts +110 -0
  174. package/dist/services/GroupService.js +140 -0
  175. package/dist/services/InputService.d.ts +78 -0
  176. package/dist/services/InputService.js +99 -0
  177. package/dist/services/JobService.d.ts +636 -0
  178. package/dist/services/JobService.js +564 -0
  179. package/dist/services/OauthService.d.ts +95 -0
  180. package/dist/services/OauthService.js +124 -0
  181. package/dist/services/ResourceService.d.ts +177 -0
  182. package/dist/services/ResourceService.js +244 -0
  183. package/dist/services/ScheduleService.d.ts +103 -0
  184. package/dist/services/ScheduleService.js +134 -0
  185. package/dist/services/ScriptService.d.ts +303 -0
  186. package/dist/services/ScriptService.js +339 -0
  187. package/dist/services/SettingsService.d.ts +15 -0
  188. package/dist/services/SettingsService.js +30 -0
  189. package/dist/services/UserService.d.ts +284 -0
  190. package/dist/services/UserService.js +376 -0
  191. package/dist/services/VariableService.d.ts +83 -0
  192. package/dist/services/VariableService.js +123 -0
  193. package/dist/services/WorkerService.d.ts +25 -0
  194. package/dist/services/WorkerService.js +34 -0
  195. package/dist/services/WorkspaceService.d.ts +227 -0
  196. package/dist/services/WorkspaceService.js +275 -0
  197. package/package.json +1 -1
  198. package/tsconfig.json +1 -1
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OauthService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class OauthService {
7
+ /**
8
+ * connect slack callback
9
+ * @returns string slack token
10
+ * @throws ApiError
11
+ */
12
+ static connectSlackCallback({ workspace, requestBody, }) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'POST',
15
+ url: '/w/{workspace}/oauth/connect_slack_callback',
16
+ path: {
17
+ 'workspace': workspace,
18
+ },
19
+ body: requestBody,
20
+ mediaType: 'application/json',
21
+ });
22
+ }
23
+ /**
24
+ * connect callback
25
+ * @returns TokenResponse oauth token
26
+ * @throws ApiError
27
+ */
28
+ static connectCallback({ clientName, requestBody, }) {
29
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
30
+ method: 'POST',
31
+ url: '/oauth/connect_callback/{client_name}',
32
+ path: {
33
+ 'client_name': clientName,
34
+ },
35
+ body: requestBody,
36
+ mediaType: 'application/json',
37
+ });
38
+ }
39
+ /**
40
+ * create OAuth account
41
+ * @returns string account set
42
+ * @throws ApiError
43
+ */
44
+ static createAccount({ workspace, requestBody, }) {
45
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
46
+ method: 'POST',
47
+ url: '/w/{workspace}/oauth/create_account',
48
+ path: {
49
+ 'workspace': workspace,
50
+ },
51
+ body: requestBody,
52
+ mediaType: 'application/json',
53
+ });
54
+ }
55
+ /**
56
+ * refresh token
57
+ * @returns string token refreshed
58
+ * @throws ApiError
59
+ */
60
+ static refreshToken({ workspace, id, requestBody, }) {
61
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
62
+ method: 'POST',
63
+ url: '/w/{workspace}/oauth/refresh_token/{id}',
64
+ path: {
65
+ 'workspace': workspace,
66
+ 'id': id,
67
+ },
68
+ body: requestBody,
69
+ mediaType: 'application/json',
70
+ });
71
+ }
72
+ /**
73
+ * disconnect account
74
+ * @returns string disconnected client
75
+ * @throws ApiError
76
+ */
77
+ static disconnectAccount({ workspace, id, }) {
78
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
79
+ method: 'POST',
80
+ url: '/w/{workspace}/oauth/disconnect/{id}',
81
+ path: {
82
+ 'workspace': workspace,
83
+ 'id': id,
84
+ },
85
+ });
86
+ }
87
+ /**
88
+ * disconnect slack
89
+ * @returns string disconnected slack
90
+ * @throws ApiError
91
+ */
92
+ static disconnectSlack({ workspace, }) {
93
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
94
+ method: 'POST',
95
+ url: '/w/{workspace}/oauth/disconnect_slack',
96
+ path: {
97
+ 'workspace': workspace,
98
+ },
99
+ });
100
+ }
101
+ /**
102
+ * list oauth logins
103
+ * @returns string list of oauth login clients
104
+ * @throws ApiError
105
+ */
106
+ static listOAuthLogins() {
107
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
108
+ method: 'GET',
109
+ url: '/oauth/list_logins',
110
+ });
111
+ }
112
+ /**
113
+ * list oauth connects
114
+ * @returns any list of oauth connects clients
115
+ * @throws ApiError
116
+ */
117
+ static listOAuthConnects() {
118
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
119
+ method: 'GET',
120
+ url: '/oauth/list_connects',
121
+ });
122
+ }
123
+ }
124
+ exports.OauthService = OauthService;
@@ -0,0 +1,177 @@
1
+ import type { CreateResource } from '../models/CreateResource';
2
+ import type { EditResource } from '../models/EditResource';
3
+ import type { EditResourceType } from '../models/EditResourceType';
4
+ import type { ListableResource } from '../models/ListableResource';
5
+ import type { Resource } from '../models/Resource';
6
+ import type { ResourceType } from '../models/ResourceType';
7
+ import type { CancelablePromise } from '../core/CancelablePromise';
8
+ export declare class ResourceService {
9
+ /**
10
+ * create resource
11
+ * @returns string resource created
12
+ * @throws ApiError
13
+ */
14
+ static createResource({ workspace, requestBody, }: {
15
+ workspace: string;
16
+ /**
17
+ * new resource
18
+ */
19
+ requestBody: CreateResource;
20
+ }): CancelablePromise<string>;
21
+ /**
22
+ * delete resource
23
+ * @returns string resource deleted
24
+ * @throws ApiError
25
+ */
26
+ static deleteResource({ workspace, path, }: {
27
+ workspace: string;
28
+ path: string;
29
+ }): CancelablePromise<string>;
30
+ /**
31
+ * update resource
32
+ * @returns string resource updated
33
+ * @throws ApiError
34
+ */
35
+ static updateResource({ workspace, path, requestBody, }: {
36
+ workspace: string;
37
+ path: string;
38
+ /**
39
+ * updated resource
40
+ */
41
+ requestBody: EditResource;
42
+ }): CancelablePromise<string>;
43
+ /**
44
+ * update resource value
45
+ * @returns string resource value updated
46
+ * @throws ApiError
47
+ */
48
+ static updateResourceValue({ workspace, path, requestBody, }: {
49
+ workspace: string;
50
+ path: string;
51
+ /**
52
+ * updated resource
53
+ */
54
+ requestBody: {
55
+ value?: any;
56
+ };
57
+ }): CancelablePromise<string>;
58
+ /**
59
+ * get resource
60
+ * @returns Resource resource
61
+ * @throws ApiError
62
+ */
63
+ static getResource({ workspace, path, }: {
64
+ workspace: string;
65
+ path: string;
66
+ }): CancelablePromise<Resource>;
67
+ /**
68
+ * get resource value
69
+ * @returns any resource value
70
+ * @throws ApiError
71
+ */
72
+ static getResourceValue({ workspace, path, }: {
73
+ workspace: string;
74
+ path: string;
75
+ }): CancelablePromise<any>;
76
+ /**
77
+ * does resource exists
78
+ * @returns boolean does resource exists
79
+ * @throws ApiError
80
+ */
81
+ static existsResource({ workspace, path, }: {
82
+ workspace: string;
83
+ path: string;
84
+ }): CancelablePromise<boolean>;
85
+ /**
86
+ * list resources
87
+ * @returns ListableResource resource list
88
+ * @throws ApiError
89
+ */
90
+ static listResource({ workspace, page, perPage, resourceType, resourceTypeExclude, }: {
91
+ workspace: string;
92
+ /**
93
+ * which page to return (start at 1, default 1)
94
+ */
95
+ page?: number;
96
+ /**
97
+ * number of items to return for a given page (default 30, max 100)
98
+ */
99
+ perPage?: number;
100
+ /**
101
+ * resource_types to list from, separated by ',',
102
+ */
103
+ resourceType?: string;
104
+ /**
105
+ * resource_types to not list from, separated by ',',
106
+ */
107
+ resourceTypeExclude?: string;
108
+ }): CancelablePromise<Array<ListableResource>>;
109
+ /**
110
+ * create resource_type
111
+ * @returns string resource_type created
112
+ * @throws ApiError
113
+ */
114
+ static createResourceType({ workspace, requestBody, }: {
115
+ workspace: string;
116
+ /**
117
+ * new resource_type
118
+ */
119
+ requestBody: ResourceType;
120
+ }): CancelablePromise<string>;
121
+ /**
122
+ * delete resource_type
123
+ * @returns string resource_type deleted
124
+ * @throws ApiError
125
+ */
126
+ static deleteResourceType({ workspace, path, }: {
127
+ workspace: string;
128
+ path: string;
129
+ }): CancelablePromise<string>;
130
+ /**
131
+ * update resource_type
132
+ * @returns string resource_type updated
133
+ * @throws ApiError
134
+ */
135
+ static updateResourceType({ workspace, path, requestBody, }: {
136
+ workspace: string;
137
+ path: string;
138
+ /**
139
+ * updated resource_type
140
+ */
141
+ requestBody: EditResourceType;
142
+ }): CancelablePromise<string>;
143
+ /**
144
+ * get resource_type
145
+ * @returns ResourceType resource_type deleted
146
+ * @throws ApiError
147
+ */
148
+ static getResourceType({ workspace, path, }: {
149
+ workspace: string;
150
+ path: string;
151
+ }): CancelablePromise<ResourceType>;
152
+ /**
153
+ * does resource_type exists
154
+ * @returns boolean does resource_type exist
155
+ * @throws ApiError
156
+ */
157
+ static existsResourceType({ workspace, path, }: {
158
+ workspace: string;
159
+ path: string;
160
+ }): CancelablePromise<boolean>;
161
+ /**
162
+ * list resource_types
163
+ * @returns ResourceType resource_type list
164
+ * @throws ApiError
165
+ */
166
+ static listResourceType({ workspace, }: {
167
+ workspace: string;
168
+ }): CancelablePromise<Array<ResourceType>>;
169
+ /**
170
+ * list resource_types names
171
+ * @returns string resource_type list
172
+ * @throws ApiError
173
+ */
174
+ static listResourceTypeNames({ workspace, }: {
175
+ workspace: string;
176
+ }): CancelablePromise<Array<string>>;
177
+ }
@@ -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,103 @@
1
+ import type { EditSchedule } from '../models/EditSchedule';
2
+ import type { NewSchedule } from '../models/NewSchedule';
3
+ import type { Schedule } from '../models/Schedule';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
5
+ export declare class ScheduleService {
6
+ /**
7
+ * preview schedule
8
+ * @returns string List of 5 estimated upcoming execution events (in UTC)
9
+ * @throws ApiError
10
+ */
11
+ static previewSchedule({ requestBody, }: {
12
+ /**
13
+ * schedule
14
+ */
15
+ requestBody: {
16
+ schedule: string;
17
+ timezone: string;
18
+ };
19
+ }): CancelablePromise<Array<string>>;
20
+ /**
21
+ * create schedule
22
+ * @returns string schedule created
23
+ * @throws ApiError
24
+ */
25
+ static createSchedule({ workspace, requestBody, }: {
26
+ workspace: string;
27
+ /**
28
+ * new schedule
29
+ */
30
+ requestBody: NewSchedule;
31
+ }): CancelablePromise<string>;
32
+ /**
33
+ * update schedule
34
+ * @returns string schedule updated
35
+ * @throws ApiError
36
+ */
37
+ static updateSchedule({ workspace, path, requestBody, }: {
38
+ workspace: string;
39
+ path: string;
40
+ /**
41
+ * updated schedule
42
+ */
43
+ requestBody: EditSchedule;
44
+ }): CancelablePromise<string>;
45
+ /**
46
+ * set enabled schedule
47
+ * @returns string schedule enabled set
48
+ * @throws ApiError
49
+ */
50
+ static setScheduleEnabled({ workspace, path, requestBody, }: {
51
+ workspace: string;
52
+ path: string;
53
+ /**
54
+ * updated schedule enable
55
+ */
56
+ requestBody: {
57
+ enabled: boolean;
58
+ };
59
+ }): CancelablePromise<string>;
60
+ /**
61
+ * delete schedule
62
+ * @returns string schedule deleted
63
+ * @throws ApiError
64
+ */
65
+ static deleteSchedule({ workspace, path, }: {
66
+ workspace: string;
67
+ path: string;
68
+ }): CancelablePromise<string>;
69
+ /**
70
+ * get schedule
71
+ * @returns Schedule schedule deleted
72
+ * @throws ApiError
73
+ */
74
+ static getSchedule({ workspace, path, }: {
75
+ workspace: string;
76
+ path: string;
77
+ }): CancelablePromise<Schedule>;
78
+ /**
79
+ * does schedule exists
80
+ * @returns boolean schedule exists
81
+ * @throws ApiError
82
+ */
83
+ static existsSchedule({ workspace, path, }: {
84
+ workspace: string;
85
+ path: string;
86
+ }): CancelablePromise<boolean>;
87
+ /**
88
+ * list schedules
89
+ * @returns Schedule schedule list
90
+ * @throws ApiError
91
+ */
92
+ static listSchedules({ workspace, page, perPage, }: {
93
+ workspace: string;
94
+ /**
95
+ * which page to return (start at 1, default 1)
96
+ */
97
+ page?: number;
98
+ /**
99
+ * number of items to return for a given page (default 30, max 100)
100
+ */
101
+ perPage?: number;
102
+ }): CancelablePromise<Array<Schedule>>;
103
+ }