@yuntijs/arcadia-bff-sdk 1.0.63 → 1.0.64
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 -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, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58;
|
|
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, _templateObject57, _templateObject58, _templateObject59;
|
|
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); }
|
|
@@ -110,6 +110,8 @@ import useSWR from "./useSWR";
|
|
|
110
110
|
|
|
111
111
|
/** 文件输入 */
|
|
112
112
|
|
|
113
|
+
/** RayCluster集群 */
|
|
114
|
+
|
|
113
115
|
/** 模型服务worker节点的资源(limits) */
|
|
114
116
|
|
|
115
117
|
/** 资源配置的输入 */
|
|
@@ -204,16 +206,17 @@ export var DeleteModelServicesDocument = gql(_templateObject45 || (_templateObje
|
|
|
204
206
|
export var GetModelServiceDocument = gql(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["\n query getModelService($name: String!, $namespace: String!) {\n ModelService {\n getModelService(name: $name, namespace: $namespace) {\n id\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n providerType\n types\n apiType\n llmModels\n embeddingModels\n creationTimestamp\n updateTimestamp\n status\n message\n baseUrl\n }\n }\n}\n "])));
|
|
205
207
|
export var ListModelServicesDocument = gql(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["\n query listModelServices($input: ListModelServiceInput) {\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 providerType\n types\n apiType\n llmModels\n embeddingModels\n creationTimestamp\n updateTimestamp\n status\n message\n baseUrl\n }\n }\n }\n }\n}\n "])));
|
|
206
208
|
export var CheckModelServiceDocument = gql(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["\n query checkModelService($input: CreateModelServiceInput!) {\n ModelService {\n checkModelService(input: $input) {\n name\n namespace\n apiType\n description\n }\n }\n}\n "])));
|
|
207
|
-
export var
|
|
208
|
-
export var
|
|
209
|
-
export var
|
|
210
|
-
export var
|
|
211
|
-
export var
|
|
212
|
-
export var
|
|
213
|
-
export var
|
|
214
|
-
export var
|
|
215
|
-
export var
|
|
216
|
-
export var
|
|
209
|
+
export var ListRayClustersDocument = gql(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["\n query listRayClusters($input: ListCommonInput!) {\n RayCluster {\n listRayClusters(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on RayCluster {\n index\n name\n headAddress\n dashboardHost\n pythonVersion\n }\n }\n }\n }\n}\n "])));
|
|
210
|
+
export var CreateVersionedDatasetDocument = gql(_templateObject50 || (_templateObject50 = _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 "])));
|
|
211
|
+
export var UpdateVersionedDatasetDocument = gql(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["\n mutation updateVersionedDataset($input: UpdateVersionedDatasetInput!) {\n VersionedDataset {\n updateVersionedDataset(input: $input) {\n name\n displayName\n }\n }\n}\n "])));
|
|
212
|
+
export var DeleteVersionedDatasetsDocument = gql(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral(["\n mutation deleteVersionedDatasets($input: DeleteVersionedDatasetInput!) {\n VersionedDataset {\n deleteVersionedDatasets(input: $input)\n }\n}\n "])));
|
|
213
|
+
export var GetVersionedDatasetDocument = gql(_templateObject53 || (_templateObject53 = _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 "])));
|
|
214
|
+
export var ListVersionedDatasetsDocument = gql(_templateObject54 || (_templateObject54 = _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 "])));
|
|
215
|
+
export var ListWorkersDocument = gql(_templateObject55 || (_templateObject55 = _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 "])));
|
|
216
|
+
export var GetWorkerDocument = gql(_templateObject56 || (_templateObject56 = _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 "])));
|
|
217
|
+
export var CreateWorkerDocument = gql(_templateObject57 || (_templateObject57 = _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 "])));
|
|
218
|
+
export var UpdateWorkerDocument = gql(_templateObject58 || (_templateObject58 = _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 "])));
|
|
219
|
+
export var DeleteWorkersDocument = gql(_templateObject59 || (_templateObject59 = _taggedTemplateLiteral(["\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n "])));
|
|
217
220
|
var defaultWrapper = function defaultWrapper(action, _operationName, _operationType) {
|
|
218
221
|
return action();
|
|
219
222
|
};
|
|
@@ -460,6 +463,11 @@ export function getSdk(client) {
|
|
|
460
463
|
return client.request(CheckModelServiceDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
461
464
|
}, 'checkModelService', 'query');
|
|
462
465
|
},
|
|
466
|
+
listRayClusters: function listRayClusters(variables, requestHeaders) {
|
|
467
|
+
return withWrapper(function (wrappedRequestHeaders) {
|
|
468
|
+
return client.request(ListRayClustersDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
469
|
+
}, 'listRayClusters', 'query');
|
|
470
|
+
},
|
|
463
471
|
createVersionedDataset: function createVersionedDataset(variables, requestHeaders) {
|
|
464
472
|
return withWrapper(function (wrappedRequestHeaders) {
|
|
465
473
|
return client.request(CreateVersionedDatasetDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
@@ -642,6 +650,11 @@ export function getSdkWithHooks(client) {
|
|
|
642
650
|
return sdk.checkModelService(variables);
|
|
643
651
|
}, config);
|
|
644
652
|
},
|
|
653
|
+
useListRayClusters: function useListRayClusters(variables, config) {
|
|
654
|
+
return useSWR(genKey('ListRayClusters', variables), function () {
|
|
655
|
+
return sdk.listRayClusters(variables);
|
|
656
|
+
}, config);
|
|
657
|
+
},
|
|
645
658
|
useGetVersionedDataset: function useGetVersionedDataset(variables, config) {
|
|
646
659
|
return useSWR(genKey('GetVersionedDataset', variables), function () {
|
|
647
660
|
return sdk.getVersionedDataset(variables);
|