@byted-apaas/server-sdk-node 1.1.23-beta.9 → 1.1.23

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.
Files changed (131) hide show
  1. package/package.json +2 -2
  2. package/application/application.d.ts +0 -33
  3. package/application/application.js +0 -2
  4. package/application/function/function.d.ts +0 -14
  5. package/application/function/function.js +0 -20
  6. package/application/impl/common.d.ts +0 -2
  7. package/application/impl/common.js +0 -52
  8. package/application/impl/impl.d.ts +0 -19
  9. package/application/impl/impl.js +0 -45
  10. package/common/structs.d.ts +0 -15
  11. package/common/structs.js +0 -21
  12. package/constants/constants.d.ts +0 -13
  13. package/constants/constants.js +0 -18
  14. package/context/context.d.ts +0 -44
  15. package/context/context.js +0 -25
  16. package/context/db/db.d.ts +0 -110
  17. package/context/db/db.js +0 -2
  18. package/context/db/impl/IObject.d.ts +0 -303
  19. package/context/db/impl/IObject.js +0 -5
  20. package/context/db/impl/IObjectV3.d.ts +0 -239
  21. package/context/db/impl/IObjectV3.js +0 -5
  22. package/context/db/impl/db.d.ts +0 -62
  23. package/context/db/impl/db.js +0 -84
  24. package/context/db/impl/dbV3.d.ts +0 -35
  25. package/context/db/impl/dbV3.js +0 -50
  26. package/context/db/impl/object.d.ts +0 -123
  27. package/context/db/impl/object.js +0 -1008
  28. package/context/db/impl/oql/ioql.d.ts +0 -14
  29. package/context/db/impl/oql/ioql.js +0 -4
  30. package/context/db/impl/oql/oql.d.ts +0 -14
  31. package/context/db/impl/oql/oql.js +0 -39
  32. package/context/db/impl/order.d.ts +0 -9
  33. package/context/db/impl/order.js +0 -15
  34. package/context/db/impl/propertiesStore.d.ts +0 -8
  35. package/context/db/impl/propertiesStore.js +0 -29
  36. package/context/db/impl/queryBuilder.d.ts +0 -33
  37. package/context/db/impl/queryBuilder.js +0 -72
  38. package/context/db/impl/transaction/index.d.ts +0 -25
  39. package/context/db/impl/transaction/index.js +0 -300
  40. package/context/db/impl/transaction/operation.d.ts +0 -27
  41. package/context/db/impl/transaction/operation.js +0 -69
  42. package/context/db/impl/transaction.d.ts +0 -70
  43. package/context/db/impl/transaction.js +0 -4
  44. package/context/globalConfig/globalConfig.d.ts +0 -7
  45. package/context/globalConfig/globalConfig.js +0 -16
  46. package/context/integration/IIntegration.d.ts +0 -30
  47. package/context/integration/IIntegration.js +0 -4
  48. package/context/integration/impl/integration.d.ts +0 -16
  49. package/context/integration/impl/integration.js +0 -62
  50. package/context/metadata/components/common.d.ts +0 -6
  51. package/context/metadata/components/common.js +0 -17
  52. package/context/metadata/components/components.d.ts +0 -12
  53. package/context/metadata/components/components.js +0 -19
  54. package/context/metadata/components/desktop/list.d.ts +0 -16
  55. package/context/metadata/components/desktop/list.js +0 -402
  56. package/context/metadata/components/desktop/recordDetail.d.ts +0 -11
  57. package/context/metadata/components/desktop/recordDetail.js +0 -53
  58. package/context/metadata/components/mobile/list.d.ts +0 -24
  59. package/context/metadata/components/mobile/list.js +0 -145
  60. package/context/metadata/metadata.d.ts +0 -63
  61. package/context/metadata/metadata.js +0 -125
  62. package/context/metadata/objects/fields.d.ts +0 -158
  63. package/context/metadata/objects/fields.js +0 -369
  64. package/context/metadata/objects/fields.util.d.ts +0 -52
  65. package/context/metadata/objects/fields.util.js +0 -420
  66. package/context/metadata/objects/fieldsV3.d.ts +0 -159
  67. package/context/metadata/objects/fieldsV3.js +0 -369
  68. package/context/metadata/objects/objects.d.ts +0 -11
  69. package/context/metadata/objects/objects.js +0 -20
  70. package/context/metadata/types/common.d.ts +0 -11
  71. package/context/metadata/types/common.js +0 -33
  72. package/context/metadata/types/components.d.ts +0 -90
  73. package/context/metadata/types/components.js +0 -4
  74. package/context/metadata/types/objects.d.ts +0 -246
  75. package/context/metadata/types/objects.js +0 -4
  76. package/context/metadata/types/objectsV3.d.ts +0 -128
  77. package/context/metadata/types/objectsV3.js +0 -4
  78. package/context/msg/msg.d.ts +0 -38
  79. package/context/msg/msg.js +0 -35
  80. package/context/resources/IResources.d.ts +0 -68
  81. package/context/resources/IResources.js +0 -2
  82. package/context/resources/impl/resources.d.ts +0 -42
  83. package/context/resources/impl/resources.js +0 -161
  84. package/context/tasks/tasks.d.ts +0 -33
  85. package/context/tasks/tasks.js +0 -139
  86. package/data/index.d.ts +0 -27
  87. package/data/index.js +0 -4
  88. package/global/application/flow/flow.d.ts +0 -99
  89. package/global/application/flow/flow.js +0 -8
  90. package/global/application/flow/impl/flow.d.ts +0 -20
  91. package/global/application/flow/impl/flow.js +0 -56
  92. package/global/application/globalVar/globalVar.d.ts +0 -7
  93. package/global/application/globalVar/globalVar.js +0 -2
  94. package/global/global.d.ts +0 -70
  95. package/global/global.js +0 -3
  96. package/hooks/api.d.ts +0 -65
  97. package/hooks/api.js +0 -347
  98. package/hooks/hooks.d.ts +0 -1
  99. package/hooks/hooks.js +0 -107
  100. package/kunlun/kunlun.d.ts +0 -55
  101. package/kunlun/kunlun.js +0 -58
  102. package/kunlun/operator/IOperator.d.ts +0 -158
  103. package/kunlun/operator/IOperator.js +0 -4
  104. package/kunlun/operator/impl/expression.d.ts +0 -75
  105. package/kunlun/operator/impl/expression.js +0 -96
  106. package/kunlun/operator/impl/logic.d.ts +0 -68
  107. package/kunlun/operator/impl/logic.js +0 -573
  108. package/kunlun/operator/impl/logicV2.d.ts +0 -59
  109. package/kunlun/operator/impl/logicV2.js +0 -197
  110. package/kunlun/operator/impl/operator.d.ts +0 -179
  111. package/kunlun/operator/impl/operator.js +0 -222
  112. package/kunlun/operator/impl/operatorV2.d.ts +0 -180
  113. package/kunlun/operator/impl/operatorV2.js +0 -216
  114. package/lib/core.d.ts +0 -4
  115. package/lib/core.js +0 -19
  116. package/request/common.d.ts +0 -13
  117. package/request/common.js +0 -88
  118. package/request/constants.d.ts +0 -12
  119. package/request/constants.js +0 -29
  120. package/request/faasinfra.d.ts +0 -8
  121. package/request/faasinfra.js +0 -146
  122. package/request/interface.d.ts +0 -121
  123. package/request/interface.js +0 -30
  124. package/request/openapi.d.ts +0 -84
  125. package/request/openapi.js +0 -1529
  126. package/request/structs.d.ts +0 -99
  127. package/request/structs.js +0 -15
  128. package/types/types.d.ts +0 -79
  129. package/types/types.js +0 -4
  130. package/version/version.d.ts +0 -2
  131. package/version/version.js +0 -8
@@ -1,99 +0,0 @@
1
- export interface IApprovalInstanceListReq {
2
- start_time?: number;
3
- end_time?: number;
4
- page_size?: number;
5
- page_token?: string;
6
- }
7
- export interface IGetApprovalInstanceListResp {
8
- approval_instance_ids: number[];
9
- page_token: string;
10
- count: number;
11
- has_more: boolean;
12
- }
13
- export interface IGetApprovalInstanceResp {
14
- approval_instance: {
15
- id: number;
16
- label: Record<string, string>;
17
- initiator: number;
18
- instance_start_time: number;
19
- status: string;
20
- tasks: {
21
- id: number;
22
- task_type: string;
23
- task_status: string;
24
- task_start_time: number;
25
- task_end_time: number;
26
- form_data: string;
27
- approval_logic: string;
28
- approvers: number[];
29
- assigners: number[];
30
- task_url: string;
31
- }[];
32
- comments: {
33
- id: number;
34
- commenter: number;
35
- content: string;
36
- create_at: number;
37
- update_at: number;
38
- }[];
39
- };
40
- }
41
- export interface IApprovalInstanceReq {
42
- includes: string;
43
- }
44
- export interface IApprovalInstanceListOptions {
45
- startTime?: number;
46
- endTime?: number;
47
- pageSize?: number;
48
- pageToken?: string;
49
- }
50
- export interface IApprovalInstanceList {
51
- approvalInstanceIds: number[];
52
- pageToken: string;
53
- count: number;
54
- hasMore: boolean;
55
- }
56
- export declare enum ApprovalInstanceStatus {
57
- IN_PROCESS = "in_process",
58
- AGREED = "agreed",
59
- INPROCESS = "rejected",
60
- CANCELED = "canceled",
61
- FAILED = "failed",
62
- COMPLETED = "completed",
63
- UNSTARTED = "unstarted",
64
- AUTO_END = "auto_end",
65
- TERMINATED = "terminated"
66
- }
67
- export interface IApprovalInstance {
68
- id: number;
69
- label: Record<string, string>;
70
- initiator: number;
71
- instanceStartTime: number;
72
- status: string;
73
- tasks: IApprovalTask[];
74
- comments: IApprovalComment[];
75
- }
76
- export interface IApprovalComment {
77
- id: number;
78
- commenter: number;
79
- content: string;
80
- createAt: number;
81
- updateAt: number;
82
- }
83
- export interface IApprovalTask {
84
- id: number;
85
- taskType: string;
86
- taskStatus: string;
87
- taskStartTime: number;
88
- taskEndTime: number;
89
- formData: string;
90
- approvalLogic: string;
91
- approvers: number[];
92
- assigners: number[];
93
- taskURL: string;
94
- }
95
- export interface IGetApprovalInstanceOptions {
96
- approvalInstanceId: number;
97
- includeFormData?: boolean;
98
- includeContent?: boolean;
99
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApprovalInstanceStatus = void 0;
4
- var ApprovalInstanceStatus;
5
- (function (ApprovalInstanceStatus) {
6
- ApprovalInstanceStatus["IN_PROCESS"] = "in_process";
7
- ApprovalInstanceStatus["AGREED"] = "agreed";
8
- ApprovalInstanceStatus["INPROCESS"] = "rejected";
9
- ApprovalInstanceStatus["CANCELED"] = "canceled";
10
- ApprovalInstanceStatus["FAILED"] = "failed";
11
- ApprovalInstanceStatus["COMPLETED"] = "completed";
12
- ApprovalInstanceStatus["UNSTARTED"] = "unstarted";
13
- ApprovalInstanceStatus["AUTO_END"] = "auto_end";
14
- ApprovalInstanceStatus["TERMINATED"] = "terminated";
15
- })(ApprovalInstanceStatus = exports.ApprovalInstanceStatus || (exports.ApprovalInstanceStatus = {}));
package/types/types.d.ts DELETED
@@ -1,79 +0,0 @@
1
- export type _BooleanCond<T> = {};
2
- export type _LogicalCond<T> = {};
3
- type _LookupCond = number | {
4
- _id: number;
5
- };
6
- type _MultiLookupCond = _LookupCond[];
7
- type PartialCompositeType<T> = Partial<{
8
- [K in keyof T]: T[K] extends _LookupField[] ? _MultiLookupCond : T[K] extends _LookupField ? _LookupCond : Partial<T[K]>;
9
- }>;
10
- type _FieldCond<T> = T extends _LookupField[] ? _MultiLookupCond : T extends _LookupField ? _LookupCond : PartialCompositeType<T>;
11
- type _FirstLevelFieldCond<T> = Partial<{
12
- [K in keyof T]: T[K] extends _LookupField ? _FieldCond<T[K]> : T[K];
13
- }>;
14
- type _KCond<T> = Partial<{
15
- [K in keyof T]: _FieldCond<T[K]> | _BooleanCond<T[K]> | _LogicalCond<T[K]>;
16
- }>;
17
- type _WhereKCond<T> = Partial<{
18
- [K in keyof T]: _FirstLevelFieldCond<T[K]> | _BooleanCond<T[K]> | _LogicalCond<T[K]>;
19
- }>;
20
- export type _Cond<T> = _KCond<T> | _LogicalCond<Partial<T>>;
21
- export type _WhereCond<T> = _WhereKCond<T> | _LogicalCond<Partial<T>>;
22
- export type _Record<T> = {
23
- [K in keyof T]: T[K] extends _LookupField ? _LookupFieldRet : T[K];
24
- };
25
- export type _CondRequireID<T> = _Cond<T> & {
26
- _id: number | string;
27
- };
28
- interface _LookupFieldRet {
29
- /**
30
- * 名称:_id
31
- *
32
- * 类型:数字 / Number
33
- *
34
- * 格式:number
35
- */
36
- _id: number;
37
- /**
38
- * 名称:角色名 / _name
39
- *
40
- * 类型:文本 / Text | 多语 / Multilingual
41
- *
42
- * 格式:string | {language_code: 1033|2052, text: string}[]
43
- */
44
- _name: string | {
45
- language_code: 1033 | 2052;
46
- text: string;
47
- }[];
48
- is_deleted: boolean;
49
- }
50
- interface _LookupField {
51
- _id: number;
52
- }
53
- import { metadataMap, currentObjApiName } from '../data/index';
54
- /**
55
- * target record 被使用于 workflow 场景下
56
- */
57
- export interface TargetRecord {
58
- /**
59
- * workflow 被触发时,原始的记录信息
60
- */
61
- original: metadataMap[currentObjApiName];
62
- /**
63
- * workflow 运行到当前位置的记录信息
64
- */
65
- proposed: metadataMap[currentObjApiName];
66
- }
67
- export interface TriggerOld {
68
- /**
69
- * 更新前的记录数据
70
- */
71
- old: metadataMap[currentObjApiName];
72
- }
73
- export interface TriggerNew {
74
- /**
75
- * 创建或更新后的记录数据
76
- */
77
- new: metadataMap[currentObjApiName];
78
- }
79
- export {};
package/types/types.js DELETED
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Copyright 2022 ByteDance Ltd. and/or its affiliates
3
- // SPDX-License-Identifier: MIT
4
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export declare const SDKName: any;
2
- export declare const SDKVersion: any;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- // Copyright 2022 ByteDance Ltd. and/or its affiliates
3
- // SPDX-License-Identifier: MIT
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.SDKVersion = exports.SDKName = void 0;
6
- const packageJson = require('.././package.json');
7
- exports.SDKName = packageJson.name;
8
- exports.SDKVersion = packageJson.version;