@yuntijs/arcadia-bff-sdk 1.2.61 → 1.2.62
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/cjs/index.d.ts +21 -0
- package/dist/cjs/sdk.d.ts +92 -11
- package/dist/cjs/sdk.js +74 -3
- package/dist/cjs/taro.d.ts +15 -0
- package/dist/esm/index.d.ts +21 -0
- package/dist/esm/sdk.d.ts +92 -11
- package/dist/esm/sdk.js +34 -23
- package/dist/esm/taro.d.ts +15 -0
- 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.d.ts
CHANGED
|
@@ -2446,7 +2446,6 @@ export type ResourcesInput = {
|
|
|
2446
2446
|
};
|
|
2447
2447
|
export type Sft = {
|
|
2448
2448
|
__typename?: 'SFT';
|
|
2449
|
-
ID: Scalars['ID']['output'];
|
|
2450
2449
|
/** 添加一些辅助性记录信息 */
|
|
2451
2450
|
annotations?: Maybe<Scalars['Map']['output']>;
|
|
2452
2451
|
/**
|
|
@@ -2517,8 +2516,6 @@ export type Sft = {
|
|
|
2517
2516
|
storage: PersistentVolumeClaimSpec;
|
|
2518
2517
|
/** SFT 微调过程是否暂停,true 表示已经暂停,false 表示没有暂停 */
|
|
2519
2518
|
suspend: Scalars['Boolean']['output'];
|
|
2520
|
-
/** 更新时间 */
|
|
2521
|
-
updateTimestamp?: Maybe<Scalars['Time']['output']>;
|
|
2522
2519
|
};
|
|
2523
2520
|
export type SftDataset = {
|
|
2524
2521
|
__typename?: 'SFTDataset';
|
|
@@ -2527,14 +2524,19 @@ export type SftDataset = {
|
|
|
2527
2524
|
};
|
|
2528
2525
|
export type SftMetric = {
|
|
2529
2526
|
__typename?: 'SFTMetric';
|
|
2530
|
-
|
|
2531
|
-
|
|
2527
|
+
metricDefaultValue?: Maybe<Scalars['String']['output']>;
|
|
2528
|
+
metricDescription: Scalars['String']['output'];
|
|
2529
|
+
metricKind: Scalars['String']['output'];
|
|
2530
|
+
metricName: Scalars['String']['output'];
|
|
2531
|
+
metricNameZH: Scalars['String']['output'];
|
|
2532
|
+
metricType: Scalars['String']['output'];
|
|
2533
|
+
metricValidValues?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2532
2534
|
metricValue?: Maybe<Scalars['String']['output']>;
|
|
2533
2535
|
};
|
|
2534
2536
|
export type SftMetricInput = {
|
|
2535
|
-
metricKind
|
|
2536
|
-
metricName
|
|
2537
|
-
metricValue
|
|
2537
|
+
metricKind: Scalars['String']['input'];
|
|
2538
|
+
metricName: Scalars['String']['input'];
|
|
2539
|
+
metricValue: Scalars['String']['input'];
|
|
2538
2540
|
};
|
|
2539
2541
|
export type SftMutation = {
|
|
2540
2542
|
__typename?: 'SFTMutation';
|
|
@@ -2560,6 +2562,7 @@ export type SftQuery = {
|
|
|
2560
2562
|
__typename?: 'SFTQuery';
|
|
2561
2563
|
getSFT: Sft;
|
|
2562
2564
|
listSFT: PaginatedResult;
|
|
2565
|
+
listSFTMetric: Array<Maybe<SftMetric>>;
|
|
2563
2566
|
};
|
|
2564
2567
|
export type SftQueryGetSftArgs = {
|
|
2565
2568
|
name: Scalars['String']['input'];
|
|
@@ -2568,6 +2571,9 @@ export type SftQueryGetSftArgs = {
|
|
|
2568
2571
|
export type SftQueryListSftArgs = {
|
|
2569
2572
|
input: ListCommonInput;
|
|
2570
2573
|
};
|
|
2574
|
+
export type SftQueryListSftMetricArgs = {
|
|
2575
|
+
kind: Scalars['String']['input'];
|
|
2576
|
+
};
|
|
2571
2577
|
export declare enum SelectCond {
|
|
2572
2578
|
/** 提供包括该 ns 及官方资源在内的所有资源 */
|
|
2573
2579
|
All = "ALL",
|
|
@@ -7499,11 +7505,12 @@ export type ListSftQuery = {
|
|
|
7499
7505
|
__typename?: 'SFT';
|
|
7500
7506
|
name: string;
|
|
7501
7507
|
namespace: string;
|
|
7508
|
+
labels?: any | null;
|
|
7509
|
+
annotations?: any | null;
|
|
7502
7510
|
creator?: string | null;
|
|
7503
7511
|
displayName?: string | null;
|
|
7504
7512
|
description?: string | null;
|
|
7505
7513
|
creationTimestamp?: any | null;
|
|
7506
|
-
updateTimestamp?: any | null;
|
|
7507
7514
|
completeTimestamp?: any | null;
|
|
7508
7515
|
datasets: Array<string>;
|
|
7509
7516
|
serviceAccountName: string;
|
|
@@ -7556,6 +7563,17 @@ export type ListSftQuery = {
|
|
|
7556
7563
|
namespace?: string | null;
|
|
7557
7564
|
displayName?: string | null;
|
|
7558
7565
|
};
|
|
7566
|
+
metrics: Array<{
|
|
7567
|
+
__typename?: 'SFTMetric';
|
|
7568
|
+
metricKind: string;
|
|
7569
|
+
metricName: string;
|
|
7570
|
+
metricNameZH: string;
|
|
7571
|
+
metricValue?: string | null;
|
|
7572
|
+
metricDefaultValue?: string | null;
|
|
7573
|
+
metricType: string;
|
|
7574
|
+
metricValidValues?: Array<string | null> | null;
|
|
7575
|
+
metricDescription: string;
|
|
7576
|
+
}>;
|
|
7559
7577
|
} | {
|
|
7560
7578
|
__typename?: 'TuningDataSet';
|
|
7561
7579
|
} | {
|
|
@@ -7586,11 +7604,12 @@ export type GetSftQuery = {
|
|
|
7586
7604
|
__typename?: 'SFT';
|
|
7587
7605
|
name: string;
|
|
7588
7606
|
namespace: string;
|
|
7607
|
+
labels?: any | null;
|
|
7608
|
+
annotations?: any | null;
|
|
7589
7609
|
creator?: string | null;
|
|
7590
7610
|
displayName?: string | null;
|
|
7591
7611
|
description?: string | null;
|
|
7592
7612
|
creationTimestamp?: any | null;
|
|
7593
|
-
updateTimestamp?: any | null;
|
|
7594
7613
|
completeTimestamp?: any | null;
|
|
7595
7614
|
datasets: Array<string>;
|
|
7596
7615
|
serviceAccountName: string;
|
|
@@ -7643,9 +7662,40 @@ export type GetSftQuery = {
|
|
|
7643
7662
|
namespace?: string | null;
|
|
7644
7663
|
displayName?: string | null;
|
|
7645
7664
|
};
|
|
7665
|
+
metrics: Array<{
|
|
7666
|
+
__typename?: 'SFTMetric';
|
|
7667
|
+
metricKind: string;
|
|
7668
|
+
metricName: string;
|
|
7669
|
+
metricNameZH: string;
|
|
7670
|
+
metricValue?: string | null;
|
|
7671
|
+
metricDefaultValue?: string | null;
|
|
7672
|
+
metricType: string;
|
|
7673
|
+
metricValidValues?: Array<string | null> | null;
|
|
7674
|
+
metricDescription: string;
|
|
7675
|
+
}>;
|
|
7646
7676
|
};
|
|
7647
7677
|
} | null;
|
|
7648
7678
|
};
|
|
7679
|
+
export type ListSftMetricQueryVariables = Exact<{
|
|
7680
|
+
kind: Scalars['String']['input'];
|
|
7681
|
+
}>;
|
|
7682
|
+
export type ListSftMetricQuery = {
|
|
7683
|
+
__typename?: 'Query';
|
|
7684
|
+
SFT?: {
|
|
7685
|
+
__typename?: 'SFTQuery';
|
|
7686
|
+
listSFTMetric: Array<{
|
|
7687
|
+
__typename?: 'SFTMetric';
|
|
7688
|
+
metricKind: string;
|
|
7689
|
+
metricName: string;
|
|
7690
|
+
metricNameZH: string;
|
|
7691
|
+
metricValue?: string | null;
|
|
7692
|
+
metricDefaultValue?: string | null;
|
|
7693
|
+
metricType: string;
|
|
7694
|
+
metricValidValues?: Array<string | null> | null;
|
|
7695
|
+
metricDescription: string;
|
|
7696
|
+
} | null>;
|
|
7697
|
+
} | null;
|
|
7698
|
+
};
|
|
7649
7699
|
export type CreateSftMutationVariables = Exact<{
|
|
7650
7700
|
input: CreateSftInput;
|
|
7651
7701
|
}>;
|
|
@@ -7657,6 +7707,8 @@ export type CreateSftMutation = {
|
|
|
7657
7707
|
__typename?: 'SFT';
|
|
7658
7708
|
name: string;
|
|
7659
7709
|
namespace: string;
|
|
7710
|
+
labels?: any | null;
|
|
7711
|
+
annotations?: any | null;
|
|
7660
7712
|
creator?: string | null;
|
|
7661
7713
|
displayName?: string | null;
|
|
7662
7714
|
description?: string | null;
|
|
@@ -7713,6 +7765,17 @@ export type CreateSftMutation = {
|
|
|
7713
7765
|
namespace?: string | null;
|
|
7714
7766
|
displayName?: string | null;
|
|
7715
7767
|
};
|
|
7768
|
+
metrics: Array<{
|
|
7769
|
+
__typename?: 'SFTMetric';
|
|
7770
|
+
metricKind: string;
|
|
7771
|
+
metricName: string;
|
|
7772
|
+
metricNameZH: string;
|
|
7773
|
+
metricValue?: string | null;
|
|
7774
|
+
metricDefaultValue?: string | null;
|
|
7775
|
+
metricType: string;
|
|
7776
|
+
metricValidValues?: Array<string | null> | null;
|
|
7777
|
+
metricDescription: string;
|
|
7778
|
+
}>;
|
|
7716
7779
|
};
|
|
7717
7780
|
} | null;
|
|
7718
7781
|
};
|
|
@@ -7727,11 +7790,12 @@ export type UpdateSftMutation = {
|
|
|
7727
7790
|
__typename?: 'SFT';
|
|
7728
7791
|
name: string;
|
|
7729
7792
|
namespace: string;
|
|
7793
|
+
labels?: any | null;
|
|
7794
|
+
annotations?: any | null;
|
|
7730
7795
|
creator?: string | null;
|
|
7731
7796
|
displayName?: string | null;
|
|
7732
7797
|
description?: string | null;
|
|
7733
7798
|
creationTimestamp?: any | null;
|
|
7734
|
-
updateTimestamp?: any | null;
|
|
7735
7799
|
completeTimestamp?: any | null;
|
|
7736
7800
|
datasets: Array<string>;
|
|
7737
7801
|
serviceAccountName: string;
|
|
@@ -7784,6 +7848,17 @@ export type UpdateSftMutation = {
|
|
|
7784
7848
|
namespace?: string | null;
|
|
7785
7849
|
displayName?: string | null;
|
|
7786
7850
|
};
|
|
7851
|
+
metrics: Array<{
|
|
7852
|
+
__typename?: 'SFTMetric';
|
|
7853
|
+
metricKind: string;
|
|
7854
|
+
metricName: string;
|
|
7855
|
+
metricNameZH: string;
|
|
7856
|
+
metricValue?: string | null;
|
|
7857
|
+
metricDefaultValue?: string | null;
|
|
7858
|
+
metricType: string;
|
|
7859
|
+
metricValidValues?: Array<string | null> | null;
|
|
7860
|
+
metricDescription: string;
|
|
7861
|
+
}>;
|
|
7787
7862
|
};
|
|
7788
7863
|
} | null;
|
|
7789
7864
|
};
|
|
@@ -8678,6 +8753,7 @@ export declare const DeleteVersionAllContentDocument: import("../node_modules/.p
|
|
|
8678
8753
|
export declare const LoadVersionFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8679
8754
|
export declare const ListSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8680
8755
|
export declare const GetSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8756
|
+
export declare const ListSftMetricDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8681
8757
|
export declare const CreateSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8682
8758
|
export declare const UpdateSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8683
8759
|
export declare const DeleteSftDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -8799,6 +8875,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
8799
8875
|
loadVersionFiles(variables: LoadVersionFilesMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<LoadVersionFilesMutation>;
|
|
8800
8876
|
listSFT(variables: ListSftQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListSftQuery>;
|
|
8801
8877
|
getSFT(variables: GetSftQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetSftQuery>;
|
|
8878
|
+
listSFTMetric(variables: ListSftMetricQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListSftMetricQuery>;
|
|
8802
8879
|
createSFT(variables: CreateSftMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateSftMutation>;
|
|
8803
8880
|
updateSFT(variables: UpdateSftMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateSftMutation>;
|
|
8804
8881
|
deleteSFT(variables: DeleteSftMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteSftMutation>;
|
|
@@ -8872,6 +8949,7 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
8872
8949
|
useGetVersionContent(variables: GetVersionContentQueryVariables, config?: SWRConfigInterface<GetVersionContentQuery, ClientError>): import("./useSWR").SWRResponsePro<GetVersionContentQuery, ClientError>;
|
|
8873
8950
|
useListSft(variables: ListSftQueryVariables, config?: SWRConfigInterface<ListSftQuery, ClientError>): import("./useSWR").SWRResponsePro<ListSftQuery, ClientError>;
|
|
8874
8951
|
useGetSft(variables: GetSftQueryVariables, config?: SWRConfigInterface<GetSftQuery, ClientError>): import("./useSWR").SWRResponsePro<GetSftQuery, ClientError>;
|
|
8952
|
+
useListSftMetric(variables: ListSftMetricQueryVariables, config?: SWRConfigInterface<ListSftMetricQuery, ClientError>): import("./useSWR").SWRResponsePro<ListSftMetricQuery, ClientError>;
|
|
8875
8953
|
useGetVersionedDataset(variables: GetVersionedDatasetQueryVariables, config?: SWRConfigInterface<GetVersionedDatasetQuery, ClientError>): import("./useSWR").SWRResponsePro<GetVersionedDatasetQuery, ClientError>;
|
|
8876
8954
|
useListVersionedDatasets(variables: ListVersionedDatasetsQueryVariables, config?: SWRConfigInterface<ListVersionedDatasetsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListVersionedDatasetsQuery, ClientError>;
|
|
8877
8955
|
useListWorkers(variables: ListWorkersQueryVariables, config?: SWRConfigInterface<ListWorkersQuery, ClientError>): import("./useSWR").SWRResponsePro<ListWorkersQuery, ClientError>;
|
|
@@ -9208,6 +9286,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
9208
9286
|
name: string;
|
|
9209
9287
|
namespace: string;
|
|
9210
9288
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GetSftQuery>;
|
|
9289
|
+
listSFTMetric(variables: Exact<{
|
|
9290
|
+
kind: string;
|
|
9291
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListSftMetricQuery>;
|
|
9211
9292
|
createSFT(variables: Exact<{
|
|
9212
9293
|
input: CreateSftInput;
|
|
9213
9294
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<CreateSftMutation>;
|
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, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75, _templateObject76, _templateObject77, _templateObject78, _templateObject79, _templateObject80, _templateObject81, _templateObject82, _templateObject83, _templateObject84, _templateObject85, _templateObject86, _templateObject87, _templateObject88, _templateObject89, _templateObject90, _templateObject91, _templateObject92, _templateObject93, _templateObject94, _templateObject95, _templateObject96, _templateObject97, _templateObject98, _templateObject99, _templateObject100, _templateObject101, _templateObject102, _templateObject103, _templateObject104, _templateObject105, _templateObject106, _templateObject107, _templateObject108, _templateObject109, _templateObject110, _templateObject111, _templateObject112, _templateObject113, _templateObject114, _templateObject115, _templateObject116, _templateObject117, _templateObject118, _templateObject119;
|
|
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, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75, _templateObject76, _templateObject77, _templateObject78, _templateObject79, _templateObject80, _templateObject81, _templateObject82, _templateObject83, _templateObject84, _templateObject85, _templateObject86, _templateObject87, _templateObject88, _templateObject89, _templateObject90, _templateObject91, _templateObject92, _templateObject93, _templateObject94, _templateObject95, _templateObject96, _templateObject97, _templateObject98, _templateObject99, _templateObject100, _templateObject101, _templateObject102, _templateObject103, _templateObject104, _templateObject105, _templateObject106, _templateObject107, _templateObject108, _templateObject109, _templateObject110, _templateObject111, _templateObject112, _templateObject113, _templateObject114, _templateObject115, _templateObject116, _templateObject117, _templateObject118, _templateObject119, _templateObject120;
|
|
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); }
|
|
@@ -252,28 +252,29 @@ export var UpdateContentDocument = gql(_templateObject94 || (_templateObject94 =
|
|
|
252
252
|
export var DeleteContentDocument = gql(_templateObject95 || (_templateObject95 = _taggedTemplateLiteral(["\n mutation deleteContent($contentIDs: [String!]) {\n TuningDataSet {\n deleteContent(contentIDs: $contentIDs)\n }\n}\n "])));
|
|
253
253
|
export var DeleteVersionAllContentDocument = gql(_templateObject96 || (_templateObject96 = _taggedTemplateLiteral(["\n mutation deleteVersionAllContent($id: String!) {\n TuningDataSet {\n deleteVersionAllContent(id: $id)\n }\n}\n "])));
|
|
254
254
|
export var LoadVersionFilesDocument = gql(_templateObject97 || (_templateObject97 = _taggedTemplateLiteral(["\n mutation loadVersionFiles($id: String!, $files: [String!]) {\n TuningDataSet {\n loadVersionFiles(id: $id, files: $files)\n }\n}\n "])));
|
|
255
|
-
export var ListSftDocument = gql(_templateObject98 || (_templateObject98 = _taggedTemplateLiteral(["\n query listSFT($input: ListCommonInput!) {\n SFT {\n listSFT(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on SFT {\n name\n namespace\n creator\n displayName\n description\n creationTimestamp\n
|
|
256
|
-
export var GetSftDocument = gql(_templateObject99 || (_templateObject99 = _taggedTemplateLiteral(["\n query getSFT($name: String!, $namespace: String!) {\n SFT {\n getSFT(name: $name, namespace: $namespace) {\n name\n namespace\n creator\n displayName\n description\n creationTimestamp\n
|
|
257
|
-
export var
|
|
258
|
-
export var
|
|
259
|
-
export var
|
|
260
|
-
export var
|
|
261
|
-
export var
|
|
262
|
-
export var
|
|
263
|
-
export var
|
|
264
|
-
export var
|
|
265
|
-
export var
|
|
266
|
-
export var
|
|
267
|
-
export var
|
|
268
|
-
export var
|
|
269
|
-
export var
|
|
270
|
-
export var
|
|
271
|
-
export var
|
|
272
|
-
export var
|
|
273
|
-
export var
|
|
274
|
-
export var
|
|
275
|
-
export var
|
|
276
|
-
export var
|
|
255
|
+
export var ListSftDocument = gql(_templateObject98 || (_templateObject98 = _taggedTemplateLiteral(["\n query listSFT($input: ListCommonInput!) {\n SFT {\n listSFT(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on SFT {\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n creationTimestamp\n completeTimestamp\n storage {\n accessModes\n selector {\n matchLabels\n matchExpressions {\n key\n values\n operator\n }\n }\n resources {\n limits\n requests\n }\n volumeName\n storageClassName\n volumeMode\n datasource {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n dataSourceRef {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n }\n datasets\n baseModel {\n kind\n name\n namespace\n displayName\n }\n serviceAccountName\n suspend\n status\n phase\n phaseMessage\n metrics {\n metricKind\n metricName\n metricNameZH\n metricValue\n metricDefaultValue\n metricType\n metricValidValues\n metricDescription\n }\n }\n }\n }\n }\n}\n "])));
|
|
256
|
+
export var GetSftDocument = gql(_templateObject99 || (_templateObject99 = _taggedTemplateLiteral(["\n query getSFT($name: String!, $namespace: String!) {\n SFT {\n getSFT(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n creationTimestamp\n completeTimestamp\n storage {\n accessModes\n selector {\n matchLabels\n matchExpressions {\n key\n values\n operator\n }\n }\n resources {\n limits\n requests\n }\n volumeName\n storageClassName\n volumeMode\n datasource {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n dataSourceRef {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n }\n datasets\n baseModel {\n kind\n name\n namespace\n displayName\n }\n serviceAccountName\n suspend\n status\n phase\n phaseMessage\n metrics {\n metricKind\n metricName\n metricNameZH\n metricValue\n metricDefaultValue\n metricType\n metricValidValues\n metricDescription\n }\n }\n }\n}\n "])));
|
|
257
|
+
export var ListSftMetricDocument = gql(_templateObject100 || (_templateObject100 = _taggedTemplateLiteral(["\n query listSFTMetric($kind: String!) {\n SFT {\n listSFTMetric(kind: $kind) {\n ... on SFTMetric {\n metricKind\n metricName\n metricNameZH\n metricValue\n metricDefaultValue\n metricType\n metricValidValues\n metricDescription\n }\n }\n }\n}\n "])));
|
|
258
|
+
export var CreateSftDocument = gql(_templateObject101 || (_templateObject101 = _taggedTemplateLiteral(["\n mutation createSFT($input: CreateSFTInput!) {\n SFT {\n createSFT(input: $input) {\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n creationTimestamp\n completeTimestamp\n storage {\n accessModes\n selector {\n matchLabels\n matchExpressions {\n key\n values\n operator\n }\n }\n resources {\n limits\n requests\n }\n volumeName\n storageClassName\n volumeMode\n datasource {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n dataSourceRef {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n }\n datasets\n baseModel {\n kind\n name\n namespace\n displayName\n }\n serviceAccountName\n suspend\n status\n phase\n phaseMessage\n metrics {\n metricKind\n metricName\n metricNameZH\n metricValue\n metricDefaultValue\n metricType\n metricValidValues\n metricDescription\n }\n }\n }\n}\n "])));
|
|
259
|
+
export var UpdateSftDocument = gql(_templateObject102 || (_templateObject102 = _taggedTemplateLiteral(["\n mutation updateSFT($input: UpdateSFTInput!) {\n SFT {\n updateSFT(input: $input) {\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n creationTimestamp\n completeTimestamp\n storage {\n accessModes\n selector {\n matchLabels\n matchExpressions {\n key\n values\n operator\n }\n }\n resources {\n limits\n requests\n }\n volumeName\n storageClassName\n volumeMode\n datasource {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n dataSourceRef {\n apiGroup\n kind\n name\n namespace\n displayName\n }\n }\n datasets\n baseModel {\n kind\n name\n namespace\n displayName\n }\n serviceAccountName\n suspend\n status\n phase\n phaseMessage\n metrics {\n metricKind\n metricName\n metricNameZH\n metricValue\n metricDefaultValue\n metricType\n metricValidValues\n metricDescription\n }\n }\n }\n}\n "])));
|
|
260
|
+
export var DeleteSftDocument = gql(_templateObject103 || (_templateObject103 = _taggedTemplateLiteral(["\n mutation deleteSFT($input: DeleteCommonInput!) {\n SFT {\n deleteSFT(input: $input)\n }\n}\n "])));
|
|
261
|
+
export var ExportSftDocument = gql(_templateObject104 || (_templateObject104 = _taggedTemplateLiteral(["\n mutation exportSFT($name: String!, $namespace: String!) {\n SFT {\n exportSFT(name: $name, namespace: $namespace)\n }\n}\n "])));
|
|
262
|
+
export var CreateVersionedDatasetDocument = gql(_templateObject105 || (_templateObject105 = _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 "])));
|
|
263
|
+
export var UpdateVersionedDatasetDocument = gql(_templateObject106 || (_templateObject106 = _taggedTemplateLiteral(["\n mutation updateVersionedDataset($input: UpdateVersionedDatasetInput!) {\n VersionedDataset {\n updateVersionedDataset(input: $input) {\n name\n displayName\n }\n }\n}\n "])));
|
|
264
|
+
export var DeleteVersionedDatasetsDocument = gql(_templateObject107 || (_templateObject107 = _taggedTemplateLiteral(["\n mutation deleteVersionedDatasets($input: DeleteVersionedDatasetInput!) {\n VersionedDataset {\n deleteVersionedDatasets(input: $input)\n }\n}\n "])));
|
|
265
|
+
export var GetVersionedDatasetDocument = gql(_templateObject108 || (_templateObject108 = _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 syncMsg\n dataProcessStatus\n dataProcessMsg\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n versions\n latestVersion\n creationTimestamp\n }\n }\n }\n }\n }\n}\n "])));
|
|
266
|
+
export var ListVersionedDatasetsDocument = gql(_templateObject109 || (_templateObject109 = _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 syncMsg\n dataProcessStatus\n dataProcessMsg\n files(input: $fileInput) {\n totalCount\n hasNextPage\n nodes {\n ... on F {\n path\n time\n fileType\n count\n size\n versions\n latestVersion\n creationTimestamp\n }\n }\n }\n }\n }\n }\n }\n}\n "])));
|
|
267
|
+
export var ListWorkersDocument = gql(_templateObject110 || (_templateObject110 = _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 llmModels\n embeddingModels\n rerankingModels\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n }\n }\n}\n "])));
|
|
268
|
+
export var GetWorkerDocument = gql(_templateObject111 || (_templateObject111 = _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 llmModels\n embeddingModels\n rerankingModels\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n storage {\n accessModes\n resources {\n limits\n requests\n }\n storageClassName\n }\n }\n }\n}\n "])));
|
|
269
|
+
export var CreateWorkerDocument = gql(_templateObject112 || (_templateObject112 = _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 llmModels\n embeddingModels\n rerankingModels\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n storage {\n accessModes\n resources {\n limits\n requests\n }\n storageClassName\n }\n }\n }\n}\n "])));
|
|
270
|
+
export var UpdateWorkerDocument = gql(_templateObject113 || (_templateObject113 = _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 matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n}\n "])));
|
|
271
|
+
export var DeleteWorkersDocument = gql(_templateObject114 || (_templateObject114 = _taggedTemplateLiteral(["\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n "])));
|
|
272
|
+
export var ListWorkflowsDocument = gql(_templateObject115 || (_templateObject115 = _taggedTemplateLiteral(["\n query listWorkflows($input: ListCommonInput!) {\n Workflow {\n listWorkflows(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Workflow {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n icon\n status\n message\n updateTimestamp\n draftUpdateTimestamp\n graph\n release\n }\n }\n }\n }\n}\n "])));
|
|
273
|
+
export var GetWorkflowDocument = gql(_templateObject116 || (_templateObject116 = _taggedTemplateLiteral(["\n query getWorkflow($name: String!, $namespace: String!) {\n Workflow {\n getWorkflow(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n icon\n status\n message\n updateTimestamp\n draftUpdateTimestamp\n graph\n release\n }\n }\n}\n "])));
|
|
274
|
+
export var CreateWorkflowDocument = gql(_templateObject117 || (_templateObject117 = _taggedTemplateLiteral(["\n mutation createWorkflow($input: CreateWorkflowInput!) {\n Workflow {\n createWorkflow(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n icon\n status\n message\n updateTimestamp\n draftUpdateTimestamp\n graph\n }\n }\n}\n "])));
|
|
275
|
+
export var UpdateWorkflowDocument = gql(_templateObject118 || (_templateObject118 = _taggedTemplateLiteral(["\n mutation updateWorkflow($input: UpdateWorkflowInput!) {\n Workflow {\n updateWorkflow(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n icon\n status\n message\n updateTimestamp\n draftUpdateTimestamp\n graph\n }\n }\n}\n "])));
|
|
276
|
+
export var DeleteWorkflowDocument = gql(_templateObject119 || (_templateObject119 = _taggedTemplateLiteral(["\n mutation deleteWorkflow($input: DeleteCommonInput!) {\n Workflow {\n deleteWorkflow(input: $input)\n }\n}\n "])));
|
|
277
|
+
export var ReleaseWorkflowDocument = gql(_templateObject120 || (_templateObject120 = _taggedTemplateLiteral(["\n mutation releaseWorkflow($input: ReleaseWorkflowInput!) {\n Workflow {\n releaseWorkflow(input: $input)\n }\n}\n "])));
|
|
277
278
|
var defaultWrapper = function defaultWrapper(action, _operationName, _operationType, variables) {
|
|
278
279
|
return action();
|
|
279
280
|
};
|
|
@@ -775,6 +776,11 @@ export function getSdk(client) {
|
|
|
775
776
|
return client.request(GetSftDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
776
777
|
}, 'getSFT', 'query', variables);
|
|
777
778
|
},
|
|
779
|
+
listSFTMetric: function listSFTMetric(variables, requestHeaders) {
|
|
780
|
+
return withWrapper(function (wrappedRequestHeaders) {
|
|
781
|
+
return client.request(ListSftMetricDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
782
|
+
}, 'listSFTMetric', 'query', variables);
|
|
783
|
+
},
|
|
778
784
|
createSFT: function createSFT(variables, requestHeaders) {
|
|
779
785
|
return withWrapper(function (wrappedRequestHeaders) {
|
|
780
786
|
return client.request(CreateSftDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
@@ -1137,6 +1143,11 @@ export function getSdkWithHooks(client) {
|
|
|
1137
1143
|
return sdk.getSFT(variables);
|
|
1138
1144
|
}, config);
|
|
1139
1145
|
},
|
|
1146
|
+
useListSftMetric: function useListSftMetric(variables, config) {
|
|
1147
|
+
return useSWR(genKey('ListSftMetric', variables), function () {
|
|
1148
|
+
return sdk.listSFTMetric(variables);
|
|
1149
|
+
}, config);
|
|
1150
|
+
},
|
|
1140
1151
|
useGetVersionedDataset: function useGetVersionedDataset(variables, config) {
|
|
1141
1152
|
return useSWR(genKey('GetVersionedDataset', variables), function () {
|
|
1142
1153
|
return sdk.getVersionedDataset(variables);
|
package/dist/esm/taro.d.ts
CHANGED
|
@@ -362,6 +362,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
362
362
|
name: string;
|
|
363
363
|
namespace: string;
|
|
364
364
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetSftQuery>;
|
|
365
|
+
listSFTMetric(variables: import("./sdk").Exact<{
|
|
366
|
+
kind: string;
|
|
367
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListSftMetricQuery>;
|
|
365
368
|
createSFT(variables: import("./sdk").Exact<{
|
|
366
369
|
input: import("./sdk").CreateSftInput;
|
|
367
370
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateSftMutation>;
|
|
@@ -612,6 +615,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
612
615
|
name: string;
|
|
613
616
|
namespace: string;
|
|
614
617
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetSftQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetSftQuery, import("graphql-request/src/types").ClientError>;
|
|
618
|
+
useListSftMetric(variables: import("./sdk").Exact<{
|
|
619
|
+
kind: string;
|
|
620
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListSftMetricQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListSftMetricQuery, import("graphql-request/src/types").ClientError>;
|
|
615
621
|
useGetVersionedDataset(variables: import("./sdk").Exact<{
|
|
616
622
|
name: string;
|
|
617
623
|
namespace: string;
|
|
@@ -965,6 +971,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
965
971
|
name: string;
|
|
966
972
|
namespace: string;
|
|
967
973
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetSftQuery>;
|
|
974
|
+
listSFTMetric(variables: import("./sdk").Exact<{
|
|
975
|
+
kind: string;
|
|
976
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListSftMetricQuery>;
|
|
968
977
|
createSFT(variables: import("./sdk").Exact<{
|
|
969
978
|
input: import("./sdk").CreateSftInput;
|
|
970
979
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateSftMutation>;
|
|
@@ -1215,6 +1224,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1215
1224
|
name: string;
|
|
1216
1225
|
namespace: string;
|
|
1217
1226
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetSftQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetSftQuery, import("graphql-request/src/types").ClientError>;
|
|
1227
|
+
useListSftMetric(variables: import("./sdk").Exact<{
|
|
1228
|
+
kind: string;
|
|
1229
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListSftMetricQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListSftMetricQuery, import("graphql-request/src/types").ClientError>;
|
|
1218
1230
|
useGetVersionedDataset(variables: import("./sdk").Exact<{
|
|
1219
1231
|
name: string;
|
|
1220
1232
|
namespace: string;
|
|
@@ -1568,6 +1580,9 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1568
1580
|
name: string;
|
|
1569
1581
|
namespace: string;
|
|
1570
1582
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetSftQuery>;
|
|
1583
|
+
listSFTMetric(variables: import("./sdk").Exact<{
|
|
1584
|
+
kind: string;
|
|
1585
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListSftMetricQuery>;
|
|
1571
1586
|
createSFT(variables: import("./sdk").Exact<{
|
|
1572
1587
|
input: import("./sdk").CreateSftInput;
|
|
1573
1588
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateSftMutation>;
|