@byted-apaas/server-sdk-node 1.0.16 → 1.1.0-beta.11
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/README.md +22 -0
- package/application/application.d.ts +9 -7
- package/application/function/function.d.ts +1 -1
- package/application/function/function.js +0 -1
- package/application/impl/common.d.ts +1 -1
- package/application/impl/common.js +13 -12
- package/application/impl/impl.d.ts +8 -6
- package/application/impl/impl.js +6 -4
- package/common/structs.d.ts +15 -0
- package/common/structs.js +21 -0
- package/constants/constants.js +4 -4
- package/context/context.d.ts +8 -38
- package/context/context.js +2 -2
- package/context/db/db.d.ts +11 -19
- package/context/db/impl/IObject.d.ts +41 -40
- package/context/db/impl/db.d.ts +9 -9
- package/context/db/impl/db.js +6 -6
- package/context/db/impl/object.d.ts +4 -3
- package/context/db/impl/object.js +62 -50
- package/context/db/impl/oql/oql.d.ts +1 -1
- package/context/db/impl/oql/oql.js +1 -1
- package/context/db/impl/order.js +1 -1
- package/context/db/impl/propertiesStore.js +1 -1
- package/context/db/impl/transaction/index.d.ts +1 -1
- package/context/db/impl/transaction/index.js +51 -46
- package/context/db/impl/transaction.d.ts +0 -5
- package/context/integration/IIntegration.d.ts +30 -0
- package/context/integration/IIntegration.js +4 -0
- package/context/integration/impl/integration.d.ts +16 -0
- package/context/integration/impl/integration.js +62 -0
- package/context/metadata/components/common.js +3 -3
- package/context/metadata/components/components.d.ts +4 -4
- package/context/metadata/components/desktop/list.d.ts +3 -3
- package/context/metadata/components/desktop/list.js +23 -23
- package/context/metadata/components/desktop/recordDetail.d.ts +2 -2
- package/context/metadata/components/mobile/list.d.ts +4 -4
- package/context/metadata/components/mobile/list.js +1 -1
- package/context/metadata/metadata.d.ts +5 -6
- package/context/metadata/metadata.js +5 -6
- package/context/metadata/objects/fields.d.ts +6 -6
- package/context/metadata/objects/fields.js +57 -57
- package/context/metadata/objects/fields.util.d.ts +3 -3
- package/context/metadata/objects/fields.util.js +21 -21
- package/context/metadata/objects/objects.d.ts +1 -1
- package/context/metadata/objects/objects.js +1 -1
- package/context/metadata/types/components.d.ts +5 -5
- package/context/metadata/types/objects.d.ts +88 -88
- package/context/msg/msg.d.ts +2 -2
- package/context/resources/IResources.d.ts +6 -4
- package/context/resources/impl/resources.d.ts +6 -6
- package/context/resources/impl/resources.js +5 -5
- package/context/tasks/tasks.d.ts +3 -3
- package/context/tasks/tasks.js +5 -5
- package/data/index.d.ts +2 -2
- package/global/application/flow/flow.d.ts +85 -0
- package/global/application/flow/flow.js +2 -0
- package/global/application/globalVar/globalVar.d.ts +7 -0
- package/global/application/globalVar/globalVar.js +2 -0
- package/global/global.d.ts +64 -0
- package/global/global.js +3 -0
- package/hooks/api.d.ts +12 -7
- package/hooks/api.js +28 -23
- package/hooks/hooks.js +41 -0
- package/kunlun/kunlun.d.ts +5 -5
- package/kunlun/operator/IOperator.d.ts +16 -16
- package/kunlun/operator/impl/expression.d.ts +2 -2
- package/kunlun/operator/impl/expression.js +5 -5
- package/kunlun/operator/impl/logic.js +48 -31
- package/kunlun/operator/impl/logicV2.d.ts +2 -2
- package/kunlun/operator/impl/logicV2.js +12 -13
- package/kunlun/operator/impl/operator.d.ts +17 -17
- package/kunlun/operator/impl/operator.js +38 -38
- package/kunlun/operator/impl/operatorV2.d.ts +17 -17
- package/kunlun/operator/impl/operatorV2.js +38 -38
- package/lib/core.d.ts +3 -3
- package/package.json +2 -2
- package/request/common.d.ts +1 -1
- package/request/common.js +4 -3
- package/request/constants.d.ts +1 -1
- package/request/constants.js +6 -6
- package/request/faasinfra.d.ts +1 -1
- package/request/faasinfra.js +41 -253
- package/request/innerapi.d.ts +14 -10
- package/request/innerapi.js +220 -66
- package/request/interface.d.ts +68 -54
- package/request/interface.js +8 -9
- package/request/openapi.d.ts +15 -11
- package/request/openapi.js +266 -158
package/request/innerapi.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
import { Stream } from
|
|
4
|
-
import { Order } from
|
|
5
|
-
import { Criterion } from
|
|
6
|
-
import { IInnerAPIRequest, OpenSDKGetRecordsReq, UploadFileResp } from
|
|
7
|
-
import { ExecutionInfo, ExecutionResult, RevokeExecutionOptions } from
|
|
8
|
-
import { AppCtx } from
|
|
3
|
+
import { Stream } from 'stream';
|
|
4
|
+
import { Order } from '../context/db/impl/order';
|
|
5
|
+
import { Criterion } from '../kunlun/operator/impl/logic';
|
|
6
|
+
import { IInnerAPIRequest, OpenSDKGetRecordsReq, UploadFileResp } from './interface';
|
|
7
|
+
import { ExecutionInfo, ExecutionResult, RevokeExecutionOptions } from '@byted-apaas/server-common-node/context/workflow/workflow';
|
|
8
|
+
import { AppCtx } from '../application/application';
|
|
9
9
|
export declare class RequestRpc implements IInnerAPIRequest {
|
|
10
10
|
constructor();
|
|
11
11
|
createRecordBySync(objectApiName: string, record: object, authType: string): any;
|
|
@@ -15,13 +15,13 @@ export declare class RequestRpc implements IInnerAPIRequest {
|
|
|
15
15
|
updateRecordsByAsync(objectApiName: string, recordMap: Record<number, object>, authType: string): any;
|
|
16
16
|
deleteRecordsByAsync(objectApiName: string, recordIDs: number[], authType: string): any;
|
|
17
17
|
createRecordsBySync(objectApiName: string, records: object[], authType: string): any;
|
|
18
|
-
updateRecordsBySync(objectApiName: string, recordMap: Record<number, object>, authType: string):
|
|
19
|
-
deleteRecordsBySync(objectApiName: string, recordIDs: number[], authType: string):
|
|
18
|
+
updateRecordsBySync(objectApiName: string, recordMap: Record<number, object>, authType: string): Promise<Record<number, string>>;
|
|
19
|
+
deleteRecordsBySync(objectApiName: string, recordIDs: number[], authType: string): Promise<Record<number, string>>;
|
|
20
20
|
getRecordsOrCountByCriterion(objectApiName: string, criterion: string | Criterion, fuzzySearch: any, order: Order[], ignoreBackLookupField: boolean, fieldApiNames: string[], offset: number, limit: number, needCount: boolean, authType: string): any;
|
|
21
21
|
updateWorkflowVariables(ctx: any, instanceId: number, variables: object, variableTypes: object): Promise<void>;
|
|
22
22
|
uploadFile(data: Stream, expire: number): Promise<UploadFileResp>;
|
|
23
|
-
downloadFileByID(fileID: string, filePath?: string): Promise<Buffer |
|
|
24
|
-
downloadFileByToken(fileToken: string, filePath?: string): Promise<Buffer |
|
|
23
|
+
downloadFileByID(fileID: string, filePath?: string): Promise<Buffer | undefined>;
|
|
24
|
+
downloadFileByToken(fileToken: string, filePath?: string): Promise<Buffer | undefined>;
|
|
25
25
|
createMessage(msg: any): Promise<number>;
|
|
26
26
|
updateMessage(msgId: number, msg: any): Promise<void>;
|
|
27
27
|
getFields(objectApiName: string): Promise<any>;
|
|
@@ -52,6 +52,10 @@ export declare class RequestRpc implements IInnerAPIRequest {
|
|
|
52
52
|
getExecutionInfo(executionId: number): Promise<ExecutionInfo>;
|
|
53
53
|
getTenantInfo(appCtx: AppCtx): Promise<any>;
|
|
54
54
|
mGetFileToken(ids: string[]): Promise<string>;
|
|
55
|
+
getIntegrationAppAccessToken(apiName: string): Promise<any>;
|
|
56
|
+
getIntegrationTenantAccessToken(apiName: string): Promise<any>;
|
|
57
|
+
getDefaultIntegrationAppAccessToken(): Promise<any>;
|
|
58
|
+
getDefaultIntegrationTenantAccessToken(): Promise<any>;
|
|
55
59
|
openSDKCreateRecordBySync(objectApiName: string, record: object): any;
|
|
56
60
|
openSDKUpdateRecordBySync(objectApiName: string, recordID: number, record: object): any;
|
|
57
61
|
openSDKDeleteRecordBySync(objectApiName: string, recordID: number): any;
|