@evercam/api 1.0.0-4ba690d00 → 1.0.0-4f4878a3e

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.
@@ -1,4 +1,4 @@
1
- import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, EventsRequestPayload, EventsResponsePayload, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, AnalyticsParameters, VerifiedDaysQueryParams, EventUpdateRequestPayload, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, GateReportEventType, DateTime, RoisQueryParams, GateReportROICreateRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, CountsParams, DetectionsPresenceByLabel, SmartSearchQueryParams, SavedQuery, DateType } from "@evercam/api/types";
1
+ import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, EventsRequestPayload, EventsResponsePayload, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, AnalyticsParameters, VerifiedDaysQueryParams, EventUpdateRequestPayload, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, GateReportEventType, DateTime, RoisQueryParams, GateReportROICreateRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsPresenceByLabel, SmartSearchQueryParams, SavedQuery, DateType, SegmentsFilters, DetectionsCountsParams } from "@evercam/api/types";
2
2
  import type { AxiosPromise, AxiosRequestConfig } from "axios";
3
3
  import { CreateCoolifyAppRequestPayload, SaveCoolifyAppRequestPayload } from "@/types/coolify";
4
4
  export declare const getAiApiUrl: () => string | null | undefined;
@@ -75,9 +75,9 @@ export declare const AiApi: {
75
75
  };
76
76
  detections: {
77
77
  getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
78
- getDetectionsTracking(cameraExid: CameraExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
79
- getSegmentsMasks(cameraExid: CameraExid, params: DetectionsFilters): Promise<SegmentsByLabel>;
80
- getDetectionsPresenceDateIntervals({ cameraExid, ...params }: CountsParams): Promise<DetectionsPresenceByLabel>;
78
+ getDetectionsTracking(projectExid: ProjectExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
79
+ getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<SegmentsByLabel>;
80
+ getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
81
81
  };
82
82
  siteAnalytics: {
83
83
  smartSearch({ cameraExid, payload, fromDate, toDate, page, pageSize, }: {
@@ -1,4 +1,4 @@
1
- import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, CountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel } from "@evercam/api/types";
1
+ import type { CameraExid, CopilotConversation, CopilotMessage, CopilotMessageStep, SegmentsCountsParams, FeedbackPayload, GrafanaKitMetrics, LabsPaginationParams, LuminanceReading, PaginatedItems, SegmentsPresenceByLabel } from "@evercam/api/types";
2
2
  import { GrafanaMetricId, KitMetricPeriod } from "@evercam/api/types";
3
3
  export declare function getLabsBaseUrl(): string | null | undefined;
4
4
  export declare const EvercamLabsApi: {
@@ -18,7 +18,7 @@ export declare const EvercamLabsApi: {
18
18
  submitMessageFeedback<T>({ conversationId, messageId, ...params }: FeedbackPayload<T>): Promise<import("axios").AxiosResponse<any, any>>;
19
19
  };
20
20
  detections: {
21
- getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: CountsParams): Promise<SegmentsPresenceByLabel>;
21
+ getSegmentsDateIntervals({ cameraExid, fromDate, toDate, precision, }: SegmentsCountsParams): Promise<SegmentsPresenceByLabel>;
22
22
  };
23
23
  googleCloudStorage: {
24
24
  listFiles(prefix?: string): Promise<{
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ const Xa = 10, Ja = async () => {
34
34
  _--;
35
35
  }, 1e3);
36
36
  }, Qa = async (e, r) => (e != null && e.raw || (e != null && e.timing && (e._metadata = { startTime: performance.now() }), await Ja(), Aa(e, r), Ka(e, r), r.app === "dashboard" && typeof document.referrer == "string" && document.referrer.length !== 0 && (e.headers.common["iframe-origin"] = new URL(document.referrer).origin), e.preserveCasing || Ea(e)), e), Ya = (e) => {
37
- var s, i, o, g, l;
37
+ var s, i, o, g, n;
38
38
  if ((s = e == null ? void 0 : e.config) != null && s.raw)
39
39
  return e;
40
40
  if ("data" in e) {
@@ -42,7 +42,7 @@ const Xa = 10, Ja = async () => {
42
42
  return e.data;
43
43
  } else return e;
44
44
  const r = (i = e == null ? void 0 : e.config) != null && i.preserveCasing ? e.data : S.camelizeKeys(e.data);
45
- if ((o = e == null ? void 0 : e.config) != null && o.timing && ((l = (g = e == null ? void 0 : e.config) == null ? void 0 : g._metadata) != null && l.startTime)) {
45
+ if ((o = e == null ? void 0 : e.config) != null && o.timing && ((n = (g = e == null ? void 0 : e.config) == null ? void 0 : g._metadata) != null && n.startTime)) {
46
46
  const m = performance.now() - e.config._metadata.startTime;
47
47
  return {
48
48
  ...e,
@@ -58,42 +58,42 @@ const Xa = 10, Ja = async () => {
58
58
  return { error: e, duration: G };
59
59
  }
60
60
  const s = e.response ? e.response.status : null, i = (((d = e.config) == null ? void 0 : d.method) || "").toUpperCase(), o = (U = e.config) == null ? void 0 : U.url, g = ((B = (D = e == null ? void 0 : e.response) == null ? void 0 : D.data) == null ? void 0 : B.code) || "";
61
- let l = {}, m = e.message;
61
+ let n = {}, m = e.message;
62
62
  switch (o && i && s && (m = `${i} ${o} (${s}) ${g}`.trim()), s) {
63
63
  case 400:
64
- l = new va(new Error(m));
64
+ n = new va(new Error(m));
65
65
  break;
66
66
  case 401:
67
- l = new Ga(new Error(m));
67
+ n = new Ga(new Error(m));
68
68
  break;
69
69
  case 403:
70
- l = new La(new Error(m));
70
+ n = new La(new Error(m));
71
71
  break;
72
72
  case 404:
73
- l = new za(new Error(m));
73
+ n = new za(new Error(m));
74
74
  break;
75
75
  case 409:
76
- l = new Za(new Error(m));
76
+ n = new Za(new Error(m));
77
77
  break;
78
78
  case 500:
79
- l = new qa(new Error(m));
79
+ n = new qa(new Error(m));
80
80
  break;
81
81
  case 502:
82
- l = new Fa(new Error(m));
82
+ n = new Fa(new Error(m));
83
83
  break;
84
84
  case 504:
85
- l = new Wa(new Error(m));
85
+ n = new Wa(new Error(m));
86
86
  break;
87
87
  case null:
88
88
  // null case
89
89
  case 0:
90
- l = new Error(
90
+ n = new Error(
91
91
  "A network error occurred. This could be a CORS issue, a cancel request or a dropped internet connection."
92
92
  );
93
93
  break;
94
94
  }
95
95
  if (h.isCancel(e) || s === 404)
96
- return Promise.reject(l);
96
+ return Promise.reject(n);
97
97
  console.warn("[@evercam/api/axios.ts]: Caught error:", e);
98
98
  const M = r.errorLogger;
99
99
  return o && M && M({
@@ -103,7 +103,7 @@ const Xa = 10, Ja = async () => {
103
103
  url: `Error in URL: ${o}`,
104
104
  status: s
105
105
  }
106
- }), Promise.reject(l);
106
+ }), Promise.reject(n);
107
107
  }, v = (e) => {
108
108
  e.headers || (e.headers = {}), e.headers.common || (e.headers.common = {});
109
109
  };
@@ -125,8 +125,8 @@ function Ea(e) {
125
125
  {}
126
126
  ) || {}, delete s.ignoreCasingFromParams), Array.isArray(s) ? s = S.decamelizeKeys(s) : s = { ...S.decamelizeKeys(s), ...r }), s && s instanceof FormData) {
127
127
  let o = new FormData();
128
- for (const [g, l] of s.entries())
129
- o.append(S.decamelize(g), l);
128
+ for (const [g, n] of s.entries())
129
+ o.append(S.decamelize(g), n);
130
130
  s = o;
131
131
  }
132
132
  i && !(i instanceof Blob) && (i = S.decamelizeKeys(i)), e.data = s, e.params = i;
@@ -649,7 +649,7 @@ const Ia = {
649
649
  `${a.env.firebaseVideowallUrl}/${g}/presets/${r}/${o}.json`,
650
650
  i,
651
651
  {
652
- transformRequest: (l, m) => (delete m.common.Authorization, l)
652
+ transformRequest: (n, m) => (delete m.common.Authorization, n)
653
653
  }
654
654
  );
655
655
  },
@@ -688,17 +688,17 @@ const Ia = {
688
688
  ).then((r) => r.json());
689
689
  }
690
690
  }
691
- }, n = (e = {}, { forceSnakeCase: r = !0, forceArrayBrackets: s = !1 } = {}) => {
691
+ }, l = (e = {}, { forceSnakeCase: r = !0, forceArrayBrackets: s = !1 } = {}) => {
692
692
  if (Object.keys(e).length === 0)
693
693
  return;
694
694
  let i = { ...e };
695
- return r && (i = S.decamelizeKeys(e)), Object.entries(i).reduce((o, [g, l], m) => {
695
+ return r && (i = S.decamelizeKeys(e)), Object.entries(i).reduce((o, [g, n], m) => {
696
696
  let k = "";
697
- return ["", null, void 0].includes(l) || Array.isArray(l) && l.length === 0 ? o : (l && typeof l == "object" ? k = Object.entries(l).reduce((M, [$, P], f) => {
697
+ return ["", null, void 0].includes(n) || Array.isArray(n) && n.length === 0 ? o : (n && typeof n == "object" ? k = Object.entries(n).reduce((M, [$, P], f) => {
698
698
  let d = g;
699
- return isNaN(Number.parseInt($)) ? d = `${g}[${$}]` : Array.isArray(l) && s && (d = `${g}[]`), `${M}${f > 0 ? "&" : ""}${d}=${encodeURIComponent(P)}`;
699
+ return isNaN(Number.parseInt($)) ? d = `${g}[${$}]` : Array.isArray(n) && s && (d = `${g}[]`), `${M}${f > 0 ? "&" : ""}${d}=${encodeURIComponent(P)}`;
700
700
  }, "") : k = `${g}=${encodeURIComponent(
701
- l
701
+ n
702
702
  )}`, `${o}${m > 0 ? "&" : ""}${k}`);
703
703
  }, "");
704
704
  };
@@ -731,7 +731,7 @@ const t = () => a.env.aiApiUrl, ns = {
731
731
  ...s
732
732
  }) {
733
733
  return a.patch(
734
- `${t()}/cameras/analytics-parameters/${r}?${n({
734
+ `${t()}/cameras/analytics-parameters/${r}?${l({
735
735
  updatedBy: e
736
736
  })}`,
737
737
  s
@@ -741,7 +741,7 @@ const t = () => a.env.aiApiUrl, ns = {
741
741
  anpr: {
742
742
  exportAnprLegacyEvents(e, r) {
743
743
  return a({
744
- url: `${t()}/projects/${e}/anpr/export?${n(
744
+ url: `${t()}/projects/${e}/anpr/export?${l(
745
745
  r
746
746
  )}`,
747
747
  method: "GET",
@@ -750,12 +750,12 @@ const t = () => a.env.aiApiUrl, ns = {
750
750
  },
751
751
  getAnprEvents(e, r) {
752
752
  return a.get(
753
- `${t()}/projects/${e}/anpr?${n(r)}`
753
+ `${t()}/projects/${e}/anpr?${l(r)}`
754
754
  );
755
755
  },
756
756
  getAnprCounts(e, r) {
757
757
  return a.get(
758
- `${t()}/projects/${e}/anpr/counts?${n(
758
+ `${t()}/projects/${e}/anpr/counts?${l(
759
759
  r
760
760
  )}`
761
761
  );
@@ -767,7 +767,7 @@ const t = () => a.env.aiApiUrl, ns = {
767
767
  },
768
768
  bulkUpdateAnprRecords(e, r) {
769
769
  return a.patch(
770
- `${t()}/projects/anpr/update/status?${n({
770
+ `${t()}/projects/anpr/update/status?${l({
771
771
  anprEventsIds: e,
772
772
  action: r
773
773
  })}`
@@ -775,7 +775,7 @@ const t = () => a.env.aiApiUrl, ns = {
775
775
  },
776
776
  exportAnprEvents(e, r) {
777
777
  return a({
778
- url: `${t()}/projects/${e}/anpr/events/export?${n(
778
+ url: `${t()}/projects/${e}/anpr/events/export?${l(
779
779
  r
780
780
  )}`,
781
781
  method: "GET",
@@ -798,17 +798,17 @@ const t = () => a.env.aiApiUrl, ns = {
798
798
  },
799
799
  deleteEvent(e, r) {
800
800
  return a.delete(
801
- `${t()}/projects/events/${e}?${n(r)}`
801
+ `${t()}/projects/events/${e}?${l(r)}`
802
802
  );
803
803
  },
804
804
  dismissEvents(e) {
805
805
  return a.delete(
806
- `${t()}/projects/events?${n(e)}`
806
+ `${t()}/projects/events?${l(e)}`
807
807
  );
808
808
  },
809
809
  exportEvents(e, r) {
810
810
  return a({
811
- url: `${t()}/projects/${e}/gate-report/events/export?${n(
811
+ url: `${t()}/projects/${e}/gate-report/events/export?${l(
812
812
  r
813
813
  )}`,
814
814
  method: "GET",
@@ -817,14 +817,14 @@ const t = () => a.env.aiApiUrl, ns = {
817
817
  },
818
818
  exportEventsProgress(e, r) {
819
819
  return a.get(
820
- `${t()}/projects/${e}/gate-report/events/export/progress?${n(
820
+ `${t()}/projects/${e}/gate-report/events/export/progress?${l(
821
821
  r
822
822
  )}`
823
823
  );
824
824
  },
825
825
  getAllEvents(e, r, s) {
826
826
  return r.vehicleTypes || (r.vehicleTypes = R), r.truckTypes || (r.vehicleTypes = R), r.camerasExid || (r.camerasExid = r.cameras), a.get(
827
- `${t()}/projects/${e}/events?${n(
827
+ `${t()}/projects/${e}/events?${l(
828
828
  r
829
829
  )}`,
830
830
  s
@@ -832,7 +832,7 @@ const t = () => a.env.aiApiUrl, ns = {
832
832
  },
833
833
  getEventCounts(e, r = {}, s) {
834
834
  return r.vehicleTypes || (r.vehicleTypes = R), a.get(
835
- `${t()}/projects/${e}/project-stats?${n(
835
+ `${t()}/projects/${e}/project-stats?${l(
836
836
  r
837
837
  )}`,
838
838
  {
@@ -842,7 +842,7 @@ const t = () => a.env.aiApiUrl, ns = {
842
842
  },
843
843
  getVerifiedDays(e, r, s = {}) {
844
844
  return a.get(
845
- `${t()}/projects/${e}/gate-report/verified-days?${n(
845
+ `${t()}/projects/${e}/gate-report/verified-days?${l(
846
846
  r
847
847
  )}`,
848
848
  s
@@ -853,7 +853,7 @@ const t = () => a.env.aiApiUrl, ns = {
853
853
  payload: s
854
854
  }) {
855
855
  return a.patch(
856
- `${t()}/projects/events/${e}?${n({
856
+ `${t()}/projects/events/${e}?${l({
857
857
  updatedBy: r
858
858
  })}`,
859
859
  s
@@ -867,7 +867,7 @@ const t = () => a.env.aiApiUrl, ns = {
867
867
  },
868
868
  regenerateThumbnail(e, r) {
869
869
  return a.put(
870
- `${t()}/projects/gate-report/event-thumbnail/render/${e}?${n(
870
+ `${t()}/projects/gate-report/event-thumbnail/render/${e}?${l(
871
871
  r
872
872
  )}`,
873
873
  {
@@ -899,7 +899,7 @@ const t = () => a.env.aiApiUrl, ns = {
899
899
  },
900
900
  getEvents(e, r, s = {}) {
901
901
  return a.get(
902
- `${t()}/projects/${e}/gate-report/events?${n(
902
+ `${t()}/projects/${e}/gate-report/events?${l(
903
903
  r
904
904
  )}`,
905
905
  s
@@ -907,7 +907,7 @@ const t = () => a.env.aiApiUrl, ns = {
907
907
  },
908
908
  getCounts(e, r = {}, s = {}) {
909
909
  return a.get(
910
- `${t()}/projects/${e}/gate-report/counts?${n(
910
+ `${t()}/projects/${e}/gate-report/counts?${l(
911
911
  r
912
912
  )}`,
913
913
  s
@@ -942,7 +942,7 @@ const t = () => a.env.aiApiUrl, ns = {
942
942
  roi: {
943
943
  getROIs(e, r = {}) {
944
944
  return a.get(
945
- `${t()}/projects/${e}/rois?${n(r)}`
945
+ `${t()}/projects/${e}/rois?${l(r)}`
946
946
  );
947
947
  },
948
948
  createROI(e) {
@@ -953,7 +953,7 @@ const t = () => a.env.aiApiUrl, ns = {
953
953
  roi: r
954
954
  }) {
955
955
  return a.patch(
956
- `${t()}/projects/rois/${r.id}?${n({
956
+ `${t()}/projects/rois/${r.id}?${l({
957
957
  updatedBy: e
958
958
  })}`,
959
959
  r
@@ -961,7 +961,7 @@ const t = () => a.env.aiApiUrl, ns = {
961
961
  },
962
962
  deleteROI({ id: e, updatedBy: r }) {
963
963
  return a.patch(
964
- `${t()}/projects/rois/${e}?${n({
964
+ `${t()}/projects/rois/${e}?${l({
965
965
  updatedBy: r
966
966
  })}`,
967
967
  { isactive: !1, note: "delete roi" }
@@ -987,10 +987,9 @@ const t = () => a.env.aiApiUrl, ns = {
987
987
  },
988
988
  async getDetectionsTracking(e, r) {
989
989
  return a.get(
990
- `${t()}/cameras/${e}/detections/trackings`,
991
- {
992
- params: r
993
- }
990
+ `${t()}/projects/${e}/detections/trackings?${l(
991
+ r
992
+ )}`
994
993
  );
995
994
  },
996
995
  async getSegmentsMasks(e, r) {
@@ -1002,14 +1001,13 @@ const t = () => a.env.aiApiUrl, ns = {
1002
1001
  );
1003
1002
  },
1004
1003
  async getDetectionsPresenceDateIntervals({
1005
- cameraExid: e,
1004
+ projectExid: e,
1006
1005
  ...r
1007
1006
  }) {
1008
1007
  return a.get(
1009
- `${t()}/cameras/${e}/detections/presence-intervals`,
1010
- {
1011
- params: r
1012
- }
1008
+ `${t()}/projects/${e}/detections/presence-intervals?${l(
1009
+ r
1010
+ )}`
1013
1011
  );
1014
1012
  }
1015
1013
  },
@@ -1022,8 +1020,8 @@ const t = () => a.env.aiApiUrl, ns = {
1022
1020
  page: o = 1,
1023
1021
  pageSize: g = 20
1024
1022
  }) {
1025
- let l = `${t()}/cameras/${e}/advanced_search?page=${o}&page_size=${g}`;
1026
- return s && i && (l += `&from_date=${s}&to_date=${i}`), a.post(l, r);
1023
+ let n = `${t()}/cameras/${e}/advanced_search?page=${o}&page_size=${g}`;
1024
+ return s && i && (n += `&from_date=${s}&to_date=${i}`), a.post(n, r);
1027
1025
  },
1028
1026
  saveQuery(e) {
1029
1027
  return a.post(
@@ -1075,7 +1073,7 @@ const t = () => a.env.aiApiUrl, ns = {
1075
1073
  },
1076
1074
  createAppOnCoolify(e) {
1077
1075
  return a.post(
1078
- `${t()}/projects/cameras/${e.cameraExid}/anpr/create_app?${n(e)}`
1076
+ `${t()}/projects/cameras/${e.cameraExid}/anpr/create_app?${l(e)}`
1079
1077
  );
1080
1078
  },
1081
1079
  saveAppOnCoolify(e, r, s) {
@@ -1318,7 +1316,7 @@ const ps = {
1318
1316
  return a.post(`/auth/impersonate/${e}`);
1319
1317
  },
1320
1318
  login(e) {
1321
- return a.post("/auth/login", n(e));
1319
+ return a.post("/auth/login", l(e));
1322
1320
  },
1323
1321
  loginWithApiCredentials(e, r) {
1324
1322
  return a.post(`/auth/login?api_id=${e}&api_key=${r}`);
@@ -1425,7 +1423,7 @@ const ps = {
1425
1423
  return a.get("/cameras", e);
1426
1424
  },
1427
1425
  getCameraById(e, r) {
1428
- return a.get(`/cameras/${e}?${n(r)}`);
1426
+ return a.get(`/cameras/${e}?${l(r)}`);
1429
1427
  },
1430
1428
  getCameraLastPublicNote(e) {
1431
1429
  return a.get(`/cameras/${e}/last-public-note`);
@@ -1452,7 +1450,7 @@ const ps = {
1452
1450
  },
1453
1451
  projects: {
1454
1452
  index(e) {
1455
- return a.get(`/projects?${n(e)}`);
1453
+ return a.get(`/projects?${l(e)}`);
1456
1454
  },
1457
1455
  getLogos(e) {
1458
1456
  return a.get(`/projects/${e}/logos`);
@@ -1469,7 +1467,7 @@ const ps = {
1469
1467
  updateLogo(e, r, s) {
1470
1468
  return a.patch(
1471
1469
  `/projects/${e}/logos/${r}`,
1472
- n({ name: s })
1470
+ l({ name: s })
1473
1471
  );
1474
1472
  },
1475
1473
  updateThumbnail(e, r) {
@@ -1782,19 +1780,19 @@ const ps = {
1782
1780
  },
1783
1781
  unsubscribe(e, r) {
1784
1782
  return a.patch(
1785
- `/progress-photos/${e}/unsubscribe?${n(
1783
+ `/progress-photos/${e}/unsubscribe?${l(
1786
1784
  r
1787
1785
  )}`
1788
1786
  );
1789
1787
  },
1790
1788
  delete(e, r) {
1791
- return a.delete(`/progress-photos/${e}?${n(r)}`);
1789
+ return a.delete(`/progress-photos/${e}?${l(r)}`);
1792
1790
  }
1793
1791
  },
1794
1792
  mediaHub: {
1795
1793
  getAllMedia(e, r) {
1796
1794
  return a.get(
1797
- `projects/${e}/media-hub?${n(r, {
1795
+ `projects/${e}/media-hub?${l(r, {
1798
1796
  forceArrayBrackets: !0
1799
1797
  })}`
1800
1798
  );
@@ -1932,7 +1930,7 @@ const ps = {
1932
1930
  },
1933
1931
  archiveOrUnarchiveComment(e, r, s) {
1934
1932
  return a.patch(
1935
- `/projects/${e}/comments/${r}?${n({ archive: s })}`
1933
+ `/projects/${e}/comments/${r}?${l({ archive: s })}`
1936
1934
  );
1937
1935
  },
1938
1936
  deleteComment(e, r) {
@@ -1951,7 +1949,7 @@ const ps = {
1951
1949
  },
1952
1950
  widgets: {
1953
1951
  index(e) {
1954
- return a.get(`/widgets?${n(e)}`);
1952
+ return a.get(`/widgets?${l(e)}`);
1955
1953
  },
1956
1954
  show(e) {
1957
1955
  return a.get(`/widgets/${e}`);
@@ -2581,6 +2579,6 @@ export {
2581
2579
  Qa as onRequest,
2582
2580
  Ya as onResponse,
2583
2581
  ya as queryStringToObject,
2584
- n as toQueryString
2582
+ l as toQueryString
2585
2583
  };
2586
2584
  //# sourceMappingURL=index.js.map