import { Injectable } from '@angular/core' ; import { HttpClient } from '@angular/common/http' ; import { IOrganizationCreateInput , ITenantCreateInput , IUserRegistrationInput } from '@gauzy/contracts' ; import { API_PREFIX } from '../constants' ; @ Injectable ( { providedIn : 'root' } ) export class GauzyCloudService { constructor ( private readonly _http ) { } migrateIntoCloud ( payload ) { return this . _http . post ( `${ API_PREFIX }/cloud/migrate` , payload ) ; } migrateTenant ( payload , token ) { return this . _http . post ( `${ API_PREFIX }/cloud/migrate/tenant/${ token }` , { ... payload } ) ; } migrateOrganization ( payload , token ) { return this . _http . post ( `${ API_PREFIX }/cloud/migrate/organization/${ token }` , { ... payload } ) ; } }