@proteos/sdk 0.95.0 → 0.96.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/dist/index.cjs +28 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +161 -9
- package/dist/index.d.ts +161 -9
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/enrichment/index.ts +51 -0
- package/src/enrichment/types.ts +154 -5
- package/src/index.ts +14 -0
package/dist/index.cjs
CHANGED
|
@@ -3765,6 +3765,14 @@ var EnrichmentRunServiceImpl = class {
|
|
|
3765
3765
|
record_id: recordId
|
|
3766
3766
|
});
|
|
3767
3767
|
}
|
|
3768
|
+
async listRecordItems(entitySlug, recordId) {
|
|
3769
|
+
const response = await this.client.requestWithQuery(
|
|
3770
|
+
"GET",
|
|
3771
|
+
`${ENRICHMENT_BASE_PATH}/enrichment-items`,
|
|
3772
|
+
{ entity_slug: entitySlug, record_id: recordId }
|
|
3773
|
+
);
|
|
3774
|
+
return response.data;
|
|
3775
|
+
}
|
|
3768
3776
|
};
|
|
3769
3777
|
var EnrichmentMappingServiceImpl = class {
|
|
3770
3778
|
constructor(client) {
|
|
@@ -3853,6 +3861,13 @@ var EnrichmentConnectionServiceImpl = class {
|
|
|
3853
3861
|
`${ENRICHMENT_BASE_PATH}/enrichment-connections/${encode2(id)}`
|
|
3854
3862
|
);
|
|
3855
3863
|
}
|
|
3864
|
+
test(request) {
|
|
3865
|
+
return this.client.request(
|
|
3866
|
+
"POST",
|
|
3867
|
+
`${ENRICHMENT_BASE_PATH}/enrichment-connections/test`,
|
|
3868
|
+
request
|
|
3869
|
+
);
|
|
3870
|
+
}
|
|
3856
3871
|
};
|
|
3857
3872
|
var SignalServiceImpl = class {
|
|
3858
3873
|
constructor(client) {
|
|
@@ -3969,6 +3984,19 @@ var EnrichmentCatalogServiceImpl = class {
|
|
|
3969
3984
|
);
|
|
3970
3985
|
return response.data;
|
|
3971
3986
|
}
|
|
3987
|
+
createEnrichmentType(request) {
|
|
3988
|
+
return this.client.request("POST", `${ENRICHMENT_BASE_PATH}/enrichment-types`, request);
|
|
3989
|
+
}
|
|
3990
|
+
patchEnrichmentType(key, request) {
|
|
3991
|
+
return this.client.request(
|
|
3992
|
+
"PATCH",
|
|
3993
|
+
`${ENRICHMENT_BASE_PATH}/enrichment-types/${encode2(key)}`,
|
|
3994
|
+
request
|
|
3995
|
+
);
|
|
3996
|
+
}
|
|
3997
|
+
async deleteEnrichmentType(key) {
|
|
3998
|
+
await this.client.request("DELETE", `${ENRICHMENT_BASE_PATH}/enrichment-types/${encode2(key)}`);
|
|
3999
|
+
}
|
|
3972
4000
|
};
|
|
3973
4001
|
|
|
3974
4002
|
// src/events/index.ts
|