extractia-sdk 1.0.1 → 1.0.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.
@@ -70,6 +70,14 @@ var __yieldStar = (value) => {
70
70
  };
71
71
  var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")]) ? it.call(obj) : (obj = obj[__knownSymbol("iterator")](), it = {}, method = (key, fn) => (fn = obj[key]) && (it[key] = (arg) => new Promise((yes, no, done) => (arg = fn.call(obj, arg), done = arg.done, Promise.resolve(arg.value).then((value) => yes({ value, done }), no)))), method("next"), method("return"), it);
72
72
 
73
+ // src/auth.js
74
+ var auth_exports = {};
75
+ __export(auth_exports, {
76
+ getMyProfile: () => getMyProfile,
77
+ setToken: () => setToken,
78
+ updateWebhook: () => updateWebhook
79
+ });
80
+
73
81
  // node_modules/axios/lib/helpers/bind.js
74
82
  function bind(fn, thisArg) {
75
83
  return function wrap() {
@@ -1560,13 +1568,13 @@ function mergeConfig(config1, config2) {
1560
1568
  // node_modules/axios/lib/helpers/resolveConfig.js
1561
1569
  var resolveConfig_default = (config) => {
1562
1570
  const newConfig = mergeConfig({}, config);
1563
- let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth: auth2 } = newConfig;
1571
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
1564
1572
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
1565
1573
  newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
1566
- if (auth2) {
1574
+ if (auth) {
1567
1575
  headers.set(
1568
1576
  "Authorization",
1569
- "Basic " + btoa((auth2.username || "") + ":" + (auth2.password ? unescape(encodeURIComponent(auth2.password)) : ""))
1577
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
1570
1578
  );
1571
1579
  }
1572
1580
  let contentType;
@@ -2612,6 +2620,16 @@ async function updateWebhook(url) {
2612
2620
  }
2613
2621
 
2614
2622
  // src/templates.js
2623
+ var templates_exports = {};
2624
+ __export(templates_exports, {
2625
+ createTemplate: () => createTemplate,
2626
+ deleteAllTemplateDocuments: () => deleteAllTemplateDocuments,
2627
+ deleteTemplate: () => deleteTemplate,
2628
+ getTemplateById: () => getTemplateById,
2629
+ getTemplateByName: () => getTemplateByName,
2630
+ getTemplates: () => getTemplates,
2631
+ updateTemplate: () => updateTemplate
2632
+ });
2615
2633
  async function getTemplates() {
2616
2634
  const res = await apiClient_default.get("/templates");
2617
2635
  return res.data;
@@ -2644,6 +2662,13 @@ async function deleteAllTemplateDocuments(id) {
2644
2662
  }
2645
2663
 
2646
2664
  // src/documents.js
2665
+ var documents_exports = {};
2666
+ __export(documents_exports, {
2667
+ deleteDocument: () => deleteDocument,
2668
+ getDocumentsByTemplateId: () => getDocumentsByTemplateId,
2669
+ processImage: () => processImage,
2670
+ processImagesMultipage: () => processImagesMultipage
2671
+ });
2647
2672
  async function getDocumentsByTemplateId(templateId, options = {}) {
2648
2673
  var _a, _b, _c;
2649
2674
  const params = {
@@ -2673,7 +2698,7 @@ async function processImagesMultipage(templateId, base64ImagesArray) {
2673
2698
  }
2674
2699
 
2675
2700
  // src/index.js
2676
- var extractia = __spreadValues(__spreadValues(__spreadValues({}, auth), templates), documents);
2701
+ var extractia = __spreadValues(__spreadValues(__spreadValues({}, auth_exports), templates_exports), documents_exports);
2677
2702
  var index_default = extractia;
2678
2703
  export {
2679
2704
  createTemplate,