@xemahq/project-registry-api-client 0.1.3 → 0.1.4
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.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Project workspace, repository links, integrations and settings
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { BootstrapAnalyzeDto, BootstrapDecisionDtoDataEnvelope, BootstrapProjectDto, CreateProjectDto, PreferredImageVariantResponseDtoDataEnvelope, ProjectRegistryControllerListProjectsParams, ProjectResponseDtoDataEnvelope, ProjectSummaryResponseDtoDataArrayEnvelope, SetPreferredImageVariantDto,
|
|
8
|
+
import type { BootstrapAnalyzeDto, BootstrapDecisionDtoDataEnvelope, BootstrapProjectDto, CreateProjectDto, PreferredImageVariantResponseDtoDataEnvelope, ProjectRegistryControllerListProjectsParams, ProjectResponseDtoDataEnvelope, ProjectSummaryResponseDtoDataArrayEnvelope, SetPreferredImageVariantDto, UpdateProjectConnectionDto, UpdateProjectDto, UpdateProjectSettingsDto } from '../../models';
|
|
9
9
|
export declare const getProjectRegistryControllerCreateProjectUrl: () => string;
|
|
10
10
|
/**
|
|
11
11
|
* @summary Create project workspace and optional repository link
|
|
@@ -41,11 +41,11 @@ export declare const getProjectRegistryControllerGetTypedSettingsUrl: (projectId
|
|
|
41
41
|
* @summary Get typed project settings with defaults applied (service-to-service)
|
|
42
42
|
*/
|
|
43
43
|
export declare const projectRegistryControllerGetTypedSettings: (projectId: string, options?: RequestInit) => Promise<unknown>;
|
|
44
|
-
export declare const
|
|
44
|
+
export declare const getProjectRegistryControllerUpdateConnectionUrl: (projectId: string, type: string) => string;
|
|
45
45
|
/**
|
|
46
|
-
* @summary Enable, disable, or update project
|
|
46
|
+
* @summary Enable, disable, or update project connection configuration
|
|
47
47
|
*/
|
|
48
|
-
export declare const
|
|
48
|
+
export declare const projectRegistryControllerUpdateConnection: (projectId: string, type: string, updateProjectConnectionDto: UpdateProjectConnectionDto, options?: RequestInit) => Promise<ProjectResponseDtoDataEnvelope>;
|
|
49
49
|
export declare const getProjectRegistryControllerGetPreferredImageVariantUrl: (projectId: string) => string;
|
|
50
50
|
/**
|
|
51
51
|
* @summary Get the preferred workspace-image variant slug for a project
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.projectRegistryControllerBootstrap = exports.getProjectRegistryControllerBootstrapUrl = exports.projectRegistryControllerAnalyzeBootstrap = exports.getProjectRegistryControllerAnalyzeBootstrapUrl = exports.projectRegistryControllerSetPreferredImageVariant = exports.getProjectRegistryControllerSetPreferredImageVariantUrl = exports.projectRegistryControllerGetPreferredImageVariant = exports.getProjectRegistryControllerGetPreferredImageVariantUrl = exports.
|
|
3
|
+
exports.projectRegistryControllerBootstrap = exports.getProjectRegistryControllerBootstrapUrl = exports.projectRegistryControllerAnalyzeBootstrap = exports.getProjectRegistryControllerAnalyzeBootstrapUrl = exports.projectRegistryControllerSetPreferredImageVariant = exports.getProjectRegistryControllerSetPreferredImageVariantUrl = exports.projectRegistryControllerGetPreferredImageVariant = exports.getProjectRegistryControllerGetPreferredImageVariantUrl = exports.projectRegistryControllerUpdateConnection = exports.getProjectRegistryControllerUpdateConnectionUrl = exports.projectRegistryControllerGetTypedSettings = exports.getProjectRegistryControllerGetTypedSettingsUrl = exports.projectRegistryControllerUpdateSettings = exports.getProjectRegistryControllerUpdateSettingsUrl = exports.projectRegistryControllerDeleteProject = exports.getProjectRegistryControllerDeleteProjectUrl = exports.projectRegistryControllerUpdateProject = exports.getProjectRegistryControllerUpdateProjectUrl = exports.projectRegistryControllerGetProject = exports.getProjectRegistryControllerGetProjectUrl = exports.projectRegistryControllerListProjects = exports.getProjectRegistryControllerListProjectsUrl = exports.projectRegistryControllerCreateProject = exports.getProjectRegistryControllerCreateProjectUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
5
|
const getProjectRegistryControllerCreateProjectUrl = () => {
|
|
6
6
|
return `/projects`;
|
|
@@ -125,22 +125,22 @@ const projectRegistryControllerGetTypedSettings = async (projectId, options) =>
|
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
exports.projectRegistryControllerGetTypedSettings = projectRegistryControllerGetTypedSettings;
|
|
128
|
-
const
|
|
129
|
-
return `/projects/${projectId}/
|
|
128
|
+
const getProjectRegistryControllerUpdateConnectionUrl = (projectId, type) => {
|
|
129
|
+
return `/projects/${projectId}/connections/${type}`;
|
|
130
130
|
};
|
|
131
|
-
exports.
|
|
131
|
+
exports.getProjectRegistryControllerUpdateConnectionUrl = getProjectRegistryControllerUpdateConnectionUrl;
|
|
132
132
|
/**
|
|
133
|
-
* @summary Enable, disable, or update project
|
|
133
|
+
* @summary Enable, disable, or update project connection configuration
|
|
134
134
|
*/
|
|
135
|
-
const
|
|
136
|
-
return (0, custom_fetch_1.customFetch)((0, exports.
|
|
135
|
+
const projectRegistryControllerUpdateConnection = async (projectId, type, updateProjectConnectionDto, options) => {
|
|
136
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerUpdateConnectionUrl)(projectId, type), {
|
|
137
137
|
...options,
|
|
138
138
|
method: 'PATCH',
|
|
139
139
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
140
140
|
body: JSON.stringify(updateProjectConnectionDto)
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
|
-
exports.
|
|
143
|
+
exports.projectRegistryControllerUpdateConnection = projectRegistryControllerUpdateConnection;
|
|
144
144
|
const getProjectRegistryControllerGetPreferredImageVariantUrl = (projectId) => {
|
|
145
145
|
return `/projects/${projectId}/preferred-image-variant`;
|
|
146
146
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -44,9 +44,9 @@ export * from './projectBindingKind';
|
|
|
44
44
|
export * from './projectBindingResponseDto';
|
|
45
45
|
export * from './projectBindingResponseDtoDataArrayEnvelope';
|
|
46
46
|
export * from './projectBindingResponseDtoDataEnvelope';
|
|
47
|
-
export * from './projectEnvResponseDto';
|
|
48
47
|
export * from './projectConnectionResponseDto';
|
|
49
48
|
export * from './projectConnectionResponseDtoConfig';
|
|
49
|
+
export * from './projectEnvResponseDto';
|
|
50
50
|
export * from './projectMembershipResponseDto';
|
|
51
51
|
export * from './projectMembershipResponseDtoDataArrayEnvelope';
|
|
52
52
|
export * from './projectMembershipResponseDtoDataEnvelope';
|
|
@@ -74,9 +74,9 @@ export * from './resolvedWalletsResponseDtoVars';
|
|
|
74
74
|
export * from './resolvedWalletsResponseDtoWalletKeyMap';
|
|
75
75
|
export * from './revokeProjectRoleDto';
|
|
76
76
|
export * from './setPreferredImageVariantDto';
|
|
77
|
-
export * from './updateProjectDto';
|
|
78
77
|
export * from './updateProjectConnectionDto';
|
|
79
78
|
export * from './updateProjectConnectionDtoConfig';
|
|
79
|
+
export * from './updateProjectDto';
|
|
80
80
|
export * from './updateProjectSettingsDto';
|
|
81
81
|
export * from './updateProjectSettingsDtoCloudDetails';
|
|
82
82
|
export * from './updateProjectSettingsDtoCloudProvider';
|
package/dist/models/index.js
CHANGED
|
@@ -61,9 +61,9 @@ __exportStar(require("./projectBindingKind"), exports);
|
|
|
61
61
|
__exportStar(require("./projectBindingResponseDto"), exports);
|
|
62
62
|
__exportStar(require("./projectBindingResponseDtoDataArrayEnvelope"), exports);
|
|
63
63
|
__exportStar(require("./projectBindingResponseDtoDataEnvelope"), exports);
|
|
64
|
-
__exportStar(require("./projectEnvResponseDto"), exports);
|
|
65
64
|
__exportStar(require("./projectConnectionResponseDto"), exports);
|
|
66
65
|
__exportStar(require("./projectConnectionResponseDtoConfig"), exports);
|
|
66
|
+
__exportStar(require("./projectEnvResponseDto"), exports);
|
|
67
67
|
__exportStar(require("./projectMembershipResponseDto"), exports);
|
|
68
68
|
__exportStar(require("./projectMembershipResponseDtoDataArrayEnvelope"), exports);
|
|
69
69
|
__exportStar(require("./projectMembershipResponseDtoDataEnvelope"), exports);
|
|
@@ -91,9 +91,9 @@ __exportStar(require("./resolvedWalletsResponseDtoVars"), exports);
|
|
|
91
91
|
__exportStar(require("./resolvedWalletsResponseDtoWalletKeyMap"), exports);
|
|
92
92
|
__exportStar(require("./revokeProjectRoleDto"), exports);
|
|
93
93
|
__exportStar(require("./setPreferredImageVariantDto"), exports);
|
|
94
|
-
__exportStar(require("./updateProjectDto"), exports);
|
|
95
94
|
__exportStar(require("./updateProjectConnectionDto"), exports);
|
|
96
95
|
__exportStar(require("./updateProjectConnectionDtoConfig"), exports);
|
|
96
|
+
__exportStar(require("./updateProjectDto"), exports);
|
|
97
97
|
__exportStar(require("./updateProjectSettingsDto"), exports);
|
|
98
98
|
__exportStar(require("./updateProjectSettingsDtoCloudDetails"), exports);
|
|
99
99
|
__exportStar(require("./updateProjectSettingsDtoCloudProvider"), exports);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Project workspace, repository links, integrations and settings
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { ProjectEnvResponseDto } from './projectEnvResponseDto.js';
|
|
9
8
|
import type { ProjectConnectionResponseDto } from './projectConnectionResponseDto.js';
|
|
9
|
+
import type { ProjectEnvResponseDto } from './projectEnvResponseDto.js';
|
|
10
10
|
import type { ProjectRepoResponseDto } from './projectRepoResponseDto.js';
|
|
11
11
|
import type { ProjectSettingsResponseDto } from './projectSettingsResponseDto.js';
|
|
12
12
|
export interface ProjectResponseDto {
|