@yuntijs/arcadia-bff-sdk 1.0.51 → 1.0.52
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 +33 -11
- 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;
|
|
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;
|
|
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); }
|
|
@@ -199,16 +199,18 @@ export var DeleteModelsDocument = gql(_templateObject40 || (_templateObject40 =
|
|
|
199
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 }\n }\n}\n "])));
|
|
200
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 }\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
|
-
export var
|
|
203
|
-
export var
|
|
204
|
-
export var
|
|
205
|
-
export var
|
|
206
|
-
export var
|
|
207
|
-
export var
|
|
208
|
-
export var
|
|
209
|
-
export var
|
|
210
|
-
export var
|
|
211
|
-
export var
|
|
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
|
+
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 CreateVersionedDatasetDocument = gql(_templateObject46 || (_templateObject46 = _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 "])));
|
|
205
|
+
export var UpdateVersionedDatasetDocument = gql(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["\n mutation updateVersionedDataset($input: UpdateVersionedDatasetInput!) {\n VersionedDataset {\n updateVersionedDataset(input: $input) {\n name\n displayName\n }\n }\n}\n "])));
|
|
206
|
+
export var DeleteVersionedDatasetsDocument = gql(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["\n mutation deleteVersionedDatasets($input: DeleteVersionedDatasetInput!) {\n VersionedDataset {\n deleteVersionedDatasets(input: $input)\n }\n}\n "])));
|
|
207
|
+
export var GetVersionedDatasetDocument = gql(_templateObject49 || (_templateObject49 = _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 "])));
|
|
208
|
+
export var ListVersionedDatasetsDocument = gql(_templateObject50 || (_templateObject50 = _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 "])));
|
|
209
|
+
export var ListWorkersDocument = gql(_templateObject51 || (_templateObject51 = _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 "])));
|
|
210
|
+
export var GetWorkerDocument = gql(_templateObject52 || (_templateObject52 = _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 "])));
|
|
211
|
+
export var CreateWorkerDocument = gql(_templateObject53 || (_templateObject53 = _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 "])));
|
|
212
|
+
export var UpdateWorkerDocument = gql(_templateObject54 || (_templateObject54 = _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 "])));
|
|
213
|
+
export var DeleteWorkersDocument = gql(_templateObject55 || (_templateObject55 = _taggedTemplateLiteral(["\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n "])));
|
|
212
214
|
var defaultWrapper = function defaultWrapper(action, _operationName, _operationType) {
|
|
213
215
|
return action();
|
|
214
216
|
};
|
|
@@ -430,6 +432,16 @@ export function getSdk(client) {
|
|
|
430
432
|
return client.request(DeleteModelServicesDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
431
433
|
}, 'deleteModelServices', 'mutation');
|
|
432
434
|
},
|
|
435
|
+
getModelService: function getModelService(variables, requestHeaders) {
|
|
436
|
+
return withWrapper(function (wrappedRequestHeaders) {
|
|
437
|
+
return client.request(GetModelServiceDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
438
|
+
}, 'getModelService', 'query');
|
|
439
|
+
},
|
|
440
|
+
listModelServices: function listModelServices(variables, requestHeaders) {
|
|
441
|
+
return withWrapper(function (wrappedRequestHeaders) {
|
|
442
|
+
return client.request(ListModelServicesDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
443
|
+
}, 'listModelServices', 'query');
|
|
444
|
+
},
|
|
433
445
|
createVersionedDataset: function createVersionedDataset(variables, requestHeaders) {
|
|
434
446
|
return withWrapper(function (wrappedRequestHeaders) {
|
|
435
447
|
return client.request(CreateVersionedDatasetDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
@@ -587,6 +599,16 @@ export function getSdkWithHooks(client) {
|
|
|
587
599
|
return sdk.getModel(variables);
|
|
588
600
|
}, config);
|
|
589
601
|
},
|
|
602
|
+
useGetModelService: function useGetModelService(variables, config) {
|
|
603
|
+
return useSWR(genKey('GetModelService', variables), function () {
|
|
604
|
+
return sdk.getModelService(variables);
|
|
605
|
+
}, config);
|
|
606
|
+
},
|
|
607
|
+
useListModelServices: function useListModelServices(variables, config) {
|
|
608
|
+
return useSWR(genKey('ListModelServices', variables), function () {
|
|
609
|
+
return sdk.listModelServices(variables);
|
|
610
|
+
}, config);
|
|
611
|
+
},
|
|
590
612
|
useGetVersionedDataset: function useGetVersionedDataset(variables, config) {
|
|
591
613
|
return useSWR(genKey('GetVersionedDataset', variables), function () {
|
|
592
614
|
return sdk.getVersionedDataset(variables);
|