hunk.code_window:     }
       return this.notifire;
     }
     async registerProviders(): Promise<any> {
       const providerPromises = [];
       for (let i = 0; i < this.providers.length; i += 1) {
         const waiting = await this.notifire.registerProvider(this.providers[i]);
         providerPromises.push(waiting);
       }
  
hunk.labels: keep keep keep keep replace replace replace replace replace replace keep
hunk.after_edit:   async registerProviders(): Promise<void> {
       for (const provider of this.providers) {
         await this.notifire.registerProvider(provider);
  
hunk.file_path: packages/nest/src/services/notifire.service.ts
hunk.type: replace
file: import axios from 'axios';
  import { API_ROOT } from '../config';
  
  export const api = {
    get(url: string) {
      return axios
        .get(`${API_ROOT}${url}`)
        .then((response) => {
          return response.data?.data;
        })
        .catch((error) => {
          // eslint-disable-next-line promise/no-return-wrap
          return Promise.reject(error?.response?.data || error?.response || error);
        });
    },
    getFullResponse(url: string, params?: { [key: string]: string | string[] | number }) {
      return axios
        .get(`${API_ROOT}${url}`, {
          params,
        })
        .then((response) => response.data)
        .catch((error) => {
          // eslint-disable-next-line promise/no-return-wrap
          return Promise.reject(error?.response?.data || error?.response || error);
        });
    },
    put(url: string, payload) {
      return axios
        .put(`${API_ROOT}${url}`, payload)
        .then((response) => response.data?.data)
        .catch((error) => {
          // eslint-disable-next-line promise/no-return-wrap
          return Promise.reject(error?.response?.data || error?.response || error);
        });
    },
    post(url: string, payload) {
      return axios
        .post(`${API_ROOT}${url}`, payload)
        .then((response) => response.data?.data)
        .catch((error) => {
          // eslint-disable-next-line promise/no-return-wrap
          return Promise.reject(error?.response?.data || error?.response || error);
        });
    },
  };
  