@sinequa/atomic 0.0.110 → 0.0.113

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 (95) hide show
  1. package/dist/atomic.js +375 -367
  2. package/dist/atomic.umd.cjs +1 -1
  3. package/dist/configurations/global.config.d.ts +0 -1
  4. package/dist/configurations/global.config.d.ts.map +1 -1
  5. package/dist/types/api-endpoints.d.ts +1 -1
  6. package/dist/types/api-endpoints.d.ts.map +1 -1
  7. package/dist/types/config/CCQuery.d.ts +1 -0
  8. package/dist/types/config/CCQuery.d.ts.map +1 -1
  9. package/dist/utils/aggregations.d.ts +7 -0
  10. package/dist/utils/aggregations.d.ts.map +1 -1
  11. package/dist/web-api/helpers/create-headers.d.ts +6 -0
  12. package/dist/web-api/helpers/create-headers.d.ts.map +1 -0
  13. package/dist/web-api/helpers/errors/api-error.d.ts +8 -0
  14. package/dist/web-api/helpers/errors/api-error.d.ts.map +1 -0
  15. package/dist/web-api/helpers/errors/server-error.d.ts +8 -0
  16. package/dist/web-api/helpers/errors/server-error.d.ts.map +1 -0
  17. package/dist/web-api/helpers/errors/timeout-error.d.ts +8 -0
  18. package/dist/web-api/helpers/errors/timeout-error.d.ts.map +1 -0
  19. package/dist/web-api/helpers/errors/unauthorized-error.d.ts +8 -0
  20. package/dist/web-api/helpers/errors/unauthorized-error.d.ts.map +1 -0
  21. package/dist/web-api/helpers/handle-response.d.ts +9 -0
  22. package/dist/web-api/helpers/handle-response.d.ts.map +1 -0
  23. package/dist/web-api/helpers/index.d.ts +15 -0
  24. package/dist/web-api/helpers/index.d.ts.map +1 -0
  25. package/dist/web-api/helpers/methods/del.d.ts +16 -0
  26. package/dist/web-api/helpers/methods/del.d.ts.map +1 -0
  27. package/dist/web-api/helpers/methods/get.d.ts +17 -0
  28. package/dist/web-api/helpers/methods/get.d.ts.map +1 -0
  29. package/dist/web-api/helpers/methods/patch.d.ts +16 -0
  30. package/dist/web-api/helpers/methods/patch.d.ts.map +1 -0
  31. package/dist/web-api/helpers/methods/post.d.ts +18 -0
  32. package/dist/web-api/helpers/methods/post.d.ts.map +1 -0
  33. package/dist/web-api/helpers/methods/put.d.ts +16 -0
  34. package/dist/web-api/helpers/methods/put.d.ts.map +1 -0
  35. package/dist/web-api/helpers/request-options.d.ts +18 -0
  36. package/dist/web-api/helpers/request-options.d.ts.map +1 -0
  37. package/dist/web-api/helpers/tests/helpers.test.d.ts.map +1 -0
  38. package/dist/web-api/helpers/utils/create-timeout-controller.d.ts +10 -0
  39. package/dist/web-api/helpers/utils/create-timeout-controller.d.ts.map +1 -0
  40. package/dist/web-api/helpers/utils/with-retry.d.ts +9 -0
  41. package/dist/web-api/helpers/utils/with-retry.d.ts.map +1 -0
  42. package/dist/web-api/index.d.ts +16 -15
  43. package/dist/web-api/index.d.ts.map +1 -1
  44. package/dist/web-api/{fetch-aggregation.d.ts → v1/fetch-aggregation.d.ts} +1 -1
  45. package/dist/web-api/v1/fetch-aggregation.d.ts.map +1 -0
  46. package/dist/web-api/{fetch-app.d.ts → v1/fetch-app.d.ts} +1 -1
  47. package/dist/web-api/v1/fetch-app.d.ts.map +1 -0
  48. package/dist/web-api/{fetch-audit.d.ts → v1/fetch-audit.d.ts} +1 -1
  49. package/dist/web-api/v1/fetch-audit.d.ts.map +1 -0
  50. package/dist/web-api/{fetch-dataset.d.ts → v1/fetch-dataset.d.ts} +1 -1
  51. package/dist/web-api/v1/fetch-dataset.d.ts.map +1 -0
  52. package/dist/web-api/{fetch-labels.d.ts → v1/fetch-labels.d.ts} +1 -1
  53. package/dist/web-api/v1/fetch-labels.d.ts.map +1 -0
  54. package/dist/web-api/{fetch-preview.d.ts → v1/fetch-preview.d.ts} +1 -1
  55. package/dist/web-api/v1/fetch-preview.d.ts.map +1 -0
  56. package/dist/web-api/{fetch-principal.d.ts → v1/fetch-principal.d.ts} +1 -1
  57. package/dist/web-api/v1/fetch-principal.d.ts.map +1 -0
  58. package/dist/web-api/{fetch-query-export.d.ts → v1/fetch-query-export.d.ts} +2 -2
  59. package/dist/web-api/v1/fetch-query-export.d.ts.map +1 -0
  60. package/dist/web-api/{fetch-query-intent.d.ts → v1/fetch-query-intent.d.ts} +1 -1
  61. package/dist/web-api/v1/fetch-query-intent.d.ts.map +1 -0
  62. package/dist/web-api/{fetch-query.d.ts → v1/fetch-query.d.ts} +1 -1
  63. package/dist/web-api/v1/fetch-query.d.ts.map +1 -0
  64. package/dist/web-api/{fetch-similar-documents.d.ts → v1/fetch-similar-documents.d.ts} +1 -1
  65. package/dist/web-api/v1/fetch-similar-documents.d.ts.map +1 -0
  66. package/dist/web-api/{fetch-sponsored-links.d.ts → v1/fetch-sponsored-links.d.ts} +1 -1
  67. package/dist/web-api/v1/fetch-sponsored-links.d.ts.map +1 -0
  68. package/dist/web-api/{fetch-suggest.d.ts → v1/fetch-suggest.d.ts} +1 -1
  69. package/dist/web-api/v1/fetch-suggest.d.ts.map +1 -0
  70. package/dist/web-api/{fetch-text-chunk.d.ts → v1/fetch-text-chunk.d.ts} +1 -1
  71. package/dist/web-api/v1/fetch-text-chunk.d.ts.map +1 -0
  72. package/dist/web-api/{fetch-user-settings.d.ts → v1/fetch-user-settings.d.ts} +1 -1
  73. package/dist/web-api/v1/fetch-user-settings.d.ts.map +1 -0
  74. package/dist/web-api/v2/fetch-version.d.ts +6 -0
  75. package/dist/web-api/v2/fetch-version.d.ts.map +1 -0
  76. package/package.json +1 -1
  77. package/dist/web-api/fetch-aggregation.d.ts.map +0 -1
  78. package/dist/web-api/fetch-app.d.ts.map +0 -1
  79. package/dist/web-api/fetch-audit.d.ts.map +0 -1
  80. package/dist/web-api/fetch-dataset.d.ts.map +0 -1
  81. package/dist/web-api/fetch-labels.d.ts.map +0 -1
  82. package/dist/web-api/fetch-preview.d.ts.map +0 -1
  83. package/dist/web-api/fetch-principal.d.ts.map +0 -1
  84. package/dist/web-api/fetch-query-export.d.ts.map +0 -1
  85. package/dist/web-api/fetch-query-intent.d.ts.map +0 -1
  86. package/dist/web-api/fetch-query.d.ts.map +0 -1
  87. package/dist/web-api/fetch-similar-documents.d.ts.map +0 -1
  88. package/dist/web-api/fetch-sponsored-links.d.ts.map +0 -1
  89. package/dist/web-api/fetch-suggest.d.ts.map +0 -1
  90. package/dist/web-api/fetch-text-chunk.d.ts.map +0 -1
  91. package/dist/web-api/fetch-user-settings.d.ts.map +0 -1
  92. package/dist/web-api/helpers.d.ts +0 -147
  93. package/dist/web-api/helpers.d.ts.map +0 -1
  94. package/dist/web-api/helpers.test.d.ts.map +0 -1
  95. /package/dist/web-api/{helpers.test.d.ts → helpers/tests/helpers.test.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { AuditEvents, AuditRecord } from "../types";
1
+ import { AuditEvents, AuditRecord } from "../../types";
2
2
  /**
3
3
  * Adds additional audit information to the provided body object.
4
4
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-audit.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-audit.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,WAAW,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAOnF;;;;EAIE;AACF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,EAAE,WAAW,GAAE,OAAc,QAS/E;AA6BD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,WAAW,eASpD;AAGD;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,WAAW,EAAE,WAAW,eAW9C;AAwBF;;;;;;GAMG;AACH,iBAAe,MAAM,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,GAAE,OAAc,GAAG,OAAO,CAAC,WAAW,CAAC,CAS5F;AAED,eAAO,MAAM,KAAK;;CAAa,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Result } from "../types";
1
+ import { Result } from "../../types";
2
2
  export type DatasetError = {
3
3
  errorCode: number;
4
4
  errorMessage: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-dataset.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-dataset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAA;AAED,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,GAAC,YAAY,CAAC,CAAC;AAEhF;;;;;;;;;GASG;AACH,wBAAsB,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,CAYtI;AAED;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE;IAAE,UAAU,CAAC,EAAE,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CAAC,GAAI,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAO7J;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAG5F"}
@@ -1,4 +1,4 @@
1
- import { LabelsRights, Query } from "../types";
1
+ import { LabelsRights, Query } from "../../types";
2
2
  /**
3
3
  * Fetches all existing labels based on the provided prefix and other optional parameters.
4
4
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-labels.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-labels.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,YAAY,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIlE;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,GAAE,OAAc,EAAE,MAAM,CAAC,EAAE,MAAM,qBAgB5F;AAED;;;;;;;;GAQG;AACH,iBAAe,aAAa,0BAa3B;AAED;;;;;;;GAOG;AACH,iBAAe,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,UAAU,GAAE,OAAc,iBAgC7E;AAED;;;;;;;GAOG;AACH,iBAAe,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,UAAU,GAAE,OAAc,iBAgChF;AAED;;;;;;;GAOG;AACH,iBAAe,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,GAAE,OAAc,iBAsBnF;AAED;;;;;;GAMG;AACH,iBAAe,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,UAAU,GAAE,OAAc,iBAoBvE;AAED;;;;;;;GAOG;AACH,iBAAe,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAE,OAAc,iBAsBhF;AAED;;;;;;;GAOG;AACH,iBAAe,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAE,OAAc,iBAsBnF;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM;;;;;;;;CAQlB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { PreviewData, Query } from "../types";
1
+ import { PreviewData, Query } from "../../types";
2
2
  /**
3
3
  * Fetches preview data for a given id and query.
4
4
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-preview.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGjD;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,CAsB7E;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,iBAYhD"}
@@ -1,4 +1,4 @@
1
- import { Principal } from "../types";
1
+ import { Principal } from "../../types";
2
2
  /**
3
3
  * Fetches the principal (current user) information from the backend API.
4
4
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-principal.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-principal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;;;;;;;;GASG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,SAAS,CAAC,CAOzD"}
@@ -1,5 +1,5 @@
1
- import { Article, Query } from "../types";
2
- import { ExportQueryModel } from "../types/export/types";
1
+ import { Article, Query } from "../../types";
2
+ import { ExportQueryModel } from "../../types/export/types";
3
3
  /**
4
4
  * Fetches the export of a query result from the web service.
5
5
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-query-export.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-query-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAK5D;;;;;;;;;GASG;AACH,wBAAsB,gBAAgB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,KAAK,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,CAwB5K"}
@@ -1,4 +1,4 @@
1
- import { Query, QueryIntentMatch } from "../types";
1
+ import { Query, QueryIntentMatch } from "../../types";
2
2
  /**
3
3
  * Fetches query intent based on the query.
4
4
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-query-intent.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-query-intent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAuB,MAAM,aAAa,CAAC;AAG3E;;;;;;;;;GASG;AACH,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAOhF"}
@@ -1,4 +1,4 @@
1
- import { AuditEvents, Query, QueryIntentData, Result, TreeAggregation, TreeAggregationNode } from "../types";
1
+ import { AuditEvents, Query, QueryIntentData, Result, TreeAggregation, TreeAggregationNode } from "../../types";
2
2
  /**
3
3
  * Fetches data from the backend using the specified query.
4
4
  * @param query The query to be sent to the backend.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-query.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-query.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,WAAW,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAKtI;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,WAAW,EAAE,eAAe,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CA0BtH;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,CAAC,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAoDtH;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAAG,mBAAmB,EAAE,WAAW,SAAK,EAAE,YAAY,SAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAG,CAoBvJ"}
@@ -1,4 +1,4 @@
1
- import { Article } from "../types";
1
+ import { Article } from "../../types";
2
2
  /**
3
3
  * Fetches similar documents based on the provided document ID and query name.
4
4
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-similar-documents.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-similar-documents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAGtC;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,WAAW,sBAgBrB"}
@@ -1,4 +1,4 @@
1
- import { LinkResult, Query } from "../types";
1
+ import { LinkResult, Query } from "../../types";
2
2
  /**
3
3
  * Fetches sponsored links based on the provided webservice and query.
4
4
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-sponsored-links.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-sponsored-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgB,KAAK,EAAE,MAAM,aAAa,CAAC;AAG9D;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAQjG"}
@@ -1,4 +1,4 @@
1
- import { Suggestion } from "../types";
1
+ import { Suggestion } from "../../types";
2
2
  /**
3
3
  * Fetches suggestions based on the provided parameters.
4
4
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-suggest.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-suggest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,YAAY,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAkBzK;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iBAAiB,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAYpJ;AAGD;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAa7F"}
@@ -1,4 +1,4 @@
1
- import { Query, TextChunk, TextLocation } from "../types";
1
+ import { Query, TextChunk, TextLocation } from "../../types";
2
2
  /**
3
3
  * Fetches text chunks from a document based on specified parameters.
4
4
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-text-chunk.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-text-chunk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI7D;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CACnC,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,YAAY,EAAE,EAC1B,UAAU,EAAE,MAAM,EAAE,EACpB,KAAK,EAAE,KAAK,EACZ,kBAAkB,EAAE,MAAM,EAC1B,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAA;CAAC,CAAC,CAW7D"}
@@ -1,4 +1,4 @@
1
- import { AuditEvents } from "../types";
1
+ import { AuditEvents } from "../../types";
2
2
  /**
3
3
  * Fetches the user settings from the backend API.
4
4
  * @returns A promise that resolves to the user settings.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-user-settings.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-user-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAQvD;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAU7F;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAYpG;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CAExD"}
@@ -0,0 +1,6 @@
1
+ export type VersionResponse = {
2
+ serverVersion: string;
3
+ features: Record<string, boolean>[];
4
+ };
5
+ export declare function fetchVersion(): Promise<VersionResponse>;
6
+ //# sourceMappingURL=fetch-version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-version.d.ts","sourceRoot":"","sources":["../../../src/web-api/v2/fetch-version.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACrC,CAAA;AAED,wBAAsB,YAAY,6BAGjC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sinequa/atomic",
3
3
  "private": false,
4
- "version": "0.0.110",
4
+ "version": "0.0.113",
5
5
  "type": "module",
6
6
  "main": "./dist/atomic.umd.cjs",
7
7
  "module": "./dist/atomic.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-aggregation.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAU,MAAM,UAAU,CAAC;AAInE;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAoBxH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-app.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGhD;;;GAGG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,KAAK,CAAC,CAK/C;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,aAAa,CAAC,CAQ/D;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,CA2D/C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-audit.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-audit.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,WAAW,EAAkB,WAAW,EAAE,MAAM,UAAU,CAAC;AAOhF;;;;EAIE;AACF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,EAAE,WAAW,GAAE,OAAc,QAS/E;AA6BD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,WAAW,eASpD;AAGD;;;;;GAKG;AACH,wBAAgB,MAAM,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0 @@
1
- {"version":3,"file":"fetch-labels.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-labels.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAI/D;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,GAAE,OAAc,EAAE,MAAM,CAAC,EAAE,MAAM,qBAgB5F;AAED;;;;;;;;GAQG;AACH,iBAAe,aAAa,0BAa3B;AAED;;;;;;;GAOG;AACH,iBAAe,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,UAAU,GAAE,OAAc,iBAgC7E;AAED;;;;;;;GAOG;AACH,iBAAe,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,UAAU,GAAE,OAAc,iBAgChF;AAED;;;;;;;GAOG;AACH,iBAAe,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,GAAE,OAAc,iBAsBnF;AAED;;;;;;GAMG;AACH,iBAAe,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,UAAU,GAAE,OAAc,iBAoBvE;AAED;;;;;;;GAOG;AACH,iBAAe,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAE,OAAc,iBAsBhF;AAED;;;;;;;GAOG;AACH,iBAAe,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAE,OAAc,iBAsBnF;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM;;;;;;;;CAQlB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-preview.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAG9C;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,CAsB7E;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,iBAYhD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-principal.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-principal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC;;;;;;;;;GASG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,SAAS,CAAC,CAOzD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-query-export.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-query-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAKzD;;;;;;;;;GASG;AACH,wBAAsB,gBAAgB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,KAAK,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,CAwB5K"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-query-intent.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-query-intent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAuB,MAAM,UAAU,CAAC;AAGxE;;;;;;;;;GASG;AACH,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAOhF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-query.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-query.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,WAAW,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAKnI;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,WAAW,EAAE,eAAe,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CA0BtH;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,CAAC,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAoDtH;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAAG,mBAAmB,EAAE,WAAW,SAAK,EAAE,YAAY,SAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAG,CAoBvJ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-similar-documents.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-similar-documents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGnC;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,WAAW,sBAgBrB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-sponsored-links.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-sponsored-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgB,KAAK,EAAE,MAAM,UAAU,CAAC;AAG3D;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAQjG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-suggest.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-suggest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,YAAY,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAkBzK;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iBAAiB,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAYpJ;AAGD;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAa7F"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-text-chunk.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-text-chunk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI1D;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CACnC,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,YAAY,EAAE,EAC1B,UAAU,EAAE,MAAM,EAAE,EACpB,KAAK,EAAE,KAAK,EACZ,kBAAkB,EAAE,MAAM,EAC1B,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC;IAAC,MAAM,EAAE,SAAS,EAAE,CAAA;CAAC,CAAC,CAW7D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-user-settings.d.ts","sourceRoot":"","sources":["../../src/web-api/fetch-user-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAKvC;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAQvD;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAU7F;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAYpG;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CAExD"}
@@ -1,147 +0,0 @@
1
- import { API_ENDPOINTS } from "../types";
2
- /**
3
- * Base class for API errors
4
- */
5
- export declare class ApiError extends Error {
6
- status: number;
7
- constructor(message: string, status: number);
8
- }
9
- /**
10
- * Error thrown when authentication fails
11
- */
12
- export declare class UnauthorizedError extends ApiError {
13
- constructor(message?: string);
14
- }
15
- /**
16
- * Error thrown when server encounters an internal error
17
- */
18
- export declare class ServerError extends ApiError {
19
- constructor(message?: string);
20
- }
21
- /**
22
- * Error thrown when request times out
23
- */
24
- export declare class TimeoutError extends ApiError {
25
- constructor(message?: string);
26
- }
27
- /**
28
- * Type définissant les options avancées pour les requêtes HTTP
29
- */
30
- export interface RequestOptions {
31
- /** Headers personnalisés à inclure dans la requête */
32
- headers?: Headers;
33
- /** Type de réponse attendu */
34
- responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
35
- /** Temps maximum d'attente avant expiration de la requête (en ms) */
36
- timeout?: number;
37
- /** Signal pour annuler la requête */
38
- abortSignal?: AbortSignal;
39
- /** Nombre maximum de tentatives en cas d'échec */
40
- maxRetries?: number;
41
- /** Délai entre les tentatives (en ms) */
42
- retryDelay?: number;
43
- }
44
- /**
45
- * Crée un AbortController avec un timeout
46
- * @param timeoutMs - Temps en millisecondes avant expiration
47
- * @returns Un objet contenant le controller et le signal
48
- */
49
- export declare function createTimeoutController(timeoutMs?: number): {
50
- controller: AbortController;
51
- signal: AbortSignal;
52
- };
53
- /**
54
- * Fonction utilitaire pour effectuer des requêtes avec retry
55
- * @param fetchFn - Fonction qui exécute la requête fetch
56
- * @param maxRetries - Nombre maximum de tentatives
57
- * @param retryDelay - Délai entre les tentatives (en ms)
58
- * @returns Résultat de la requête
59
- */
60
- export declare function withRetry<T>(fetchFn: () => Promise<T>, maxRetries?: number, retryDelay?: number): Promise<T>;
61
- /**
62
- * Creates headers for a web API request.
63
- * @returns {Headers} The headers object.
64
- */
65
- export declare function createHeaders(headers?: Headers): Headers;
66
- /**
67
- * Handles the response from the web API.
68
- *
69
- * @param response - The response from the web API.
70
- * @param responseType - The type of response expected ('arraybuffer', 'blob', 'json', or 'text')
71
- * @returns A promise that resolves to the response data of type T.
72
- */
73
- export declare function handleResponse<T>(response: Response, responseType?: 'arraybuffer' | 'blob' | 'json' | 'text'): Promise<T>;
74
- /**
75
- * Makes a POST request to the specified API endpoint.
76
- * `app` and `locale` are added automatically to the request body.
77
- *
78
- * @param endpoint - The API endpoint to send the request to.
79
- * @param body - The request body as a record of key-value pairs.
80
- * @param options - Additional options for the request.
81
- * @param options.headers - Custom headers to include in the request.
82
- * @param options.responseType - The expected type of response data.
83
- * @returns A promise that resolves to the response data of type T.
84
- */
85
- export declare function post<T>(endpoint: API_ENDPOINTS, body: Record<string, unknown>, options?: {
86
- headers?: Headers;
87
- responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
88
- signal?: AbortSignal;
89
- }): Promise<T>;
90
- /**
91
- * Makes a GET request to the specified API endpoint with the given parameters.
92
- *
93
- * @param endpoint - The API endpoint to send the GET request to.
94
- * @param params - The URL parameters to include in the request.
95
- * @param options - Additional options for the request.
96
- * @param options.headers - Custom headers to include in the request.
97
- * @param options.responseType - The expected type of response data.
98
- * @returns A Promise that resolves to the response data of type T.
99
- */
100
- export declare function get<T>(endpoint: API_ENDPOINTS, params?: URLSearchParams, options?: {
101
- headers?: Headers;
102
- responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
103
- signal?: AbortSignal;
104
- }): Promise<T>;
105
- /**
106
- * Makes a PUT request to the specified API endpoint.
107
- *
108
- * @param endpoint - The API endpoint to send the request to.
109
- * @param body - The request body as a record of key-value pairs.
110
- * @param options - Additional options for the request.
111
- * @param options.headers - Custom headers to include in the request.
112
- * @param options.responseType - The expected type of response data.
113
- * @returns A promise that resolves to the response data of type T.
114
- */
115
- export declare function put<T>(endpoint: API_ENDPOINTS, body: Record<string, unknown>, options?: {
116
- headers?: Headers;
117
- responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
118
- }): Promise<T>;
119
- /**
120
- * Makes a DELETE request to the specified API endpoint.
121
- *
122
- * @param endpoint - The API endpoint to send the request to.
123
- * @param params - The URL parameters to include in the request.
124
- * @param options - Additional options for the request.
125
- * @param options.headers - Custom headers to include in the request.
126
- * @param options.responseType - The expected type of response data.
127
- * @returns A promise that resolves to the response data of type T.
128
- */
129
- export declare function del<T>(endpoint: API_ENDPOINTS, params?: URLSearchParams, options?: {
130
- headers?: Headers;
131
- responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
132
- }): Promise<T>;
133
- /**
134
- * Makes a PATCH request to the specified API endpoint.
135
- *
136
- * @param endpoint - The API endpoint to send the request to.
137
- * @param body - The request body as a record of key-value pairs.
138
- * @param options - Additional options for the request.
139
- * @param options.headers - Custom headers to include in the request.
140
- * @param options.responseType - The expected type of response data.
141
- * @returns A promise that resolves to the response data of type T.
142
- */
143
- export declare function patch<T>(endpoint: API_ENDPOINTS, body: Record<string, unknown>, options?: {
144
- headers?: Headers;
145
- responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
146
- }): Promise<T>;
147
- //# sourceMappingURL=helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/web-api/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC;;GAEG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACjC,MAAM,EAAE,MAAM,CAAC;gBAEH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAK5C;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,QAAQ;gBACjC,OAAO,GAAE,MAA8B;CAIpD;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,QAAQ;gBAC3B,OAAO,GAAE,MAAuB;CAI7C;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,QAAQ;gBAC5B,OAAO,GAAE,MAA4B;CAIlD;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8BAA8B;IAC9B,YAAY,CAAC,EAAE,aAAa,GAAC,MAAM,GAAC,MAAM,GAAC,MAAM,CAAC;IAClD,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG;IAAE,UAAU,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,W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