@gooddata/sdk-backend-tiger 11.64.0-alpha.0 → 11.64.0-alpha.2

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 (58) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.js +1 -1
  3. package/esm/backend/dataSources/files.d.ts +16 -0
  4. package/esm/backend/dataSources/files.d.ts.map +1 -0
  5. package/esm/backend/dataSources/files.js +133 -0
  6. package/esm/backend/dataSources/index.d.ts +14 -2
  7. package/esm/backend/dataSources/index.d.ts.map +1 -1
  8. package/esm/backend/dataSources/index.js +163 -2
  9. package/esm/backend/index.d.ts +1 -1
  10. package/esm/backend/localization/aggregate.d.ts +3 -1
  11. package/esm/backend/localization/aggregate.d.ts.map +1 -1
  12. package/esm/backend/localization/aggregate.js +2 -2
  13. package/esm/backend/localization/fromBackend.d.ts +12 -2
  14. package/esm/backend/localization/fromBackend.d.ts.map +1 -1
  15. package/esm/backend/localization/fromBackend.js +45 -6
  16. package/esm/backend/localization/index.d.ts +3 -0
  17. package/esm/backend/localization/index.d.ts.map +1 -1
  18. package/esm/backend/localization/index.js +52 -8
  19. package/esm/backend/organization/cspDirectives.d.ts +13 -0
  20. package/esm/backend/organization/cspDirectives.d.ts.map +1 -0
  21. package/esm/backend/organization/cspDirectives.js +53 -0
  22. package/esm/backend/organization/index.d.ts +4 -2
  23. package/esm/backend/organization/index.d.ts.map +1 -1
  24. package/esm/backend/organization/index.js +23 -9
  25. package/esm/backend/organization/users.d.ts +2 -1
  26. package/esm/backend/organization/users.d.ts.map +1 -1
  27. package/esm/backend/organization/users.js +12 -0
  28. package/esm/backend/settings/mapping.js +1 -0
  29. package/esm/backend/tigerSpecificFunctions.d.ts +38 -1
  30. package/esm/backend/tigerSpecificFunctions.d.ts.map +1 -1
  31. package/esm/backend/tigerSpecificFunctions.js +1 -16
  32. package/esm/backend/tigerSpecificFunctionsProxy.d.ts +2 -2
  33. package/esm/backend/tigerSpecificFunctionsProxy.js +1 -1
  34. package/esm/backend/user/apiTokens.d.ts +11 -0
  35. package/esm/backend/user/apiTokens.d.ts.map +1 -0
  36. package/esm/backend/user/apiTokens.js +38 -0
  37. package/esm/backend/user/index.d.ts +2 -1
  38. package/esm/backend/user/index.d.ts.map +1 -1
  39. package/esm/backend/user/index.js +4 -0
  40. package/esm/backend/workspace/dataFilters/index.d.ts +2 -1
  41. package/esm/backend/workspace/dataFilters/index.d.ts.map +1 -1
  42. package/esm/backend/workspace/dataFilters/index.js +34 -0
  43. package/esm/backend/workspace/genAI/ChatConversations.d.ts +3 -3
  44. package/esm/backend/workspace/genAI/ChatConversations.d.ts.map +1 -1
  45. package/esm/backend/workspace/genAI/ChatConversations.js +26 -4
  46. package/esm/backend/workspace/index.d.ts +1 -0
  47. package/esm/backend/workspace/index.d.ts.map +1 -1
  48. package/esm/backend/workspace/index.js +4 -1
  49. package/esm/backend/workspaces/index.d.ts +2 -1
  50. package/esm/backend/workspaces/index.d.ts.map +1 -1
  51. package/esm/backend/workspaces/index.js +23 -1
  52. package/esm/convertors/fromBackend/genAIConvertor.d.ts.map +1 -1
  53. package/esm/convertors/fromBackend/genAIConvertor.js +11 -0
  54. package/esm/sdk-backend-tiger.d.ts +40 -2
  55. package/esm/utils/apiProblemDetail.d.ts +3 -0
  56. package/esm/utils/apiProblemDetail.d.ts.map +1 -0
  57. package/esm/utils/apiProblemDetail.js +19 -0
  58. package/package.json +11 -11
@@ -184,12 +184,13 @@ export declare const convertVisualizationContentToInsight: (content: object, met
184
184
  * underlying {@link TigerSpecificFunctions} implementation.
185
185
  *
186
186
  * @internal
187
- * @deprecated Tiger-specific functions are legacy and will be removed.
187
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
188
188
  */
189
189
  export declare function createTigerSpecificFunctionsProxy(initialImplementation?: TigerSpecificFunctions): ITigerSpecificFunctionsProxyResult;
190
190
 
191
191
  /**
192
192
  * @internal
193
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
193
194
  */
194
195
  export declare type DataSourceDefinition = JsonApiDataSourceInDocument;
195
196
 
@@ -212,11 +213,13 @@ export declare const convertVisualizationContentToInsight: (content: object, met
212
213
 
213
214
  /**
214
215
  * @internal
216
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
215
217
  */
216
218
  export declare type DeclarativeAnalyticsModel = DeclarativeAnalytics;
217
219
 
218
220
  /**
219
221
  * @internal
222
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
220
223
  */
221
224
  export declare type DeclarativeLogicalModel = DeclarativeModel;
222
225
 
@@ -224,11 +227,13 @@ export declare const convertVisualizationContentToInsight: (content: object, met
224
227
 
225
228
  /**
226
229
  * @internal
230
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
227
231
  */
228
232
  export declare type DependentEntitiesGraphRequest = DependentEntitiesRequest;
229
233
 
230
234
  /**
231
235
  * @internal
236
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
232
237
  */
233
238
  export declare type DependentEntitiesGraphResponse = DependentEntitiesResponse;
234
239
 
@@ -238,6 +243,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
238
243
 
239
244
  /**
240
245
  * @internal
246
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
241
247
  */
242
248
  export declare type GenerateLogicalModelRequest = GenerateLdmRequest;
243
249
 
@@ -256,6 +262,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
256
262
 
257
263
  /**
258
264
  * @internal
265
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
259
266
  */
260
267
  export declare interface IApiToken {
261
268
  id: string;
@@ -263,6 +270,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
263
270
 
264
271
  /**
265
272
  * @internal
273
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
266
274
  */
267
275
  export declare interface IApiTokenExtended extends IApiToken {
268
276
  bearerToken: string | undefined;
@@ -270,6 +278,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
270
278
 
271
279
  /**
272
280
  * @internal
281
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
273
282
  */
274
283
  export declare interface ICSPDirective {
275
284
  id: string;
@@ -284,6 +293,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
284
293
 
285
294
  /**
286
295
  * @internal
296
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
287
297
  */
288
298
  export declare interface ICustomApplicationSetting {
289
299
  id: string;
@@ -303,6 +313,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
303
313
 
304
314
  /**
305
315
  *@internal
316
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
306
317
  */
307
318
  export declare interface IDataSourceApiResult {
308
319
  data?: IDataSourceConnectionInfo;
@@ -319,16 +330,19 @@ export declare const convertVisualizationContentToInsight: (content: object, met
319
330
  * ISO-8601 duration string that is passed through as-is, parsing and formatting is up to the caller.
320
331
  *
321
332
  * @internal
333
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
322
334
  */
323
335
  export declare type IDataSourceCacheRetention = JsonApiDataSourceInAttributesCacheRetention;
324
336
 
325
337
  /**
326
338
  * @internal
339
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
327
340
  */
328
341
  export declare type IDataSourceCacheStrategy = JsonApiDataSourceInAttributesCacheStrategyEnum;
329
342
 
330
343
  /**
331
344
  * @internal
345
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
332
346
  */
333
347
  export declare interface IDataSourceConnectionInfo {
334
348
  id: string;
@@ -349,11 +363,13 @@ export declare const convertVisualizationContentToInsight: (content: object, met
349
363
 
350
364
  /**
351
365
  * @internal
366
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
352
367
  */
353
368
  export declare type IDataSourceDateTimeSemantics = JsonApiDataSourceInAttributesDateTimeSemanticsEnum;
354
369
 
355
370
  /**
356
371
  * @internal
372
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
357
373
  */
358
374
  export declare interface IDataSourceDeletedResponse {
359
375
  successful?: boolean;
@@ -362,6 +378,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
362
378
 
363
379
  /**
364
380
  * @internal
381
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
365
382
  */
366
383
  export declare interface IDataSourcePatchRequest {
367
384
  id: string;
@@ -389,11 +406,13 @@ export declare const convertVisualizationContentToInsight: (content: object, met
389
406
 
390
407
  /**
391
408
  * @internal
409
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
392
410
  */
393
411
  export declare type IDataSourcePermission = "MANAGE" | "USE";
394
412
 
395
413
  /**
396
414
  * @internal
415
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
397
416
  */
398
417
  export declare interface IDataSourceTestConnectionRequest {
399
418
  password?: string;
@@ -412,6 +431,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
412
431
 
413
432
  /**
414
433
  * @internal
434
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
415
435
  */
416
436
  export declare interface IDataSourceTestConnectionResponse {
417
437
  successful: boolean;
@@ -420,11 +440,13 @@ export declare const convertVisualizationContentToInsight: (content: object, met
420
440
 
421
441
  /**
422
442
  * @internal
443
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
423
444
  */
424
445
  export declare type IDataSourceType = JsonApiDataSourceInAttributesTypeEnum;
425
446
 
426
447
  /**
427
448
  * @internal
449
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
428
450
  */
429
451
  export declare interface IDataSourceUpsertRequest {
430
452
  id: string;
@@ -451,6 +473,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
451
473
 
452
474
  /**
453
475
  * @internal
476
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
454
477
  */
455
478
  export declare interface IEntitlement {
456
479
  id: string;
@@ -460,6 +483,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
460
483
 
461
484
  /**
462
485
  * @internal
486
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
463
487
  */
464
488
  export declare interface IInvitationUserResponse {
465
489
  successful?: boolean;
@@ -476,6 +500,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
476
500
 
477
501
  /**
478
502
  * @internal
503
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
479
504
  */
480
505
  export declare type INotificationChannel = Omit<JsonApiNotificationChannelOut, "type">;
481
506
 
@@ -500,6 +525,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
500
525
 
501
526
  /**
502
527
  * @internal
528
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
503
529
  */
504
530
  export declare interface IScanRequest {
505
531
  scanTables: boolean;
@@ -526,7 +552,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
526
552
  * (`updateImplementation`).
527
553
  *
528
554
  * @internal
529
- * @deprecated Tiger-specific functions are legacy and will be removed.
555
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
530
556
  */
531
557
  export declare interface ITigerSpecificFunctionsProxyResult {
532
558
  /**
@@ -577,11 +603,13 @@ export declare const convertVisualizationContentToInsight: (content: object, met
577
603
 
578
604
  /**
579
605
  * @internal
606
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
580
607
  */
581
608
  export declare type OrganizationPermission = JsonApiOrganizationOutMetaPermissionsEnum;
582
609
 
583
610
  /**
584
611
  * @internal
612
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
585
613
  */
586
614
  export declare type PutWorkspaceLayoutRequest = LayoutApiPutWorkspaceLayoutRequest;
587
615
 
@@ -614,11 +642,13 @@ export declare const convertVisualizationContentToInsight: (content: object, met
614
642
 
615
643
  /**
616
644
  * @internal
645
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
617
646
  */
618
647
  export declare type ScanResult = ScanResultPdm;
619
648
 
620
649
  /**
621
650
  * @internal
651
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
622
652
  */
623
653
  export declare type ScanSqlResult = ScanSqlResponse;
624
654
 
@@ -748,6 +778,7 @@ export declare const convertVisualizationContentToInsight: (content: object, met
748
778
  * Do not use parameters or return values from \@gooddata/api-client-tiger.
749
779
  *
750
780
  * @internal
781
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
751
782
  */
752
783
  export declare type TigerSpecificFunctions = {
753
784
  isCommunityEdition?: () => Promise<boolean>;
@@ -952,36 +983,43 @@ export declare const convertVisualizationContentToInsight: (content: object, met
952
983
 
953
984
  /**
954
985
  * @internal
986
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
955
987
  */
956
988
  export declare type WorkspaceDataFilter = JsonApiWorkspaceDataFilterInDocument;
957
989
 
958
990
  /**
959
991
  * @internal
992
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
960
993
  */
961
994
  export declare type WorkspaceDataFilterResult = JsonApiWorkspaceDataFilterOutDocument;
962
995
 
963
996
  /**
964
997
  * @internal
998
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
965
999
  */
966
1000
  export declare type WorkspaceDataFilterSetting = JsonApiWorkspaceDataFilterSettingInDocument;
967
1001
 
968
1002
  /**
969
1003
  * @internal
1004
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
970
1005
  */
971
1006
  export declare type WorkspaceDataFilterSettingResult = JsonApiWorkspaceDataFilterSettingOutDocument;
972
1007
 
973
1008
  /**
974
1009
  * @internal
1010
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
975
1011
  */
976
1012
  export declare type WorkspaceDataFiltersLayout = DeclarativeWorkspaceDataFilters;
977
1013
 
978
1014
  /**
979
1015
  * @internal
1016
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
980
1017
  */
981
1018
  export declare type WorkspaceDefinition = JsonApiWorkspaceInDocument;
982
1019
 
983
1020
  /**
984
1021
  * @internal
1022
+ * @deprecated Tiger-specific functions are legacy and will be removed in the next major version. Use the services of IAnalyticalBackend instead.
985
1023
  */
986
1024
  export declare type WorkspaceEntitiesDatasets = JsonApiDatasetOutList;
987
1025
 
@@ -0,0 +1,3 @@
1
+ export declare const getApiProblemDetail: (error: unknown) => string | undefined;
2
+ export declare const getDataSourceErrorMessage: (error: unknown) => string;
3
+ //# sourceMappingURL=apiProblemDetail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apiProblemDetail.d.ts","sourceRoot":"","sources":["../../src/utils/apiProblemDetail.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB,UAAW,OAAO,KAAG,MAAM,GAAG,SAK7D,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAAW,OAAO,KAAG,MAS1D,CAAC"}
@@ -0,0 +1,19 @@
1
+ // (C) 2026 GoodData Corporation
2
+ // An API rejection carries the actionable reason in the problem `detail` field, while the
3
+ // surrounding AxiosError message only names the status code. The authenticated call converts
4
+ // the AxiosError to a backend error and keeps the original as its cause.
5
+ export const getApiProblemDetail = (error) => {
6
+ const problemError = error;
7
+ const detail = problemError?.response?.data?.detail ?? problemError?.cause?.response?.data?.detail;
8
+ return typeof detail === "string" && detail.trim() !== "" ? detail : undefined;
9
+ };
10
+ export const getDataSourceErrorMessage = (error) => {
11
+ const detail = getApiProblemDetail(error);
12
+ if (detail !== undefined) {
13
+ return detail;
14
+ }
15
+ if (error instanceof Error) {
16
+ return error.message;
17
+ }
18
+ return String(error);
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-backend-tiger",
3
- "version": "11.64.0-alpha.0",
3
+ "version": "11.64.0-alpha.2",
4
4
  "description": "GoodData Backend SPI implementation for GoodData Cloud and GoodData.CN",
5
5
  "license": "MIT",
6
6
  "author": "GoodData",
@@ -34,12 +34,12 @@
34
34
  "ts-invariant": "0.10.3",
35
35
  "tslib": "2.8.1",
36
36
  "uuid": "11.1.1",
37
- "@gooddata/sdk-backend-base": "11.64.0-alpha.0",
38
- "@gooddata/sdk-backend-spi": "11.64.0-alpha.0",
39
- "@gooddata/sdk-model": "11.64.0-alpha.0",
40
- "@gooddata/sdk-code-convertors": "11.64.0-alpha.0",
41
- "@gooddata/util": "11.64.0-alpha.0",
42
- "@gooddata/api-client-tiger": "11.64.0-alpha.0"
37
+ "@gooddata/api-client-tiger": "11.64.0-alpha.2",
38
+ "@gooddata/sdk-backend-spi": "11.64.0-alpha.2",
39
+ "@gooddata/sdk-backend-base": "11.64.0-alpha.2",
40
+ "@gooddata/sdk-model": "11.64.0-alpha.2",
41
+ "@gooddata/sdk-code-convertors": "11.64.0-alpha.2",
42
+ "@gooddata/util": "11.64.0-alpha.2"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@gooddata/fixtures": "3.7.0",
@@ -64,10 +64,10 @@
64
64
  "oxlint-tsgolint": "7.0.2001",
65
65
  "typescript": "7.0.2",
66
66
  "vitest": "5.0.4",
67
- "@gooddata/catalog-export": "11.64.0-alpha.0",
68
- "@gooddata/eslint-config": "11.64.0-alpha.0",
69
- "@gooddata/oxlint-config": "11.64.0-alpha.0",
70
- "@gooddata/reference-workspace": "11.64.0-alpha.0"
67
+ "@gooddata/catalog-export": "11.64.0-alpha.2",
68
+ "@gooddata/oxlint-config": "11.64.0-alpha.2",
69
+ "@gooddata/eslint-config": "11.64.0-alpha.2",
70
+ "@gooddata/reference-workspace": "11.64.0-alpha.2"
71
71
  },
72
72
  "scripts": {
73
73
  "_phase:build": "npm run build",