@yuntijs/arcadia-bff-sdk 1.0.53 → 1.0.55
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/esm/sdk.js +24 -13
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/sdk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55;
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56;
|
|
3
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
4
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -196,21 +196,22 @@ export var GetModelDocument = gql(_templateObject37 || (_templateObject37 = _tag
|
|
|
196
196
|
export var CreateModelDocument = gql(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n mutation createModel($input: CreateModelInput!) {\n Model {\n createModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n }\n }\n}\n "])));
|
|
197
197
|
export var UpdateModelDocument = gql(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n mutation updateModel($input: UpdateModelInput) {\n Model {\n updateModel(input: $input) {\n id\n creationTimestamp\n name\n namespace\n systemModel\n labels\n annotations\n creator\n displayName\n description\n status\n message\n types\n updateTimestamp\n }\n }\n}\n "])));
|
|
198
198
|
export var DeleteModelsDocument = gql(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n mutation deleteModels($input: DeleteCommonInput) {\n Model {\n deleteModels(input: $input)\n }\n}\n "])));
|
|
199
|
-
export var CreateModelServiceDocument = gql(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n mutation createModelService($input: CreateModelServiceInput!) {\n ModelService {\n createModelService(input: $input) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n types\n apiType\n creationTimestamp\n updateTimestamp\n llmResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n embedderResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n type\n baseUrl\n models\n provider\n updateTimestamp\n status\n message\n }\n }\n }\n}\n "])));
|
|
200
|
-
export var UpdateModelServiceDocument = gql(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n mutation updateModelService($input: UpdateModelServiceInput) {\n ModelService {\n updateModelService(input: $input) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n types\n apiType\n creationTimestamp\n updateTimestamp\n llmResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n embedderResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n type\n baseUrl\n models\n provider\n updateTimestamp\n status\n message\n }\n }\n }\n}\n "])));
|
|
199
|
+
export var CreateModelServiceDocument = gql(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n mutation createModelService($input: CreateModelServiceInput!) {\n ModelService {\n createModelService(input: $input) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n types\n apiType\n creationTimestamp\n updateTimestamp\n llmResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n embedderResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n type\n baseUrl\n models\n provider\n updateTimestamp\n status\n message\n }\n resource {\n cpu\n nvidiaGPU\n memory\n }\n }\n }\n}\n "])));
|
|
200
|
+
export var UpdateModelServiceDocument = gql(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n mutation updateModelService($input: UpdateModelServiceInput) {\n ModelService {\n updateModelService(input: $input) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n types\n apiType\n creationTimestamp\n updateTimestamp\n llmResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n embedderResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n type\n baseUrl\n models\n provider\n updateTimestamp\n status\n message\n }\n resource {\n cpu\n nvidiaGPU\n memory\n }\n }\n }\n}\n "])));
|
|
201
201
|
export var DeleteModelServicesDocument = gql(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n mutation deleteModelServices($input: DeleteCommonInput) {\n ModelService {\n deleteModelService(input: $input)\n }\n}\n "])));
|
|
202
202
|
export var GetModelServiceDocument = gql(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["\n query getModelService($name: String!, $namespace: String!, $apiType: String!) {\n ModelService {\n getModelService(name: $name, namespace: $namespace, apiType: $apiType) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n types\n apiType\n creationTimestamp\n updateTimestamp\n llmResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n embedderResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n resource {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n}\n "])));
|
|
203
203
|
export var ListModelServicesDocument = gql(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["\n query listModelServices($input: ListModelService) {\n ModelService {\n listModelServices(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on ModelService {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n types\n apiType\n creationTimestamp\n updateTimestamp\n llmResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n embedderResource {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n resource {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n }\n }\n}\n "])));
|
|
204
|
-
export var
|
|
205
|
-
export var
|
|
206
|
-
export var
|
|
207
|
-
export var
|
|
208
|
-
export var
|
|
209
|
-
export var
|
|
210
|
-
export var
|
|
211
|
-
export var
|
|
212
|
-
export var
|
|
213
|
-
export var
|
|
204
|
+
export var CheckModelServiceDocument = gql(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["\n query checkModelService($input: CreateModelServiceInput!) {\n ModelService {\n checkModelService(input: $input) {\n name\n namespace\n apiType\n description\n }\n }\n}\n "])));
|
|
205
|
+
export var CreateVersionedDatasetDocument = gql(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["\n mutation createVersionedDataset($input: CreateVersionedDatasetInput!) {\n VersionedDataset {\n createVersionedDataset(input: $input) {\n name\n displayName\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n }\n }\n}\n "])));
|
|
206
|
+
export var UpdateVersionedDatasetDocument = gql(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["\n mutation updateVersionedDataset($input: UpdateVersionedDatasetInput!) {\n VersionedDataset {\n updateVersionedDataset(input: $input) {\n name\n displayName\n }\n }\n}\n "])));
|
|
207
|
+
export var DeleteVersionedDatasetsDocument = gql(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["\n mutation deleteVersionedDatasets($input: DeleteVersionedDatasetInput!) {\n VersionedDataset {\n deleteVersionedDatasets(input: $input)\n }\n}\n "])));
|
|
208
|
+
export var GetVersionedDatasetDocument = gql(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral(["\n query getVersionedDataset($name: String!, $namespace: String!, $fileInput: FileFilter) {\n VersionedDataset {\n getVersionedDataset(name: $name, namespace: $namespace) {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n}\n "])));
|
|
209
|
+
export var ListVersionedDatasetsDocument = gql(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["\n query listVersionedDatasets($input: ListVersionedDatasetInput!, $fileInput: FileFilter) {\n VersionedDataset {\n listVersionedDatasets(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on VersionedDataset {\n id\n name\n displayName\n description\n creator\n namespace\n version\n updateTimestamp\n creationTimestamp\n released\n syncStatus\n dataProcessStatus\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n "])));
|
|
210
|
+
export var ListWorkersDocument = gql(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral(["\n query listWorkers($input: ListWorkerInput!) {\n Worker {\n listWorkers(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Worker {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n status\n message\n updateTimestamp\n type\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n }\n }\n}\n "])));
|
|
211
|
+
export var GetWorkerDocument = gql(_templateObject53 || (_templateObject53 = _taggedTemplateLiteral(["\n query getWorker($name: String!, $namespace: String!) {\n Worker {\n getWorker(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n}\n "])));
|
|
212
|
+
export var CreateWorkerDocument = gql(_templateObject54 || (_templateObject54 = _taggedTemplateLiteral(["\n mutation createWorker($input: CreateWorkerInput!) {\n Worker {\n createWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n }\n }\n}\n "])));
|
|
213
|
+
export var UpdateWorkerDocument = gql(_templateObject55 || (_templateObject55 = _taggedTemplateLiteral(["\n mutation updateWorker($input: UpdateWorkerInput) {\n Worker {\n updateWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n api\n model {\n name\n namespace\n kind\n apiGroup\n }\n modelTypes\n }\n }\n}\n "])));
|
|
214
|
+
export var DeleteWorkersDocument = gql(_templateObject56 || (_templateObject56 = _taggedTemplateLiteral(["\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n "])));
|
|
214
215
|
var defaultWrapper = function defaultWrapper(action, _operationName, _operationType) {
|
|
215
216
|
return action();
|
|
216
217
|
};
|
|
@@ -442,6 +443,11 @@ export function getSdk(client) {
|
|
|
442
443
|
return client.request(ListModelServicesDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
443
444
|
}, 'listModelServices', 'query');
|
|
444
445
|
},
|
|
446
|
+
checkModelService: function checkModelService(variables, requestHeaders) {
|
|
447
|
+
return withWrapper(function (wrappedRequestHeaders) {
|
|
448
|
+
return client.request(CheckModelServiceDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
449
|
+
}, 'checkModelService', 'query');
|
|
450
|
+
},
|
|
445
451
|
createVersionedDataset: function createVersionedDataset(variables, requestHeaders) {
|
|
446
452
|
return withWrapper(function (wrappedRequestHeaders) {
|
|
447
453
|
return client.request(CreateVersionedDatasetDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
@@ -609,6 +615,11 @@ export function getSdkWithHooks(client) {
|
|
|
609
615
|
return sdk.listModelServices(variables);
|
|
610
616
|
}, config);
|
|
611
617
|
},
|
|
618
|
+
useCheckModelService: function useCheckModelService(variables, config) {
|
|
619
|
+
return useSWR(genKey('CheckModelService', variables), function () {
|
|
620
|
+
return sdk.checkModelService(variables);
|
|
621
|
+
}, config);
|
|
622
|
+
},
|
|
612
623
|
useGetVersionedDataset: function useGetVersionedDataset(variables, config) {
|
|
613
624
|
return useSWR(genKey('GetVersionedDataset', variables), function () {
|
|
614
625
|
return sdk.getVersionedDataset(variables);
|