@finos/legend-server-marketplace 0.0.2 → 0.0.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.
Files changed (37) hide show
  1. package/lib/MarketplaceServerClient.d.ts +9 -4
  2. package/lib/MarketplaceServerClient.d.ts.map +1 -1
  3. package/lib/MarketplaceServerClient.js +5 -0
  4. package/lib/MarketplaceServerClient.js.map +1 -1
  5. package/lib/index.d.ts +3 -3
  6. package/lib/index.d.ts.map +1 -1
  7. package/lib/index.js +3 -3
  8. package/lib/index.js.map +1 -1
  9. package/lib/models/{ProductSearchResult.d.ts → DataProduct.d.ts} +15 -9
  10. package/lib/models/DataProduct.d.ts.map +1 -0
  11. package/lib/models/{ProductSearchResult.js → DataProduct.js} +9 -9
  12. package/lib/models/DataProduct.js.map +1 -0
  13. package/lib/models/{Vendor.d.ts → Provider.d.ts} +13 -2
  14. package/lib/models/Provider.d.ts.map +1 -0
  15. package/lib/models/Provider.js +36 -0
  16. package/lib/models/Provider.js.map +1 -0
  17. package/lib/models/{DataAsset.d.ts → Subscription.d.ts} +12 -6
  18. package/lib/models/Subscription.d.ts.map +1 -0
  19. package/lib/models/Subscription.js +38 -0
  20. package/lib/models/Subscription.js.map +1 -0
  21. package/lib/package.json +1 -1
  22. package/package.json +1 -1
  23. package/src/MarketplaceServerClient.ts +32 -5
  24. package/src/index.ts +3 -3
  25. package/src/models/{ProductSearchResult.ts → DataProduct.ts} +17 -10
  26. package/src/models/{Vendor.ts → Provider.ts} +26 -1
  27. package/src/models/Subscription.ts +42 -0
  28. package/tsconfig.json +3 -3
  29. package/lib/models/DataAsset.d.ts.map +0 -1
  30. package/lib/models/DataAsset.js +0 -17
  31. package/lib/models/DataAsset.js.map +0 -1
  32. package/lib/models/ProductSearchResult.d.ts.map +0 -1
  33. package/lib/models/ProductSearchResult.js.map +0 -1
  34. package/lib/models/Vendor.d.ts.map +0 -1
  35. package/lib/models/Vendor.js +0 -17
  36. package/lib/models/Vendor.js.map +0 -1
  37. package/src/models/DataAsset.ts +0 -22
@@ -14,16 +14,21 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { type PlainObject, AbstractServerClient } from '@finos/legend-shared';
17
- import type { Vendor } from './models/Vendor.js';
18
- import type { ProductSearchResult } from './models/ProductSearchResult.js';
17
+ import type { LightProvider, ProviderResult } from './models/Provider.js';
18
+ import type { DataProductSearchResult } from './models/DataProduct.js';
19
+ import type { Subscription } from './models/Subscription.js';
19
20
  export interface MarketplaceServerClientConfig {
20
21
  serverUrl: string;
22
+ subscriptionUrl: string;
21
23
  }
22
24
  export declare class MarketplaceServerClient extends AbstractServerClient {
25
+ subscriptionUrl: string;
23
26
  constructor(config: MarketplaceServerClientConfig);
24
27
  private _vendors;
25
- getVendors: () => Promise<PlainObject<Vendor>[]>;
28
+ getVendors: () => Promise<PlainObject<LightProvider>[]>;
29
+ getVendorsByCategory: (category: string, limit: number) => Promise<PlainObject<ProviderResult>[]>;
26
30
  private _search;
27
- semanticSearch: (query: string, vendorName: string, limit: number) => Promise<PlainObject<ProductSearchResult>[]>;
31
+ semanticSearch: (query: string, vendorName: string, limit: number) => Promise<PlainObject<DataProductSearchResult>[]>;
32
+ getSubscriptions: (user: string) => Promise<PlainObject<Subscription>[]>;
28
33
  }
29
34
  //# sourceMappingURL=MarketplaceServerClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarketplaceServerClient.d.ts","sourceRoot":"","sources":["../src/MarketplaceServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,WAAW,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,MAAM,CAAC;CACnB;AAQD,qBAAa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,WAAW,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAOtC;IAIZ,gBAAgB,GACd,MAAM,MAAM,KACX,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,EAAE,CAAC,CAKhB;CACxB"}
@@ -15,6 +15,7 @@
15
15
  */
16
16
  import { AbstractServerClient } from '@finos/legend-shared';
17
17
  export class MarketplaceServerClient extends AbstractServerClient {
18
+ subscriptionUrl;
18
19
  constructor(config) {
19
20
  super({
20
21
  baseUrl: config.serverUrl,
@@ -25,12 +26,16 @@ export class MarketplaceServerClient extends AbstractServerClient {
25
26
  credentials: 'omit',
26
27
  },
27
28
  });
29
+ this.subscriptionUrl = config.subscriptionUrl;
28
30
  }
29
31
  // ------------------------------------------- Vendors -------------------------------------------
30
32
  _vendors = () => `${this.baseUrl}/v1/vendors`;
31
33
  getVendors = () => this.get(this._vendors());
34
+ getVendorsByCategory = async (category, limit) => (await this.get(`${this.baseUrl}/v1/vendor/category?category=${category}&limit=${limit}`)).results;
32
35
  // ------------------------------------------- Search- -------------------------------------------
33
36
  _search = () => `${this.baseUrl}/v1/search`;
34
37
  semanticSearch = async (query, vendorName, limit) => (await this.get(`${this._search()}/semantic/catalog?query=${query}&vendor_name=${vendorName}&limit=${limit}`)).results;
38
+ // ------------------------------------------- Subscriptions -----------------------------------------
39
+ getSubscriptions = async (user) => (await this.get(`${this.subscriptionUrl}/v1/service/subscription/${user}`)).subscription_feeds;
35
40
  }
36
41
  //# sourceMappingURL=MarketplaceServerClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarketplaceServerClient.js","sourceRoot":"","sources":["../src/MarketplaceServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAoB,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAc9E,MAAM,OAAO,uBAAwB,SAAQ,oBAAoB;IAC/D,YAAY,MAAqC;QAC/C,KAAK,CAAC;YACJ,OAAO,EAAE,MAAM,CAAC,SAAS;YACz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C,EAAE,CACvD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IAE5B,oBAAoB,GAAG,KAAK,EAC1B,QAAgB,EAChB,KAAa,EAC2B,EAAE,CAC1C,CACE,MAAM,IAAI,CAAC,GAAG,CACZ,GAAG,IAAI,CAAC,OAAO,gCAAgC,QAAQ,UAAU,KAAK,EAAE,CACzE,CACF,CAAC,OAAO,CAAC;IAEZ,kGAAkG;IAE1F,OAAO,GAAG,GAAW,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,YAAY,CAAC;IAE5D,cAAc,GAAG,KAAK,EACpB,KAAa,EACb,UAAkB,EAClB,KAAa,EACoC,EAAE,CACnD,CACE,MAAM,IAAI,CAAC,GAAG,CAGZ,GAAG,IAAI,CAAC,OAAO,EAAE,2BAA2B,KAAK,gBAAgB,UAAU,UAAU,KAAK,EAAE,CAC7F,CACF,CAAC,OAAO,CAAC;IAEZ,sGAAsG;IAEtG,gBAAgB,GAAG,KAAK,EACtB,IAAY,EAC0B,EAAE,CACxC,CACE,MAAM,IAAI,CAAC,GAAG,CACZ,GAAG,IAAI,CAAC,eAAe,4BAA4B,IAAI,EAAE,CAC1D,CACF,CAAC,kBAAkB,CAAC;CACxB"}
package/lib/index.d.ts CHANGED
@@ -13,8 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export * from './models/DataAsset.js';
17
- export * from './models/ProductSearchResult.js';
18
- export * from './models/Vendor.js';
16
+ export * from './models/DataProduct.js';
17
+ export * from './models/Provider.js';
18
+ export * from './models/Subscription.js';
19
19
  export { MarketplaceServerClient } from './MarketplaceServerClient.js';
20
20
  //# 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,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC"}
package/lib/index.js CHANGED
@@ -13,8 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export * from './models/DataAsset.js';
17
- export * from './models/ProductSearchResult.js';
18
- export * from './models/Vendor.js';
16
+ export * from './models/DataProduct.js';
17
+ export * from './models/Provider.js';
18
+ export * from './models/Subscription.js';
19
19
  export { MarketplaceServerClient } from './MarketplaceServerClient.js';
20
20
  //# 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,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -14,26 +14,32 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { SerializationFactory } from '@finos/legend-shared';
17
- export declare class ProductSearchResultTableField {
17
+ export interface LightDataProduct {
18
+ description: string;
19
+ provider: string;
20
+ type: 'vendor' | 'curated';
21
+ moreInfo: string;
22
+ }
23
+ export declare class DataProductSearchResultTableField {
18
24
  field_description: string;
19
25
  field_name: string;
20
26
  similarity: number;
21
- static readonly serialization: SerializationFactory<ProductSearchResultTableField>;
27
+ static readonly serialization: SerializationFactory<DataProductSearchResultTableField>;
22
28
  }
23
- export declare class ProductSearchResultTable {
29
+ export declare class DataProductSearchResultTable {
24
30
  dataset_score: number;
25
31
  table_description: string;
26
- table_fields: ProductSearchResultTableField[];
32
+ table_fields: DataProductSearchResultTableField[];
27
33
  table_name: string;
28
- static readonly serialization: SerializationFactory<ProductSearchResultTable>;
34
+ static readonly serialization: SerializationFactory<DataProductSearchResultTable>;
29
35
  }
30
- export declare class ProductSearchResult {
36
+ export declare class DataProductSearchResult {
31
37
  data_product_description: string;
32
38
  data_product_link: string;
33
39
  data_product_name: string;
34
40
  product_score: number;
35
- tables: ProductSearchResultTable[];
41
+ tables: DataProductSearchResultTable[];
36
42
  vendor_name: string;
37
- static readonly serialization: SerializationFactory<ProductSearchResult>;
43
+ static readonly serialization: SerializationFactory<DataProductSearchResult>;
38
44
  }
39
- //# sourceMappingURL=ProductSearchResult.d.ts.map
45
+ //# sourceMappingURL=DataProduct.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataProduct.d.ts","sourceRoot":"","sources":["../../src/models/DataProduct.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG5D,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,iCAAiC;IAC5C,iBAAiB,EAAG,MAAM,CAAC;IAC3B,UAAU,EAAG,MAAM,CAAC;IACpB,UAAU,EAAG,MAAM,CAAC;IAEpB,MAAM,CAAC,QAAQ,CAAC,aAAa,0DAM3B;CACH;AAED,qBAAa,4BAA4B;IACvC,aAAa,EAAG,MAAM,CAAC;IACvB,iBAAiB,EAAG,MAAM,CAAC;IAC3B,YAAY,EAAG,iCAAiC,EAAE,CAAC;IACnD,UAAU,EAAG,MAAM,CAAC;IAEpB,MAAM,CAAC,QAAQ,CAAC,aAAa,qDAO3B;CACH;AAED,qBAAa,uBAAuB;IAClC,wBAAwB,EAAG,MAAM,CAAC;IAClC,iBAAiB,EAAG,MAAM,CAAC;IAC3B,iBAAiB,EAAG,MAAM,CAAC;IAC3B,aAAa,EAAG,MAAM,CAAC;IACvB,MAAM,EAAG,4BAA4B,EAAE,CAAC;IACxC,WAAW,EAAG,MAAM,CAAC;IAErB,MAAM,CAAC,QAAQ,CAAC,aAAa,gDAS3B;CACH"}
@@ -15,42 +15,42 @@
15
15
  */
16
16
  import { SerializationFactory } from '@finos/legend-shared';
17
17
  import { createModelSchema, list, object, primitive } from 'serializr';
18
- export class ProductSearchResultTableField {
18
+ export class DataProductSearchResultTableField {
19
19
  field_description;
20
20
  field_name;
21
21
  similarity;
22
- static serialization = new SerializationFactory(createModelSchema(ProductSearchResultTableField, {
22
+ static serialization = new SerializationFactory(createModelSchema(DataProductSearchResultTableField, {
23
23
  field_description: primitive(),
24
24
  field_name: primitive(),
25
25
  similarity: primitive(),
26
26
  }));
27
27
  }
28
- export class ProductSearchResultTable {
28
+ export class DataProductSearchResultTable {
29
29
  dataset_score;
30
30
  table_description;
31
31
  table_fields;
32
32
  table_name;
33
- static serialization = new SerializationFactory(createModelSchema(ProductSearchResultTable, {
33
+ static serialization = new SerializationFactory(createModelSchema(DataProductSearchResultTable, {
34
34
  dataset_score: primitive(),
35
35
  table_description: primitive(),
36
- table_fields: list(object(ProductSearchResultTableField)),
36
+ table_fields: list(object(DataProductSearchResultTableField)),
37
37
  table_name: primitive(),
38
38
  }));
39
39
  }
40
- export class ProductSearchResult {
40
+ export class DataProductSearchResult {
41
41
  data_product_description;
42
42
  data_product_link;
43
43
  data_product_name;
44
44
  product_score;
45
45
  tables;
46
46
  vendor_name;
47
- static serialization = new SerializationFactory(createModelSchema(ProductSearchResult, {
47
+ static serialization = new SerializationFactory(createModelSchema(DataProductSearchResult, {
48
48
  data_product_description: primitive(),
49
49
  data_product_link: primitive(),
50
50
  data_product_name: primitive(),
51
51
  product_score: primitive(),
52
- tables: list(object(ProductSearchResultTable)),
52
+ tables: list(object(DataProductSearchResultTable)),
53
53
  vendor_name: primitive(),
54
54
  }));
55
55
  }
56
- //# sourceMappingURL=ProductSearchResult.js.map
56
+ //# sourceMappingURL=DataProduct.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataProduct.js","sourceRoot":"","sources":["../../src/models/DataProduct.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AASvE,MAAM,OAAO,iCAAiC;IAC5C,iBAAiB,CAAU;IAC3B,UAAU,CAAU;IACpB,UAAU,CAAU;IAEpB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,iCAAiC,EAAE;QACnD,iBAAiB,EAAE,SAAS,EAAE;QAC9B,UAAU,EAAE,SAAS,EAAE;QACvB,UAAU,EAAE,SAAS,EAAE;KACxB,CAAC,CACH,CAAC;;AAGJ,MAAM,OAAO,4BAA4B;IACvC,aAAa,CAAU;IACvB,iBAAiB,CAAU;IAC3B,YAAY,CAAuC;IACnD,UAAU,CAAU;IAEpB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,4BAA4B,EAAE;QAC9C,aAAa,EAAE,SAAS,EAAE;QAC1B,iBAAiB,EAAE,SAAS,EAAE;QAC9B,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAAC;QAC7D,UAAU,EAAE,SAAS,EAAE;KACxB,CAAC,CACH,CAAC;;AAGJ,MAAM,OAAO,uBAAuB;IAClC,wBAAwB,CAAU;IAClC,iBAAiB,CAAU;IAC3B,iBAAiB,CAAU;IAC3B,aAAa,CAAU;IACvB,MAAM,CAAkC;IACxC,WAAW,CAAU;IAErB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,uBAAuB,EAAE;QACzC,wBAAwB,EAAE,SAAS,EAAE;QACrC,iBAAiB,EAAE,SAAS,EAAE;QAC9B,iBAAiB,EAAE,SAAS,EAAE;QAC9B,aAAa,EAAE,SAAS,EAAE;QAC1B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC;QAClD,WAAW,EAAE,SAAS,EAAE;KACzB,CAAC,CACH,CAAC"}
@@ -13,9 +13,20 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export interface Vendor {
16
+ import { SerializationFactory } from '@finos/legend-shared';
17
+ export interface LightProvider {
17
18
  description: string;
18
19
  provider: string;
19
20
  type: string;
20
21
  }
21
- //# sourceMappingURL=Vendor.d.ts.map
22
+ export declare class ProviderResult {
23
+ id: number;
24
+ category: string;
25
+ providerName: string;
26
+ productName: string;
27
+ description: string;
28
+ price: number;
29
+ isOwned?: boolean;
30
+ static readonly serialization: SerializationFactory<ProviderResult>;
31
+ }
32
+ //# sourceMappingURL=Provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../src/models/Provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG5D,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,cAAc;IACzB,EAAE,EAAG,MAAM,CAAC;IACZ,QAAQ,EAAG,MAAM,CAAC;IAClB,YAAY,EAAG,MAAM,CAAC;IACtB,WAAW,EAAG,MAAM,CAAC;IACrB,WAAW,EAAG,MAAM,CAAC;IACrB,KAAK,EAAG,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,MAAM,CAAC,QAAQ,CAAC,aAAa,uCAU3B;CACH"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Copyright (c) 2020-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 { SerializationFactory } from '@finos/legend-shared';
17
+ import { createModelSchema, optional, primitive } from 'serializr';
18
+ export class ProviderResult {
19
+ id;
20
+ category;
21
+ providerName;
22
+ productName;
23
+ description;
24
+ price;
25
+ isOwned;
26
+ static serialization = new SerializationFactory(createModelSchema(ProviderResult, {
27
+ id: primitive(),
28
+ category: primitive(),
29
+ providerName: primitive(),
30
+ productName: primitive(),
31
+ description: primitive(),
32
+ price: primitive(),
33
+ isOwned: optional(primitive()),
34
+ }));
35
+ }
36
+ //# sourceMappingURL=Provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../src/models/Provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAQnE,MAAM,OAAO,cAAc;IACzB,EAAE,CAAU;IACZ,QAAQ,CAAU;IAClB,YAAY,CAAU;IACtB,WAAW,CAAU;IACrB,WAAW,CAAU;IACrB,KAAK,CAAU;IACf,OAAO,CAAW;IAElB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,cAAc,EAAE;QAChC,EAAE,EAAE,SAAS,EAAE;QACf,QAAQ,EAAE,SAAS,EAAE;QACrB,YAAY,EAAE,SAAS,EAAE;QACzB,WAAW,EAAE,SAAS,EAAE;QACxB,WAAW,EAAE,SAAS,EAAE;QACxB,KAAK,EAAE,SAAS,EAAE;QAClB,OAAO,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;KAC/B,CAAC,CACH,CAAC"}
@@ -13,10 +13,16 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export interface DataAsset {
17
- description: string;
18
- provider: string;
19
- type: 'vendor' | 'curated';
20
- moreInfo: string;
16
+ import { SerializationFactory } from '@finos/legend-shared';
17
+ export declare class Subscription {
18
+ carrierVendor: string;
19
+ model: string;
20
+ sourceVendor: string;
21
+ itemName: string;
22
+ serviceName: string;
23
+ monthlyAmount: number;
24
+ taxValue: number;
25
+ costCode: string;
26
+ static readonly serialization: SerializationFactory<Subscription>;
21
27
  }
22
- //# sourceMappingURL=DataAsset.d.ts.map
28
+ //# sourceMappingURL=Subscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../src/models/Subscription.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG5D,qBAAa,YAAY;IACvB,aAAa,EAAG,MAAM,CAAC;IACvB,KAAK,EAAG,MAAM,CAAC;IACf,YAAY,EAAG,MAAM,CAAC;IACtB,QAAQ,EAAG,MAAM,CAAC;IAClB,WAAW,EAAG,MAAM,CAAC;IACrB,aAAa,EAAG,MAAM,CAAC;IACvB,QAAQ,EAAG,MAAM,CAAC;IAClB,QAAQ,EAAG,MAAM,CAAC;IAElB,MAAM,CAAC,QAAQ,CAAC,aAAa,qCAW3B;CACH"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Copyright (c) 2020-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 { SerializationFactory } from '@finos/legend-shared';
17
+ import { alias, createModelSchema, primitive } from 'serializr';
18
+ export class Subscription {
19
+ carrierVendor;
20
+ model;
21
+ sourceVendor;
22
+ itemName;
23
+ serviceName;
24
+ monthlyAmount;
25
+ taxValue;
26
+ costCode;
27
+ static serialization = new SerializationFactory(createModelSchema(Subscription, {
28
+ carrierVendor: alias('CarrierVendor', primitive()),
29
+ model: alias('Model', primitive()),
30
+ sourceVendor: alias('SourceVendor', primitive()),
31
+ itemName: alias('ItemName', primitive()),
32
+ serviceName: alias('ServiceName', primitive()),
33
+ monthlyAmount: alias('MonthlyAmount', primitive()),
34
+ taxValue: alias('TaxValue', primitive()),
35
+ costCode: alias('CostCode', primitive()),
36
+ }));
37
+ }
38
+ //# sourceMappingURL=Subscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../src/models/Subscription.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEhE,MAAM,OAAO,YAAY;IACvB,aAAa,CAAU;IACvB,KAAK,CAAU;IACf,YAAY,CAAU;IACtB,QAAQ,CAAU;IAClB,WAAW,CAAU;IACrB,aAAa,CAAU;IACvB,QAAQ,CAAU;IAClB,QAAQ,CAAU;IAElB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,YAAY,EAAE;QAC9B,aAAa,EAAE,KAAK,CAAC,eAAe,EAAE,SAAS,EAAE,CAAC;QAClD,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC;QAClC,YAAY,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,EAAE,CAAC;QAChD,QAAQ,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,CAAC;QACxC,WAAW,EAAE,KAAK,CAAC,aAAa,EAAE,SAAS,EAAE,CAAC;QAC9C,aAAa,EAAE,KAAK,CAAC,eAAe,EAAE,SAAS,EAAE,CAAC;QAClD,QAAQ,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,CAAC;QACxC,QAAQ,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,CAAC;KACzC,CAAC,CACH,CAAC"}
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-server-marketplace",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Legend Marketplace server client",
5
5
  "keywords": [
6
6
  "legend",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-server-marketplace",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Legend Marketplace server client",
5
5
  "keywords": [
6
6
  "legend",
@@ -15,11 +15,13 @@
15
15
  */
16
16
 
17
17
  import { type PlainObject, AbstractServerClient } from '@finos/legend-shared';
18
- import type { Vendor } from './models/Vendor.js';
19
- import type { ProductSearchResult } from './models/ProductSearchResult.js';
18
+ import type { LightProvider, ProviderResult } from './models/Provider.js';
19
+ import type { DataProductSearchResult } from './models/DataProduct.js';
20
+ import type { Subscription } from './models/Subscription.js';
20
21
 
21
22
  export interface MarketplaceServerClientConfig {
22
23
  serverUrl: string;
24
+ subscriptionUrl: string;
23
25
  }
24
26
 
25
27
  interface MarketplaceServerResponse<T> {
@@ -29,6 +31,7 @@ interface MarketplaceServerResponse<T> {
29
31
  }
30
32
 
31
33
  export class MarketplaceServerClient extends AbstractServerClient {
34
+ subscriptionUrl: string;
32
35
  constructor(config: MarketplaceServerClientConfig) {
33
36
  super({
34
37
  baseUrl: config.serverUrl,
@@ -39,13 +42,26 @@ export class MarketplaceServerClient extends AbstractServerClient {
39
42
  credentials: 'omit',
40
43
  },
41
44
  });
45
+
46
+ this.subscriptionUrl = config.subscriptionUrl;
42
47
  }
43
48
 
44
49
  // ------------------------------------------- Vendors -------------------------------------------
45
50
 
46
51
  private _vendors = (): string => `${this.baseUrl}/v1/vendors`;
47
52
 
48
- getVendors = (): Promise<PlainObject<Vendor>[]> => this.get(this._vendors());
53
+ getVendors = (): Promise<PlainObject<LightProvider>[]> =>
54
+ this.get(this._vendors());
55
+
56
+ getVendorsByCategory = async (
57
+ category: string,
58
+ limit: number,
59
+ ): Promise<PlainObject<ProviderResult>[]> =>
60
+ (
61
+ await this.get<MarketplaceServerResponse<PlainObject<ProviderResult>[]>>(
62
+ `${this.baseUrl}/v1/vendor/category?category=${category}&limit=${limit}`,
63
+ )
64
+ ).results;
49
65
 
50
66
  // ------------------------------------------- Search- -------------------------------------------
51
67
 
@@ -55,12 +71,23 @@ export class MarketplaceServerClient extends AbstractServerClient {
55
71
  query: string,
56
72
  vendorName: string,
57
73
  limit: number,
58
- ): Promise<PlainObject<ProductSearchResult>[]> =>
74
+ ): Promise<PlainObject<DataProductSearchResult>[]> =>
59
75
  (
60
76
  await this.get<
61
- MarketplaceServerResponse<PlainObject<ProductSearchResult>[]>
77
+ MarketplaceServerResponse<PlainObject<DataProductSearchResult>[]>
62
78
  >(
63
79
  `${this._search()}/semantic/catalog?query=${query}&vendor_name=${vendorName}&limit=${limit}`,
64
80
  )
65
81
  ).results;
82
+
83
+ // ------------------------------------------- Subscriptions -----------------------------------------
84
+
85
+ getSubscriptions = async (
86
+ user: string,
87
+ ): Promise<PlainObject<Subscription>[]> =>
88
+ (
89
+ await this.get<{ subscription_feeds: PlainObject<Subscription>[] }>(
90
+ `${this.subscriptionUrl}/v1/service/subscription/${user}`,
91
+ )
92
+ ).subscription_feeds;
66
93
  }
package/src/index.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export * from './models/DataAsset.js';
18
- export * from './models/ProductSearchResult.js';
19
- export * from './models/Vendor.js';
17
+ export * from './models/DataProduct.js';
18
+ export * from './models/Provider.js';
19
+ export * from './models/Subscription.js';
20
20
 
21
21
  export { MarketplaceServerClient } from './MarketplaceServerClient.js';
@@ -17,13 +17,20 @@
17
17
  import { SerializationFactory } from '@finos/legend-shared';
18
18
  import { createModelSchema, list, object, primitive } from 'serializr';
19
19
 
20
- export class ProductSearchResultTableField {
20
+ export interface LightDataProduct {
21
+ description: string;
22
+ provider: string;
23
+ type: 'vendor' | 'curated';
24
+ moreInfo: string;
25
+ }
26
+
27
+ export class DataProductSearchResultTableField {
21
28
  field_description!: string;
22
29
  field_name!: string;
23
30
  similarity!: number;
24
31
 
25
32
  static readonly serialization = new SerializationFactory(
26
- createModelSchema(ProductSearchResultTableField, {
33
+ createModelSchema(DataProductSearchResultTableField, {
27
34
  field_description: primitive(),
28
35
  field_name: primitive(),
29
36
  similarity: primitive(),
@@ -31,37 +38,37 @@ export class ProductSearchResultTableField {
31
38
  );
32
39
  }
33
40
 
34
- export class ProductSearchResultTable {
41
+ export class DataProductSearchResultTable {
35
42
  dataset_score!: number;
36
43
  table_description!: string;
37
- table_fields!: ProductSearchResultTableField[];
44
+ table_fields!: DataProductSearchResultTableField[];
38
45
  table_name!: string;
39
46
 
40
47
  static readonly serialization = new SerializationFactory(
41
- createModelSchema(ProductSearchResultTable, {
48
+ createModelSchema(DataProductSearchResultTable, {
42
49
  dataset_score: primitive(),
43
50
  table_description: primitive(),
44
- table_fields: list(object(ProductSearchResultTableField)),
51
+ table_fields: list(object(DataProductSearchResultTableField)),
45
52
  table_name: primitive(),
46
53
  }),
47
54
  );
48
55
  }
49
56
 
50
- export class ProductSearchResult {
57
+ export class DataProductSearchResult {
51
58
  data_product_description!: string;
52
59
  data_product_link!: string;
53
60
  data_product_name!: string;
54
61
  product_score!: number;
55
- tables!: ProductSearchResultTable[];
62
+ tables!: DataProductSearchResultTable[];
56
63
  vendor_name!: string;
57
64
 
58
65
  static readonly serialization = new SerializationFactory(
59
- createModelSchema(ProductSearchResult, {
66
+ createModelSchema(DataProductSearchResult, {
60
67
  data_product_description: primitive(),
61
68
  data_product_link: primitive(),
62
69
  data_product_name: primitive(),
63
70
  product_score: primitive(),
64
- tables: list(object(ProductSearchResultTable)),
71
+ tables: list(object(DataProductSearchResultTable)),
65
72
  vendor_name: primitive(),
66
73
  }),
67
74
  );
@@ -14,8 +14,33 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export interface Vendor {
17
+ import { SerializationFactory } from '@finos/legend-shared';
18
+ import { createModelSchema, optional, primitive } from 'serializr';
19
+
20
+ export interface LightProvider {
18
21
  description: string;
19
22
  provider: string;
20
23
  type: string;
21
24
  }
25
+
26
+ export class ProviderResult {
27
+ id!: number;
28
+ category!: string;
29
+ providerName!: string;
30
+ productName!: string;
31
+ description!: string;
32
+ price!: number;
33
+ isOwned?: boolean;
34
+
35
+ static readonly serialization = new SerializationFactory(
36
+ createModelSchema(ProviderResult, {
37
+ id: primitive(),
38
+ category: primitive(),
39
+ providerName: primitive(),
40
+ productName: primitive(),
41
+ description: primitive(),
42
+ price: primitive(),
43
+ isOwned: optional(primitive()),
44
+ }),
45
+ );
46
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Copyright (c) 2020-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 { SerializationFactory } from '@finos/legend-shared';
18
+ import { alias, createModelSchema, primitive } from 'serializr';
19
+
20
+ export class Subscription {
21
+ carrierVendor!: string;
22
+ model!: string;
23
+ sourceVendor!: string;
24
+ itemName!: string;
25
+ serviceName!: string;
26
+ monthlyAmount!: number;
27
+ taxValue!: number;
28
+ costCode!: string;
29
+
30
+ static readonly serialization = new SerializationFactory(
31
+ createModelSchema(Subscription, {
32
+ carrierVendor: alias('CarrierVendor', primitive()),
33
+ model: alias('Model', primitive()),
34
+ sourceVendor: alias('SourceVendor', primitive()),
35
+ itemName: alias('ItemName', primitive()),
36
+ serviceName: alias('ServiceName', primitive()),
37
+ monthlyAmount: alias('MonthlyAmount', primitive()),
38
+ taxValue: alias('TaxValue', primitive()),
39
+ costCode: alias('CostCode', primitive()),
40
+ }),
41
+ );
42
+ }
package/tsconfig.json CHANGED
@@ -53,9 +53,9 @@
53
53
  "files": [
54
54
  "./src/MarketplaceServerClient.ts",
55
55
  "./src/index.ts",
56
- "./src/models/DataAsset.ts",
57
- "./src/models/ProductSearchResult.ts",
58
- "./src/models/Vendor.ts"
56
+ "./src/models/DataProduct.ts",
57
+ "./src/models/Provider.ts",
58
+ "./src/models/Subscription.ts"
59
59
  ],
60
60
  "include": [
61
61
  "src/**/*.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataAsset.d.ts","sourceRoot":"","sources":["../../src/models/DataAsset.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-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
- export {};
17
- //# sourceMappingURL=DataAsset.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataAsset.js","sourceRoot":"","sources":["../../src/models/DataAsset.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductSearchResult.d.ts","sourceRoot":"","sources":["../../src/models/ProductSearchResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG5D,qBAAa,6BAA6B;IACxC,iBAAiB,EAAG,MAAM,CAAC;IAC3B,UAAU,EAAG,MAAM,CAAC;IACpB,UAAU,EAAG,MAAM,CAAC;IAEpB,MAAM,CAAC,QAAQ,CAAC,aAAa,sDAM3B;CACH;AAED,qBAAa,wBAAwB;IACnC,aAAa,EAAG,MAAM,CAAC;IACvB,iBAAiB,EAAG,MAAM,CAAC;IAC3B,YAAY,EAAG,6BAA6B,EAAE,CAAC;IAC/C,UAAU,EAAG,MAAM,CAAC;IAEpB,MAAM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;AAGJ,MAAM,OAAO,mBAAmB;IAC9B,wBAAwB,CAAU;IAClC,iBAAiB,CAAU;IAC3B,iBAAiB,CAAU;IAC3B,aAAa,CAAU;IACvB,MAAM,CAA8B;IACpC,WAAW,CAAU;IAErB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,mBAAmB,EAAE;QACrC,wBAAwB,EAAE,SAAS,EAAE;QACrC,iBAAiB,EAAE,SAAS,EAAE;QAC9B,iBAAiB,EAAE,SAAS,EAAE;QAC9B,aAAa,EAAE,SAAS,EAAE;QAC1B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;QAC9C,WAAW,EAAE,SAAS,EAAE;KACzB,CAAC,CACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Vendor.d.ts","sourceRoot":"","sources":["../../src/models/Vendor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,WAAW,MAAM;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-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
- export {};
17
- //# sourceMappingURL=Vendor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Vendor.js","sourceRoot":"","sources":["../../src/models/Vendor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-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
- export interface DataAsset {
18
- description: string;
19
- provider: string;
20
- type: 'vendor' | 'curated';
21
- moreInfo: string;
22
- }