@xemahq/project-registry-api-client 0.1.2 → 0.1.3
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.
- package/dist/endpoints/project-registry/project-registry.d.ts +2 -2
- package/dist/endpoints/project-registry/project-registry.js +2 -2
- package/dist/models/index.d.ts +4 -4
- package/dist/models/index.js +4 -4
- package/dist/models/projectConnectionResponseDto.d.ts +14 -0
- package/dist/models/projectConnectionResponseDto.js +2 -0
- package/dist/models/projectConnectionResponseDtoConfig.d.ts +10 -0
- package/dist/models/projectConnectionResponseDtoConfig.js +9 -0
- package/dist/models/projectResponseDto.d.ts +2 -2
- package/dist/models/updateProjectConnectionDto.d.ts +13 -0
- package/dist/models/updateProjectConnectionDto.js +2 -0
- package/dist/models/updateProjectConnectionDtoConfig.d.ts +10 -0
- package/dist/models/updateProjectConnectionDtoConfig.js +9 -0
- package/package.json +1 -1
|
@@ -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, UpdateProjectDto,
|
|
8
|
+
import type { BootstrapAnalyzeDto, BootstrapDecisionDtoDataEnvelope, BootstrapProjectDto, CreateProjectDto, PreferredImageVariantResponseDtoDataEnvelope, ProjectRegistryControllerListProjectsParams, ProjectResponseDtoDataEnvelope, ProjectSummaryResponseDtoDataArrayEnvelope, SetPreferredImageVariantDto, UpdateProjectDto, UpdateProjectConnectionDto, UpdateProjectSettingsDto } from '../../models';
|
|
9
9
|
export declare const getProjectRegistryControllerCreateProjectUrl: () => string;
|
|
10
10
|
/**
|
|
11
11
|
* @summary Create project workspace and optional repository link
|
|
@@ -45,7 +45,7 @@ export declare const getProjectRegistryControllerUpdateIntegrationUrl: (projectI
|
|
|
45
45
|
/**
|
|
46
46
|
* @summary Enable, disable, or update project integration configuration
|
|
47
47
|
*/
|
|
48
|
-
export declare const projectRegistryControllerUpdateIntegration: (projectId: string, type: string,
|
|
48
|
+
export declare const projectRegistryControllerUpdateIntegration: (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
|
|
@@ -132,12 +132,12 @@ exports.getProjectRegistryControllerUpdateIntegrationUrl = getProjectRegistryCon
|
|
|
132
132
|
/**
|
|
133
133
|
* @summary Enable, disable, or update project integration configuration
|
|
134
134
|
*/
|
|
135
|
-
const projectRegistryControllerUpdateIntegration = async (projectId, type,
|
|
135
|
+
const projectRegistryControllerUpdateIntegration = async (projectId, type, updateProjectConnectionDto, options) => {
|
|
136
136
|
return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerUpdateIntegrationUrl)(projectId, type), {
|
|
137
137
|
...options,
|
|
138
138
|
method: 'PATCH',
|
|
139
139
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
140
|
-
body: JSON.stringify(
|
|
140
|
+
body: JSON.stringify(updateProjectConnectionDto)
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
143
|
exports.projectRegistryControllerUpdateIntegration = projectRegistryControllerUpdateIntegration;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -45,8 +45,8 @@ export * from './projectBindingResponseDto';
|
|
|
45
45
|
export * from './projectBindingResponseDtoDataArrayEnvelope';
|
|
46
46
|
export * from './projectBindingResponseDtoDataEnvelope';
|
|
47
47
|
export * from './projectEnvResponseDto';
|
|
48
|
-
export * from './
|
|
49
|
-
export * from './
|
|
48
|
+
export * from './projectConnectionResponseDto';
|
|
49
|
+
export * from './projectConnectionResponseDtoConfig';
|
|
50
50
|
export * from './projectMembershipResponseDto';
|
|
51
51
|
export * from './projectMembershipResponseDtoDataArrayEnvelope';
|
|
52
52
|
export * from './projectMembershipResponseDtoDataEnvelope';
|
|
@@ -75,8 +75,8 @@ export * from './resolvedWalletsResponseDtoWalletKeyMap';
|
|
|
75
75
|
export * from './revokeProjectRoleDto';
|
|
76
76
|
export * from './setPreferredImageVariantDto';
|
|
77
77
|
export * from './updateProjectDto';
|
|
78
|
-
export * from './
|
|
79
|
-
export * from './
|
|
78
|
+
export * from './updateProjectConnectionDto';
|
|
79
|
+
export * from './updateProjectConnectionDtoConfig';
|
|
80
80
|
export * from './updateProjectSettingsDto';
|
|
81
81
|
export * from './updateProjectSettingsDtoCloudDetails';
|
|
82
82
|
export * from './updateProjectSettingsDtoCloudProvider';
|
package/dist/models/index.js
CHANGED
|
@@ -62,8 +62,8 @@ __exportStar(require("./projectBindingResponseDto"), exports);
|
|
|
62
62
|
__exportStar(require("./projectBindingResponseDtoDataArrayEnvelope"), exports);
|
|
63
63
|
__exportStar(require("./projectBindingResponseDtoDataEnvelope"), exports);
|
|
64
64
|
__exportStar(require("./projectEnvResponseDto"), exports);
|
|
65
|
-
__exportStar(require("./
|
|
66
|
-
__exportStar(require("./
|
|
65
|
+
__exportStar(require("./projectConnectionResponseDto"), exports);
|
|
66
|
+
__exportStar(require("./projectConnectionResponseDtoConfig"), exports);
|
|
67
67
|
__exportStar(require("./projectMembershipResponseDto"), exports);
|
|
68
68
|
__exportStar(require("./projectMembershipResponseDtoDataArrayEnvelope"), exports);
|
|
69
69
|
__exportStar(require("./projectMembershipResponseDtoDataEnvelope"), exports);
|
|
@@ -92,8 +92,8 @@ __exportStar(require("./resolvedWalletsResponseDtoWalletKeyMap"), exports);
|
|
|
92
92
|
__exportStar(require("./revokeProjectRoleDto"), exports);
|
|
93
93
|
__exportStar(require("./setPreferredImageVariantDto"), exports);
|
|
94
94
|
__exportStar(require("./updateProjectDto"), exports);
|
|
95
|
-
__exportStar(require("./
|
|
96
|
-
__exportStar(require("./
|
|
95
|
+
__exportStar(require("./updateProjectConnectionDto"), exports);
|
|
96
|
+
__exportStar(require("./updateProjectConnectionDtoConfig"), exports);
|
|
97
97
|
__exportStar(require("./updateProjectSettingsDto"), exports);
|
|
98
98
|
__exportStar(require("./updateProjectSettingsDtoCloudDetails"), exports);
|
|
99
99
|
__exportStar(require("./updateProjectSettingsDtoCloudProvider"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Project Registry API
|
|
5
|
+
* Project workspace, repository links, integrations and settings
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ProjectConnectionResponseDtoConfig } from './projectConnectionResponseDtoConfig.js';
|
|
9
|
+
export interface ProjectConnectionResponseDto {
|
|
10
|
+
type: string;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
credentialsPointer?: string;
|
|
13
|
+
config?: ProjectConnectionResponseDtoConfig;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Project Registry API
|
|
5
|
+
* Project workspace, repository links, integrations and settings
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type ProjectConnectionResponseDtoConfig = {
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Project Registry API
|
|
6
|
+
* Project workspace, repository links, integrations and settings
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
import type { ProjectEnvResponseDto } from './projectEnvResponseDto.js';
|
|
9
|
-
import type {
|
|
9
|
+
import type { ProjectConnectionResponseDto } from './projectConnectionResponseDto.js';
|
|
10
10
|
import type { ProjectRepoResponseDto } from './projectRepoResponseDto.js';
|
|
11
11
|
import type { ProjectSettingsResponseDto } from './projectSettingsResponseDto.js';
|
|
12
12
|
export interface ProjectResponseDto {
|
|
@@ -17,7 +17,7 @@ export interface ProjectResponseDto {
|
|
|
17
17
|
status: string;
|
|
18
18
|
repos: ProjectRepoResponseDto[];
|
|
19
19
|
envs: ProjectEnvResponseDto[];
|
|
20
|
-
integrations:
|
|
20
|
+
integrations: ProjectConnectionResponseDto[];
|
|
21
21
|
settings?: ProjectSettingsResponseDto;
|
|
22
22
|
createdAt: string;
|
|
23
23
|
createdBy: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Project Registry API
|
|
5
|
+
* Project workspace, repository links, integrations and settings
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { UpdateProjectConnectionDtoConfig } from './updateProjectConnectionDtoConfig.js';
|
|
9
|
+
export interface UpdateProjectConnectionDto {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
credentialsPointer?: string;
|
|
12
|
+
config?: UpdateProjectConnectionDtoConfig;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Project Registry API
|
|
5
|
+
* Project workspace, repository links, integrations and settings
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type UpdateProjectConnectionDtoConfig = {
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Project Registry API
|
|
6
|
+
* Project workspace, repository links, integrations and settings
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|