@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.
Files changed (88) hide show
  1. package/README.md +22 -0
  2. package/application/application.d.ts +9 -7
  3. package/application/function/function.d.ts +1 -1
  4. package/application/function/function.js +0 -1
  5. package/application/impl/common.d.ts +1 -1
  6. package/application/impl/common.js +13 -12
  7. package/application/impl/impl.d.ts +8 -6
  8. package/application/impl/impl.js +6 -4
  9. package/common/structs.d.ts +15 -0
  10. package/common/structs.js +21 -0
  11. package/constants/constants.js +4 -4
  12. package/context/context.d.ts +8 -38
  13. package/context/context.js +2 -2
  14. package/context/db/db.d.ts +11 -19
  15. package/context/db/impl/IObject.d.ts +41 -40
  16. package/context/db/impl/db.d.ts +9 -9
  17. package/context/db/impl/db.js +6 -6
  18. package/context/db/impl/object.d.ts +4 -3
  19. package/context/db/impl/object.js +62 -50
  20. package/context/db/impl/oql/oql.d.ts +1 -1
  21. package/context/db/impl/oql/oql.js +1 -1
  22. package/context/db/impl/order.js +1 -1
  23. package/context/db/impl/propertiesStore.js +1 -1
  24. package/context/db/impl/transaction/index.d.ts +1 -1
  25. package/context/db/impl/transaction/index.js +51 -46
  26. package/context/db/impl/transaction.d.ts +0 -5
  27. package/context/integration/IIntegration.d.ts +30 -0
  28. package/context/integration/IIntegration.js +4 -0
  29. package/context/integration/impl/integration.d.ts +16 -0
  30. package/context/integration/impl/integration.js +62 -0
  31. package/context/metadata/components/common.js +3 -3
  32. package/context/metadata/components/components.d.ts +4 -4
  33. package/context/metadata/components/desktop/list.d.ts +3 -3
  34. package/context/metadata/components/desktop/list.js +23 -23
  35. package/context/metadata/components/desktop/recordDetail.d.ts +2 -2
  36. package/context/metadata/components/mobile/list.d.ts +4 -4
  37. package/context/metadata/components/mobile/list.js +1 -1
  38. package/context/metadata/metadata.d.ts +5 -6
  39. package/context/metadata/metadata.js +5 -6
  40. package/context/metadata/objects/fields.d.ts +6 -6
  41. package/context/metadata/objects/fields.js +57 -57
  42. package/context/metadata/objects/fields.util.d.ts +3 -3
  43. package/context/metadata/objects/fields.util.js +21 -21
  44. package/context/metadata/objects/objects.d.ts +1 -1
  45. package/context/metadata/objects/objects.js +1 -1
  46. package/context/metadata/types/components.d.ts +5 -5
  47. package/context/metadata/types/objects.d.ts +88 -88
  48. package/context/msg/msg.d.ts +2 -2
  49. package/context/resources/IResources.d.ts +6 -4
  50. package/context/resources/impl/resources.d.ts +6 -6
  51. package/context/resources/impl/resources.js +5 -5
  52. package/context/tasks/tasks.d.ts +3 -3
  53. package/context/tasks/tasks.js +5 -5
  54. package/data/index.d.ts +2 -2
  55. package/global/application/flow/flow.d.ts +85 -0
  56. package/global/application/flow/flow.js +2 -0
  57. package/global/application/globalVar/globalVar.d.ts +7 -0
  58. package/global/application/globalVar/globalVar.js +2 -0
  59. package/global/global.d.ts +64 -0
  60. package/global/global.js +3 -0
  61. package/hooks/api.d.ts +12 -7
  62. package/hooks/api.js +28 -23
  63. package/hooks/hooks.js +41 -0
  64. package/kunlun/kunlun.d.ts +5 -5
  65. package/kunlun/operator/IOperator.d.ts +16 -16
  66. package/kunlun/operator/impl/expression.d.ts +2 -2
  67. package/kunlun/operator/impl/expression.js +5 -5
  68. package/kunlun/operator/impl/logic.js +48 -31
  69. package/kunlun/operator/impl/logicV2.d.ts +2 -2
  70. package/kunlun/operator/impl/logicV2.js +12 -13
  71. package/kunlun/operator/impl/operator.d.ts +17 -17
  72. package/kunlun/operator/impl/operator.js +38 -38
  73. package/kunlun/operator/impl/operatorV2.d.ts +17 -17
  74. package/kunlun/operator/impl/operatorV2.js +38 -38
  75. package/lib/core.d.ts +3 -3
  76. package/package.json +2 -2
  77. package/request/common.d.ts +1 -1
  78. package/request/common.js +4 -3
  79. package/request/constants.d.ts +1 -1
  80. package/request/constants.js +6 -6
  81. package/request/faasinfra.d.ts +1 -1
  82. package/request/faasinfra.js +41 -253
  83. package/request/innerapi.d.ts +14 -10
  84. package/request/innerapi.js +220 -66
  85. package/request/interface.d.ts +68 -54
  86. package/request/interface.js +8 -9
  87. package/request/openapi.d.ts +15 -11
  88. package/request/openapi.js +266 -158
@@ -4,7 +4,7 @@ exports.buildCriterionV2 = exports.logical = exports.QueryV2 = exports.LogicalEx
4
4
  const operator_1 = require("./operator");
5
5
  function NewMetadataExpressionField(objectApiName, fieldApiName) {
6
6
  return {
7
- type: "metadataVariable",
7
+ type: 'metadataVariable',
8
8
  settings: {
9
9
  fieldPath: [{
10
10
  objectApiName: objectApiName,
@@ -17,7 +17,7 @@ function NewMetadataExpressionField(objectApiName, fieldApiName) {
17
17
  exports.NewMetadataExpressionField = NewMetadataExpressionField;
18
18
  function NewConstantExpressionField(data) {
19
19
  return {
20
- type: "constant",
20
+ type: 'constant',
21
21
  settings: {
22
22
  data: data
23
23
  }
@@ -30,25 +30,25 @@ class ArithmeticExpression {
30
30
  leftValue.split('.').forEach((fieldApiName) => {
31
31
  fieldPaths.push({
32
32
  fieldApiName: fieldApiName,
33
- objectApiName: "",
33
+ objectApiName: '',
34
34
  extendLogicTags: []
35
35
  });
36
36
  });
37
37
  const left = {
38
- type: "metadataVariable",
38
+ type: 'metadataVariable',
39
39
  settings: {
40
40
  fieldPath: fieldPaths,
41
41
  data: null
42
42
  }
43
43
  };
44
44
  let right = {
45
- type: "constant",
45
+ type: 'constant',
46
46
  settings: {
47
47
  fieldPath: [],
48
48
  data: rightValue
49
49
  }
50
50
  };
51
- if (op == "isEmpty" || op == "isNotEmpty") {
51
+ if (op === 'isEmpty' || op === 'isNotEmpty') {
52
52
  right = null;
53
53
  }
54
54
  this.operator = op;
@@ -62,7 +62,6 @@ class ArithmeticExpression {
62
62
  }
63
63
  }
64
64
  exports.ArithmeticExpression = ArithmeticExpression;
65
- ;
66
65
  class LogicalExpression {
67
66
  constructor(logicType, expressions, logics) {
68
67
  this.type = logicType;
@@ -103,7 +102,7 @@ class QueryV2 {
103
102
  }
104
103
  offset(offset) {
105
104
  if (offset < 0) {
106
- throw new Error("offset must be greater than or equal to 0");
105
+ throw new Error('offset must be greater than or equal to 0');
107
106
  }
108
107
  this._offset = offset;
109
108
  return this;
@@ -117,8 +116,8 @@ class QueryV2 {
117
116
  fieldApiNames.forEach((fieldApiName) => {
118
117
  this._order.push({
119
118
  field: fieldApiName,
120
- direction: "asc",
121
- type: "",
119
+ direction: 'asc',
120
+ type: '',
122
121
  });
123
122
  });
124
123
  return this;
@@ -127,8 +126,8 @@ class QueryV2 {
127
126
  fieldApiNames.forEach((fieldApiName) => {
128
127
  this._order.push({
129
128
  field: fieldApiName,
130
- direction: "desc",
131
- type: "",
129
+ direction: 'desc',
130
+ type: '',
132
131
  });
133
132
  });
134
133
  return this;
@@ -146,7 +145,7 @@ class QueryV2 {
146
145
  this.fields = [];
147
146
  this._order = [];
148
147
  this.filter = {
149
- type: "and",
148
+ type: 'and',
150
149
  arithmeticExpressions: [],
151
150
  logicalExpressions: [],
152
151
  };
@@ -1,5 +1,5 @@
1
1
  import { _Cond, _BooleanCond, _LogicalCond } from '../../../types/types';
2
- import { IOperator } from "../IOperator";
2
+ import { IOperator } from '../IOperator';
3
3
  import { UserDataType } from './expression';
4
4
  export declare const operates: {
5
5
  AND: string;
@@ -27,10 +27,10 @@ export declare class Operator<T> implements IOperator {
27
27
  * @param conditions 多个条件,用逗号分隔
28
28
  * @example
29
29
  * ```
30
- * context.db.object("_user").where(kunlun.operator.and({
31
- * age: "22"
30
+ * context.db.object('_user').where(kunlun.operator.and({
31
+ * age: '22'
32
32
  * },{
33
- * gender: "male"
33
+ * gender: 'male'
34
34
  * }))
35
35
  * ```
36
36
  */
@@ -40,10 +40,10 @@ export declare class Operator<T> implements IOperator {
40
40
  * @param conditions 多个条件,用逗号分隔
41
41
  * @example
42
42
  * ```
43
- * context.db.object("_user").where(kunlun.operator.or({
44
- * age: "22"
43
+ * context.db.object('_user').where(kunlun.operator.or({
44
+ * age: '22'
45
45
  * },{
46
- * age: "25"
46
+ * age: '25'
47
47
  * }))
48
48
  * ```
49
49
  */
@@ -53,7 +53,7 @@ export declare class Operator<T> implements IOperator {
53
53
  * @param value 判定是否包含的文本值
54
54
  * @example
55
55
  * ```
56
- * context.db.object("_user").where({_name: kunlun.operator.contain("a")})
56
+ * context.db.object('_user').where({_name: kunlun.operator.contain('a')})
57
57
  * ```
58
58
  */
59
59
  contain<T>(value: UserDataType): _BooleanCond<T>;
@@ -62,7 +62,7 @@ export declare class Operator<T> implements IOperator {
62
62
  * @param value 判定是否不包含的文本值
63
63
  * @example
64
64
  * ```
65
- * context.db.object("_user").where({_name: kunlun.operator.notContain("a")})
65
+ * context.db.object('_user').where({_name: kunlun.operator.notContain('a')})
66
66
  * ```
67
67
  */
68
68
  notContain<T>(value: UserDataType): _BooleanCond<T>;
@@ -70,7 +70,7 @@ export declare class Operator<T> implements IOperator {
70
70
  * 无需入参,判断是否为空
71
71
  * @example
72
72
  * ```
73
- * context.db.object("_user").where({employeeType: kunlun.operator.empty()})
73
+ * context.db.object('_user').where({employeeType: kunlun.operator.empty()})
74
74
  * ```
75
75
  */
76
76
  empty(): _BooleanCond<undefined>;
@@ -78,7 +78,7 @@ export declare class Operator<T> implements IOperator {
78
78
  * 无需入参,判断是否为空
79
79
  * @example
80
80
  * ```
81
- * context.db.object("_user").where({employeeType: kunlun.operator.notEmpty()})
81
+ * context.db.object('_user').where({employeeType: kunlun.operator.notEmpty()})
82
82
  * ```
83
83
  */
84
84
  notEmpty(): _BooleanCond<undefined>;
@@ -87,7 +87,7 @@ export declare class Operator<T> implements IOperator {
87
87
  * @param value 判定是否相等的值
88
88
  * @example
89
89
  * ```
90
- * context.db.object("_user").where({age: kunlun.operator.eq(20)})
90
+ * context.db.object('_user').where({age: kunlun.operator.eq(20)})
91
91
  * ```
92
92
  */
93
93
  eq<T>(value: UserDataType): _BooleanCond<T>;
@@ -96,7 +96,7 @@ export declare class Operator<T> implements IOperator {
96
96
  * @param value 判定是否不相等的值
97
97
  * @example
98
98
  * ```
99
- * context.db.object("_user").where({age: kunlun.operator.neq(20)})
99
+ * context.db.object('_user').where({age: kunlun.operator.neq(20)})
100
100
  * ```
101
101
  */
102
102
  neq<T>(value: UserDataType): _BooleanCond<T>;
@@ -105,7 +105,7 @@ export declare class Operator<T> implements IOperator {
105
105
  * @param value 判定是否大于或晚于的值
106
106
  * @example
107
107
  * ```
108
- * kunlun.operator.gt(new Date("2020-11-26").getTime())
108
+ * kunlun.operator.gt(new Date('2020-11-26').getTime())
109
109
  * ```
110
110
  */
111
111
  gt<T>(value: number | Date): _BooleanCond<T>;
@@ -114,7 +114,7 @@ export declare class Operator<T> implements IOperator {
114
114
  * @param value 判定是否大于等于或晚于等于的值
115
115
  * @example
116
116
  * ```
117
- * kunlun.operator.gte(new Date("2020-11-26").getTime())
117
+ * kunlun.operator.gte(new Date('2020-11-26').getTime())
118
118
  * ```
119
119
  */
120
120
  gte<T>(value: number | Date): _BooleanCond<T>;
@@ -123,7 +123,7 @@ export declare class Operator<T> implements IOperator {
123
123
  * @param value 判定是否小于或早于的值
124
124
  * @example
125
125
  * ```
126
- * kunlun.operator.lt(new Date("2020-11-26").getTime())
126
+ * kunlun.operator.lt(new Date('2020-11-26').getTime())
127
127
  * ```
128
128
  */
129
129
  lt<T>(value: number | Date): _BooleanCond<T>;
@@ -132,7 +132,7 @@ export declare class Operator<T> implements IOperator {
132
132
  * @param value 判定是否小于等于或早于等于的值
133
133
  * @example
134
134
  * ```
135
- * kunlun.operator.lte(new Date("2020-11-26").getTime())
135
+ * kunlun.operator.lte(new Date('2020-11-26').getTime())
136
136
  * ```
137
137
  */
138
138
  lte<T>(value: number | Date): _BooleanCond<T>;
@@ -6,24 +6,24 @@ exports.Operator = exports.operates = void 0;
6
6
  const server_common_node_1 = require("@byted-apaas/server-common-node");
7
7
  const logic_1 = require("./logic");
8
8
  exports.operates = {
9
- AND: "and",
10
- OR: "or",
11
- EMTPY: "isEmpty",
12
- NOT_EMTPY: "isNotEmpty",
13
- EQ: "equals",
14
- NEQ: "notEquals",
15
- LT: "lessThan",
16
- LTE: "lessThanOrEquals",
17
- GT: "greaterThan",
18
- GTE: "greaterThanOrEquals",
19
- CONTAIN: "contains",
20
- NOT_CONTAIN: "notContains",
21
- IN: "isAnyOf",
22
- NIN: "isNoneOf",
23
- HAS_ANY_OF: "hasAnyOf",
24
- HAS_NONE_OF: "hasNoneOf",
25
- isOnOrBefore: "isOnOrBefore",
26
- isOnOrAfter: "isOnOrAfter",
9
+ AND: 'and',
10
+ OR: 'or',
11
+ EMTPY: 'isEmpty',
12
+ NOT_EMTPY: 'isNotEmpty',
13
+ EQ: 'equals',
14
+ NEQ: 'notEquals',
15
+ LT: 'lessThan',
16
+ LTE: 'lessThanOrEquals',
17
+ GT: 'greaterThan',
18
+ GTE: 'greaterThanOrEquals',
19
+ CONTAIN: 'contains',
20
+ NOT_CONTAIN: 'notContains',
21
+ IN: 'isAnyOf',
22
+ NIN: 'isNoneOf',
23
+ HAS_ANY_OF: 'hasAnyOf',
24
+ HAS_NONE_OF: 'hasNoneOf',
25
+ isOnOrBefore: 'isOnOrBefore',
26
+ isOnOrAfter: 'isOnOrAfter',
27
27
  };
28
28
  class Operator {
29
29
  /**
@@ -31,10 +31,10 @@ class Operator {
31
31
  * @param conditions 多个条件,用逗号分隔
32
32
  * @example
33
33
  * ```
34
- * context.db.object("_user").where(kunlun.operator.and({
35
- * age: "22"
34
+ * context.db.object('_user').where(kunlun.operator.and({
35
+ * age: '22'
36
36
  * },{
37
- * gender: "male"
37
+ * gender: 'male'
38
38
  * }))
39
39
  * ```
40
40
  */
@@ -50,10 +50,10 @@ class Operator {
50
50
  * @param conditions 多个条件,用逗号分隔
51
51
  * @example
52
52
  * ```
53
- * context.db.object("_user").where(kunlun.operator.or({
54
- * age: "22"
53
+ * context.db.object('_user').where(kunlun.operator.or({
54
+ * age: '22'
55
55
  * },{
56
- * age: "25"
56
+ * age: '25'
57
57
  * }))
58
58
  * ```
59
59
  */
@@ -69,7 +69,7 @@ class Operator {
69
69
  * @param value 判定是否包含的文本值
70
70
  * @example
71
71
  * ```
72
- * context.db.object("_user").where({_name: kunlun.operator.contain("a")})
72
+ * context.db.object('_user').where({_name: kunlun.operator.contain('a')})
73
73
  * ```
74
74
  */
75
75
  contain(value) {
@@ -81,7 +81,7 @@ class Operator {
81
81
  * @param value 判定是否不包含的文本值
82
82
  * @example
83
83
  * ```
84
- * context.db.object("_user").where({_name: kunlun.operator.notContain("a")})
84
+ * context.db.object('_user').where({_name: kunlun.operator.notContain('a')})
85
85
  * ```
86
86
  */
87
87
  notContain(value) {
@@ -92,7 +92,7 @@ class Operator {
92
92
  * 无需入参,判断是否为空
93
93
  * @example
94
94
  * ```
95
- * context.db.object("_user").where({employeeType: kunlun.operator.empty()})
95
+ * context.db.object('_user').where({employeeType: kunlun.operator.empty()})
96
96
  * ```
97
97
  */
98
98
  empty() {
@@ -103,7 +103,7 @@ class Operator {
103
103
  * 无需入参,判断是否为空
104
104
  * @example
105
105
  * ```
106
- * context.db.object("_user").where({employeeType: kunlun.operator.notEmpty()})
106
+ * context.db.object('_user').where({employeeType: kunlun.operator.notEmpty()})
107
107
  * ```
108
108
  */
109
109
  notEmpty() {
@@ -115,7 +115,7 @@ class Operator {
115
115
  * @param value 判定是否相等的值
116
116
  * @example
117
117
  * ```
118
- * context.db.object("_user").where({age: kunlun.operator.eq(20)})
118
+ * context.db.object('_user').where({age: kunlun.operator.eq(20)})
119
119
  * ```
120
120
  */
121
121
  eq(value) {
@@ -127,7 +127,7 @@ class Operator {
127
127
  * @param value 判定是否不相等的值
128
128
  * @example
129
129
  * ```
130
- * context.db.object("_user").where({age: kunlun.operator.neq(20)})
130
+ * context.db.object('_user').where({age: kunlun.operator.neq(20)})
131
131
  * ```
132
132
  */
133
133
  neq(value) {
@@ -139,7 +139,7 @@ class Operator {
139
139
  * @param value 判定是否大于或晚于的值
140
140
  * @example
141
141
  * ```
142
- * kunlun.operator.gt(new Date("2020-11-26").getTime())
142
+ * kunlun.operator.gt(new Date('2020-11-26').getTime())
143
143
  * ```
144
144
  */
145
145
  gt(value) {
@@ -151,7 +151,7 @@ class Operator {
151
151
  * @param value 判定是否大于等于或晚于等于的值
152
152
  * @example
153
153
  * ```
154
- * kunlun.operator.gte(new Date("2020-11-26").getTime())
154
+ * kunlun.operator.gte(new Date('2020-11-26').getTime())
155
155
  * ```
156
156
  */
157
157
  gte(value) {
@@ -163,7 +163,7 @@ class Operator {
163
163
  * @param value 判定是否小于或早于的值
164
164
  * @example
165
165
  * ```
166
- * kunlun.operator.lt(new Date("2020-11-26").getTime())
166
+ * kunlun.operator.lt(new Date('2020-11-26').getTime())
167
167
  * ```
168
168
  */
169
169
  lt(value) {
@@ -175,7 +175,7 @@ class Operator {
175
175
  * @param value 判定是否小于等于或早于等于的值
176
176
  * @example
177
177
  * ```
178
- * kunlun.operator.lte(new Date("2020-11-26").getTime())
178
+ * kunlun.operator.lte(new Date('2020-11-26').getTime())
179
179
  * ```
180
180
  */
181
181
  lte(value) {
@@ -186,7 +186,7 @@ class Operator {
186
186
  value = !value ? [] : value;
187
187
  const argList = server_common_node_1.utils.argsToList(value, restValues);
188
188
  if (argList.length === 0) {
189
- throw new server_common_node_1.exceptions.InvalidParamError("can not IN empty list");
189
+ throw new server_common_node_1.exceptions.InvalidParamError('can not IN empty list');
190
190
  }
191
191
  return new logic_1.Condition(null, argList, exports.operates.IN);
192
192
  }
@@ -195,7 +195,7 @@ class Operator {
195
195
  value = !value ? [] : value;
196
196
  const argList = server_common_node_1.utils.argsToList(value, restValues);
197
197
  if (argList.length === 0) {
198
- throw new server_common_node_1.exceptions.InvalidParamError("can not NOT_IN empty list");
198
+ throw new server_common_node_1.exceptions.InvalidParamError('can not NOT_IN empty list');
199
199
  }
200
200
  return new logic_1.Condition(null, argList, exports.operates.NIN);
201
201
  }
@@ -204,7 +204,7 @@ class Operator {
204
204
  value = !value ? [] : value;
205
205
  const argList = server_common_node_1.utils.argsToList(value, restValues);
206
206
  if (argList.length === 0) {
207
- throw new server_common_node_1.exceptions.InvalidParamError("can not HAS_ANY_OF empty list");
207
+ throw new server_common_node_1.exceptions.InvalidParamError('can not HAS_ANY_OF empty list');
208
208
  }
209
209
  return new logic_1.Condition(null, argList, exports.operates.HAS_ANY_OF);
210
210
  }
@@ -213,7 +213,7 @@ class Operator {
213
213
  value = !value ? [] : value;
214
214
  const argList = server_common_node_1.utils.argsToList(value, restValues);
215
215
  if (argList.length === 0) {
216
- throw new server_common_node_1.exceptions.InvalidParamError("can not HAS_NONE_OF empty list");
216
+ throw new server_common_node_1.exceptions.InvalidParamError('can not HAS_NONE_OF empty list');
217
217
  }
218
218
  return new logic_1.Condition(null, argList, exports.operates.HAS_NONE_OF);
219
219
  }
@@ -1,5 +1,5 @@
1
1
  import { _Cond, _BooleanCond } from '../../../types/types';
2
- import { IOperator } from "../IOperator";
2
+ import { IOperator } from '../IOperator';
3
3
  import { LogicalExpression } from './logicV2';
4
4
  import { UserDataType } from './expression';
5
5
  export declare const operates: {
@@ -28,10 +28,10 @@ export declare class OperatorV2<T> implements IOperator {
28
28
  * @param conditions 多个条件,用逗号分隔
29
29
  * @example
30
30
  * ```
31
- * context.db.object("_user").where(kunlun.operator.and({
32
- * age: "22"
31
+ * context.db.object('_user').where(kunlun.operator.and({
32
+ * age: '22'
33
33
  * },{
34
- * gender: "male"
34
+ * gender: 'male'
35
35
  * }))
36
36
  * ```
37
37
  */
@@ -41,10 +41,10 @@ export declare class OperatorV2<T> implements IOperator {
41
41
  * @param conditions 多个条件,用逗号分隔
42
42
  * @example
43
43
  * ```
44
- * context.db.object("_user").where(kunlun.operator.or({
45
- * age: "22"
44
+ * context.db.object('_user').where(kunlun.operator.or({
45
+ * age: '22'
46
46
  * },{
47
- * age: "25"
47
+ * age: '25'
48
48
  * }))
49
49
  * ```
50
50
  */
@@ -54,7 +54,7 @@ export declare class OperatorV2<T> implements IOperator {
54
54
  * @param value 判定是否包含的文本值
55
55
  * @example
56
56
  * ```
57
- * context.db.object("_user").where({_name: kunlun.operator.contain("a")})
57
+ * context.db.object('_user').where({_name: kunlun.operator.contain('a')})
58
58
  * ```
59
59
  */
60
60
  contain<T>(value: UserDataType): _BooleanCond<T>;
@@ -63,7 +63,7 @@ export declare class OperatorV2<T> implements IOperator {
63
63
  * @param value 判定是否不包含的文本值
64
64
  * @example
65
65
  * ```
66
- * context.db.object("_user").where({_name: kunlun.operator.notContain("a")})
66
+ * context.db.object('_user').where({_name: kunlun.operator.notContain('a')})
67
67
  * ```
68
68
  */
69
69
  notContain<T>(value: UserDataType): _BooleanCond<T>;
@@ -71,7 +71,7 @@ export declare class OperatorV2<T> implements IOperator {
71
71
  * 无需入参,判断是否为空
72
72
  * @example
73
73
  * ```
74
- * context.db.object("_user").where({employeeType: kunlun.operator.empty()})
74
+ * context.db.object('_user').where({employeeType: kunlun.operator.empty()})
75
75
  * ```
76
76
  */
77
77
  empty(): _BooleanCond<undefined>;
@@ -79,7 +79,7 @@ export declare class OperatorV2<T> implements IOperator {
79
79
  * 无需入参,判断是否为空
80
80
  * @example
81
81
  * ```
82
- * context.db.object("_user").where({employeeType: kunlun.operator.notEmpty()})
82
+ * context.db.object('_user').where({employeeType: kunlun.operator.notEmpty()})
83
83
  * ```
84
84
  */
85
85
  notEmpty(): _BooleanCond<undefined>;
@@ -88,7 +88,7 @@ export declare class OperatorV2<T> implements IOperator {
88
88
  * @param value 判定是否相等的值
89
89
  * @example
90
90
  * ```
91
- * context.db.object("_user").where({age: kunlun.operator.eq(20)})
91
+ * context.db.object('_user').where({age: kunlun.operator.eq(20)})
92
92
  * ```
93
93
  */
94
94
  eq<T>(value: UserDataType): _BooleanCond<T>;
@@ -97,7 +97,7 @@ export declare class OperatorV2<T> implements IOperator {
97
97
  * @param value 判定是否不相等的值
98
98
  * @example
99
99
  * ```
100
- * context.db.object("_user").where({age: kunlun.operator.neq(20)})
100
+ * context.db.object('_user').where({age: kunlun.operator.neq(20)})
101
101
  * ```
102
102
  */
103
103
  neq<T>(value: UserDataType): _BooleanCond<T>;
@@ -106,7 +106,7 @@ export declare class OperatorV2<T> implements IOperator {
106
106
  * @param value 判定是否大于或晚于的值
107
107
  * @example
108
108
  * ```
109
- * kunlun.operator.gt(new Date("2020-11-26").getTime())
109
+ * kunlun.operator.gt(new Date('2020-11-26').getTime())
110
110
  * ```
111
111
  */
112
112
  gt<T>(value: number | Date): _BooleanCond<T>;
@@ -115,7 +115,7 @@ export declare class OperatorV2<T> implements IOperator {
115
115
  * @param value 判定是否大于等于或晚于等于的值
116
116
  * @example
117
117
  * ```
118
- * kunlun.operator.gte(new Date("2020-11-26").getTime())
118
+ * kunlun.operator.gte(new Date('2020-11-26').getTime())
119
119
  * ```
120
120
  */
121
121
  gte<T>(value: number | Date): _BooleanCond<T>;
@@ -124,7 +124,7 @@ export declare class OperatorV2<T> implements IOperator {
124
124
  * @param value 判定是否小于或早于的值
125
125
  * @example
126
126
  * ```
127
- * kunlun.operator.lt(new Date("2020-11-26").getTime())
127
+ * kunlun.operator.lt(new Date('2020-11-26').getTime())
128
128
  * ```
129
129
  */
130
130
  lt<T>(value: number | Date): _BooleanCond<T>;
@@ -133,7 +133,7 @@ export declare class OperatorV2<T> implements IOperator {
133
133
  * @param value 判定是否小于等于或早于等于的值
134
134
  * @example
135
135
  * ```
136
- * kunlun.operator.lte(new Date("2020-11-26").getTime())
136
+ * kunlun.operator.lte(new Date('2020-11-26').getTime())
137
137
  * ```
138
138
  */
139
139
  lte<T>(value: number | Date): _BooleanCond<T>;