@byted-apaas/server-sdk-node 0.0.1-beta.3

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 (163) hide show
  1. package/LICENSE +7 -0
  2. package/NOTICE +3 -0
  3. package/README.md +1 -0
  4. package/application/application.d.ts +27 -0
  5. package/application/application.js +2 -0
  6. package/application/application.ts +40 -0
  7. package/application/function/function.d.ts +14 -0
  8. package/application/function/function.js +21 -0
  9. package/application/function/function.ts +37 -0
  10. package/application/impl/common.d.ts +2 -0
  11. package/application/impl/common.js +50 -0
  12. package/application/impl/common.ts +50 -0
  13. package/application/impl/impl.d.ts +16 -0
  14. package/application/impl/impl.js +38 -0
  15. package/application/impl/impl.ts +48 -0
  16. package/constants/constants.d.ts +10 -0
  17. package/constants/constants.js +15 -0
  18. package/constants/constants.ts +15 -0
  19. package/context/context.d.ts +74 -0
  20. package/context/context.js +25 -0
  21. package/context/context.ts +130 -0
  22. package/context/db/db.d.ts +73 -0
  23. package/context/db/db.js +4 -0
  24. package/context/db/db.ts +80 -0
  25. package/context/db/impl/IObject.d.ts +251 -0
  26. package/context/db/impl/IObject.js +5 -0
  27. package/context/db/impl/IObject.ts +247 -0
  28. package/context/db/impl/db.d.ts +61 -0
  29. package/context/db/impl/db.js +86 -0
  30. package/context/db/impl/db.ts +95 -0
  31. package/context/db/impl/object.d.ts +92 -0
  32. package/context/db/impl/object.js +524 -0
  33. package/context/db/impl/object.ts +631 -0
  34. package/context/db/impl/oql/ioql.d.ts +6 -0
  35. package/context/db/impl/oql/ioql.js +4 -0
  36. package/context/db/impl/oql/ioql.ts +9 -0
  37. package/context/db/impl/oql/oql.d.ts +8 -0
  38. package/context/db/impl/oql/oql.js +21 -0
  39. package/context/db/impl/oql/oql.ts +25 -0
  40. package/context/db/impl/order.d.ts +9 -0
  41. package/context/db/impl/order.js +15 -0
  42. package/context/db/impl/order.ts +19 -0
  43. package/context/db/impl/propertiesStore.d.ts +8 -0
  44. package/context/db/impl/propertiesStore.js +29 -0
  45. package/context/db/impl/propertiesStore.ts +31 -0
  46. package/context/db/impl/queryBuilder.d.ts +29 -0
  47. package/context/db/impl/queryBuilder.js +78 -0
  48. package/context/db/impl/queryBuilder.ts +106 -0
  49. package/context/db/impl/transaction/index.d.ts +20 -0
  50. package/context/db/impl/transaction/index.js +277 -0
  51. package/context/db/impl/transaction/index.ts +340 -0
  52. package/context/db/impl/transaction/operation.d.ts +27 -0
  53. package/context/db/impl/transaction/operation.js +69 -0
  54. package/context/db/impl/transaction/operation.ts +72 -0
  55. package/context/db/impl/transaction.d.ts +67 -0
  56. package/context/db/impl/transaction.js +4 -0
  57. package/context/db/impl/transaction.ts +79 -0
  58. package/context/globalConfig/globalConfig.d.ts +7 -0
  59. package/context/globalConfig/globalConfig.js +16 -0
  60. package/context/globalConfig/globalConfig.ts +14 -0
  61. package/context/metadata/components/common.d.ts +6 -0
  62. package/context/metadata/components/common.js +17 -0
  63. package/context/metadata/components/common.ts +22 -0
  64. package/context/metadata/components/components.d.ts +12 -0
  65. package/context/metadata/components/components.js +19 -0
  66. package/context/metadata/components/components.ts +22 -0
  67. package/context/metadata/components/desktop/list.d.ts +16 -0
  68. package/context/metadata/components/desktop/list.js +402 -0
  69. package/context/metadata/components/desktop/list.ts +457 -0
  70. package/context/metadata/components/desktop/recordDetail.d.ts +11 -0
  71. package/context/metadata/components/desktop/recordDetail.js +53 -0
  72. package/context/metadata/components/desktop/recordDetail.ts +67 -0
  73. package/context/metadata/components/mobile/list.d.ts +24 -0
  74. package/context/metadata/components/mobile/list.js +145 -0
  75. package/context/metadata/components/mobile/list.ts +179 -0
  76. package/context/metadata/metadata.d.ts +61 -0
  77. package/context/metadata/metadata.js +103 -0
  78. package/context/metadata/metadata.ts +178 -0
  79. package/context/metadata/objects/fields.d.ts +130 -0
  80. package/context/metadata/objects/fields.js +334 -0
  81. package/context/metadata/objects/fields.ts +457 -0
  82. package/context/metadata/objects/fields.util.d.ts +40 -0
  83. package/context/metadata/objects/fields.util.js +319 -0
  84. package/context/metadata/objects/fields.util.ts +360 -0
  85. package/context/metadata/objects/objects.d.ts +11 -0
  86. package/context/metadata/objects/objects.js +20 -0
  87. package/context/metadata/objects/objects.ts +30 -0
  88. package/context/metadata/types/common.d.ts +6 -0
  89. package/context/metadata/types/common.js +9 -0
  90. package/context/metadata/types/common.ts +13 -0
  91. package/context/metadata/types/components.d.ts +90 -0
  92. package/context/metadata/types/components.js +4 -0
  93. package/context/metadata/types/components.ts +108 -0
  94. package/context/metadata/types/objects.d.ts +226 -0
  95. package/context/metadata/types/objects.js +4 -0
  96. package/context/metadata/types/objects.ts +254 -0
  97. package/context/msg/msg.d.ts +38 -0
  98. package/context/msg/msg.js +35 -0
  99. package/context/msg/msg.ts +52 -0
  100. package/context/resources/IResources.d.ts +66 -0
  101. package/context/resources/IResources.js +2 -0
  102. package/context/resources/IResources.ts +73 -0
  103. package/context/resources/impl/resources.d.ts +42 -0
  104. package/context/resources/impl/resources.js +150 -0
  105. package/context/resources/impl/resources.ts +173 -0
  106. package/context/tasks/tasks.d.ts +33 -0
  107. package/context/tasks/tasks.js +139 -0
  108. package/context/tasks/tasks.ts +159 -0
  109. package/data/index.d.ts +27 -0
  110. package/data/index.js +4 -0
  111. package/data/index.ts +30 -0
  112. package/hooks/api.d.ts +61 -0
  113. package/hooks/api.js +327 -0
  114. package/hooks/api.ts +341 -0
  115. package/hooks/hooks.d.ts +1 -0
  116. package/hooks/hooks.js +88 -0
  117. package/hooks/hooks.ts +100 -0
  118. package/kunlun/kunlun.d.ts +55 -0
  119. package/kunlun/kunlun.js +58 -0
  120. package/kunlun/kunlun.ts +72 -0
  121. package/kunlun/operator/IOperator.d.ts +158 -0
  122. package/kunlun/operator/IOperator.js +4 -0
  123. package/kunlun/operator/IOperator.ts +166 -0
  124. package/kunlun/operator/impl/expression.d.ts +47 -0
  125. package/kunlun/operator/impl/expression.js +56 -0
  126. package/kunlun/operator/impl/expression.ts +74 -0
  127. package/kunlun/operator/impl/logic.d.ts +50 -0
  128. package/kunlun/operator/impl/logic.js +509 -0
  129. package/kunlun/operator/impl/logic.ts +598 -0
  130. package/kunlun/operator/impl/logicV2.d.ts +58 -0
  131. package/kunlun/operator/impl/logicV2.js +200 -0
  132. package/kunlun/operator/impl/logicV2.ts +254 -0
  133. package/kunlun/operator/impl/operator.d.ts +179 -0
  134. package/kunlun/operator/impl/operator.js +222 -0
  135. package/kunlun/operator/impl/operator.ts +258 -0
  136. package/kunlun/operator/impl/operatorV2.d.ts +180 -0
  137. package/kunlun/operator/impl/operatorV2.js +216 -0
  138. package/kunlun/operator/impl/operatorV2.ts +249 -0
  139. package/lib/core.d.ts +4 -0
  140. package/lib/core.js +19 -0
  141. package/lib/core.ts +7 -0
  142. package/package.json +50 -0
  143. package/request/common.d.ts +13 -0
  144. package/request/common.js +87 -0
  145. package/request/common.ts +91 -0
  146. package/request/constants.d.ts +10 -0
  147. package/request/constants.js +25 -0
  148. package/request/constants.ts +25 -0
  149. package/request/faasinfra.d.ts +8 -0
  150. package/request/faasinfra.js +358 -0
  151. package/request/faasinfra.ts +393 -0
  152. package/request/innerapi.d.ts +67 -0
  153. package/request/innerapi.js +1412 -0
  154. package/request/innerapi.ts +1648 -0
  155. package/request/interface.d.ts +95 -0
  156. package/request/interface.js +41 -0
  157. package/request/interface.ts +169 -0
  158. package/request/openapi.d.ts +69 -0
  159. package/request/openapi.js +1014 -0
  160. package/request/openapi.ts +1223 -0
  161. package/types/types.d.ts +79 -0
  162. package/types/types.js +4 -0
  163. package/types/types.ts +108 -0
@@ -0,0 +1,20 @@
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.Object = void 0;
6
+ const fields = require("./fields");
7
+ class Objects {
8
+ constructor(obj) {
9
+ if (!obj) {
10
+ return;
11
+ }
12
+ this.label = obj.label;
13
+ this.apiName = obj.api_name;
14
+ this.displayName = "";
15
+ this.searchSupplementaryInfo = [];
16
+ this.searchableFields = [];
17
+ this.fields = fields.parseFields(obj.fields);
18
+ }
19
+ }
20
+ exports.Object = Objects;
@@ -0,0 +1,30 @@
1
+ // Copyright 2022 ByteDance Ltd. and/or its affiliates
2
+ // SPDX-License-Identifier: MIT
3
+
4
+ import * as fields from './fields'
5
+ import {I18ns} from "../types/common";
6
+
7
+ class Objects {
8
+ label: I18ns;
9
+ apiName: string;
10
+ displayName: string;
11
+ searchSupplementaryInfo: any[];
12
+ searchableFields: any[];
13
+ fields: any[];
14
+
15
+ constructor(obj: Record<string, any>) {
16
+ if (!obj) {
17
+ return;
18
+ }
19
+ this.label = obj.label;
20
+ this.apiName = obj.api_name;
21
+ this.displayName = "";
22
+ this.searchSupplementaryInfo = [];
23
+ this.searchableFields = [];
24
+ this.fields = fields.parseFields(obj.fields);
25
+ }
26
+ }
27
+
28
+ export {
29
+ Objects as Object,
30
+ }
@@ -0,0 +1,6 @@
1
+ export declare type I18n = {
2
+ language_code: number;
3
+ text: string;
4
+ };
5
+ export declare type I18ns = I18n[];
6
+ export declare function isNullOrUndefined(param: any): boolean;
@@ -0,0 +1,9 @@
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.isNullOrUndefined = void 0;
6
+ function isNullOrUndefined(param) {
7
+ return param === null || param === undefined;
8
+ }
9
+ exports.isNullOrUndefined = isNullOrUndefined;
@@ -0,0 +1,13 @@
1
+ // Copyright 2022 ByteDance Ltd. and/or its affiliates
2
+ // SPDX-License-Identifier: MIT
3
+
4
+ export type I18n = {
5
+ language_code: number,
6
+ text: string,
7
+ }
8
+
9
+ export type I18ns = I18n[]
10
+
11
+ export function isNullOrUndefined(param: any): boolean {
12
+ return param === null || param === undefined;
13
+ }
@@ -0,0 +1,90 @@
1
+ import { I18ns } from "./common";
2
+ export declare type SelectFieldType = {
3
+ fieldPath: {
4
+ objectApiName: string;
5
+ fieldApiName: string;
6
+ }[];
7
+ };
8
+ export declare type FieldApiType = {
9
+ type?: string;
10
+ fieldApiName: string;
11
+ alias?: I18ns;
12
+ concatText?: {
13
+ zh_CN?: Object[];
14
+ en_US?: Object[];
15
+ };
16
+ color?: string;
17
+ };
18
+ export declare type UIMetaFilterType = {
19
+ conditions: Object[];
20
+ logic: string;
21
+ };
22
+ export declare type UIMetaSortConditionsType = {
23
+ fieldApiName: string;
24
+ sort: string;
25
+ };
26
+ export declare type DeskListTitleField = {
27
+ fieldApiName: string;
28
+ };
29
+ export declare type DeskListSubtitleField = {
30
+ type?: ("field" | "concatText");
31
+ fieldApiName: string;
32
+ alias: I18ns;
33
+ concatText?: {
34
+ zh_CN: ConcatTextType[];
35
+ en_US: ConcatTextType[];
36
+ };
37
+ };
38
+ export declare type DeskListDetailField = {
39
+ fieldApiName: string;
40
+ alias: I18ns;
41
+ };
42
+ export declare type UIMetaDesktopType = {
43
+ isCompositeType: boolean;
44
+ titleAreaText: I18ns;
45
+ objectApiName: string;
46
+ titleFields: FieldApiType[];
47
+ subtitleFields: FieldApiType[];
48
+ detailFields: FieldApiType[];
49
+ filter: UIMetaFilterType;
50
+ sortConditions: UIMetaSortConditionsType[];
51
+ };
52
+ export declare type UIMetaLangType = {
53
+ dataType: string;
54
+ fieldApiName: string;
55
+ text: string;
56
+ };
57
+ export declare type ConcatTextType = {
58
+ dataType: "fieldApiName" | "text";
59
+ fieldApiName: string;
60
+ text: string;
61
+ };
62
+ export declare type UIMetaMobileType = {
63
+ pageType?: ("app" | "record_page");
64
+ pageApiName: string;
65
+ componentName: string;
66
+ titleAreaText: I18ns;
67
+ objectApiName: string;
68
+ listItems: MobileListItem;
69
+ filter: UIMetaFilterType;
70
+ sortConditions: UIMetaSortConditionsType[];
71
+ };
72
+ export declare type MobileListField = {
73
+ fieldApiName: string;
74
+ hiddenWhenEmpty?: boolean;
75
+ };
76
+ export declare type MobileListItem = {
77
+ avatar: {
78
+ active: boolean;
79
+ fieldApiName: string;
80
+ };
81
+ titleFields: {
82
+ fieldApiName: string;
83
+ }[];
84
+ tagFields: {
85
+ fieldApiName: string;
86
+ color: "grey" | "blue" | "cyan" | "green" | "yellow" | "orange" | "red" | "magenta" | "purple" | "blueMagenta";
87
+ }[];
88
+ subtitleFields: MobileListField[];
89
+ detailFields: MobileListField[];
90
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Copyright 2022 ByteDance Ltd. and/or its affiliates
3
+ // SPDX-License-Identifier: MIT
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,108 @@
1
+ // Copyright 2022 ByteDance Ltd. and/or its affiliates
2
+ // SPDX-License-Identifier: MIT
3
+
4
+ import {I18ns} from "./common";
5
+
6
+ export type SelectFieldType = {
7
+ fieldPath: {
8
+ objectApiName: string,
9
+ fieldApiName: string,
10
+ }[]
11
+ }
12
+
13
+ export type FieldApiType = {
14
+ type?: string,
15
+ fieldApiName: string,
16
+ alias?: I18ns,
17
+ concatText?: {
18
+ zh_CN?: Object[],
19
+ en_US?: Object[],
20
+ },
21
+ color?: string,
22
+ }
23
+
24
+ export type UIMetaFilterType = {
25
+ conditions: Object[],
26
+ logic: string,
27
+ }
28
+
29
+ export type UIMetaSortConditionsType = {
30
+ fieldApiName: string,
31
+ sort: string
32
+ }
33
+
34
+ // desktop
35
+ export type DeskListTitleField = {
36
+ fieldApiName: string;
37
+ }
38
+
39
+ export type DeskListSubtitleField = {
40
+ type?: ("field" | "concatText"),
41
+ fieldApiName: string;
42
+ alias: I18ns;
43
+ concatText?: {
44
+ zh_CN: ConcatTextType[],
45
+ en_US: ConcatTextType[]
46
+ }
47
+ }
48
+
49
+ export type DeskListDetailField = {
50
+ fieldApiName: string;
51
+ alias: I18ns;
52
+ }
53
+
54
+ export type UIMetaDesktopType = {
55
+ isCompositeType: boolean,
56
+ titleAreaText: I18ns,
57
+ objectApiName: string,
58
+ titleFields: FieldApiType[],
59
+ subtitleFields: FieldApiType[],
60
+ detailFields: FieldApiType[],
61
+ filter: UIMetaFilterType,
62
+ sortConditions: UIMetaSortConditionsType[],
63
+ }
64
+
65
+ export type UIMetaLangType = {
66
+ dataType: string,
67
+ fieldApiName: string,
68
+ text: string,
69
+ }
70
+
71
+ export type ConcatTextType = {
72
+ dataType: "fieldApiName" | "text"
73
+ fieldApiName: string;
74
+ text: string;
75
+ }
76
+
77
+ // mobile
78
+ export type UIMetaMobileType = {
79
+ pageType?: ("app" | "record_page")
80
+ pageApiName: string,
81
+ componentName: string,
82
+ titleAreaText: I18ns,
83
+ objectApiName: string,
84
+ listItems: MobileListItem,
85
+ filter: UIMetaFilterType,
86
+ sortConditions: UIMetaSortConditionsType[],
87
+ }
88
+
89
+ export type MobileListField = {
90
+ fieldApiName: string;
91
+ hiddenWhenEmpty?: boolean;
92
+ }
93
+
94
+ export type MobileListItem = {
95
+ avatar: {
96
+ active: boolean;
97
+ fieldApiName: string;
98
+ },
99
+ titleFields: {
100
+ fieldApiName: string;
101
+ }[],
102
+ tagFields: {
103
+ fieldApiName: string;
104
+ color: "grey" | "blue" | "cyan" | "green" | "yellow" | "orange" | "red" | "magenta" | "purple" | "blueMagenta";
105
+ }[],
106
+ subtitleFields: MobileListField[],
107
+ detailFields: MobileListField[],
108
+ }
@@ -0,0 +1,226 @@
1
+ import { I18ns } from "./common";
2
+ export interface BaseFieldType {
3
+ type: string;
4
+ apiName: string;
5
+ label: I18ns;
6
+ }
7
+ export interface KTextFieldType extends BaseFieldType {
8
+ required: boolean;
9
+ unique: boolean;
10
+ caseSensitive: boolean;
11
+ multiline: boolean;
12
+ maxLength: number;
13
+ validationRegex: string;
14
+ errorMsg: I18ns;
15
+ }
16
+ export interface RichTextType extends BaseFieldType {
17
+ required: boolean;
18
+ maxLength: number;
19
+ }
20
+ export interface MultilingualType extends BaseFieldType {
21
+ required: boolean;
22
+ unique: boolean;
23
+ caseSensitive: boolean;
24
+ multiline: boolean;
25
+ maxLength: number;
26
+ }
27
+ export interface NumberType extends BaseFieldType {
28
+ required: boolean;
29
+ unique: boolean;
30
+ displayAsPercentage: boolean;
31
+ decimalPlacesNumber: number;
32
+ }
33
+ export interface KDateType extends BaseFieldType {
34
+ required: boolean;
35
+ }
36
+ export interface DateTimeType extends BaseFieldType {
37
+ required: boolean;
38
+ }
39
+ export declare type SubOptionType = {
40
+ label: I18ns;
41
+ apiName: string;
42
+ description: I18ns;
43
+ color: ("grey" | "blue" | "cyan" | "green" | "yellow" | "orange" | "red" | "magenta" | "purple" | "blueMagenta");
44
+ active: boolean;
45
+ };
46
+ export interface OptionType extends BaseFieldType {
47
+ required: boolean;
48
+ multiple: boolean;
49
+ optionSource: ("custom" | "global");
50
+ globalOptionApiName: string;
51
+ optionList: SubOptionType[];
52
+ }
53
+ export interface Email extends BaseFieldType {
54
+ required: boolean;
55
+ unique: boolean;
56
+ }
57
+ export interface MobileNumber extends BaseFieldType {
58
+ required: boolean;
59
+ unique: boolean;
60
+ }
61
+ export interface Boolean extends BaseFieldType {
62
+ descriptionWhenTrue: I18ns;
63
+ descriptionWhenFalse: I18ns;
64
+ defaultValue: boolean;
65
+ }
66
+ export interface AvatarOrLogo extends BaseFieldType {
67
+ displayStyle: ("square" | "round");
68
+ }
69
+ export interface SortConditionType {
70
+ fieldApiName: string;
71
+ sort: ("asc" | "desc");
72
+ }
73
+ declare type ConditionType = {
74
+ left: {
75
+ objectApiName: string;
76
+ fieldApiName: string;
77
+ };
78
+ operator: ("eq" | "neq" | "in" | "notIn" | "empty" | "notEmpty" | "lte" | "gte" | "hasAllOf" | "hasNoneOf" | "hasAnyOf");
79
+ valueType: ("reference" | "specified");
80
+ right: (object | string);
81
+ };
82
+ declare type CriterionType = {
83
+ conditions: ConditionType[];
84
+ logic: string;
85
+ };
86
+ export declare type FilterType = {
87
+ label: string;
88
+ needTriggerCriterion: boolean;
89
+ triggerCriterion: CriterionType;
90
+ criterion: CriterionType;
91
+ errorMsg: I18ns;
92
+ };
93
+ export interface Lookup extends BaseFieldType {
94
+ required: boolean;
95
+ multiple: boolean;
96
+ objectApiName: string;
97
+ hierarchy: boolean;
98
+ displayStyle: ("search" | "dropDown" | "tree");
99
+ sortConditions: SortConditionType[];
100
+ filter: FilterType[];
101
+ }
102
+ export interface FormulaType extends BaseFieldType {
103
+ returnType: string;
104
+ formula: I18ns;
105
+ }
106
+ export interface AutoIDType extends BaseFieldType {
107
+ generateMethod: ("random" | "incremental");
108
+ digitsNumber: number;
109
+ prefix: string;
110
+ suffix: string;
111
+ }
112
+ export interface ReferenceFieldType extends BaseFieldType {
113
+ guideFieldApiName: string;
114
+ fieldApiName: string;
115
+ }
116
+ export interface FileType extends BaseFieldType {
117
+ required: boolean;
118
+ multiple: boolean;
119
+ fileTypes: string[];
120
+ }
121
+ export interface BackLookuType extends BaseFieldType {
122
+ objectApiName: string;
123
+ fieldApiName: string;
124
+ }
125
+ export interface CompositeType extends BaseFieldType {
126
+ compositeTypeApiName: string;
127
+ subFields: BaseFieldType[];
128
+ required: boolean;
129
+ multiple: boolean;
130
+ }
131
+ export interface ExtractSingleRecordType extends BaseFieldType {
132
+ compositeTypeApiName: string;
133
+ subFields: BaseFieldType[];
134
+ filter: FilterType[];
135
+ sortConditions: SortConditionType[];
136
+ recordPosition: number;
137
+ }
138
+ export declare type FieldType = {
139
+ "allow_search": boolean;
140
+ "api_name": string;
141
+ "calculated": boolean;
142
+ "description": I18ns;
143
+ "domain": number;
144
+ "encryption_mode": string;
145
+ "field_permission": number;
146
+ "formula_id": number;
147
+ "id": number;
148
+ "indexed": number;
149
+ "inherit_settings": object;
150
+ "is_encrypted": boolean;
151
+ "is_inherit": boolean;
152
+ "is_progress_field": boolean;
153
+ "label": I18ns;
154
+ "namespace": string;
155
+ "object_api_name": string;
156
+ "object_id": number;
157
+ "order": number;
158
+ "required": boolean;
159
+ "tenant_id": number;
160
+ "type": {
161
+ "name": string;
162
+ "settings": {
163
+ "multiline": boolean;
164
+ "text_version": number;
165
+ "decimal_places": number;
166
+ "display_as_percentage": boolean;
167
+ "placeholder": object;
168
+ "max_length": number;
169
+ "regexp_expression": string;
170
+ "regexp_err_msg": I18ns;
171
+ "is_array": boolean;
172
+ "option_type": string;
173
+ "related_to_global_option": {
174
+ "apiName": string;
175
+ "id": number;
176
+ "name": string;
177
+ };
178
+ "options": {
179
+ "name": I18ns;
180
+ "api_name": string;
181
+ "description": I18ns;
182
+ "color_id": string;
183
+ "active": boolean;
184
+ }[];
185
+ "description_if_true": I18ns;
186
+ "description_if_false": I18ns;
187
+ "display_style": string;
188
+ "default_value": boolean;
189
+ "referenced_object_api_name": string;
190
+ "is_hierarchy": boolean;
191
+ "return_type": string;
192
+ "formulas": I18ns;
193
+ "generation_method": string;
194
+ "digits": number;
195
+ "prefix": string;
196
+ "suffix": string;
197
+ "target_referenced_object_api_name": string;
198
+ "target_reference_field_api_name": string;
199
+ "multiple": boolean;
200
+ "mime_types": string[];
201
+ "related_to_object_api_name": string;
202
+ "related_to_field_api_name": string;
203
+ "related_to_api_name": string;
204
+ "related_to_fields": object[];
205
+ "filter": FilterType[];
206
+ "sort": {
207
+ "field": string;
208
+ "type": "string";
209
+ "direction": ("asc" | "desc");
210
+ }[];
211
+ "filter_record": {
212
+ "index": number;
213
+ "type": string;
214
+ };
215
+ "is_extract": boolean;
216
+ };
217
+ };
218
+ "unique_type": number;
219
+ "updated_at": number;
220
+ "updated_by": {
221
+ "avatar": object;
222
+ "id": number;
223
+ "name": string;
224
+ };
225
+ };
226
+ export {};
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Copyright 2022 ByteDance Ltd. and/or its affiliates
3
+ // SPDX-License-Identifier: MIT
4
+ Object.defineProperty(exports, "__esModule", { value: true });