@explo-tech/fido-api 3.6.0-lawrence-clickhouse-query.1 → 3.6.1

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/index.ts CHANGED
@@ -139,6 +139,7 @@ export type { RequestTelemetry } from './models/RequestTelemetry';
139
139
  export type { Resource } from './models/Resource';
140
140
  export type { ResourceChange } from './models/ResourceChange';
141
141
  export type { ResourceDiff } from './models/ResourceDiff';
142
+ export type { ResourceResponse } from './models/ResourceResponse';
142
143
  export type { ScheduledEviction } from './models/ScheduledEviction';
143
144
  export type { SearchBranchContentResponse } from './models/SearchBranchContentResponse';
144
145
  export type { Snowflake } from './models/Snowflake';
@@ -175,7 +176,6 @@ export type { View } from './models/View';
175
176
  export type { ViewExportRequest } from './models/ViewExportRequest';
176
177
  export type { ViewRequest } from './models/ViewRequest';
177
178
  export type { ViewResponse } from './models/ViewResponse';
178
- export type { ViewResponse1 } from './models/ViewResponse1';
179
179
  export type { ViewRunRequest } from './models/ViewRunRequest';
180
180
 
181
181
  export { BranchContentResourceService } from './services/BranchContentResourceService';
@@ -186,6 +186,7 @@ export { HealthResourceService } from './services/HealthResourceService';
186
186
  export { ListViewsResourceService } from './services/ListViewsResourceService';
187
187
  export { NamespaceResourceService } from './services/NamespaceResourceService';
188
188
  export { QueryResourceService } from './services/QueryResourceService';
189
+ export { ResourceResourceService } from './services/ResourceResourceService';
189
190
  export { TenantResourceService } from './services/TenantResourceService';
190
191
  export { TestConnectionResourceService } from './services/TestConnectionResourceService';
191
192
  export { ViewResourceService } from './services/ViewResourceService';
package/models/Commit.ts CHANGED
@@ -6,7 +6,7 @@ export type Commit = {
6
6
  readonly id?: string;
7
7
  commitMessage: string;
8
8
  readonly parentId: string | null;
9
- userId?: number;
9
+ readonly userId?: number;
10
10
  readonly createdAt?: string;
11
11
  };
12
12
 
@@ -9,5 +9,6 @@ export type CreateCommitRequest = {
9
9
  commitMessage: string;
10
10
  parentCommitId: UUID;
11
11
  changes: Array<ResourceChange>;
12
+ userId: number | null;
12
13
  };
13
14
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  import type { Resource } from './Resource';
6
6
 
7
- export type ViewResponse1 = {
7
+ export type ResourceResponse = {
8
8
  resource: Resource;
9
9
  };
10
10
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@explo-tech/fido-api",
3
3
  "description": "Fido api",
4
4
  "homepage": "https://github.com/trust-kaz/fido",
5
- "version": "3.6.0-lawrence-clickhouse-query.1",
5
+ "version": "3.6.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/trust-kaz/fido"
@@ -2,6 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  import type { ListBranchContentResponse } from '../models/ListBranchContentResponse';
5
+ import type { ResourceResponse } from '../models/ResourceResponse';
5
6
  import type { UUID } from '../models/UUID';
6
7
  import type { ViewResponse } from '../models/ViewResponse';
7
8
 
@@ -40,6 +41,27 @@ export class BranchContentResourceService {
40
41
  });
41
42
  }
42
43
 
44
+ /**
45
+ * Gets the latest version of the resource at the requested branch
46
+ * @param id
47
+ * @param resourceId
48
+ * @returns ResourceResponse The requested resource
49
+ * @throws ApiError
50
+ */
51
+ public static getResourceOnBranch(
52
+ id: UUID,
53
+ resourceId: UUID,
54
+ ): CancelablePromise<ResourceResponse> {
55
+ return __request(OpenAPI, {
56
+ method: 'GET',
57
+ url: '/v1/branches/{id}/resources/{resourceId}',
58
+ path: {
59
+ 'id': id,
60
+ 'resourceId': resourceId,
61
+ },
62
+ });
63
+ }
64
+
43
65
  /**
44
66
  * Gets the latest version of the view at the requested branch
45
67
  * @param id
@@ -0,0 +1,37 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type { ResourceResponse } from '../models/ResourceResponse';
5
+ import type { UUID } from '../models/UUID';
6
+
7
+ import type { CancelablePromise } from '../core/CancelablePromise';
8
+ import { OpenAPI } from '../core/OpenAPI';
9
+ import { request as __request } from '../core/request';
10
+
11
+ export class ResourceResourceService {
12
+
13
+ /**
14
+ * Gets a resource with the specified version
15
+ * @param id
16
+ * @param namespaceId
17
+ * @param versionId
18
+ * @returns ResourceResponse The requested resource
19
+ * @throws ApiError
20
+ */
21
+ public static getVersionedView(
22
+ id: UUID,
23
+ namespaceId: UUID,
24
+ versionId: UUID,
25
+ ): CancelablePromise<ResourceResponse> {
26
+ return __request(OpenAPI, {
27
+ method: 'GET',
28
+ url: '/v1/namespaces/{namespaceId}/resources/{id}/versions/{versionId}',
29
+ path: {
30
+ 'id': id,
31
+ 'namespaceId': namespaceId,
32
+ 'versionId': versionId,
33
+ },
34
+ });
35
+ }
36
+
37
+ }