Skip to content

Commit fb642a5

Browse files
committed
Fixed build
1 parent 577fec9 commit fb642a5

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

src/apis/client.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import {
2222
ConfigMaps,
2323
ConfigServiceSecrets,
2424
constants,
25+
CrudEndpoint,
26+
CustomEndpoint,
2527
CustomService,
2628
EnvironmentVariablesTypes,
2729
ICatalogExample,
@@ -53,7 +55,7 @@ import { PostProject, Template } from './types/governance'
5355

5456
export const DEFAULT_DOCUMENTATION_PATH = '/documentation/json'
5557
const ENABLE_ENVIRONMENT_BASED_CONFIGURATION_MANAGEMENT = 'ENABLE_ENVIRONMENT_BASED_CONFIGURATION_MANAGEMENT'
56-
const { DOCKER_IMAGE_NAME_SUGGESTION_TYPES, ServiceTypes } = constants
58+
const { DOCKER_IMAGE_NAME_SUGGESTION_TYPES, ServiceTypes, EndpointTypes, Verbs } = constants
5759

5860
interface AISettings {
5961
enableAgenticFeatures?: boolean
@@ -486,7 +488,7 @@ export class APIClient implements IAPIClient {
486488
routes: {
487489
'GET/': {
488490
id: 'GET/',
489-
verb: 'GET',
491+
verb: Verbs.METHOD_GET,
490492
path: '/',
491493
public: { inherited: true },
492494
secreted: { inherited: true },
@@ -501,7 +503,7 @@ export class APIClient implements IAPIClient {
501503
},
502504
'POST/': {
503505
id: 'POST/',
504-
verb: 'POST',
506+
verb: Verbs.METHOD_POST,
505507
path: '/',
506508
public: { inherited: true },
507509
secreted: { inherited: true },
@@ -516,7 +518,7 @@ export class APIClient implements IAPIClient {
516518
},
517519
'GET/export': {
518520
id: 'GET/export',
519-
verb: 'GET',
521+
verb: Verbs.METHOD_GET,
520522
path: '/export',
521523
public: { inherited: true },
522524
secreted: { inherited: true },
@@ -531,7 +533,7 @@ export class APIClient implements IAPIClient {
531533
},
532534
'GET/:id': {
533535
id: 'GET/:id',
534-
verb: 'GET',
536+
verb: Verbs.METHOD_GET,
535537
path: '/:id',
536538
public: { inherited: true },
537539
secreted: { inherited: true },
@@ -546,7 +548,7 @@ export class APIClient implements IAPIClient {
546548
},
547549
'DELETE/:id': {
548550
id: 'DELETE/:id',
549-
verb: 'DELETE',
551+
verb: Verbs.METHOD_DELETE,
550552
path: '/:id',
551553
public: { inherited: true },
552554
secreted: { inherited: true },
@@ -561,7 +563,7 @@ export class APIClient implements IAPIClient {
561563
},
562564
'DELETE/': {
563565
id: 'DELETE/',
564-
verb: 'DELETE',
566+
verb: Verbs.METHOD_DELETE,
565567
path: '/',
566568
public: { inherited: true },
567569
secreted: { inherited: true },
@@ -576,7 +578,7 @@ export class APIClient implements IAPIClient {
576578
},
577579
'PATCH/:id': {
578580
id: 'PATCH/:id',
579-
verb: 'PATCH',
581+
verb: Verbs.METHOD_PATCH,
580582
path: '/:id',
581583
public: { inherited: true },
582584
secreted: { inherited: true },
@@ -591,7 +593,7 @@ export class APIClient implements IAPIClient {
591593
},
592594
'PATCH/': {
593595
id: 'PATCH/',
594-
verb: 'PATCH',
596+
verb: Verbs.METHOD_PATCH,
595597
path: '/',
596598
public: { inherited: true },
597599
secreted: { inherited: true },
@@ -606,7 +608,7 @@ export class APIClient implements IAPIClient {
606608
},
607609
'GET/count': {
608610
id: 'GET/count',
609-
verb: 'GET',
611+
verb: Verbs.METHOD_GET,
610612
path: '/count',
611613
public: { inherited: true },
612614
secreted: { inherited: true },
@@ -621,7 +623,7 @@ export class APIClient implements IAPIClient {
621623
},
622624
'POST/bulk': {
623625
id: 'POST/bulk',
624-
verb: 'POST',
626+
verb: Verbs.METHOD_POST,
625627
path: '/bulk',
626628
public: { inherited: true },
627629
secreted: { inherited: true },
@@ -636,7 +638,7 @@ export class APIClient implements IAPIClient {
636638
},
637639
'POST/upsert-one': {
638640
id: 'POST/upsert-one',
639-
verb: 'POST',
641+
verb: Verbs.METHOD_POST,
640642
path: '/upsert-one',
641643
public: { inherited: true },
642644
secreted: { inherited: true },
@@ -651,7 +653,7 @@ export class APIClient implements IAPIClient {
651653
},
652654
'PATCH/bulk': {
653655
id: 'PATCH/bulk',
654-
verb: 'PATCH',
656+
verb: Verbs.METHOD_PATCH,
655657
path: '/bulk',
656658
public: { inherited: true },
657659
secreted: { inherited: true },
@@ -666,7 +668,7 @@ export class APIClient implements IAPIClient {
666668
},
667669
'POST/:id/state': {
668670
id: 'POST/:id/state',
669-
verb: 'POST',
671+
verb: Verbs.METHOD_POST,
670672
path: '/:id/state',
671673
public: { inherited: true },
672674
secreted: { inherited: true },
@@ -681,7 +683,7 @@ export class APIClient implements IAPIClient {
681683
},
682684
'POST/state': {
683685
id: 'POST/state',
684-
verb: 'POST',
686+
verb: Verbs.METHOD_POST,
685687
path: '/state',
686688
public: { inherited: true },
687689
secreted: { inherited: true },

0 commit comments

Comments
 (0)