contentful-management 11.65.0 → 11.66.0
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/contentful-management.browser.js +600 -80
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +592 -80
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/index.js +10 -0
- package/dist/es-modules/adapters/REST/endpoints/semantic-duplicates.js +6 -0
- package/dist/es-modules/adapters/REST/endpoints/semantic-recommendations.js +6 -0
- package/dist/es-modules/adapters/REST/endpoints/semantic-reference-suggestions.js +6 -0
- package/dist/es-modules/adapters/REST/endpoints/semantic-search.js +6 -0
- package/dist/es-modules/adapters/REST/endpoints/vectorization-status.js +11 -0
- package/dist/es-modules/create-environment-api.js +183 -0
- package/dist/es-modules/create-organization-api.js +51 -0
- package/dist/es-modules/entities/index.js +10 -0
- package/dist/es-modules/entities/semantic-duplicates.js +6 -0
- package/dist/es-modules/entities/semantic-recommendations.js +6 -0
- package/dist/es-modules/entities/semantic-reference-suggestions.js +6 -0
- package/dist/es-modules/entities/semantic-search.js +6 -0
- package/dist/es-modules/entities/vectorization-status.js +14 -0
- package/dist/es-modules/plain/entities/semantic-duplicates.js +1 -0
- package/dist/es-modules/plain/entities/semantic-recommendations.js +1 -0
- package/dist/es-modules/plain/entities/semantic-reference-suggestions.js +1 -0
- package/dist/es-modules/plain/entities/semantic-search.js +1 -0
- package/dist/es-modules/plain/entities/vectorization-status.js +1 -0
- package/dist/es-modules/plain/plain-client.js +18 -0
- package/dist/typings/adapters/REST/endpoints/index.d.ts +10 -0
- package/dist/typings/adapters/REST/endpoints/semantic-duplicates.d.ts +2 -0
- package/dist/typings/adapters/REST/endpoints/semantic-recommendations.d.ts +2 -0
- package/dist/typings/adapters/REST/endpoints/semantic-reference-suggestions.d.ts +2 -0
- package/dist/typings/adapters/REST/endpoints/semantic-search.d.ts +2 -0
- package/dist/typings/adapters/REST/endpoints/vectorization-status.d.ts +3 -0
- package/dist/typings/common-types.d.ts +71 -0
- package/dist/typings/create-environment-api.d.ts +103 -0
- package/dist/typings/create-organization-api.d.ts +28 -0
- package/dist/typings/entities/index.d.ts +10 -0
- package/dist/typings/entities/semantic-duplicates.d.ts +25 -0
- package/dist/typings/entities/semantic-recommendations.d.ts +23 -0
- package/dist/typings/entities/semantic-reference-suggestions.d.ts +24 -0
- package/dist/typings/entities/semantic-search.d.ts +23 -0
- package/dist/typings/entities/vectorization-status.d.ts +32 -0
- package/dist/typings/export-types.d.ts +5 -0
- package/dist/typings/plain/common-types.d.ts +12 -0
- package/dist/typings/plain/entities/semantic-duplicates.d.ts +14 -0
- package/dist/typings/plain/entities/semantic-recommendations.d.ts +14 -0
- package/dist/typings/plain/entities/semantic-reference-suggestions.d.ts +14 -0
- package/dist/typings/plain/entities/semantic-search.d.ts +14 -0
- package/dist/typings/plain/entities/vectorization-status.d.ts +21 -0
- package/package.json +1 -1
|
@@ -47,6 +47,10 @@ import * as ResourceProvider from './resource-provider';
|
|
|
47
47
|
import * as ResourceType from './resource-type';
|
|
48
48
|
import * as Role from './role';
|
|
49
49
|
import * as ScheduledAction from './scheduled-action';
|
|
50
|
+
import * as SemanticDuplicates from './semantic-duplicates';
|
|
51
|
+
import * as SemanticRecommendations from './semantic-recommendations';
|
|
52
|
+
import * as SemanticReferenceSuggestions from './semantic-reference-suggestions';
|
|
53
|
+
import * as SemanticSearch from './semantic-search';
|
|
50
54
|
import * as Snapshot from './snapshot';
|
|
51
55
|
import * as Space from './space';
|
|
52
56
|
import * as SpaceMember from './space-member';
|
|
@@ -62,6 +66,7 @@ import * as UploadCredential from './upload-credentials';
|
|
|
62
66
|
import * as Usage from './usage';
|
|
63
67
|
import * as User from './user';
|
|
64
68
|
import * as UserUIConfig from './user-ui-config';
|
|
69
|
+
import * as VectorizationStatus from './vectorization-status';
|
|
65
70
|
import * as Webhook from './webhook';
|
|
66
71
|
import * as Workflow from './workflow';
|
|
67
72
|
import * as WorkflowDefinition from './workflow-definition';
|
|
@@ -116,6 +121,10 @@ export default {
|
|
|
116
121
|
ResourceType,
|
|
117
122
|
Role,
|
|
118
123
|
ScheduledAction,
|
|
124
|
+
SemanticDuplicates,
|
|
125
|
+
SemanticRecommendations,
|
|
126
|
+
SemanticReferenceSuggestions,
|
|
127
|
+
SemanticSearch,
|
|
119
128
|
Snapshot,
|
|
120
129
|
Space,
|
|
121
130
|
SpaceMember,
|
|
@@ -131,6 +140,7 @@ export default {
|
|
|
131
140
|
Usage,
|
|
132
141
|
User,
|
|
133
142
|
UserUIConfig,
|
|
143
|
+
VectorizationStatus,
|
|
134
144
|
Webhook,
|
|
135
145
|
WorkflowDefinition,
|
|
136
146
|
Workflow,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as raw from './raw';
|
|
2
|
+
export const get = (http, params, headers) => {
|
|
3
|
+
return raw.get(http, `/organizations/${params.organizationId}/semantic/vectorization-status`, {
|
|
4
|
+
headers
|
|
5
|
+
});
|
|
6
|
+
};
|
|
7
|
+
export const update = (http, params, data, headers) => {
|
|
8
|
+
return raw.post(http, `/organizations/${params.organizationId}/semantic/vectorization-status`, data, {
|
|
9
|
+
headers
|
|
10
|
+
});
|
|
11
|
+
};
|
|
@@ -91,6 +91,18 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
91
91
|
const {
|
|
92
92
|
wrapResourceCollection
|
|
93
93
|
} = entities.resource;
|
|
94
|
+
const {
|
|
95
|
+
wrapSemanticDuplicates
|
|
96
|
+
} = entities.semanticDuplicates;
|
|
97
|
+
const {
|
|
98
|
+
wrapSemanticRecommendations
|
|
99
|
+
} = entities.semanticRecommendations;
|
|
100
|
+
const {
|
|
101
|
+
wrapSemanticReferenceSuggestions
|
|
102
|
+
} = entities.semanticReferenceSuggestions;
|
|
103
|
+
const {
|
|
104
|
+
wrapSemanticSearch
|
|
105
|
+
} = entities.semanticSearch;
|
|
94
106
|
return {
|
|
95
107
|
/**
|
|
96
108
|
* Deletes the environment
|
|
@@ -830,6 +842,39 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
830
842
|
}
|
|
831
843
|
}).then(data => wrapEntryCollection(makeRequest, data));
|
|
832
844
|
},
|
|
845
|
+
/**
|
|
846
|
+
* Gets a collection of published Entries with cursor based pagination
|
|
847
|
+
* @param query - Object with cursor pagination parameters. Check the <a href="https://www.contentful.com/developers/docs/references/content-management-api/#/introduction/cursor-pagination">REST API reference</a> for more details.
|
|
848
|
+
* @return Promise for a collection of published Entries
|
|
849
|
+
* @example ```javascript
|
|
850
|
+
* const contentful = require('contentful-management')
|
|
851
|
+
*
|
|
852
|
+
* const client = contentful.createClient({
|
|
853
|
+
* accessToken: '<content_management_api_key>'
|
|
854
|
+
* })
|
|
855
|
+
*
|
|
856
|
+
* client.getSpace('<space_id>')
|
|
857
|
+
* .then((space) => space.getEnvironment('<environment-id>'))
|
|
858
|
+
* .then((environment) => environment.getPublishedEntriesWithCursor())
|
|
859
|
+
* .then((response) => console.log(response.items))
|
|
860
|
+
* .catch(console.error)
|
|
861
|
+
* ```
|
|
862
|
+
*/
|
|
863
|
+
getPublishedEntriesWithCursor(query = {}) {
|
|
864
|
+
const raw = this.toPlainObject();
|
|
865
|
+
const normalizedQueryParams = normalizeCursorPaginationParameters(query);
|
|
866
|
+
return makeRequest({
|
|
867
|
+
entityType: 'Entry',
|
|
868
|
+
action: 'getPublished',
|
|
869
|
+
params: {
|
|
870
|
+
spaceId: raw.sys.space.sys.id,
|
|
871
|
+
environmentId: raw.sys.id,
|
|
872
|
+
query: createRequestConfig({
|
|
873
|
+
query: normalizedQueryParams
|
|
874
|
+
}).params
|
|
875
|
+
}
|
|
876
|
+
}).then(data => wrapEntryTypeCursorPaginatedCollection(makeRequest, normalizeCursorPaginationResponse(data)));
|
|
877
|
+
},
|
|
833
878
|
/**
|
|
834
879
|
* Creates a Entry
|
|
835
880
|
* @param contentTypeId - The Content Type ID of the newly created Entry
|
|
@@ -1081,6 +1126,39 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
1081
1126
|
}
|
|
1082
1127
|
}).then(data => wrapAssetCollection(makeRequest, data));
|
|
1083
1128
|
},
|
|
1129
|
+
/**
|
|
1130
|
+
* Gets a collection of published Assets with cursor based pagination
|
|
1131
|
+
* @param query - Object with cursor pagination parameters. Check the <a href="https://www.contentful.com/developers/docs/references/content-management-api/#/introduction/cursor-pagination">REST API reference</a> for more details.
|
|
1132
|
+
* @return Promise for a collection of published Assets
|
|
1133
|
+
* @example ```javascript
|
|
1134
|
+
* const contentful = require('contentful-management')
|
|
1135
|
+
*
|
|
1136
|
+
* const client = contentful.createClient({
|
|
1137
|
+
* accessToken: '<content_management_api_key>'
|
|
1138
|
+
* })
|
|
1139
|
+
*
|
|
1140
|
+
* client.getSpace('<space_id>')
|
|
1141
|
+
* .then((space) => space.getEnvironment('<environment-id>'))
|
|
1142
|
+
* .then((environment) => environment.getPublishedAssetsWithCursor())
|
|
1143
|
+
* .then((response) => console.log(response.items))
|
|
1144
|
+
* .catch(console.error)
|
|
1145
|
+
* ```
|
|
1146
|
+
*/
|
|
1147
|
+
getPublishedAssetsWithCursor(query = {}) {
|
|
1148
|
+
const raw = this.toPlainObject();
|
|
1149
|
+
const normalizedQueryParams = normalizeCursorPaginationParameters(query);
|
|
1150
|
+
return makeRequest({
|
|
1151
|
+
entityType: 'Asset',
|
|
1152
|
+
action: 'getPublished',
|
|
1153
|
+
params: {
|
|
1154
|
+
spaceId: raw.sys.space.sys.id,
|
|
1155
|
+
environmentId: raw.sys.id,
|
|
1156
|
+
query: createRequestConfig({
|
|
1157
|
+
query: normalizedQueryParams
|
|
1158
|
+
}).params
|
|
1159
|
+
}
|
|
1160
|
+
}).then(data => wrapAssetTypeCursorPaginatedCollection(makeRequest, normalizeCursorPaginationResponse(data)));
|
|
1161
|
+
},
|
|
1084
1162
|
/**
|
|
1085
1163
|
* Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.
|
|
1086
1164
|
* @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.
|
|
@@ -2662,6 +2740,111 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
2662
2740
|
invocationId
|
|
2663
2741
|
}
|
|
2664
2742
|
}).then(data => wrapAiActionInvocation(makeRequest, data));
|
|
2743
|
+
},
|
|
2744
|
+
/**
|
|
2745
|
+
* Retrieves Semantic Duplicates for the given entity ID
|
|
2746
|
+
* @param payload - Object containing the entityId and optional filters
|
|
2747
|
+
* @return Promise for Semantic Duplicates
|
|
2748
|
+
* @example ```javascript
|
|
2749
|
+
* client.getSpace('<space_id>')
|
|
2750
|
+
* .then(space => space.getEnvironment('<environment_id>'))
|
|
2751
|
+
* .then(environment => environment.getSemanticDuplicates({
|
|
2752
|
+
* entityId: '<entity_id>',
|
|
2753
|
+
* filters: {
|
|
2754
|
+
* contentTypeIds: ['<content_type_id1>', '<content_type_id2>'],
|
|
2755
|
+
* }
|
|
2756
|
+
* })
|
|
2757
|
+
*/
|
|
2758
|
+
getSemanticDuplicates(payload) {
|
|
2759
|
+
const raw = this.toPlainObject();
|
|
2760
|
+
return makeRequest({
|
|
2761
|
+
entityType: 'SemanticDuplicates',
|
|
2762
|
+
action: 'get',
|
|
2763
|
+
params: {
|
|
2764
|
+
spaceId: raw.sys.space.sys.id,
|
|
2765
|
+
environmentId: raw.sys.id
|
|
2766
|
+
},
|
|
2767
|
+
payload
|
|
2768
|
+
}).then(data => wrapSemanticDuplicates(makeRequest, data));
|
|
2769
|
+
},
|
|
2770
|
+
/**
|
|
2771
|
+
* Retrieves Semantic Recommendations for the given entity ID
|
|
2772
|
+
* @param payload - Object containing the entityId and optional filters
|
|
2773
|
+
* @return Promise for Semantic Recommendations
|
|
2774
|
+
* @example ```javascript
|
|
2775
|
+
* client.getSpace('<space_id>')
|
|
2776
|
+
* .then(space => space.getEnvironment('<environment_id>'))
|
|
2777
|
+
* .then(environment => environment.getSemanticRecommendations({
|
|
2778
|
+
* entityId: '<entity_id>',
|
|
2779
|
+
* filters: {
|
|
2780
|
+
* contentTypeIds: ['<content_type_id1>', '<content_type_id2>'],
|
|
2781
|
+
* }
|
|
2782
|
+
* })
|
|
2783
|
+
*/
|
|
2784
|
+
getSemanticRecommendations(payload) {
|
|
2785
|
+
const raw = this.toPlainObject();
|
|
2786
|
+
return makeRequest({
|
|
2787
|
+
entityType: 'SemanticRecommendations',
|
|
2788
|
+
action: 'get',
|
|
2789
|
+
params: {
|
|
2790
|
+
spaceId: raw.sys.space.sys.id,
|
|
2791
|
+
environmentId: raw.sys.id
|
|
2792
|
+
},
|
|
2793
|
+
payload
|
|
2794
|
+
}).then(data => wrapSemanticRecommendations(makeRequest, data));
|
|
2795
|
+
},
|
|
2796
|
+
/**
|
|
2797
|
+
* Retrieves Semantic Reference Suggestions for the given entity ID and its reference field ID
|
|
2798
|
+
* @param payload - Object containing the entityId and optional filters
|
|
2799
|
+
* @return Promise for Semantic Reference Suggestions
|
|
2800
|
+
* @example ```javascript
|
|
2801
|
+
* client.getSpace('<space_id>')
|
|
2802
|
+
* .then(space => space.getEnvironment('<environment_id>'))
|
|
2803
|
+
* .then(environment => environment.getSemanticRecommendations({
|
|
2804
|
+
* entityId: '<entity_id>',
|
|
2805
|
+
* referenceFieldId: '<reference_field_id>',
|
|
2806
|
+
* filters: {
|
|
2807
|
+
* contentTypeIds: ['<content_type_id1>', '<content_type_id2>'],
|
|
2808
|
+
* }
|
|
2809
|
+
* })
|
|
2810
|
+
*/
|
|
2811
|
+
getSemanticReferenceSuggestions(payload) {
|
|
2812
|
+
const raw = this.toPlainObject();
|
|
2813
|
+
return makeRequest({
|
|
2814
|
+
entityType: 'SemanticReferenceSuggestions',
|
|
2815
|
+
action: 'get',
|
|
2816
|
+
params: {
|
|
2817
|
+
spaceId: raw.sys.space.sys.id,
|
|
2818
|
+
environmentId: raw.sys.id
|
|
2819
|
+
},
|
|
2820
|
+
payload
|
|
2821
|
+
}).then(data => wrapSemanticReferenceSuggestions(makeRequest, data));
|
|
2822
|
+
},
|
|
2823
|
+
/**
|
|
2824
|
+
* Retrieves Semantic Search results for the given query
|
|
2825
|
+
* @param payload - Object containing the search query and optional filters
|
|
2826
|
+
* @return Promise for Semantic Search results
|
|
2827
|
+
* @example ```javascript
|
|
2828
|
+
* client.getSpace('<space_id>')
|
|
2829
|
+
* .then(space => space.getEnvironment('<environment_id>'))
|
|
2830
|
+
* .then(environment => environment.getSemanticSearch({
|
|
2831
|
+
* query: '<search_query>',
|
|
2832
|
+
* filters: {
|
|
2833
|
+
* contentTypeIds: ['<content_type_id1>', '<content_type_id2>'],
|
|
2834
|
+
* }
|
|
2835
|
+
* })
|
|
2836
|
+
*/
|
|
2837
|
+
getSemanticSearch(payload) {
|
|
2838
|
+
const raw = this.toPlainObject();
|
|
2839
|
+
return makeRequest({
|
|
2840
|
+
entityType: 'SemanticSearch',
|
|
2841
|
+
action: 'get',
|
|
2842
|
+
params: {
|
|
2843
|
+
spaceId: raw.sys.space.sys.id,
|
|
2844
|
+
environmentId: raw.sys.id
|
|
2845
|
+
},
|
|
2846
|
+
payload
|
|
2847
|
+
}).then(data => wrapSemanticSearch(makeRequest, data));
|
|
2665
2848
|
}
|
|
2666
2849
|
};
|
|
2667
2850
|
}
|
|
@@ -78,6 +78,9 @@ export default function createOrganizationApi(makeRequest) {
|
|
|
78
78
|
const {
|
|
79
79
|
wrapSpaceCollection
|
|
80
80
|
} = entities.space;
|
|
81
|
+
const {
|
|
82
|
+
wrapVectorizationStatus
|
|
83
|
+
} = entities.vectorizationStatus;
|
|
81
84
|
return {
|
|
82
85
|
/**
|
|
83
86
|
* Gets a collection of spaces in the organization
|
|
@@ -1301,6 +1304,54 @@ export default function createOrganizationApi(makeRequest) {
|
|
|
1301
1304
|
query
|
|
1302
1305
|
}
|
|
1303
1306
|
}).then(payload => wrapFunctionCollection(makeRequest, payload));
|
|
1307
|
+
},
|
|
1308
|
+
/**
|
|
1309
|
+
* Gets the vectorization status for the organization
|
|
1310
|
+
* @returns Promise for a VectorizationStatus
|
|
1311
|
+
* @example ```javascript
|
|
1312
|
+
* const contentful = require('contentful-management')
|
|
1313
|
+
* const client = contentful.createClient({
|
|
1314
|
+
* accessToken: '<content_management_api_key>'
|
|
1315
|
+
* })
|
|
1316
|
+
* const org = await client.getOrganization('<org_id>')
|
|
1317
|
+
* const vectorizationStatus = await org.getVectorizationStatus()
|
|
1318
|
+
*/
|
|
1319
|
+
getVectorizationStatus() {
|
|
1320
|
+
const raw = this.toPlainObject();
|
|
1321
|
+
const organizationId = raw.sys.id;
|
|
1322
|
+
return makeRequest({
|
|
1323
|
+
entityType: 'VectorizationStatus',
|
|
1324
|
+
action: 'get',
|
|
1325
|
+
params: {
|
|
1326
|
+
organizationId
|
|
1327
|
+
}
|
|
1328
|
+
}).then(payload => wrapVectorizationStatus(makeRequest, payload));
|
|
1329
|
+
},
|
|
1330
|
+
/**
|
|
1331
|
+
* Updates the vectorization status for the organization
|
|
1332
|
+
* @returns Promise for a VectorizationStatus
|
|
1333
|
+
* @example ```javascript
|
|
1334
|
+
* const contentful = require('contentful-management')
|
|
1335
|
+
* const client = contentful.createClient({
|
|
1336
|
+
* accessToken: '<content_management_api_key>'
|
|
1337
|
+
* })
|
|
1338
|
+
* const org = await client.getOrganization('<org_id>')
|
|
1339
|
+
* const updatedVectorizationStatus = await org.updateVectorizationStatus([
|
|
1340
|
+
* { spaceId: '<space_id1>', enabled: true },
|
|
1341
|
+
* { spaceId: '<space_id2>', enabled: false }
|
|
1342
|
+
* ])
|
|
1343
|
+
*/
|
|
1344
|
+
updateVectorizationStatus(data) {
|
|
1345
|
+
const raw = this.toPlainObject();
|
|
1346
|
+
const organizationId = raw.sys.id;
|
|
1347
|
+
return makeRequest({
|
|
1348
|
+
entityType: 'VectorizationStatus',
|
|
1349
|
+
action: 'update',
|
|
1350
|
+
params: {
|
|
1351
|
+
organizationId
|
|
1352
|
+
},
|
|
1353
|
+
payload: data
|
|
1354
|
+
}).then(payload => wrapVectorizationStatus(makeRequest, payload));
|
|
1304
1355
|
}
|
|
1305
1356
|
};
|
|
1306
1357
|
}
|
|
@@ -39,6 +39,10 @@ import * as release from './release';
|
|
|
39
39
|
import * as releaseAction from './release-action';
|
|
40
40
|
import * as role from './role';
|
|
41
41
|
import * as scheduledAction from './scheduled-action';
|
|
42
|
+
import * as semanticDuplicates from './semantic-duplicates';
|
|
43
|
+
import * as semanticRecommendations from './semantic-recommendations';
|
|
44
|
+
import * as semanticReferenceSuggestions from './semantic-reference-suggestions';
|
|
45
|
+
import * as semanticSearch from './semantic-search';
|
|
42
46
|
import * as snapshot from './snapshot';
|
|
43
47
|
import * as space from './space';
|
|
44
48
|
import * as spaceMember from './space-member';
|
|
@@ -53,6 +57,7 @@ import * as upload from './upload';
|
|
|
53
57
|
import * as usage from './usage';
|
|
54
58
|
import * as user from './user';
|
|
55
59
|
import * as userUIConfig from './user-ui-config';
|
|
60
|
+
import * as vectorizationStatus from './vectorization-status';
|
|
56
61
|
import * as webhook from './webhook';
|
|
57
62
|
import * as workflowDefinition from './workflow-definition';
|
|
58
63
|
import * as concept from './concept';
|
|
@@ -107,6 +112,10 @@ export default {
|
|
|
107
112
|
resource,
|
|
108
113
|
role,
|
|
109
114
|
scheduledAction,
|
|
115
|
+
semanticDuplicates,
|
|
116
|
+
semanticRecommendations,
|
|
117
|
+
semanticReferenceSuggestions,
|
|
118
|
+
semanticSearch,
|
|
110
119
|
snapshot,
|
|
111
120
|
space,
|
|
112
121
|
spaceMember,
|
|
@@ -121,6 +130,7 @@ export default {
|
|
|
121
130
|
usage,
|
|
122
131
|
user,
|
|
123
132
|
userUIConfig,
|
|
133
|
+
vectorizationStatus,
|
|
124
134
|
webhook,
|
|
125
135
|
workflowDefinition
|
|
126
136
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { freezeSys, toPlainObject } from 'contentful-sdk-core';
|
|
2
|
+
import copy from 'fast-copy';
|
|
3
|
+
export let EmbeddingSetStatus = /*#__PURE__*/function (EmbeddingSetStatus) {
|
|
4
|
+
EmbeddingSetStatus["ACTIVE"] = "ACTIVE";
|
|
5
|
+
EmbeddingSetStatus["PENDING"] = "PENDING";
|
|
6
|
+
EmbeddingSetStatus["ERROR"] = "ERROR";
|
|
7
|
+
EmbeddingSetStatus["DISABLED"] = "DISABLED";
|
|
8
|
+
EmbeddingSetStatus["DELETING"] = "DELETING";
|
|
9
|
+
return EmbeddingSetStatus;
|
|
10
|
+
}({});
|
|
11
|
+
export function wrapVectorizationStatus(_makeRequest, data) {
|
|
12
|
+
const vectorizationStatus = toPlainObject(copy(data));
|
|
13
|
+
return freezeSys(vectorizationStatus);
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -254,6 +254,7 @@ export const createPlainClient = (makeRequest, defaults) => {
|
|
|
254
254
|
},
|
|
255
255
|
entry: {
|
|
256
256
|
getPublished: wrap(wrapParams, 'Entry', 'getPublished'),
|
|
257
|
+
getPublishedWithCursor: wrap(wrapParams, 'Entry', 'getPublishedWithCursor'),
|
|
257
258
|
getMany: wrap(wrapParams, 'Entry', 'getMany'),
|
|
258
259
|
getManyWithCursor: wrap(wrapParams, 'Entry', 'getManyWithCursor'),
|
|
259
260
|
get: wrap(wrapParams, 'Entry', 'get'),
|
|
@@ -270,6 +271,7 @@ export const createPlainClient = (makeRequest, defaults) => {
|
|
|
270
271
|
},
|
|
271
272
|
asset: {
|
|
272
273
|
getPublished: wrap(wrapParams, 'Asset', 'getPublished'),
|
|
274
|
+
getPublishedWithCursor: wrap(wrapParams, 'Asset', 'getPublishedWithCursor'),
|
|
273
275
|
getMany: wrap(wrapParams, 'Asset', 'getMany'),
|
|
274
276
|
getManyWithCursor: wrap(wrapParams, 'Asset', 'getManyWithCursor'),
|
|
275
277
|
get: wrap(wrapParams, 'Asset', 'get'),
|
|
@@ -518,6 +520,18 @@ export const createPlainClient = (makeRequest, defaults) => {
|
|
|
518
520
|
delete: wrap(wrapParams, 'OAuthApplication', 'delete'),
|
|
519
521
|
create: wrap(wrapParams, 'OAuthApplication', 'create')
|
|
520
522
|
},
|
|
523
|
+
semanticDuplicates: {
|
|
524
|
+
get: wrap(wrapParams, 'SemanticDuplicates', 'get')
|
|
525
|
+
},
|
|
526
|
+
semanticRecommendations: {
|
|
527
|
+
get: wrap(wrapParams, 'SemanticRecommendations', 'get')
|
|
528
|
+
},
|
|
529
|
+
semanticReferenceSuggestions: {
|
|
530
|
+
get: wrap(wrapParams, 'SemanticReferenceSuggestions', 'get')
|
|
531
|
+
},
|
|
532
|
+
semanticSearch: {
|
|
533
|
+
get: wrap(wrapParams, 'SemanticSearch', 'get')
|
|
534
|
+
},
|
|
521
535
|
spaceMember: {
|
|
522
536
|
get: wrap(wrapParams, 'SpaceMember', 'get'),
|
|
523
537
|
getMany: wrap(wrapParams, 'SpaceMember', 'getMany')
|
|
@@ -565,6 +579,10 @@ export const createPlainClient = (makeRequest, defaults) => {
|
|
|
565
579
|
get: wrap(wrapParams, 'UserUIConfig', 'get'),
|
|
566
580
|
update: wrap(wrapParams, 'UserUIConfig', 'update')
|
|
567
581
|
},
|
|
582
|
+
vectorizationStatus: {
|
|
583
|
+
get: wrap(wrapParams, 'VectorizationStatus', 'get'),
|
|
584
|
+
update: wrap(wrapParams, 'VectorizationStatus', 'update')
|
|
585
|
+
},
|
|
568
586
|
workflowDefinition: {
|
|
569
587
|
get: wrap(wrapParams, 'WorkflowDefinition', 'get'),
|
|
570
588
|
getMany: wrap(wrapParams, 'WorkflowDefinition', 'getMany'),
|
|
@@ -47,6 +47,10 @@ import * as ResourceProvider from './resource-provider';
|
|
|
47
47
|
import * as ResourceType from './resource-type';
|
|
48
48
|
import * as Role from './role';
|
|
49
49
|
import * as ScheduledAction from './scheduled-action';
|
|
50
|
+
import * as SemanticDuplicates from './semantic-duplicates';
|
|
51
|
+
import * as SemanticRecommendations from './semantic-recommendations';
|
|
52
|
+
import * as SemanticReferenceSuggestions from './semantic-reference-suggestions';
|
|
53
|
+
import * as SemanticSearch from './semantic-search';
|
|
50
54
|
import * as Snapshot from './snapshot';
|
|
51
55
|
import * as Space from './space';
|
|
52
56
|
import * as SpaceMember from './space-member';
|
|
@@ -62,6 +66,7 @@ import * as UploadCredential from './upload-credentials';
|
|
|
62
66
|
import * as Usage from './usage';
|
|
63
67
|
import * as User from './user';
|
|
64
68
|
import * as UserUIConfig from './user-ui-config';
|
|
69
|
+
import * as VectorizationStatus from './vectorization-status';
|
|
65
70
|
import * as Webhook from './webhook';
|
|
66
71
|
import * as Workflow from './workflow';
|
|
67
72
|
import * as WorkflowDefinition from './workflow-definition';
|
|
@@ -116,6 +121,10 @@ declare const _default: {
|
|
|
116
121
|
ResourceType: typeof ResourceType;
|
|
117
122
|
Role: typeof Role;
|
|
118
123
|
ScheduledAction: typeof ScheduledAction;
|
|
124
|
+
SemanticDuplicates: typeof SemanticDuplicates;
|
|
125
|
+
SemanticRecommendations: typeof SemanticRecommendations;
|
|
126
|
+
SemanticReferenceSuggestions: typeof SemanticReferenceSuggestions;
|
|
127
|
+
SemanticSearch: typeof SemanticSearch;
|
|
119
128
|
Snapshot: typeof Snapshot;
|
|
120
129
|
Space: typeof Space;
|
|
121
130
|
SpaceMember: typeof SpaceMember;
|
|
@@ -131,6 +140,7 @@ declare const _default: {
|
|
|
131
140
|
Usage: typeof Usage;
|
|
132
141
|
User: typeof User;
|
|
133
142
|
UserUIConfig: typeof UserUIConfig;
|
|
143
|
+
VectorizationStatus: typeof VectorizationStatus;
|
|
134
144
|
Webhook: typeof Webhook;
|
|
135
145
|
WorkflowDefinition: typeof WorkflowDefinition;
|
|
136
146
|
Workflow: typeof Workflow;
|