Skip to content

Commit 1fa4d62

Browse files
committed
Merge branch master into angular-18-version-update
2 parents 5232916 + cd89ca7 commit 1fa4d62

30 files changed

+15732
-10891
lines changed

package-lock.json

Lines changed: 15040 additions & 10874 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"@types/node": "^16.11.7",
4040
"eslint": "^8.57.0",
4141
"eslint-plugin-import": "^2.29.1",
42-
"latest": "^0.2.0",
4342
"n": "^9.2.3",
4443
"ng-svg-icon-sprite": "^1.14.0",
4544
"primeicons": "^7.0.0",

src/app/core/models/enum/enum.model.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export enum InAppIntegration {
4242
QBD_DIRECT = 'QuickBooks Connector'
4343
}
4444

45+
export type IntegrationAppKey = keyof typeof InAppIntegration;
46+
4547
export enum ToastSeverity {
4648
SUCCESS = 'success',
4749
ERROR = 'error',
@@ -900,7 +902,8 @@ export enum SizeOption {
900902
export enum ThemeOption {
901903
BRAND = 'brand',
902904
LIGHT = 'light',
903-
DARK = 'dark'
905+
DARK = 'dark',
906+
SUCCESS = 'success'
904907
}
905908

906909
export enum QBDPreRequisiteState {

src/app/core/models/integrations/integrations.model.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
import { AccountingIntegrationApp, AppUrl, ClickEvent, InAppIntegration, IntegrationView } from "../enum/enum.model";
22

3+
export type Integration = {
4+
id: number;
5+
org_id: string;
6+
org_name: string;
7+
tpa_id: string;
8+
tpa_name: string;
9+
type: string;
10+
is_active: boolean;
11+
is_beta: boolean;
12+
}
13+
314
export type IntegrationsView = {
415
[IntegrationView.ACCOUNTING]: boolean,
516
[IntegrationView.ALL]: boolean,

src/app/core/models/qbd/db/qbd-workspace.model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ export interface QBDWorkspace extends Workspace {
55
reimbursable_last_synced_at: Date | null;
66
ccc_last_synced_at: Date | null;
77
onboarding_state: QBDOnboardingState;
8+
migrated_to_qbd_direct: boolean;
89
}

src/app/core/models/qbo/qbo-configuration/qbo-onboarding.model.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ export class QBOOnboardingModel {
7171
this.onboardingSteps[index - 1].completed = true;
7272
}
7373

74-
if (!brandingFeatureConfig.featureFlags.mapEmployees) {
75-
this.onboardingSteps.splice(1, 1);
76-
}
77-
7874
return this.onboardingSteps;
7975
}
8076
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { TestBed } from '@angular/core/testing';
2+
3+
import { IntegrationsService } from './integrations.service';
4+
5+
xdescribe('IntegrationsService', () => {
6+
let service: IntegrationsService;
7+
8+
beforeEach(() => {
9+
TestBed.configureTestingModule({});
10+
service = TestBed.inject(IntegrationsService);
11+
});
12+
13+
it('should be created', () => {
14+
expect(service).toBeTruthy();
15+
});
16+
});
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Injectable } from '@angular/core';
2+
import { AppUrl } from '../../models/enum/enum.model';
3+
import { ApiService } from './api.service';
4+
import { HelperService } from './helper.service';
5+
import { Observable } from 'rxjs';
6+
import { Integration } from '../../models/integrations/integrations.model';
7+
8+
@Injectable({
9+
providedIn: 'root'
10+
})
11+
export class IntegrationsService {
12+
constructor(
13+
private apiService: ApiService,
14+
private helper: HelperService
15+
) {
16+
}
17+
18+
getIntegrations(): Observable<Integration[]> {
19+
this.helper.setBaseApiURL(AppUrl.INTEGRATION);
20+
return this.apiService.get(`/integrations/`, {});
21+
}
22+
}

src/app/integrations/integrations-routing.module.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
33
import { IntegrationsComponent } from './integrations.component';
44
import { LandingComponent } from './landing/landing.component';
5+
import { LandingV2Component } from './landing-v2/landing-v2.component';
56

67
const routes: Routes = [
78
{
@@ -12,6 +13,10 @@ const routes: Routes = [
1213
path: 'landing',
1314
component: LandingComponent
1415
},
16+
{
17+
path: 'landing_v2',
18+
component: LandingV2Component
19+
},
1520
{
1621
path: 'bamboo_hr',
1722
loadChildren: () => import('./bamboo-hr/bamboo-hr.module').then(m => m.BambooHrModule)

src/app/integrations/integrations.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { SharedModule } from '../shared/shared.module';
1010
import { Sage300Component } from './sage300/sage300.component';
1111
import { XeroComponent } from './xero/xero.component';
1212
import { TravelperkComponent } from './travelperk/travelperk.component';
13+
import { LandingV2Component } from './landing-v2/landing-v2.component';
1314

1415
@NgModule({
1516
declarations: [
@@ -18,7 +19,8 @@ import { TravelperkComponent } from './travelperk/travelperk.component';
1819
QbdComponent,
1920
Sage300Component,
2021
XeroComponent,
21-
TravelperkComponent
22+
TravelperkComponent,
23+
LandingV2Component
2224
],
2325
imports: [
2426
CommonModule,

0 commit comments

Comments
 (0)