@abyss-project/tools 1.0.5 → 1.1.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.
- package/dist/api/beam.api.d.ts +48 -0
- package/dist/api/beam.api.js +104 -0
- package/dist/api/beam.api.js.map +1 -0
- package/dist/api/extraction-plan-preset.api.d.ts +9 -0
- package/dist/api/extraction-plan-preset.api.js +23 -0
- package/dist/api/extraction-plan-preset.api.js.map +1 -0
- package/dist/api/extraction-plan-preset.api.test.d.ts +1 -0
- package/dist/api/extraction-plan-preset.api.test.js +41 -0
- package/dist/api/extraction-plan-preset.api.test.js.map +1 -0
- package/dist/api/extraction-settings.api.d.ts +4 -0
- package/dist/api/extraction-settings.api.js +22 -0
- package/dist/api/extraction-settings.api.js.map +1 -0
- package/dist/api/extraction.api.d.ts +74 -0
- package/dist/api/extraction.api.js +416 -0
- package/dist/api/extraction.api.js.map +1 -0
- package/dist/api/index.d.ts +4 -1
- package/dist/api/index.js +4 -1
- package/dist/api/index.js.map +1 -1
- package/dist/constants/beam.constants.d.ts +1 -0
- package/dist/constants/beam.constants.js +5 -0
- package/dist/constants/beam.constants.js.map +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/index.d.ts +107 -58
- package/dist/index.js +105 -58
- package/dist/index.js.map +1 -1
- package/dist/types/enum/beam.enum.d.ts +12 -0
- package/dist/types/enum/beam.enum.js +18 -0
- package/dist/types/enum/beam.enum.js.map +1 -0
- package/dist/types/enum/combine-strategy.enum.d.ts +5 -0
- package/dist/types/enum/combine-strategy.enum.js +10 -0
- package/dist/types/enum/combine-strategy.enum.js.map +1 -0
- package/dist/types/enum/content-share.enum.d.ts +3 -1
- package/dist/types/enum/content-share.enum.js +2 -0
- package/dist/types/enum/content-share.enum.js.map +1 -1
- package/dist/types/enum/document-type.enum.d.ts +9 -0
- package/dist/types/enum/document-type.enum.js +14 -0
- package/dist/types/enum/document-type.enum.js.map +1 -0
- package/dist/types/enum/extraction-feedback-issue-type.enum.d.ts +8 -0
- package/dist/types/enum/extraction-feedback-issue-type.enum.js +13 -0
- package/dist/types/enum/extraction-feedback-issue-type.enum.js.map +1 -0
- package/dist/types/enum/extraction-warning.enum.d.ts +7 -0
- package/dist/types/enum/extraction-warning.enum.js +12 -0
- package/dist/types/enum/extraction-warning.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +7 -0
- package/dist/types/enum/index.js +7 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/interpreter-kind.enum.d.ts +5 -0
- package/dist/types/enum/interpreter-kind.enum.js +10 -0
- package/dist/types/enum/interpreter-kind.enum.js.map +1 -0
- package/dist/types/enum/provider-kind.enum.d.ts +10 -0
- package/dist/types/enum/provider-kind.enum.js +16 -0
- package/dist/types/enum/provider-kind.enum.js.map +1 -0
- package/dist/types/interface/api/requests/beam.request.d.ts +122 -0
- package/dist/types/interface/api/{responses/pdf.response.js → requests/beam.request.js} +1 -1
- package/dist/types/interface/api/requests/beam.request.js.map +1 -0
- package/dist/types/interface/api/requests/{rcb.request.d.ts → extraction.request.d.ts} +81 -52
- package/dist/types/interface/api/requests/{pdf.public.request.js → extraction.request.js} +1 -1
- package/dist/types/interface/api/requests/extraction.request.js.map +1 -0
- package/dist/types/interface/api/requests/index.d.ts +2 -1
- package/dist/types/interface/api/requests/index.js +2 -1
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/responses/beam.response.d.ts +92 -0
- package/dist/types/interface/api/responses/{rcb.response.js → beam.response.js} +1 -1
- package/dist/types/interface/api/responses/beam.response.js.map +1 -0
- package/dist/types/interface/api/responses/extraction.response.d.ts +403 -0
- package/dist/types/interface/api/{requests/user-tag.request.js → responses/extraction.response.js} +1 -1
- package/dist/types/interface/api/responses/extraction.response.js.map +1 -0
- package/dist/types/interface/api/responses/index.d.ts +2 -1
- package/dist/types/interface/api/responses/index.js +2 -1
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/models/beam.dto.d.ts +58 -0
- package/dist/types/interface/{api/requests/pdf.request.js → models/beam.dto.js} +1 -1
- package/dist/types/interface/models/beam.dto.js.map +1 -0
- package/dist/types/interface/models/extraction-fetched-provenance.dto.test.d.ts +1 -0
- package/dist/types/interface/models/extraction-fetched-provenance.dto.test.js +159 -0
- package/dist/types/interface/models/extraction-fetched-provenance.dto.test.js.map +1 -0
- package/dist/types/interface/models/extraction-plan.dto.d.ts +163 -0
- package/dist/types/interface/models/extraction-plan.dto.js +11 -0
- package/dist/types/interface/models/extraction-plan.dto.js.map +1 -0
- package/dist/types/interface/models/extraction-plan.dto.test.d.ts +1 -0
- package/dist/types/interface/models/extraction-plan.dto.test.js +35 -0
- package/dist/types/interface/models/extraction-plan.dto.test.js.map +1 -0
- package/dist/types/interface/models/extraction-spatial-template.dto.d.ts +37 -0
- package/dist/types/interface/{api/requests/rcb.request.js → models/extraction-spatial-template.dto.js} +1 -1
- package/dist/types/interface/models/extraction-spatial-template.dto.js.map +1 -0
- package/dist/types/interface/models/extraction-spatial-template.dto.test.d.ts +1 -0
- package/dist/types/interface/models/extraction-spatial-template.dto.test.js +15 -0
- package/dist/types/interface/models/extraction-spatial-template.dto.test.js.map +1 -0
- package/dist/types/interface/models/{rcb.dto.d.ts → extraction.dto.d.ts} +64 -48
- package/dist/types/interface/models/extraction.dto.js +28 -0
- package/dist/types/interface/models/extraction.dto.js.map +1 -0
- package/dist/types/interface/models/index.d.ts +4 -1
- package/dist/types/interface/models/index.js +4 -1
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/organization.dto.d.ts +2 -0
- package/dist/utils/{rcb-webhook.utils.d.ts → extraction-webhook.utils.d.ts} +2 -2
- package/dist/utils/{rcb-webhook.utils.js → extraction-webhook.utils.js} +4 -4
- package/dist/utils/extraction-webhook.utils.js.map +1 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/beam.api.ts +300 -0
- package/src/api/extraction-plan-preset.api.test.ts +24 -0
- package/src/api/extraction-plan-preset.api.ts +51 -0
- package/src/api/extraction-settings.api.ts +59 -0
- package/src/api/extraction.api.ts +899 -0
- package/src/api/index.ts +56 -51
- package/src/api/tests/beam.api.spec.ts +42 -0
- package/src/constants/beam.constants.ts +4 -0
- package/src/constants/index.ts +6 -5
- package/src/index.ts +840 -747
- package/src/types/enum/beam.enum.ts +24 -0
- package/src/types/enum/combine-strategy.enum.ts +7 -0
- package/src/types/enum/content-share.enum.ts +38 -36
- package/src/types/enum/document-type.enum.ts +10 -0
- package/src/types/enum/extraction-feedback-issue-type.enum.ts +10 -0
- package/src/types/enum/extraction-warning.enum.ts +21 -0
- package/src/types/enum/index.ts +13 -6
- package/src/types/enum/interpreter-kind.enum.ts +7 -0
- package/src/types/enum/provider-kind.enum.ts +13 -0
- package/src/types/interface/api/requests/beam.request.ts +152 -0
- package/src/types/interface/api/requests/extraction.request.ts +366 -0
- package/src/types/interface/api/requests/index.ts +29 -28
- package/src/types/interface/api/responses/beam.response.ts +122 -0
- package/src/types/interface/api/responses/extraction.response.ts +454 -0
- package/src/types/interface/api/responses/index.ts +33 -32
- package/src/types/interface/models/beam.dto.ts +67 -0
- package/src/types/interface/models/extraction-fetched-provenance.dto.test.ts +193 -0
- package/src/types/interface/models/extraction-plan.dto.test.ts +47 -0
- package/src/types/interface/models/extraction-plan.dto.ts +241 -0
- package/src/types/interface/models/extraction-spatial-template.dto.test.ts +27 -0
- package/src/types/interface/models/extraction-spatial-template.dto.ts +48 -0
- package/src/types/interface/models/{rcb.dto.ts → extraction.dto.ts} +317 -267
- package/src/types/interface/models/index.ts +34 -31
- package/src/types/interface/models/organization.dto.ts +21 -12
- package/src/types/tests/beam-management-types.spec.ts +38 -0
- package/src/types/tests/beam-share-enums.spec.ts +11 -0
- package/src/types/tests/beam.dto.spec.ts +61 -0
- package/src/types/tests/beam.request-response.spec.ts +43 -0
- package/src/utils/{rcb-webhook.utils.ts → extraction-webhook.utils.ts} +30 -30
- package/src/utils/index.ts +6 -6
- package/tsconfig.json +36 -35
- package/dist/api/atlas-page-content.api.d.ts +0 -0
- package/dist/api/atlas-page-content.api.js +0 -2
- package/dist/api/atlas-page-content.api.js.map +0 -1
- package/dist/api/pdf.api.d.ts +0 -15
- package/dist/api/pdf.api.js +0 -61
- package/dist/api/pdf.api.js.map +0 -1
- package/dist/api/pdf.public.api.d.ts +0 -8
- package/dist/api/pdf.public.api.js +0 -33
- package/dist/api/pdf.public.api.js.map +0 -1
- package/dist/api/rcb.api.d.ts +0 -72
- package/dist/api/rcb.api.js +0 -400
- package/dist/api/rcb.api.js.map +0 -1
- package/dist/api/user-tag.api.d.ts +0 -9
- package/dist/api/user-tag.api.js +0 -37
- package/dist/api/user-tag.api.js.map +0 -1
- package/dist/constants/user-tag.constants.d.ts +0 -3
- package/dist/constants/user-tag.constants.js +0 -7
- package/dist/constants/user-tag.constants.js.map +0 -1
- package/dist/types/enum/pdf-session.enum.d.ts +0 -10
- package/dist/types/enum/pdf-session.enum.js +0 -16
- package/dist/types/enum/pdf-session.enum.js.map +0 -1
- package/dist/types/interface/api/requests/pdf.public.request.d.ts +0 -19
- package/dist/types/interface/api/requests/pdf.public.request.js.map +0 -1
- package/dist/types/interface/api/requests/pdf.request.d.ts +0 -50
- package/dist/types/interface/api/requests/pdf.request.js.map +0 -1
- package/dist/types/interface/api/requests/rcb.request.js.map +0 -1
- package/dist/types/interface/api/requests/user-tag.request.d.ts +0 -44
- package/dist/types/interface/api/requests/user-tag.request.js.map +0 -1
- package/dist/types/interface/api/responses/pdf.public.response.d.ts +0 -33
- package/dist/types/interface/api/responses/pdf.public.response.js +0 -3
- package/dist/types/interface/api/responses/pdf.public.response.js.map +0 -1
- package/dist/types/interface/api/responses/pdf.response.d.ts +0 -35
- package/dist/types/interface/api/responses/pdf.response.js.map +0 -1
- package/dist/types/interface/api/responses/rcb.response.d.ts +0 -376
- package/dist/types/interface/api/responses/rcb.response.js.map +0 -1
- package/dist/types/interface/api/responses/user-tag.response.d.ts +0 -32
- package/dist/types/interface/api/responses/user-tag.response.js +0 -3
- package/dist/types/interface/api/responses/user-tag.response.js.map +0 -1
- package/dist/types/interface/models/pdf-session.dto.d.ts +0 -28
- package/dist/types/interface/models/pdf-session.dto.js +0 -3
- package/dist/types/interface/models/pdf-session.dto.js.map +0 -1
- package/dist/types/interface/models/rcb.dto.js +0 -26
- package/dist/types/interface/models/rcb.dto.js.map +0 -1
- package/dist/types/interface/models/user-tag.dto.d.ts +0 -22
- package/dist/types/interface/models/user-tag.dto.js +0 -3
- package/dist/types/interface/models/user-tag.dto.js.map +0 -1
- package/dist/utils/rcb-webhook.utils.js.map +0 -1
- package/src/api/rcb.api.ts +0 -829
- package/src/types/interface/api/requests/rcb.request.ts +0 -267
- package/src/types/interface/api/responses/rcb.response.ts +0 -399
package/src/index.ts
CHANGED
|
@@ -1,747 +1,840 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
import axiosRetry, { IAxiosRetryConfig, isNetworkOrIdempotentRequestError } from 'axios-retry';
|
|
3
|
-
import * as abyssAdminApi from './api/abyss.admin.api';
|
|
4
|
-
import * as boardApi from './api/board.api';
|
|
5
|
-
import * as boardColumnApi from './api/board-column.api';
|
|
6
|
-
import * as boardCardApi from './api/board-card.api';
|
|
7
|
-
import * as boardLabelApi from './api/board-label.api';
|
|
8
|
-
import * as boardCardCommentApi from './api/board-card-comment.api';
|
|
9
|
-
import * as boardCardChecklistApi from './api/board-card-checklist.api';
|
|
10
|
-
import * as boardCardDocumentApi from './api/board-card-document.api';
|
|
11
|
-
import * as drawApi from './api/draw.api';
|
|
12
|
-
import * as drawPublicApi from './api/draw.public.api';
|
|
13
|
-
import * as retrospectiveApi from './api/retrospective.api';
|
|
14
|
-
import * as retrospectiveCardApi from './api/retrospective-card.api';
|
|
15
|
-
import * as retrospectiveMemberApi from './api/retrospective-member.api';
|
|
16
|
-
import * as retrospectiveSectionApi from './api/retrospective-section.api';
|
|
17
|
-
import * as retrospectivePublicApi from './api/retrospective.public.api';
|
|
18
|
-
import * as atlasApi from './api/atlas.api';
|
|
19
|
-
import * as atlasGroupApi from './api/atlas-group.api';
|
|
20
|
-
import * as atlasPageApi from './api/atlas-page.api';
|
|
21
|
-
import * as atlasDocumentApi from './api/atlas-document.api';
|
|
22
|
-
import * as atlasPublicApi from './api/atlas.public.api';
|
|
23
|
-
import * as memoApi from './api/memo.api';
|
|
24
|
-
import * as shortLinkApiModule from './api/short-link.api';
|
|
25
|
-
import * as shortLinkAdminApiModule from './api/short-link.admin.api';
|
|
26
|
-
import * as shortLinkPublicApiModule from './api/short-link.public.api';
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
31
|
-
import * as
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export * from './
|
|
37
|
-
export * from './
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
get: typeof
|
|
344
|
-
patch: typeof
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
create:
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
},
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
},
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
delete:
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
list:
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
},
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import axiosRetry, { IAxiosRetryConfig, isNetworkOrIdempotentRequestError } from 'axios-retry';
|
|
3
|
+
import * as abyssAdminApi from './api/abyss.admin.api';
|
|
4
|
+
import * as boardApi from './api/board.api';
|
|
5
|
+
import * as boardColumnApi from './api/board-column.api';
|
|
6
|
+
import * as boardCardApi from './api/board-card.api';
|
|
7
|
+
import * as boardLabelApi from './api/board-label.api';
|
|
8
|
+
import * as boardCardCommentApi from './api/board-card-comment.api';
|
|
9
|
+
import * as boardCardChecklistApi from './api/board-card-checklist.api';
|
|
10
|
+
import * as boardCardDocumentApi from './api/board-card-document.api';
|
|
11
|
+
import * as drawApi from './api/draw.api';
|
|
12
|
+
import * as drawPublicApi from './api/draw.public.api';
|
|
13
|
+
import * as retrospectiveApi from './api/retrospective.api';
|
|
14
|
+
import * as retrospectiveCardApi from './api/retrospective-card.api';
|
|
15
|
+
import * as retrospectiveMemberApi from './api/retrospective-member.api';
|
|
16
|
+
import * as retrospectiveSectionApi from './api/retrospective-section.api';
|
|
17
|
+
import * as retrospectivePublicApi from './api/retrospective.public.api';
|
|
18
|
+
import * as atlasApi from './api/atlas.api';
|
|
19
|
+
import * as atlasGroupApi from './api/atlas-group.api';
|
|
20
|
+
import * as atlasPageApi from './api/atlas-page.api';
|
|
21
|
+
import * as atlasDocumentApi from './api/atlas-document.api';
|
|
22
|
+
import * as atlasPublicApi from './api/atlas.public.api';
|
|
23
|
+
import * as memoApi from './api/memo.api';
|
|
24
|
+
import * as shortLinkApiModule from './api/short-link.api';
|
|
25
|
+
import * as shortLinkAdminApiModule from './api/short-link.admin.api';
|
|
26
|
+
import * as shortLinkPublicApiModule from './api/short-link.public.api';
|
|
27
|
+
import * as beamApiModule from './api/beam.api';
|
|
28
|
+
import * as metricsApi from './api/metrics.api';
|
|
29
|
+
import * as organizationApi from './api/organization.api';
|
|
30
|
+
import * as tagApi from './api/tag.api';
|
|
31
|
+
import * as extractionApi from './api/extraction.api';
|
|
32
|
+
import * as extractionSettingsApi from './api/extraction-settings.api';
|
|
33
|
+
import * as extractionPlanPresetApi from './api/extraction-plan-preset.api';
|
|
34
|
+
import * as monitorApi from './api/monitor.api';
|
|
35
|
+
|
|
36
|
+
export * from './api';
|
|
37
|
+
export * from './types';
|
|
38
|
+
export * from './utils';
|
|
39
|
+
export * from './constants';
|
|
40
|
+
export * from './server-sent-events';
|
|
41
|
+
|
|
42
|
+
const DEFAULT_BASE_URL = 'https://tools-api.abyss-project.fr/api/';
|
|
43
|
+
|
|
44
|
+
export const API_KEY_HEADER = 'abyss-tools-api-key';
|
|
45
|
+
export const ADMIN_TOKEN_HEADER = 'abyss-admin-token';
|
|
46
|
+
|
|
47
|
+
const NUMBER_RETRY_API = 10;
|
|
48
|
+
const BASE_DELAY_BETWEEN_RETRY = 5000;
|
|
49
|
+
const RETRY_CODES = [
|
|
50
|
+
502, // Bad Gateway
|
|
51
|
+
503, // Service Unavailable
|
|
52
|
+
];
|
|
53
|
+
|
|
54
|
+
type CoreConfig = {
|
|
55
|
+
token?: string;
|
|
56
|
+
apiKey?: string;
|
|
57
|
+
adminToken?: string;
|
|
58
|
+
baseURL?: string;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
type AbyssToolsCoreSDK = {
|
|
62
|
+
abyss: {
|
|
63
|
+
admin: {
|
|
64
|
+
activateUserService: typeof abyssAdminApi.activateUserServiceAbyssAdmin;
|
|
65
|
+
syncOrganization: typeof abyssAdminApi.syncOrganizationAbyssAdmin;
|
|
66
|
+
syncProject: typeof abyssAdminApi.syncProjectAbyssAdmin;
|
|
67
|
+
getProjectContentSummary: typeof abyssAdminApi.getProjectContentSummary;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
board: {
|
|
71
|
+
get: typeof boardApi.getBoard;
|
|
72
|
+
getBySlug: typeof boardApi.getBySlugBoard;
|
|
73
|
+
list: typeof boardApi.listBoard;
|
|
74
|
+
listProject: typeof boardApi.listBoardProject;
|
|
75
|
+
listOrganization: typeof boardApi.listBoardOrganization;
|
|
76
|
+
paginateOrganization: typeof boardApi.paginateOrganizationBoard;
|
|
77
|
+
delete: typeof boardApi.deleteBoard;
|
|
78
|
+
update: typeof boardApi.updateBoard;
|
|
79
|
+
create: typeof boardApi.createBoard;
|
|
80
|
+
createForOrganization: typeof boardApi.createForOrganizationBoard;
|
|
81
|
+
getNextCardPreview: typeof boardApi.getNextCardPreviewBoard;
|
|
82
|
+
transfer: typeof boardApi.transferBoard;
|
|
83
|
+
countOrganization: typeof boardApi.countOrganizationBoard;
|
|
84
|
+
};
|
|
85
|
+
boardColumn: {
|
|
86
|
+
get: typeof boardColumnApi.getBoardColumn;
|
|
87
|
+
delete: typeof boardColumnApi.deleteBoardColumn;
|
|
88
|
+
update: typeof boardColumnApi.updateBoardColumn;
|
|
89
|
+
create: typeof boardColumnApi.createBoardColumn;
|
|
90
|
+
};
|
|
91
|
+
boardCard: {
|
|
92
|
+
get: typeof boardCardApi.getBoardCard;
|
|
93
|
+
getAll: typeof boardCardApi.getAllBoardCard;
|
|
94
|
+
delete: typeof boardCardApi.deleteBoardCard;
|
|
95
|
+
update: typeof boardCardApi.updateBoardCard;
|
|
96
|
+
restore: typeof boardCardApi.restoreBoardCard;
|
|
97
|
+
create: typeof boardCardApi.createBoardCard;
|
|
98
|
+
addMember: typeof boardCardApi.addMemberBoardCard;
|
|
99
|
+
removeMember: typeof boardCardApi.removeMemberBoardCard;
|
|
100
|
+
moveToBoard: typeof boardCardApi.moveToBoardBoardCard;
|
|
101
|
+
search: typeof boardCardApi.searchBoardCard;
|
|
102
|
+
};
|
|
103
|
+
boardLabel: {
|
|
104
|
+
get: typeof boardLabelApi.getBoardLabel;
|
|
105
|
+
delete: typeof boardLabelApi.deleteBoardLabel;
|
|
106
|
+
update: typeof boardLabelApi.updateBoardLabel;
|
|
107
|
+
create: typeof boardLabelApi.createBoardLabel;
|
|
108
|
+
add: typeof boardLabelApi.addBoardLabel;
|
|
109
|
+
remove: typeof boardLabelApi.removeBoardLabel;
|
|
110
|
+
list: typeof boardLabelApi.listBoardLabels;
|
|
111
|
+
};
|
|
112
|
+
boardCardComment: {
|
|
113
|
+
get: typeof boardCardCommentApi.getBoardCardComment;
|
|
114
|
+
delete: typeof boardCardCommentApi.deleteBoardCardComment;
|
|
115
|
+
update: typeof boardCardCommentApi.updateBoardCardComment;
|
|
116
|
+
create: typeof boardCardCommentApi.createBoardCardComment;
|
|
117
|
+
};
|
|
118
|
+
boardCardChecklist: {
|
|
119
|
+
get: typeof boardCardChecklistApi.getBoardCardChecklist;
|
|
120
|
+
delete: typeof boardCardChecklistApi.deleteBoardCardChecklist;
|
|
121
|
+
update: typeof boardCardChecklistApi.updateBoardCardChecklist;
|
|
122
|
+
create: typeof boardCardChecklistApi.createBoardCardChecklist;
|
|
123
|
+
addRow: typeof boardCardChecklistApi.addRowBoardCardChecklist;
|
|
124
|
+
removeRow: typeof boardCardChecklistApi.removeRowBoardCardChecklist;
|
|
125
|
+
updateRow: typeof boardCardChecklistApi.updateRowBoardCardChecklist;
|
|
126
|
+
};
|
|
127
|
+
boardCardDocument: {
|
|
128
|
+
get: typeof boardCardDocumentApi.getBoardCardDocument;
|
|
129
|
+
delete: typeof boardCardDocumentApi.deleteBoardCardDocument;
|
|
130
|
+
getUploadPreSignedUrl: typeof boardCardDocumentApi.getUploadPreSignedUrlBoardCardDocument;
|
|
131
|
+
cloudImport: typeof boardCardDocumentApi.cloudImportBoardCardDocument;
|
|
132
|
+
};
|
|
133
|
+
draw: {
|
|
134
|
+
paginate: typeof drawApi.paginateDraw;
|
|
135
|
+
paginateProject: typeof drawApi.paginateProjectDraw;
|
|
136
|
+
paginateOrganization: typeof drawApi.paginateOrganizationDraw;
|
|
137
|
+
get: typeof drawApi.getDraw;
|
|
138
|
+
delete: typeof drawApi.deleteDraw;
|
|
139
|
+
update: typeof drawApi.updateDraw;
|
|
140
|
+
create: typeof drawApi.createDraw;
|
|
141
|
+
createForOrganization: typeof drawApi.createForOrganizationDraw;
|
|
142
|
+
transfer: typeof drawApi.transferDraw;
|
|
143
|
+
countOrganization: typeof drawApi.countOrganizationDraw;
|
|
144
|
+
public: {
|
|
145
|
+
get: typeof drawPublicApi.getDrawPublic;
|
|
146
|
+
delete: typeof drawPublicApi.deleteDrawPublic;
|
|
147
|
+
update: typeof drawPublicApi.updateDrawPublic;
|
|
148
|
+
create: typeof drawPublicApi.createDrawPublic;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
retrospective: {
|
|
152
|
+
get: typeof retrospectiveApi.getRetrospective;
|
|
153
|
+
paginateProject: typeof retrospectiveApi.paginateProjectRetrospective;
|
|
154
|
+
paginateOrganization: typeof retrospectiveApi.paginateOrganizationRetrospective;
|
|
155
|
+
paginate: typeof retrospectiveApi.paginateRetrospective;
|
|
156
|
+
create: typeof retrospectiveApi.createRetrospective;
|
|
157
|
+
createForOrganization: typeof retrospectiveApi.createForOrganizationRetrospective;
|
|
158
|
+
update: typeof retrospectiveApi.updateRetrospective;
|
|
159
|
+
delete: typeof retrospectiveApi.deleteRetrospective;
|
|
160
|
+
transfer: typeof retrospectiveApi.transferRetrospective;
|
|
161
|
+
countOrganization: typeof retrospectiveApi.countOrganizationRetrospective;
|
|
162
|
+
public: {
|
|
163
|
+
get: typeof retrospectivePublicApi.getRetrospectivePublic;
|
|
164
|
+
update: typeof retrospectivePublicApi.updateRetrospectivePublic;
|
|
165
|
+
createSection: typeof retrospectivePublicApi.createSectionRetrospectivePublic;
|
|
166
|
+
updateSection: typeof retrospectivePublicApi.updateSectionRetrospectivePublic;
|
|
167
|
+
deleteSection: typeof retrospectivePublicApi.deleteSectionRetrospectivePublic;
|
|
168
|
+
joinMember: typeof retrospectivePublicApi.joinMemberRetrospectivePublic;
|
|
169
|
+
updateMember: typeof retrospectivePublicApi.updateMemberRetrospectivePublic;
|
|
170
|
+
createCard: typeof retrospectivePublicApi.createCardRetrospectivePublic;
|
|
171
|
+
updateCard: typeof retrospectivePublicApi.updateCardRetrospectivePublic;
|
|
172
|
+
deleteCard: typeof retrospectivePublicApi.deleteCardRetrospectivePublic;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
retrospectiveCard: {
|
|
176
|
+
get: typeof retrospectiveCardApi.getRetrospectiveCard;
|
|
177
|
+
paginate: typeof retrospectiveCardApi.paginateRetrospectiveCard;
|
|
178
|
+
create: typeof retrospectiveCardApi.createRetrospectiveCard;
|
|
179
|
+
update: typeof retrospectiveCardApi.updateRetrospectiveCard;
|
|
180
|
+
delete: typeof retrospectiveCardApi.deleteRetrospectiveCard;
|
|
181
|
+
};
|
|
182
|
+
retrospectiveMember: {
|
|
183
|
+
get: typeof retrospectiveMemberApi.getRetrospectiveMember;
|
|
184
|
+
list: typeof retrospectiveMemberApi.listRetrospectiveMember;
|
|
185
|
+
join: typeof retrospectiveMemberApi.joinRetrospectiveMember;
|
|
186
|
+
update: typeof retrospectiveMemberApi.updateRetrospectiveMember;
|
|
187
|
+
};
|
|
188
|
+
retrospectiveSection: {
|
|
189
|
+
get: typeof retrospectiveSectionApi.getRetrospectiveSection;
|
|
190
|
+
paginate: typeof retrospectiveSectionApi.paginateRetrospectiveSection;
|
|
191
|
+
create: typeof retrospectiveSectionApi.createRetrospectiveSection;
|
|
192
|
+
update: typeof retrospectiveSectionApi.updateRetrospectiveSection;
|
|
193
|
+
delete: typeof retrospectiveSectionApi.deleteRetrospectiveSection;
|
|
194
|
+
};
|
|
195
|
+
atlas: {
|
|
196
|
+
paginate: typeof atlasApi.paginateAtlas;
|
|
197
|
+
paginateProject: typeof atlasApi.paginateProjectAtlas;
|
|
198
|
+
paginateOrganization: typeof atlasApi.paginateOrganizationAtlas;
|
|
199
|
+
get: typeof atlasApi.getAtlas;
|
|
200
|
+
delete: typeof atlasApi.deleteAtlas;
|
|
201
|
+
update: typeof atlasApi.updateAtlas;
|
|
202
|
+
create: typeof atlasApi.createAtlas;
|
|
203
|
+
createForOrganization: typeof atlasApi.createForOrganizationAtlas;
|
|
204
|
+
transfer: typeof atlasApi.transferAtlas;
|
|
205
|
+
countOrganization: typeof atlasApi.countOrganizationAtlas;
|
|
206
|
+
public: {
|
|
207
|
+
get: typeof atlasPublicApi.getAtlasPublic;
|
|
208
|
+
getPage: typeof atlasPublicApi.getPageAtlasPublic;
|
|
209
|
+
searchContent: typeof atlasPublicApi.searchContentAtlasPublic;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
atlasGroup: {
|
|
213
|
+
paginate: typeof atlasGroupApi.paginateAtlasGroup;
|
|
214
|
+
get: typeof atlasGroupApi.getAtlasGroup;
|
|
215
|
+
delete: typeof atlasGroupApi.deleteAtlasGroup;
|
|
216
|
+
update: typeof atlasGroupApi.updateAtlasGroup;
|
|
217
|
+
create: typeof atlasGroupApi.createAtlasGroup;
|
|
218
|
+
};
|
|
219
|
+
atlasPage: {
|
|
220
|
+
paginate: typeof atlasPageApi.paginateAtlasPage;
|
|
221
|
+
get: typeof atlasPageApi.getAtlasPage;
|
|
222
|
+
delete: typeof atlasPageApi.deleteAtlasPage;
|
|
223
|
+
update: typeof atlasPageApi.updateAtlasPage;
|
|
224
|
+
create: typeof atlasPageApi.createAtlasPage;
|
|
225
|
+
updateContent: typeof atlasPageApi.updateAtlasPageContent;
|
|
226
|
+
searchContent: typeof atlasPageApi.searchAtlasContent;
|
|
227
|
+
getContentHistory: typeof atlasPageApi.getAtlasPageContentHistory;
|
|
228
|
+
restoreContent: typeof atlasPageApi.restoreAtlasPageContent;
|
|
229
|
+
};
|
|
230
|
+
atlasDocument: {
|
|
231
|
+
get: typeof atlasDocumentApi.getAtlasDocument;
|
|
232
|
+
delete: typeof atlasDocumentApi.deleteAtlasDocument;
|
|
233
|
+
getUploadPreSignedUrl: typeof atlasDocumentApi.getUploadPreSignedUrlAtlasDocument;
|
|
234
|
+
paginate: typeof atlasDocumentApi.paginateAtlasDocument;
|
|
235
|
+
list: typeof atlasDocumentApi.listAtlasDocument;
|
|
236
|
+
};
|
|
237
|
+
memo: {
|
|
238
|
+
paginate: typeof memoApi.paginateMemo;
|
|
239
|
+
paginateProject: typeof memoApi.paginateProjectMemo;
|
|
240
|
+
paginateOrganization: typeof memoApi.paginateOrganizationMemo;
|
|
241
|
+
get: typeof memoApi.getMemo;
|
|
242
|
+
delete: typeof memoApi.deleteMemo;
|
|
243
|
+
update: typeof memoApi.updateMemo;
|
|
244
|
+
create: typeof memoApi.createMemo;
|
|
245
|
+
createForOrganization: typeof memoApi.createForOrganizationMemo;
|
|
246
|
+
transfer: typeof memoApi.transferMemo;
|
|
247
|
+
countOrganization: typeof memoApi.countOrganizationMemo;
|
|
248
|
+
};
|
|
249
|
+
shortLink: {
|
|
250
|
+
get: typeof shortLinkApiModule.shortLinkApi.get;
|
|
251
|
+
paginate: typeof shortLinkApiModule.shortLinkApi.paginate;
|
|
252
|
+
paginateProject: typeof shortLinkApiModule.shortLinkApi.paginateProject;
|
|
253
|
+
paginateOrganization: typeof shortLinkApiModule.shortLinkApi.paginateOrganization;
|
|
254
|
+
create: typeof shortLinkApiModule.shortLinkApi.create;
|
|
255
|
+
createForOrganization: typeof shortLinkApiModule.shortLinkApi.createForOrganization;
|
|
256
|
+
update: typeof shortLinkApiModule.shortLinkApi.update;
|
|
257
|
+
delete: typeof shortLinkApiModule.shortLinkApi.delete;
|
|
258
|
+
getStats: typeof shortLinkApiModule.shortLinkApi.getStats;
|
|
259
|
+
getClicks: typeof shortLinkApiModule.shortLinkApi.getClicks;
|
|
260
|
+
transfer: typeof shortLinkApiModule.shortLinkApi.transfer;
|
|
261
|
+
countOrganization: typeof shortLinkApiModule.shortLinkApi.countOrganization;
|
|
262
|
+
admin: {
|
|
263
|
+
paginate: typeof shortLinkAdminApiModule.shortLinkAdminApi.paginate;
|
|
264
|
+
get: typeof shortLinkAdminApiModule.shortLinkAdminApi.get;
|
|
265
|
+
update: typeof shortLinkAdminApiModule.shortLinkAdminApi.update;
|
|
266
|
+
delete: typeof shortLinkAdminApiModule.shortLinkAdminApi.delete;
|
|
267
|
+
};
|
|
268
|
+
public: {
|
|
269
|
+
createAnonymous: typeof shortLinkPublicApiModule.shortLinkPublicApi.createAnonymous;
|
|
270
|
+
redirect: typeof shortLinkPublicApiModule.shortLinkPublicApi.redirect;
|
|
271
|
+
getStats: typeof shortLinkPublicApiModule.shortLinkPublicApi.getStats;
|
|
272
|
+
getClicks: typeof shortLinkPublicApiModule.shortLinkPublicApi.getClicks;
|
|
273
|
+
renew: typeof shortLinkPublicApiModule.shortLinkPublicApi.renew;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
beam: {
|
|
277
|
+
get: typeof beamApiModule.beamApi.get;
|
|
278
|
+
getBySlug: typeof beamApiModule.beamApi.getBySlug;
|
|
279
|
+
unlock: typeof beamApiModule.beamApi.unlock;
|
|
280
|
+
paginate: typeof beamApiModule.beamApi.paginate;
|
|
281
|
+
paginateProject: typeof beamApiModule.beamApi.paginateProject;
|
|
282
|
+
paginateOrganization: typeof beamApiModule.beamApi.paginateOrganization;
|
|
283
|
+
create: typeof beamApiModule.beamApi.create;
|
|
284
|
+
createForOrganization: typeof beamApiModule.beamApi.createForOrganization;
|
|
285
|
+
update: typeof beamApiModule.beamApi.update;
|
|
286
|
+
delete: typeof beamApiModule.beamApi.delete;
|
|
287
|
+
renew: typeof beamApiModule.beamApi.renew;
|
|
288
|
+
reactivate: typeof beamApiModule.beamApi.reactivate;
|
|
289
|
+
share: {
|
|
290
|
+
create: typeof beamApiModule.beamApi.share.create;
|
|
291
|
+
list: typeof beamApiModule.beamApi.share.list;
|
|
292
|
+
revoke: typeof beamApiModule.beamApi.share.revoke;
|
|
293
|
+
};
|
|
294
|
+
recipients: {
|
|
295
|
+
add: typeof beamApiModule.beamApi.recipients.add;
|
|
296
|
+
list: typeof beamApiModule.beamApi.recipients.list;
|
|
297
|
+
};
|
|
298
|
+
addFiles: typeof beamApiModule.beamApi.addFiles;
|
|
299
|
+
importCloudFiles: typeof beamApiModule.beamApi.importCloudFiles;
|
|
300
|
+
finalize: typeof beamApiModule.beamApi.finalize;
|
|
301
|
+
public: {
|
|
302
|
+
create: typeof beamApiModule.beamApi.public.create;
|
|
303
|
+
addFiles: typeof beamApiModule.beamApi.public.addFiles;
|
|
304
|
+
finalize: typeof beamApiModule.beamApi.public.finalize;
|
|
305
|
+
renew: typeof beamApiModule.beamApi.public.renew;
|
|
306
|
+
reactivate: typeof beamApiModule.beamApi.public.reactivate;
|
|
307
|
+
update: typeof beamApiModule.beamApi.public.update;
|
|
308
|
+
delete: typeof beamApiModule.beamApi.public.delete;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
metrics: {
|
|
312
|
+
getOrganizationTools: typeof metricsApi.getOrganizationToolsMetrics;
|
|
313
|
+
getProjectTools: typeof metricsApi.getProjectToolsMetrics;
|
|
314
|
+
};
|
|
315
|
+
monitor: {
|
|
316
|
+
up: typeof monitorApi.upMonitor;
|
|
317
|
+
};
|
|
318
|
+
tag: {
|
|
319
|
+
list: typeof tagApi.listTag;
|
|
320
|
+
create: typeof tagApi.createTag;
|
|
321
|
+
update: typeof tagApi.updateTag;
|
|
322
|
+
delete: typeof tagApi.deleteTag;
|
|
323
|
+
assign: typeof tagApi.assignTag;
|
|
324
|
+
unassign: typeof tagApi.unassignTag;
|
|
325
|
+
getStats: typeof tagApi.getTagStats;
|
|
326
|
+
getEntityTags: typeof tagApi.getEntityTags;
|
|
327
|
+
};
|
|
328
|
+
organization: {
|
|
329
|
+
recent: typeof organizationApi.recentOrganization;
|
|
330
|
+
};
|
|
331
|
+
extract: {
|
|
332
|
+
health: typeof extractionApi.health;
|
|
333
|
+
stats: typeof extractionApi.stats;
|
|
334
|
+
changelog: typeof extractionApi.changelog;
|
|
335
|
+
detect: typeof extractionApi.detect;
|
|
336
|
+
detectBulk: typeof extractionApi.detectBulk;
|
|
337
|
+
run: typeof extractionApi.extractSync;
|
|
338
|
+
runQueue: typeof extractionApi.extractQueue;
|
|
339
|
+
runBulk: typeof extractionApi.extractBulk;
|
|
340
|
+
files: {
|
|
341
|
+
list: typeof extractionApi.listFiles;
|
|
342
|
+
listShared: typeof extractionApi.listSharedFiles;
|
|
343
|
+
get: typeof extractionApi.getFile;
|
|
344
|
+
patch: typeof extractionApi.patchFile;
|
|
345
|
+
listExtractions: typeof extractionApi.listFileExtractions;
|
|
346
|
+
downloadBundle: typeof extractionApi.downloadFileBundle;
|
|
347
|
+
};
|
|
348
|
+
extractions: {
|
|
349
|
+
get: typeof extractionApi.getExtraction;
|
|
350
|
+
patch: typeof extractionApi.patchExtraction;
|
|
351
|
+
searchRecords: typeof extractionApi.searchExtractionRecords;
|
|
352
|
+
export: typeof extractionApi.exportExtraction;
|
|
353
|
+
asyncExport: typeof extractionApi.asyncExportExtraction;
|
|
354
|
+
getExportJob: typeof extractionApi.getExportJob;
|
|
355
|
+
diff: typeof extractionApi.diffExtractions;
|
|
356
|
+
/** Opt a specific extraction in/out of the improvement-training dataset. */
|
|
357
|
+
toggleTraining: typeof extractionApi.toggleExtractionTraining;
|
|
358
|
+
};
|
|
359
|
+
templates: {
|
|
360
|
+
list: typeof extractionApi.listTemplates;
|
|
361
|
+
get: typeof extractionApi.getTemplate;
|
|
362
|
+
create: typeof extractionApi.createTemplate;
|
|
363
|
+
update: typeof extractionApi.updateTemplate;
|
|
364
|
+
patchMeta: typeof extractionApi.patchTemplateMeta;
|
|
365
|
+
delete: typeof extractionApi.deleteTemplate;
|
|
366
|
+
listVersions: typeof extractionApi.listTemplateVersions;
|
|
367
|
+
exportCollection: typeof extractionApi.exportTemplateCollection;
|
|
368
|
+
importCollection: typeof extractionApi.importTemplateCollection;
|
|
369
|
+
};
|
|
370
|
+
jobs: {
|
|
371
|
+
get: typeof extractionApi.getJob;
|
|
372
|
+
retry: typeof extractionApi.retryJob;
|
|
373
|
+
cancel: typeof extractionApi.cancelJob;
|
|
374
|
+
};
|
|
375
|
+
feedback: {
|
|
376
|
+
submit: typeof extractionApi.submitFeedback;
|
|
377
|
+
list: typeof extractionApi.listFeedback;
|
|
378
|
+
get: typeof extractionApi.getFeedback;
|
|
379
|
+
patch: typeof extractionApi.patchFeedback;
|
|
380
|
+
};
|
|
381
|
+
usage: {
|
|
382
|
+
list: typeof extractionApi.listUsage;
|
|
383
|
+
summary: typeof extractionApi.summaryUsage;
|
|
384
|
+
};
|
|
385
|
+
share: {
|
|
386
|
+
mint: typeof extractionApi.mintShareExtraction;
|
|
387
|
+
revoke: typeof extractionApi.revokeShareExtraction;
|
|
388
|
+
public: { get: typeof extractionApi.getSharedExtractionPublic };
|
|
389
|
+
};
|
|
390
|
+
// Webhook delivery history.
|
|
391
|
+
webhookDeliveries: {
|
|
392
|
+
list: typeof extractionApi.listWebhookDeliveries;
|
|
393
|
+
get: typeof extractionApi.getWebhookDelivery;
|
|
394
|
+
replay: typeof extractionApi.replayWebhookDelivery;
|
|
395
|
+
};
|
|
396
|
+
// Webhook subscriptions (managed registrations).
|
|
397
|
+
webhook: {
|
|
398
|
+
paginate: typeof extractionApi.paginateExtractionWebhook;
|
|
399
|
+
get: typeof extractionApi.getExtractionWebhook;
|
|
400
|
+
create: typeof extractionApi.createExtractionWebhook;
|
|
401
|
+
update: typeof extractionApi.updateExtractionWebhook;
|
|
402
|
+
delete: typeof extractionApi.deleteExtractionWebhook;
|
|
403
|
+
resetSecret: typeof extractionApi.resetSecretExtractionWebhook;
|
|
404
|
+
};
|
|
405
|
+
// Per-scope improvement-consent settings (P4).
|
|
406
|
+
settings: {
|
|
407
|
+
get: typeof extractionSettingsApi.getExtractionSettings;
|
|
408
|
+
upsert: typeof extractionSettingsApi.upsertExtractionSettings;
|
|
409
|
+
};
|
|
410
|
+
// Provider/interpreter capabilities (V2-P1).
|
|
411
|
+
modes: { list: typeof extractionPlanPresetApi.listModes };
|
|
412
|
+
// Saved extraction plan presets CRUD (V2-P1).
|
|
413
|
+
plans: {
|
|
414
|
+
list: typeof extractionPlanPresetApi.listExtractionPlanPresets;
|
|
415
|
+
get: typeof extractionPlanPresetApi.getExtractionPlanPreset;
|
|
416
|
+
create: typeof extractionPlanPresetApi.createExtractionPlanPreset;
|
|
417
|
+
update: typeof extractionPlanPresetApi.updateExtractionPlanPreset;
|
|
418
|
+
delete: typeof extractionPlanPresetApi.deleteExtractionPlanPreset;
|
|
419
|
+
setDefault: typeof extractionPlanPresetApi.setDefaultExtractionPlanPreset;
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
export class AbyssToolsCore {
|
|
425
|
+
private static config = {
|
|
426
|
+
token: '',
|
|
427
|
+
apiKey: '',
|
|
428
|
+
adminToken: '',
|
|
429
|
+
baseURL: DEFAULT_BASE_URL,
|
|
430
|
+
};
|
|
431
|
+
static axios = axios.create({
|
|
432
|
+
baseURL: this.config.baseURL,
|
|
433
|
+
withCredentials: true,
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
private static _sdk: AbyssToolsCoreSDK | null = null;
|
|
437
|
+
|
|
438
|
+
public static get sdk(): AbyssToolsCoreSDK {
|
|
439
|
+
if (!AbyssToolsCore._sdk) {
|
|
440
|
+
AbyssToolsCore._sdk = AbyssToolsCore.buildSDK();
|
|
441
|
+
}
|
|
442
|
+
return AbyssToolsCore._sdk;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
private static buildSDK(): AbyssToolsCoreSDK {
|
|
446
|
+
return {
|
|
447
|
+
abyss: {
|
|
448
|
+
admin: {
|
|
449
|
+
activateUserService: abyssAdminApi.activateUserServiceAbyssAdmin,
|
|
450
|
+
syncOrganization: abyssAdminApi.syncOrganizationAbyssAdmin,
|
|
451
|
+
syncProject: abyssAdminApi.syncProjectAbyssAdmin,
|
|
452
|
+
getProjectContentSummary: abyssAdminApi.getProjectContentSummary,
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
board: {
|
|
456
|
+
get: boardApi.getBoard,
|
|
457
|
+
getBySlug: boardApi.getBySlugBoard,
|
|
458
|
+
list: boardApi.listBoard,
|
|
459
|
+
listProject: boardApi.listBoardProject,
|
|
460
|
+
listOrganization: boardApi.listBoardOrganization,
|
|
461
|
+
paginateOrganization: boardApi.paginateOrganizationBoard,
|
|
462
|
+
delete: boardApi.deleteBoard,
|
|
463
|
+
update: boardApi.updateBoard,
|
|
464
|
+
create: boardApi.createBoard,
|
|
465
|
+
createForOrganization: boardApi.createForOrganizationBoard,
|
|
466
|
+
getNextCardPreview: boardApi.getNextCardPreviewBoard,
|
|
467
|
+
transfer: boardApi.transferBoard,
|
|
468
|
+
countOrganization: boardApi.countOrganizationBoard,
|
|
469
|
+
},
|
|
470
|
+
boardColumn: {
|
|
471
|
+
get: boardColumnApi.getBoardColumn,
|
|
472
|
+
delete: boardColumnApi.deleteBoardColumn,
|
|
473
|
+
update: boardColumnApi.updateBoardColumn,
|
|
474
|
+
create: boardColumnApi.createBoardColumn,
|
|
475
|
+
},
|
|
476
|
+
boardCard: {
|
|
477
|
+
get: boardCardApi.getBoardCard,
|
|
478
|
+
getAll: boardCardApi.getAllBoardCard,
|
|
479
|
+
delete: boardCardApi.deleteBoardCard,
|
|
480
|
+
update: boardCardApi.updateBoardCard,
|
|
481
|
+
restore: boardCardApi.restoreBoardCard,
|
|
482
|
+
create: boardCardApi.createBoardCard,
|
|
483
|
+
addMember: boardCardApi.addMemberBoardCard,
|
|
484
|
+
removeMember: boardCardApi.removeMemberBoardCard,
|
|
485
|
+
moveToBoard: boardCardApi.moveToBoardBoardCard,
|
|
486
|
+
search: boardCardApi.searchBoardCard,
|
|
487
|
+
},
|
|
488
|
+
boardLabel: {
|
|
489
|
+
get: boardLabelApi.getBoardLabel,
|
|
490
|
+
delete: boardLabelApi.deleteBoardLabel,
|
|
491
|
+
update: boardLabelApi.updateBoardLabel,
|
|
492
|
+
create: boardLabelApi.createBoardLabel,
|
|
493
|
+
add: boardLabelApi.addBoardLabel,
|
|
494
|
+
remove: boardLabelApi.removeBoardLabel,
|
|
495
|
+
list: boardLabelApi.listBoardLabels,
|
|
496
|
+
},
|
|
497
|
+
boardCardComment: {
|
|
498
|
+
get: boardCardCommentApi.getBoardCardComment,
|
|
499
|
+
delete: boardCardCommentApi.deleteBoardCardComment,
|
|
500
|
+
update: boardCardCommentApi.updateBoardCardComment,
|
|
501
|
+
create: boardCardCommentApi.createBoardCardComment,
|
|
502
|
+
},
|
|
503
|
+
boardCardChecklist: {
|
|
504
|
+
get: boardCardChecklistApi.getBoardCardChecklist,
|
|
505
|
+
delete: boardCardChecklistApi.deleteBoardCardChecklist,
|
|
506
|
+
update: boardCardChecklistApi.updateBoardCardChecklist,
|
|
507
|
+
create: boardCardChecklistApi.createBoardCardChecklist,
|
|
508
|
+
addRow: boardCardChecklistApi.addRowBoardCardChecklist,
|
|
509
|
+
removeRow: boardCardChecklistApi.removeRowBoardCardChecklist,
|
|
510
|
+
updateRow: boardCardChecklistApi.updateRowBoardCardChecklist,
|
|
511
|
+
},
|
|
512
|
+
boardCardDocument: {
|
|
513
|
+
get: boardCardDocumentApi.getBoardCardDocument,
|
|
514
|
+
delete: boardCardDocumentApi.deleteBoardCardDocument,
|
|
515
|
+
getUploadPreSignedUrl: boardCardDocumentApi.getUploadPreSignedUrlBoardCardDocument,
|
|
516
|
+
cloudImport: boardCardDocumentApi.cloudImportBoardCardDocument,
|
|
517
|
+
},
|
|
518
|
+
draw: {
|
|
519
|
+
paginate: drawApi.paginateDraw,
|
|
520
|
+
paginateProject: drawApi.paginateProjectDraw,
|
|
521
|
+
paginateOrganization: drawApi.paginateOrganizationDraw,
|
|
522
|
+
get: drawApi.getDraw,
|
|
523
|
+
delete: drawApi.deleteDraw,
|
|
524
|
+
update: drawApi.updateDraw,
|
|
525
|
+
create: drawApi.createDraw,
|
|
526
|
+
createForOrganization: drawApi.createForOrganizationDraw,
|
|
527
|
+
transfer: drawApi.transferDraw,
|
|
528
|
+
countOrganization: drawApi.countOrganizationDraw,
|
|
529
|
+
public: {
|
|
530
|
+
get: drawPublicApi.getDrawPublic,
|
|
531
|
+
delete: drawPublicApi.deleteDrawPublic,
|
|
532
|
+
update: drawPublicApi.updateDrawPublic,
|
|
533
|
+
create: drawPublicApi.createDrawPublic,
|
|
534
|
+
},
|
|
535
|
+
},
|
|
536
|
+
retrospective: {
|
|
537
|
+
get: retrospectiveApi.getRetrospective,
|
|
538
|
+
paginateProject: retrospectiveApi.paginateProjectRetrospective,
|
|
539
|
+
paginateOrganization: retrospectiveApi.paginateOrganizationRetrospective,
|
|
540
|
+
paginate: retrospectiveApi.paginateRetrospective,
|
|
541
|
+
create: retrospectiveApi.createRetrospective,
|
|
542
|
+
createForOrganization: retrospectiveApi.createForOrganizationRetrospective,
|
|
543
|
+
update: retrospectiveApi.updateRetrospective,
|
|
544
|
+
delete: retrospectiveApi.deleteRetrospective,
|
|
545
|
+
transfer: retrospectiveApi.transferRetrospective,
|
|
546
|
+
countOrganization: retrospectiveApi.countOrganizationRetrospective,
|
|
547
|
+
public: {
|
|
548
|
+
get: retrospectivePublicApi.getRetrospectivePublic,
|
|
549
|
+
update: retrospectivePublicApi.updateRetrospectivePublic,
|
|
550
|
+
createSection: retrospectivePublicApi.createSectionRetrospectivePublic,
|
|
551
|
+
updateSection: retrospectivePublicApi.updateSectionRetrospectivePublic,
|
|
552
|
+
deleteSection: retrospectivePublicApi.deleteSectionRetrospectivePublic,
|
|
553
|
+
joinMember: retrospectivePublicApi.joinMemberRetrospectivePublic,
|
|
554
|
+
updateMember: retrospectivePublicApi.updateMemberRetrospectivePublic,
|
|
555
|
+
createCard: retrospectivePublicApi.createCardRetrospectivePublic,
|
|
556
|
+
updateCard: retrospectivePublicApi.updateCardRetrospectivePublic,
|
|
557
|
+
deleteCard: retrospectivePublicApi.deleteCardRetrospectivePublic,
|
|
558
|
+
},
|
|
559
|
+
},
|
|
560
|
+
retrospectiveCard: {
|
|
561
|
+
get: retrospectiveCardApi.getRetrospectiveCard,
|
|
562
|
+
paginate: retrospectiveCardApi.paginateRetrospectiveCard,
|
|
563
|
+
create: retrospectiveCardApi.createRetrospectiveCard,
|
|
564
|
+
update: retrospectiveCardApi.updateRetrospectiveCard,
|
|
565
|
+
delete: retrospectiveCardApi.deleteRetrospectiveCard,
|
|
566
|
+
},
|
|
567
|
+
retrospectiveMember: {
|
|
568
|
+
get: retrospectiveMemberApi.getRetrospectiveMember,
|
|
569
|
+
list: retrospectiveMemberApi.listRetrospectiveMember,
|
|
570
|
+
join: retrospectiveMemberApi.joinRetrospectiveMember,
|
|
571
|
+
update: retrospectiveMemberApi.updateRetrospectiveMember,
|
|
572
|
+
},
|
|
573
|
+
retrospectiveSection: {
|
|
574
|
+
get: retrospectiveSectionApi.getRetrospectiveSection,
|
|
575
|
+
paginate: retrospectiveSectionApi.paginateRetrospectiveSection,
|
|
576
|
+
create: retrospectiveSectionApi.createRetrospectiveSection,
|
|
577
|
+
update: retrospectiveSectionApi.updateRetrospectiveSection,
|
|
578
|
+
delete: retrospectiveSectionApi.deleteRetrospectiveSection,
|
|
579
|
+
},
|
|
580
|
+
atlas: {
|
|
581
|
+
paginate: atlasApi.paginateAtlas,
|
|
582
|
+
paginateProject: atlasApi.paginateProjectAtlas,
|
|
583
|
+
paginateOrganization: atlasApi.paginateOrganizationAtlas,
|
|
584
|
+
get: atlasApi.getAtlas,
|
|
585
|
+
delete: atlasApi.deleteAtlas,
|
|
586
|
+
update: atlasApi.updateAtlas,
|
|
587
|
+
create: atlasApi.createAtlas,
|
|
588
|
+
createForOrganization: atlasApi.createForOrganizationAtlas,
|
|
589
|
+
transfer: atlasApi.transferAtlas,
|
|
590
|
+
countOrganization: atlasApi.countOrganizationAtlas,
|
|
591
|
+
public: {
|
|
592
|
+
get: atlasPublicApi.getAtlasPublic,
|
|
593
|
+
getPage: atlasPublicApi.getPageAtlasPublic,
|
|
594
|
+
searchContent: atlasPublicApi.searchContentAtlasPublic,
|
|
595
|
+
},
|
|
596
|
+
},
|
|
597
|
+
atlasGroup: {
|
|
598
|
+
paginate: atlasGroupApi.paginateAtlasGroup,
|
|
599
|
+
get: atlasGroupApi.getAtlasGroup,
|
|
600
|
+
delete: atlasGroupApi.deleteAtlasGroup,
|
|
601
|
+
update: atlasGroupApi.updateAtlasGroup,
|
|
602
|
+
create: atlasGroupApi.createAtlasGroup,
|
|
603
|
+
},
|
|
604
|
+
atlasPage: {
|
|
605
|
+
paginate: atlasPageApi.paginateAtlasPage,
|
|
606
|
+
get: atlasPageApi.getAtlasPage,
|
|
607
|
+
delete: atlasPageApi.deleteAtlasPage,
|
|
608
|
+
update: atlasPageApi.updateAtlasPage,
|
|
609
|
+
create: atlasPageApi.createAtlasPage,
|
|
610
|
+
updateContent: atlasPageApi.updateAtlasPageContent,
|
|
611
|
+
searchContent: atlasPageApi.searchAtlasContent,
|
|
612
|
+
getContentHistory: atlasPageApi.getAtlasPageContentHistory,
|
|
613
|
+
restoreContent: atlasPageApi.restoreAtlasPageContent,
|
|
614
|
+
},
|
|
615
|
+
atlasDocument: {
|
|
616
|
+
get: atlasDocumentApi.getAtlasDocument,
|
|
617
|
+
delete: atlasDocumentApi.deleteAtlasDocument,
|
|
618
|
+
getUploadPreSignedUrl: atlasDocumentApi.getUploadPreSignedUrlAtlasDocument,
|
|
619
|
+
paginate: atlasDocumentApi.paginateAtlasDocument,
|
|
620
|
+
list: atlasDocumentApi.listAtlasDocument,
|
|
621
|
+
},
|
|
622
|
+
memo: {
|
|
623
|
+
paginate: memoApi.paginateMemo,
|
|
624
|
+
paginateProject: memoApi.paginateProjectMemo,
|
|
625
|
+
paginateOrganization: memoApi.paginateOrganizationMemo,
|
|
626
|
+
get: memoApi.getMemo,
|
|
627
|
+
delete: memoApi.deleteMemo,
|
|
628
|
+
update: memoApi.updateMemo,
|
|
629
|
+
create: memoApi.createMemo,
|
|
630
|
+
createForOrganization: memoApi.createForOrganizationMemo,
|
|
631
|
+
transfer: memoApi.transferMemo,
|
|
632
|
+
countOrganization: memoApi.countOrganizationMemo,
|
|
633
|
+
},
|
|
634
|
+
shortLink: {
|
|
635
|
+
get: shortLinkApiModule.shortLinkApi.get,
|
|
636
|
+
paginate: shortLinkApiModule.shortLinkApi.paginate,
|
|
637
|
+
paginateProject: shortLinkApiModule.shortLinkApi.paginateProject,
|
|
638
|
+
paginateOrganization: shortLinkApiModule.shortLinkApi.paginateOrganization,
|
|
639
|
+
create: shortLinkApiModule.shortLinkApi.create,
|
|
640
|
+
createForOrganization: shortLinkApiModule.shortLinkApi.createForOrganization,
|
|
641
|
+
update: shortLinkApiModule.shortLinkApi.update,
|
|
642
|
+
delete: shortLinkApiModule.shortLinkApi.delete,
|
|
643
|
+
getStats: shortLinkApiModule.shortLinkApi.getStats,
|
|
644
|
+
getClicks: shortLinkApiModule.shortLinkApi.getClicks,
|
|
645
|
+
transfer: shortLinkApiModule.shortLinkApi.transfer,
|
|
646
|
+
countOrganization: shortLinkApiModule.shortLinkApi.countOrganization,
|
|
647
|
+
admin: {
|
|
648
|
+
paginate: shortLinkAdminApiModule.shortLinkAdminApi.paginate,
|
|
649
|
+
get: shortLinkAdminApiModule.shortLinkAdminApi.get,
|
|
650
|
+
update: shortLinkAdminApiModule.shortLinkAdminApi.update,
|
|
651
|
+
delete: shortLinkAdminApiModule.shortLinkAdminApi.delete,
|
|
652
|
+
},
|
|
653
|
+
public: {
|
|
654
|
+
createAnonymous: shortLinkPublicApiModule.shortLinkPublicApi.createAnonymous,
|
|
655
|
+
redirect: shortLinkPublicApiModule.shortLinkPublicApi.redirect,
|
|
656
|
+
getStats: shortLinkPublicApiModule.shortLinkPublicApi.getStats,
|
|
657
|
+
getClicks: shortLinkPublicApiModule.shortLinkPublicApi.getClicks,
|
|
658
|
+
renew: shortLinkPublicApiModule.shortLinkPublicApi.renew,
|
|
659
|
+
},
|
|
660
|
+
},
|
|
661
|
+
beam: {
|
|
662
|
+
get: beamApiModule.beamApi.get,
|
|
663
|
+
getBySlug: beamApiModule.beamApi.getBySlug,
|
|
664
|
+
unlock: beamApiModule.beamApi.unlock,
|
|
665
|
+
paginate: beamApiModule.beamApi.paginate,
|
|
666
|
+
paginateProject: beamApiModule.beamApi.paginateProject,
|
|
667
|
+
paginateOrganization: beamApiModule.beamApi.paginateOrganization,
|
|
668
|
+
create: beamApiModule.beamApi.create,
|
|
669
|
+
createForOrganization: beamApiModule.beamApi.createForOrganization,
|
|
670
|
+
update: beamApiModule.beamApi.update,
|
|
671
|
+
delete: beamApiModule.beamApi.delete,
|
|
672
|
+
renew: beamApiModule.beamApi.renew,
|
|
673
|
+
reactivate: beamApiModule.beamApi.reactivate,
|
|
674
|
+
share: {
|
|
675
|
+
create: beamApiModule.beamApi.share.create,
|
|
676
|
+
list: beamApiModule.beamApi.share.list,
|
|
677
|
+
revoke: beamApiModule.beamApi.share.revoke,
|
|
678
|
+
},
|
|
679
|
+
recipients: {
|
|
680
|
+
add: beamApiModule.beamApi.recipients.add,
|
|
681
|
+
list: beamApiModule.beamApi.recipients.list,
|
|
682
|
+
},
|
|
683
|
+
addFiles: beamApiModule.beamApi.addFiles,
|
|
684
|
+
importCloudFiles: beamApiModule.beamApi.importCloudFiles,
|
|
685
|
+
finalize: beamApiModule.beamApi.finalize,
|
|
686
|
+
public: {
|
|
687
|
+
create: beamApiModule.beamApi.public.create,
|
|
688
|
+
addFiles: beamApiModule.beamApi.public.addFiles,
|
|
689
|
+
finalize: beamApiModule.beamApi.public.finalize,
|
|
690
|
+
renew: beamApiModule.beamApi.public.renew,
|
|
691
|
+
reactivate: beamApiModule.beamApi.public.reactivate,
|
|
692
|
+
update: beamApiModule.beamApi.public.update,
|
|
693
|
+
delete: beamApiModule.beamApi.public.delete,
|
|
694
|
+
},
|
|
695
|
+
},
|
|
696
|
+
metrics: {
|
|
697
|
+
getOrganizationTools: metricsApi.getOrganizationToolsMetrics,
|
|
698
|
+
getProjectTools: metricsApi.getProjectToolsMetrics,
|
|
699
|
+
},
|
|
700
|
+
monitor: {
|
|
701
|
+
up: monitorApi.upMonitor,
|
|
702
|
+
},
|
|
703
|
+
tag: {
|
|
704
|
+
list: tagApi.listTag,
|
|
705
|
+
create: tagApi.createTag,
|
|
706
|
+
update: tagApi.updateTag,
|
|
707
|
+
delete: tagApi.deleteTag,
|
|
708
|
+
assign: tagApi.assignTag,
|
|
709
|
+
unassign: tagApi.unassignTag,
|
|
710
|
+
getStats: tagApi.getTagStats,
|
|
711
|
+
getEntityTags: tagApi.getEntityTags,
|
|
712
|
+
},
|
|
713
|
+
organization: {
|
|
714
|
+
recent: organizationApi.recentOrganization,
|
|
715
|
+
},
|
|
716
|
+
extract: {
|
|
717
|
+
health: extractionApi.health,
|
|
718
|
+
stats: extractionApi.stats,
|
|
719
|
+
changelog: extractionApi.changelog,
|
|
720
|
+
detect: extractionApi.detect,
|
|
721
|
+
detectBulk: extractionApi.detectBulk,
|
|
722
|
+
run: extractionApi.extractSync,
|
|
723
|
+
runQueue: extractionApi.extractQueue,
|
|
724
|
+
runBulk: extractionApi.extractBulk,
|
|
725
|
+
files: {
|
|
726
|
+
list: extractionApi.listFiles,
|
|
727
|
+
listShared: extractionApi.listSharedFiles,
|
|
728
|
+
get: extractionApi.getFile,
|
|
729
|
+
patch: extractionApi.patchFile,
|
|
730
|
+
listExtractions: extractionApi.listFileExtractions,
|
|
731
|
+
downloadBundle: extractionApi.downloadFileBundle,
|
|
732
|
+
},
|
|
733
|
+
extractions: {
|
|
734
|
+
get: extractionApi.getExtraction,
|
|
735
|
+
patch: extractionApi.patchExtraction,
|
|
736
|
+
searchRecords: extractionApi.searchExtractionRecords,
|
|
737
|
+
export: extractionApi.exportExtraction,
|
|
738
|
+
asyncExport: extractionApi.asyncExportExtraction,
|
|
739
|
+
getExportJob: extractionApi.getExportJob,
|
|
740
|
+
diff: extractionApi.diffExtractions,
|
|
741
|
+
toggleTraining: extractionApi.toggleExtractionTraining,
|
|
742
|
+
},
|
|
743
|
+
templates: {
|
|
744
|
+
list: extractionApi.listTemplates,
|
|
745
|
+
get: extractionApi.getTemplate,
|
|
746
|
+
create: extractionApi.createTemplate,
|
|
747
|
+
update: extractionApi.updateTemplate,
|
|
748
|
+
patchMeta: extractionApi.patchTemplateMeta,
|
|
749
|
+
delete: extractionApi.deleteTemplate,
|
|
750
|
+
listVersions: extractionApi.listTemplateVersions,
|
|
751
|
+
exportCollection: extractionApi.exportTemplateCollection,
|
|
752
|
+
importCollection: extractionApi.importTemplateCollection,
|
|
753
|
+
},
|
|
754
|
+
jobs: {
|
|
755
|
+
get: extractionApi.getJob,
|
|
756
|
+
retry: extractionApi.retryJob,
|
|
757
|
+
cancel: extractionApi.cancelJob,
|
|
758
|
+
},
|
|
759
|
+
feedback: {
|
|
760
|
+
submit: extractionApi.submitFeedback,
|
|
761
|
+
list: extractionApi.listFeedback,
|
|
762
|
+
get: extractionApi.getFeedback,
|
|
763
|
+
patch: extractionApi.patchFeedback,
|
|
764
|
+
},
|
|
765
|
+
usage: {
|
|
766
|
+
list: extractionApi.listUsage,
|
|
767
|
+
summary: extractionApi.summaryUsage,
|
|
768
|
+
},
|
|
769
|
+
share: {
|
|
770
|
+
mint: extractionApi.mintShareExtraction,
|
|
771
|
+
revoke: extractionApi.revokeShareExtraction,
|
|
772
|
+
public: { get: extractionApi.getSharedExtractionPublic },
|
|
773
|
+
},
|
|
774
|
+
webhookDeliveries: {
|
|
775
|
+
list: extractionApi.listWebhookDeliveries,
|
|
776
|
+
get: extractionApi.getWebhookDelivery,
|
|
777
|
+
replay: extractionApi.replayWebhookDelivery,
|
|
778
|
+
},
|
|
779
|
+
webhook: {
|
|
780
|
+
paginate: extractionApi.paginateExtractionWebhook,
|
|
781
|
+
get: extractionApi.getExtractionWebhook,
|
|
782
|
+
create: extractionApi.createExtractionWebhook,
|
|
783
|
+
update: extractionApi.updateExtractionWebhook,
|
|
784
|
+
delete: extractionApi.deleteExtractionWebhook,
|
|
785
|
+
resetSecret: extractionApi.resetSecretExtractionWebhook,
|
|
786
|
+
},
|
|
787
|
+
settings: {
|
|
788
|
+
get: extractionSettingsApi.getExtractionSettings,
|
|
789
|
+
upsert: extractionSettingsApi.upsertExtractionSettings,
|
|
790
|
+
},
|
|
791
|
+
modes: { list: extractionPlanPresetApi.listModes },
|
|
792
|
+
plans: {
|
|
793
|
+
list: extractionPlanPresetApi.listExtractionPlanPresets,
|
|
794
|
+
get: extractionPlanPresetApi.getExtractionPlanPreset,
|
|
795
|
+
create: extractionPlanPresetApi.createExtractionPlanPreset,
|
|
796
|
+
update: extractionPlanPresetApi.updateExtractionPlanPreset,
|
|
797
|
+
delete: extractionPlanPresetApi.deleteExtractionPlanPreset,
|
|
798
|
+
setDefault: extractionPlanPresetApi.setDefaultExtractionPlanPreset,
|
|
799
|
+
},
|
|
800
|
+
},
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
public static enableAxiosRetry(axiosRetryConfig?: IAxiosRetryConfig): void {
|
|
805
|
+
axiosRetry(AbyssToolsCore.axios, {
|
|
806
|
+
retries: NUMBER_RETRY_API,
|
|
807
|
+
retryDelay: (retryCount) => retryCount * BASE_DELAY_BETWEEN_RETRY,
|
|
808
|
+
retryCondition: (error) =>
|
|
809
|
+
isNetworkOrIdempotentRequestError(error) ||
|
|
810
|
+
RETRY_CODES.includes(error.response?.status || 502),
|
|
811
|
+
...axiosRetryConfig,
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
public static setConfig(config: CoreConfig): void {
|
|
816
|
+
AbyssToolsCore._sdk = null;
|
|
817
|
+
|
|
818
|
+
AbyssToolsCore.config = { ...AbyssToolsCore.config, ...config };
|
|
819
|
+
|
|
820
|
+
if (config.baseURL) {
|
|
821
|
+
AbyssToolsCore.axios.defaults.baseURL = config.baseURL;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
if (config.token) {
|
|
825
|
+
AbyssToolsCore.axios.defaults.headers.common.Authorization = `Bearer ${config.token}`;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
if (config.apiKey) {
|
|
829
|
+
AbyssToolsCore.axios.defaults.headers.common[API_KEY_HEADER] = `${config.apiKey}`;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
if (config.adminToken) {
|
|
833
|
+
AbyssToolsCore.axios.defaults.headers.common[ADMIN_TOKEN_HEADER] = `${config.adminToken}`;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
public static getConfig(): CoreConfig {
|
|
838
|
+
return AbyssToolsCore.config;
|
|
839
|
+
}
|
|
840
|
+
}
|