@finos/legend-server-lakehouse 0.3.41 → 0.3.43

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.
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { V1_ContractUserStatusResponse, V1_CreateContractPayload, V1_CreateDataAccessRequestPayload, V1_CreateSubscriptionInput, V1_DataContractApprovedUsersResponse, V1_DataContractsResponse, V1_DataRequestsWithWorkflowResponse, V1_DataSubscriptionResponse, V1_DataSubscriptionsPaginatedResponse, V1_EntitlementsDataProductDetailsResponse, V1_EntitlementsDataProductLiteResponse, V1_EntitlementsUserEnvResponse, V1_InvalidateDataContractResponse, V1_LiteDataContractsPaginatedResponse, V1_LiteDataContractsResponse, V1_LiteDataContractWithUserStatus, V1_PendingTasksResponse, V1_TaskResponse, V1_TaskStatus, V1_UserPendingContractsRecord, V1_UserPendingContractsResponse } from '@finos/legend-graph';
16
+ import type { V1_ContractUserStatusResponse, V1_CreateContractPayload, V1_CreateDataAccessRequestPayload, V1_CreateSubscriptionInput, V1_DataContractApprovedUsersResponse, V1_DataContractsResponse, V1_DataProductLitePaginatedResponse, V1_DataRequestsWithWorkflowResponse, V1_DataRequestTasksResponse, V1_DataSubscriptionResponse, V1_DataSubscriptionsPaginatedResponse, V1_EntitlementsDataProductDetailsResponse, V1_EntitlementsDataProductLiteResponse, V1_EntitlementsLakehouseEnvironmentType, V1_EntitlementsUserEnvResponse, V1_InvalidateDataContractResponse, V1_LiteDataContractsPaginatedResponse, V1_LiteDataContractsResponse, V1_LiteDataContractWithUserStatus, V1_PendingTasksResponse, V1_TaskResponse, V1_TaskStatus, V1_UserPendingContractsRecord, V1_UserPendingContractsResponse } from '@finos/legend-graph';
17
17
  import { AbstractServerClient, type PlainObject } from '@finos/legend-shared';
18
18
  import type { LakehouseConsumerGrantResponse } from './models/ConsumerGrants.js';
19
19
  export interface LakehouseContractServerClientConfig {
@@ -46,12 +46,16 @@ export declare class LakehouseContractServerClient extends AbstractServerClient
46
46
  createDataAccessRequest: (requestPayload: PlainObject<V1_CreateDataAccessRequestPayload>, token: string | undefined) => Promise<V1_DataRequestsWithWorkflowResponse>;
47
47
  getDataAccessRequestsCreatedBy: (userId: string, token: string | undefined) => Promise<V1_DataRequestsWithWorkflowResponse>;
48
48
  getDataAccessRequestWithWorkflow: (accessRequestId: string, token: string | undefined) => Promise<V1_DataRequestsWithWorkflowResponse>;
49
+ getDataAccessRequestTasks: (accessRequestId: string, token: string | undefined) => Promise<V1_DataRequestTasksResponse>;
50
+ approveRequest: (_requestId: string, _taskId: string, _token: string | undefined) => Promise<PlainObject>;
51
+ denyRequest: (_requestId: string, _taskId: string, _token: string | undefined) => Promise<PlainObject>;
49
52
  private _subscriptions;
50
53
  getAllSubscriptionsPaginated: (size: number, lastSubscriptionId: string | undefined, token: string | undefined) => Promise<PlainObject<V1_DataSubscriptionsPaginatedResponse>>;
51
54
  getSubscriptionsForContract: (contractId: string, token: string | undefined) => Promise<PlainObject<V1_DataSubscriptionResponse>[]>;
52
55
  createSubscription: (input: PlainObject<V1_CreateSubscriptionInput>, token: string | undefined) => Promise<PlainObject<V1_DataSubscriptionResponse>>;
53
56
  private _dataProducts;
54
- getDataProductsLite: (token: string | undefined) => Promise<PlainObject<V1_EntitlementsDataProductLiteResponse>>;
57
+ getDataProductsLitePaginated: (size: number | undefined, environmentType: V1_EntitlementsLakehouseEnvironmentType, lastDataProductId: string | undefined, lastDataProductDeploymentId: number | undefined, token: string | undefined) => Promise<PlainObject<V1_DataProductLitePaginatedResponse>>;
58
+ getAllLiteDataProducts: (environmentType: V1_EntitlementsLakehouseEnvironmentType, size: number | undefined, token: string | undefined) => Promise<PlainObject<V1_EntitlementsDataProductLiteResponse>>;
55
59
  getDataProduct: (dataProductId: string, token: string | undefined) => Promise<PlainObject<V1_EntitlementsDataProductDetailsResponse>>;
56
60
  getDataProductByIdAndDID: (dataProductId: string, deploymentId: number, token: string | undefined) => Promise<PlainObject<V1_EntitlementsDataProductDetailsResponse>>;
57
61
  private _orgResolver;
@@ -1 +1 @@
1
- {"version":3,"file":"LakehouseContractServerClient.d.ts","sourceRoot":"","sources":["../src/LakehouseContractServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,6BAA6B,EAC7B,wBAAwB,EACxB,iCAAiC,EACjC,0BAA0B,EAC1B,oCAAoC,EACpC,wBAAwB,EACxB,mCAAmC,EACnC,2BAA2B,EAC3B,qCAAqC,EACrC,yCAAyC,EACzC,sCAAsC,EACtC,8BAA8B,EAC9B,iCAAiC,EACjC,qCAAqC,EACrC,4BAA4B,EAC5B,iCAAiC,EACjC,uBAAuB,EACvB,eAAe,EACf,aAAa,EACb,6BAA6B,EAC7B,+BAA+B,EAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAEjF,MAAM,WAAW,mCAAmC;IAClD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,6BAA8B,SAAQ,oBAAoB;gBACzD,MAAM,EAAE,mCAAmC;IAOvD,OAAO,CAAC,MAAM,CAEX;IAIH,OAAO,CAAC,cAAc,CAAiD;IAEvE,6BAA6B,GAC3B,MAAM,MAAM,EACZ,gBAAgB,MAAM,GAAG,SAAS,EAClC,OAAO,MAAM,GAAG,SAAS,KACxB,OAAO,CAAC,WAAW,CAAC,qCAAqC,CAAC,CAAC,CAK1D;IAEJ,eAAe,GACb,IAAI,MAAM,EACV,aAAa,OAAO,EACpB,OAAO,MAAM,GAAG,SAAS,KACxB,OAAO,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC,CAK7C;IAEJ,+BAA+B,GAC7B,IAAI,MAAM,EACV,OAAO,MAAM,GAAG,SAAS,KACxB,O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BAA8B,CAAC,CAKtC;IAIJ,OAAO,CAAC,qBAAqB,CACQ;IAErC,6BAA6B,GAC3B,YAAY,MAAM,EAClB,OAAO,MAAM,GAAG,SAAS,KACxB,OAAO,CAAC,WAAW,CAAC,8BAA8B,CAAC,CAAC,CAKnD;IAIJ,eAAe,GACb,cAAc,MAAM,EACpB,OAAO,MAAM,GAAG,SAAS,KACxB,OAAO,CAAC,WAAW,CAAC,CAKnB;CACL"}
@@ -71,14 +71,45 @@ export class LakehouseContractServerClient extends AbstractServerClient {
71
71
  createDataAccessRequest = (requestPayload, token) => this.post(`${this._dataAccessRequests()}`, requestPayload, undefined, this._token(token));
72
72
  getDataAccessRequestsCreatedBy = (userId, token) => this.get(`${this._dataAccessRequests()}/withWorkflow/createdBy/${userId}`, {}, this._token(token));
73
73
  getDataAccessRequestWithWorkflow = (accessRequestId, token) => this.get(`${this._dataAccessRequests()}/${encodeURIComponent(accessRequestId)}/withWorkflow`, {}, this._token(token));
74
+ getDataAccessRequestTasks = (accessRequestId, token) => this.get(`${this.baseUrl}/datarequests/${encodeURIComponent(accessRequestId)}/tasks`, {}, this._token(token));
75
+ // TODO: add implementations
76
+ approveRequest = (_requestId, _taskId, _token) => Promise.reject(new Error('approveRequest not yet implemented'));
77
+ // TODO: add implementations
78
+ denyRequest = (_requestId, _taskId, _token) => Promise.reject(new Error('denyRequest not yet implemented'));
74
79
  // --------------------------------------- Subscriptions ---------------------------------------
75
80
  _subscriptions = () => `${this.baseUrl}/subscriptions`;
76
- getAllSubscriptionsPaginated = (size, lastSubscriptionId, token) => this.get(`${this._subscriptions()}?size=${size}${lastSubscriptionId ? `&lastSubscriptionId=${encodeURIComponent(lastSubscriptionId)}` : ''}`, {}, this._token(token));
81
+ getAllSubscriptionsPaginated = (size, lastSubscriptionId, token) => this.get(`${this._subscriptions()}/paginated?size=${size}${lastSubscriptionId ? `&lastSubscriptionId=${encodeURIComponent(lastSubscriptionId)}` : ''}`, {}, this._token(token));
77
82
  getSubscriptionsForContract = (contractId, token) => this.get(`${this._subscriptions()}/query/contract/${contractId}`, {}, this._token(token));
78
83
  createSubscription = (input, token) => this.post(this._subscriptions(), input, {}, this._token(token));
79
84
  // --------------------------------------- Data Products ---------------------------------------
80
85
  _dataProducts = () => `${this.baseUrl}/dataproducts`;
81
- getDataProductsLite = (token) => this.get(`${this._dataProducts()}/lite`, {}, this._token(token));
86
+ getDataProductsLitePaginated = (size = 1000, environmentType, lastDataProductId, lastDataProductDeploymentId, token) => this.get(`${this._dataProducts()}/lite/paginated`, {}, this._token(token), {
87
+ size,
88
+ environmentType,
89
+ lastDataProductId,
90
+ lastDataProductDeploymentId,
91
+ });
92
+ getAllLiteDataProducts = async (environmentType, size = 1000, token) => {
93
+ const allDataProducts = [];
94
+ let lastDataProductId;
95
+ let lastDataProductDeploymentId;
96
+ let hasNextPage = true;
97
+ while (hasNextPage) {
98
+ const response = await this.getDataProductsLitePaginated(size, environmentType, lastDataProductId, lastDataProductDeploymentId, token);
99
+ const products = response.liteDataProductsResponse?.dataProducts ?? [];
100
+ allDataProducts.push(...products);
101
+ const metadata = response.paginationMetadataRecord;
102
+ hasNextPage = metadata?.hasNextPage === true;
103
+ if (hasNextPage && metadata?.lastValuesMap) {
104
+ const lastValues = metadata.lastValuesMap;
105
+ lastDataProductId = lastValues.id;
106
+ lastDataProductDeploymentId = lastValues.deployment_id;
107
+ }
108
+ }
109
+ return {
110
+ dataProducts: allDataProducts,
111
+ };
112
+ };
82
113
  getDataProduct = (dataProductId, token) => this.get(`${this._dataProducts()}/${dataProductId}`, {}, this._token(token));
83
114
  getDataProductByIdAndDID = (dataProductId, deploymentId, token) => this.get(`${this._dataProducts()}/${dataProductId}/deployments/${deploymentId}`, {}, this._token(token));
84
115
  // --------------------------------------- Org Resolver ---------------------------------------
@@ -1 +1 @@
1
- {"version":3,"file":"LakehouseContractServerClient.js","sourceRoot":"","sources":["../src/LakehouseContractServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAc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B,GAAG,GAAW,EAAE,CAC3C,GAAG,IAAI,CAAC,OAAO,mBAAmB,CAAC;IAErC,6BAA6B,GAAG,CAC9B,UAAkB,EAClB,KAAyB,EAC6B,EAAE,CACxD,IAAI,CAAC,GAAG,CACN,GAAG,IAAI,CAAC,qBAAqB,EAAE,gCAAgC,UAAU,EAAE,EAC3E,EAAE,EACF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CACnB,CAAC;IAEJ,mGAAmG;IAEnG,eAAe,GAAG,CAChB,YAAoB,EACpB,KAAyB,EACH,EAAE,CACxB,IAAI,CAAC,GAAG,CACN,GAAG,IAAI,CAAC,OAAO,mCAAmC,YAAY,EAAE,EAChE,EAAE,EACF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CACnB,CAAC;CACL"}
1
+ {"version":3,"file":"LakehouseContractServerClient.js","sourceRoot":"","sources":["../src/LakehouseContractServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA8BH,OAAO,EAAE,oBAAoB,EAAoB,MAAM,sBAAsB,CAAC;AAO9E,MAAM,OAAO,6BAA8B,SAAQ,oBAAoB;IACrE,YAAY,MAA2C;QACrD,KAAK,CAAC;YACJ,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC,CAAC;IACL,CAAC;IAED,OAAO;IACC,MAAM,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC;QACpC,aAAa,EAAE,UAAU,KAAK,EAAE;KACjC,CAAC,CAAC;IAEH,yGAAyG;IAEjG,cAAc,GAAG,GAAW,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,gBAAgB,CAAC;IAEvE,6BAA6B,GAAG,CAC9B,IAAY,EACZ,cAAkC,EAClC,KAAyB,EACoC,EAAE,CAC/D,IAAI,CAAC,GAAG,CACN,GAAG,IAAI,CAAC,cAAc,EAAE,uBAAuB,IAAI,GAAG,cAAc,CAAC,CAAC,CAAC,mBAAmB,cAAc,EAAE,CAAC,CAAC,CAAC,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IAEnG,eAAe,GAAG,CAChB,YAAoB,EACpB,KAAyB,EACH,EAAE,CACxB,IAAI,CAAC,GAAG,CACN,GAAG,IAAI,CAAC,OAAO,mCAAmC,YAAY,EAAE,EAChE,EAAE,EACF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CACnB,CAAC;CACL"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright (c) 2026-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { V1_RawWorkflowTask } from '@finos/legend-graph';
17
+ import { AbstractServerClient, type PlainObject } from '@finos/legend-shared';
18
+ export interface LakehouseWorkflowServerClientConfig {
19
+ baseUrl: string;
20
+ }
21
+ export declare class LakehouseWorkflowServerClient extends AbstractServerClient {
22
+ constructor(config: LakehouseWorkflowServerClientConfig);
23
+ private _tasks;
24
+ getTask: (taskId: string) => Promise<PlainObject<V1_RawWorkflowTask>>;
25
+ approveTask: (taskId: string, actioningUserId: string, justification: string) => Promise<void>;
26
+ rejectTask: (taskId: string, actioningUserId: string, justification: string) => Promise<void>;
27
+ escalateTask: (taskId: string, actioningUserId: string) => Promise<void>;
28
+ }
29
+ //# sourceMappingURL=LakehouseWorkflowServerClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LakehouseWorkflowServerClient.d.ts","sourceRoot":"","sources":["../src/LakehouseWorkflowServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE9E,MAAM,WAAW,mCAAmC;IAClD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,6BAA8B,SAAQ,oBAAoB;gBACzD,MAAM,EAAE,mCAAmC;IAQvD,OAAO,CAAC,MAAM,CAAyC;IAEvD,OAAO,GAAI,QAAQ,MAAM,KAAG,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CACP;IAE7D,WAAW,GACT,QAAQ,MAAM,EACd,iBAAiB,MAAM,EACvB,eAAe,MAAM,KACpB,OAAO,CAAC,IAAI,CAAC,CAed;IAEF,UAAU,GACR,QAAQ,MAAM,EACd,iBAAiB,MAAM,EACvB,eAAe,MAAM,KACpB,OAAO,CAAC,IAAI,CAAC,CAed;IAEF,YAAY,GAAI,QAAQ,MAAM,EAAE,iBAAiB,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC,CAUrE;CACH"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Copyright (c) 2026-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { AbstractServerClient } from '@finos/legend-shared';
17
+ export class LakehouseWorkflowServerClient extends AbstractServerClient {
18
+ constructor(config) {
19
+ super({
20
+ baseUrl: config.baseUrl,
21
+ });
22
+ }
23
+ // ------------------------------------------- Tasks -------------------------------------------
24
+ _tasks = () => `${this.baseUrl}/tasks`;
25
+ getTask = (taskId) => this.get(`${this._tasks()}/${encodeURIComponent(taskId)}`);
26
+ approveTask = (taskId, actioningUserId, justification) => {
27
+ const requestBody = {
28
+ params: {
29
+ justificationApprove: {
30
+ businessJustification: justification,
31
+ },
32
+ },
33
+ userId: actioningUserId,
34
+ reasonCode: 'Approved',
35
+ };
36
+ return this.post(`${this._tasks()}/${encodeURIComponent(taskId)}/complete`, requestBody);
37
+ };
38
+ rejectTask = (taskId, actioningUserId, justification) => {
39
+ const requestBody = {
40
+ params: {
41
+ justificationReject: {
42
+ businessJustification: justification,
43
+ },
44
+ },
45
+ userId: actioningUserId,
46
+ reasonCode: 'Rejected',
47
+ };
48
+ return this.post(`${this._tasks()}/${encodeURIComponent(taskId)}/complete`, requestBody);
49
+ };
50
+ escalateTask = (taskId, actioningUserId) => {
51
+ const requestBody = {
52
+ userId: actioningUserId,
53
+ reasonCode: 'Escalated',
54
+ };
55
+ return this.post(`${this._tasks()}/${encodeURIComponent(taskId)}/complete`, requestBody);
56
+ };
57
+ }
58
+ //# sourceMappingURL=LakehouseWorkflowServerClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LakehouseWorkflowServerClient.js","sourceRoot":"","sources":["../src/LakehouseWorkflowServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,oBAAoB,EAAoB,MAAM,sBAAsB,CAAC;AAM9E,MAAM,OAAO,6BAA8B,SAAQ,oBAAoB;IACrE,YAAY,MAA2C;QACrD,KAAK,CAAC;YACJ,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC,CAAC;IACL,CAAC;IAED,gGAAgG;IAExF,MAAM,GAAG,GAAW,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,QAAQ,CAAC;IAEvD,OAAO,GAAG,CAAC,MAAc,EAA4C,EAAE,CACrE,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAE7D,WAAW,GAAG,CACZ,MAAc,EACd,eAAuB,EACvB,aAAqB,EACN,EAAE;QACjB,MAAM,WAAW,GAAG;YAClB,MAAM,EAAE;gBACN,oBAAoB,EAAE;oBACpB,qBAAqB,EAAE,aAAa;iBACrC;aACF;YACD,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,UAAU;SACvB,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CACd,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,kBAAkB,CAAC,MAAM,CAAC,WAAW,EACzD,WAAW,CACZ,CAAC;IACJ,CAAC,CAAC;IAEF,UAAU,GAAG,CACX,MAAc,EACd,eAAuB,EACvB,aAAqB,EACN,EAAE;QACjB,MAAM,WAAW,GAAG;YAClB,MAAM,EAAE;gBACN,mBAAmB,EAAE;oBACnB,qBAAqB,EAAE,aAAa;iBACrC;aACF;YACD,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,UAAU;SACvB,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CACd,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,kBAAkB,CAAC,MAAM,CAAC,WAAW,EACzD,WAAW,CACZ,CAAC;IACJ,CAAC,CAAC;IAEF,YAAY,GAAG,CAAC,MAAc,EAAE,eAAuB,EAAiB,EAAE;QACxE,MAAM,WAAW,GAAG;YAClB,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CACd,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,kBAAkB,CAAC,MAAM,CAAC,WAAW,EACzD,WAAW,CACZ,CAAC;IACJ,CAAC,CAAC;CACH"}
package/lib/index.d.ts CHANGED
@@ -21,5 +21,6 @@ export * from './LakehouseIngestServerClient.js';
21
21
  export * from './LakehousePlatformServerClient.js';
22
22
  export * from './LakehouseIngestionManager.js';
23
23
  export * from './LakehouseContractServerClient.js';
24
+ export * from './LakehouseWorkflowServerClient.js';
24
25
  export * from './helpers/V1_IngestHelpers.js';
25
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0CAA0C,CAAC;AACzD,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0CAA0C,CAAC;AACzD,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC"}
package/lib/index.js CHANGED
@@ -21,5 +21,6 @@ export * from './LakehouseIngestServerClient.js';
21
21
  export * from './LakehousePlatformServerClient.js';
22
22
  export * from './LakehouseIngestionManager.js';
23
23
  export * from './LakehouseContractServerClient.js';
24
+ export * from './LakehouseWorkflowServerClient.js';
24
25
  export * from './helpers/V1_IngestHelpers.js';
25
26
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0CAA0C,CAAC;AACzD,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0CAA0C,CAAC;AACzD,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-server-lakehouse",
3
- "version": "0.3.41",
3
+ "version": "0.3.43",
4
4
  "description": "Legend Lakehouse Server Client",
5
5
  "keywords": [
6
6
  "legend",
@@ -39,7 +39,7 @@
39
39
  "test:watch": "jest --watch"
40
40
  },
41
41
  "dependencies": {
42
- "@finos/legend-graph": "32.4.0",
42
+ "@finos/legend-graph": "32.4.2",
43
43
  "@finos/legend-shared": "11.0.23",
44
44
  "serializr": "3.0.3"
45
45
  },
@@ -21,16 +21,21 @@ import type {
21
21
  V1_CreateSubscriptionInput,
22
22
  V1_DataContractApprovedUsersResponse,
23
23
  V1_DataContractsResponse,
24
+ V1_DataProductLitePaginatedResponse,
24
25
  V1_DataRequestsWithWorkflowResponse,
26
+ V1_DataRequestTasksResponse,
25
27
  V1_DataSubscriptionResponse,
26
28
  V1_DataSubscriptionsPaginatedResponse,
27
29
  V1_EntitlementsDataProductDetailsResponse,
28
30
  V1_EntitlementsDataProductLiteResponse,
31
+ V1_EntitlementsLakehouseEnvironmentType,
29
32
  V1_EntitlementsUserEnvResponse,
30
33
  V1_InvalidateDataContractResponse,
34
+ V1_LastValuesMapRecord,
31
35
  V1_LiteDataContractsPaginatedResponse,
32
36
  V1_LiteDataContractsResponse,
33
37
  V1_LiteDataContractWithUserStatus,
38
+ V1_PaginationMetadataRecord,
34
39
  V1_PendingTasksResponse,
35
40
  V1_TaskResponse,
36
41
  V1_TaskStatus,
@@ -294,6 +299,32 @@ export class LakehouseContractServerClient extends AbstractServerClient {
294
299
  this._token(token),
295
300
  );
296
301
 
302
+ getDataAccessRequestTasks = (
303
+ accessRequestId: string,
304
+ token: string | undefined,
305
+ ): Promise<V1_DataRequestTasksResponse> =>
306
+ this.get(
307
+ `${this.baseUrl}/datarequests/${encodeURIComponent(accessRequestId)}/tasks`,
308
+ {},
309
+ this._token(token),
310
+ );
311
+
312
+ // TODO: add implementations
313
+ approveRequest = (
314
+ _requestId: string,
315
+ _taskId: string,
316
+ _token: string | undefined,
317
+ ): Promise<PlainObject> =>
318
+ Promise.reject(new Error('approveRequest not yet implemented'));
319
+
320
+ // TODO: add implementations
321
+ denyRequest = (
322
+ _requestId: string,
323
+ _taskId: string,
324
+ _token: string | undefined,
325
+ ): Promise<PlainObject> =>
326
+ Promise.reject(new Error('denyRequest not yet implemented'));
327
+
297
328
  // --------------------------------------- Subscriptions ---------------------------------------
298
329
 
299
330
  private _subscriptions = (): string => `${this.baseUrl}/subscriptions`;
@@ -304,7 +335,7 @@ export class LakehouseContractServerClient extends AbstractServerClient {
304
335
  token: string | undefined,
305
336
  ): Promise<PlainObject<V1_DataSubscriptionsPaginatedResponse>> =>
306
337
  this.get(
307
- `${this._subscriptions()}?size=${size}${lastSubscriptionId ? `&lastSubscriptionId=${encodeURIComponent(lastSubscriptionId)}` : ''}`,
338
+ `${this._subscriptions()}/paginated?size=${size}${lastSubscriptionId ? `&lastSubscriptionId=${encodeURIComponent(lastSubscriptionId)}` : ''}`,
308
339
  {},
309
340
  this._token(token),
310
341
  );
@@ -329,10 +360,63 @@ export class LakehouseContractServerClient extends AbstractServerClient {
329
360
 
330
361
  private _dataProducts = (): string => `${this.baseUrl}/dataproducts`;
331
362
 
332
- getDataProductsLite = (
363
+ getDataProductsLitePaginated = (
364
+ size: number = 1000,
365
+ environmentType: V1_EntitlementsLakehouseEnvironmentType,
366
+ lastDataProductId: string | undefined,
367
+ lastDataProductDeploymentId: number | undefined,
333
368
  token: string | undefined,
334
- ): Promise<PlainObject<V1_EntitlementsDataProductLiteResponse>> =>
335
- this.get(`${this._dataProducts()}/lite`, {}, this._token(token));
369
+ ): Promise<PlainObject<V1_DataProductLitePaginatedResponse>> =>
370
+ this.get(`${this._dataProducts()}/lite/paginated`, {}, this._token(token), {
371
+ size,
372
+ environmentType,
373
+ lastDataProductId,
374
+ lastDataProductDeploymentId,
375
+ });
376
+
377
+ getAllLiteDataProducts = async (
378
+ environmentType: V1_EntitlementsLakehouseEnvironmentType,
379
+ size: number = 1000,
380
+ token: string | undefined,
381
+ ): Promise<PlainObject<V1_EntitlementsDataProductLiteResponse>> => {
382
+ const allDataProducts: PlainObject[] = [];
383
+ let lastDataProductId: string | undefined;
384
+ let lastDataProductDeploymentId: number | undefined;
385
+ let hasNextPage = true;
386
+
387
+ while (hasNextPage) {
388
+ const response: PlainObject<V1_DataProductLitePaginatedResponse> =
389
+ await this.getDataProductsLitePaginated(
390
+ size,
391
+ environmentType,
392
+ lastDataProductId,
393
+ lastDataProductDeploymentId,
394
+ token,
395
+ );
396
+ const products =
397
+ (
398
+ response.liteDataProductsResponse as
399
+ | PlainObject<V1_EntitlementsDataProductLiteResponse>
400
+ | undefined
401
+ )?.dataProducts ?? [];
402
+ allDataProducts.push(...(products as PlainObject[]));
403
+
404
+ const metadata = response.paginationMetadataRecord as
405
+ | PlainObject<V1_PaginationMetadataRecord>
406
+ | undefined;
407
+ hasNextPage = metadata?.hasNextPage === true;
408
+ if (hasNextPage && metadata?.lastValuesMap) {
409
+ const lastValues =
410
+ metadata.lastValuesMap as PlainObject<V1_LastValuesMapRecord>;
411
+ lastDataProductId = lastValues.id as string;
412
+ lastDataProductDeploymentId = lastValues.deployment_id as number;
413
+ }
414
+ }
415
+
416
+ return {
417
+ dataProducts: allDataProducts,
418
+ } as PlainObject<V1_EntitlementsDataProductLiteResponse>;
419
+ };
336
420
 
337
421
  getDataProduct = (
338
422
  dataProductId: string,
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Copyright (c) 2026-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import type { V1_RawWorkflowTask } from '@finos/legend-graph';
18
+ import { AbstractServerClient, type PlainObject } from '@finos/legend-shared';
19
+
20
+ export interface LakehouseWorkflowServerClientConfig {
21
+ baseUrl: string;
22
+ }
23
+
24
+ export class LakehouseWorkflowServerClient extends AbstractServerClient {
25
+ constructor(config: LakehouseWorkflowServerClientConfig) {
26
+ super({
27
+ baseUrl: config.baseUrl,
28
+ });
29
+ }
30
+
31
+ // ------------------------------------------- Tasks -------------------------------------------
32
+
33
+ private _tasks = (): string => `${this.baseUrl}/tasks`;
34
+
35
+ getTask = (taskId: string): Promise<PlainObject<V1_RawWorkflowTask>> =>
36
+ this.get(`${this._tasks()}/${encodeURIComponent(taskId)}`);
37
+
38
+ approveTask = (
39
+ taskId: string,
40
+ actioningUserId: string,
41
+ justification: string,
42
+ ): Promise<void> => {
43
+ const requestBody = {
44
+ params: {
45
+ justificationApprove: {
46
+ businessJustification: justification,
47
+ },
48
+ },
49
+ userId: actioningUserId,
50
+ reasonCode: 'Approved',
51
+ };
52
+
53
+ return this.post(
54
+ `${this._tasks()}/${encodeURIComponent(taskId)}/complete`,
55
+ requestBody,
56
+ );
57
+ };
58
+
59
+ rejectTask = (
60
+ taskId: string,
61
+ actioningUserId: string,
62
+ justification: string,
63
+ ): Promise<void> => {
64
+ const requestBody = {
65
+ params: {
66
+ justificationReject: {
67
+ businessJustification: justification,
68
+ },
69
+ },
70
+ userId: actioningUserId,
71
+ reasonCode: 'Rejected',
72
+ };
73
+
74
+ return this.post(
75
+ `${this._tasks()}/${encodeURIComponent(taskId)}/complete`,
76
+ requestBody,
77
+ );
78
+ };
79
+
80
+ escalateTask = (taskId: string, actioningUserId: string): Promise<void> => {
81
+ const requestBody = {
82
+ userId: actioningUserId,
83
+ reasonCode: 'Escalated',
84
+ };
85
+
86
+ return this.post(
87
+ `${this._tasks()}/${encodeURIComponent(taskId)}/complete`,
88
+ requestBody,
89
+ );
90
+ };
91
+ }
package/src/index.ts CHANGED
@@ -22,4 +22,5 @@ export * from './LakehouseIngestServerClient.js';
22
22
  export * from './LakehousePlatformServerClient.js';
23
23
  export * from './LakehouseIngestionManager.js';
24
24
  export * from './LakehouseContractServerClient.js';
25
+ export * from './LakehouseWorkflowServerClient.js';
25
26
  export * from './helpers/V1_IngestHelpers.js';
package/tsconfig.json CHANGED
@@ -50,6 +50,7 @@
50
50
  "./src/LakehouseIngestServerClient.ts",
51
51
  "./src/LakehouseIngestionManager.ts",
52
52
  "./src/LakehousePlatformServerClient.ts",
53
+ "./src/LakehouseWorkflowServerClient.ts",
53
54
  "./src/index.ts",
54
55
  "./src/helpers/V1_IngestHelpers.ts",
55
56
  "./src/models/AdhocDataProductDeployResponse.ts",