@xemahq/project-registry-api-client 0.1.2 → 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, UpdateProjectDto, UpdateProjectIntegrationDto, UpdateProjectSettingsDto } from '../../models';
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 getProjectRegistryControllerUpdateIntegrationUrl: (projectId: string, type: string) => string;
44
+ export declare const getProjectRegistryControllerUpdateConnectionUrl: (projectId: string, type: string) => string;
45
45
  /**
46
- * @summary Enable, disable, or update project integration configuration
46
+ * @summary Enable, disable, or update project connection configuration
47
47
  */
48
- export declare const projectRegistryControllerUpdateIntegration: (projectId: string, type: string, updateProjectIntegrationDto: UpdateProjectIntegrationDto, options?: RequestInit) => Promise<ProjectResponseDtoDataEnvelope>;
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.projectRegistryControllerUpdateIntegration = exports.getProjectRegistryControllerUpdateIntegrationUrl = 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;
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 getProjectRegistryControllerUpdateIntegrationUrl = (projectId, type) => {
129
- return `/projects/${projectId}/integrations/${type}`;
128
+ const getProjectRegistryControllerUpdateConnectionUrl = (projectId, type) => {
129
+ return `/projects/${projectId}/connections/${type}`;
130
130
  };
131
- exports.getProjectRegistryControllerUpdateIntegrationUrl = getProjectRegistryControllerUpdateIntegrationUrl;
131
+ exports.getProjectRegistryControllerUpdateConnectionUrl = getProjectRegistryControllerUpdateConnectionUrl;
132
132
  /**
133
- * @summary Enable, disable, or update project integration configuration
133
+ * @summary Enable, disable, or update project connection configuration
134
134
  */
135
- const projectRegistryControllerUpdateIntegration = async (projectId, type, updateProjectIntegrationDto, options) => {
136
- return (0, custom_fetch_1.customFetch)((0, exports.getProjectRegistryControllerUpdateIntegrationUrl)(projectId, type), {
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
- body: JSON.stringify(updateProjectIntegrationDto)
140
+ body: JSON.stringify(updateProjectConnectionDto)
141
141
  });
142
142
  };
143
- exports.projectRegistryControllerUpdateIntegration = projectRegistryControllerUpdateIntegration;
143
+ exports.projectRegistryControllerUpdateConnection = projectRegistryControllerUpdateConnection;
144
144
  const getProjectRegistryControllerGetPreferredImageVariantUrl = (projectId) => {
145
145
  return `/projects/${projectId}/preferred-image-variant`;
146
146
  };
@@ -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 './projectConnectionResponseDto';
48
+ export * from './projectConnectionResponseDtoConfig';
47
49
  export * from './projectEnvResponseDto';
48
- export * from './projectIntegrationResponseDto';
49
- export * from './projectIntegrationResponseDtoConfig';
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 './updateProjectConnectionDto';
78
+ export * from './updateProjectConnectionDtoConfig';
77
79
  export * from './updateProjectDto';
78
- export * from './updateProjectIntegrationDto';
79
- export * from './updateProjectIntegrationDtoConfig';
80
80
  export * from './updateProjectSettingsDto';
81
81
  export * from './updateProjectSettingsDtoCloudDetails';
82
82
  export * from './updateProjectSettingsDtoCloudProvider';
@@ -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("./projectConnectionResponseDto"), exports);
65
+ __exportStar(require("./projectConnectionResponseDtoConfig"), exports);
64
66
  __exportStar(require("./projectEnvResponseDto"), exports);
65
- __exportStar(require("./projectIntegrationResponseDto"), exports);
66
- __exportStar(require("./projectIntegrationResponseDtoConfig"), 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("./updateProjectConnectionDto"), exports);
95
+ __exportStar(require("./updateProjectConnectionDtoConfig"), exports);
94
96
  __exportStar(require("./updateProjectDto"), exports);
95
- __exportStar(require("./updateProjectIntegrationDto"), exports);
96
- __exportStar(require("./updateProjectIntegrationDtoConfig"), 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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 });
@@ -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 { ProjectConnectionResponseDto } from './projectConnectionResponseDto.js';
8
9
  import type { ProjectEnvResponseDto } from './projectEnvResponseDto.js';
9
- import type { ProjectIntegrationResponseDto } from './projectIntegrationResponseDto.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: ProjectIntegrationResponseDto[];
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/project-registry-api-client",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [