@unito/integration-api 1.0.3 → 1.0.4
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/src/index.cjs +69 -68
- package/dist/src/types.d.ts +72 -72
- package/dist/src/types.js +63 -68
- package/package.json +1 -1
package/dist/src/index.cjs
CHANGED
|
@@ -5,87 +5,88 @@
|
|
|
5
5
|
* The type represents a unique scalar value such as a string or an integer.
|
|
6
6
|
* For more complex types, use an Item instead.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})(exports.FieldValueType || (exports.FieldValueType = {}));
|
|
8
|
+
const FieldValueType = {
|
|
9
|
+
BLOB: 'blob',
|
|
10
|
+
BOOLEAN: 'boolean',
|
|
11
|
+
DATE: 'date',
|
|
12
|
+
DATE_RANGE: 'dateRange',
|
|
13
|
+
DATETIME: 'datetime',
|
|
14
|
+
DATETIME_RANGE: 'datetimeRange',
|
|
15
|
+
DURATION: 'duration',
|
|
16
|
+
EMAIL: 'email',
|
|
17
|
+
RICH_TEXT_HTML: 'html',
|
|
18
|
+
INTEGER: 'integer',
|
|
19
|
+
RICH_TEXT_MARKDOWN: 'markdown',
|
|
20
|
+
NUMBER: 'number',
|
|
21
|
+
OBJECT: 'object',
|
|
22
|
+
REFERENCE: 'reference',
|
|
23
|
+
STRING: 'string',
|
|
24
|
+
URL: 'url',
|
|
25
|
+
};
|
|
27
26
|
/**
|
|
28
27
|
* A Semantic gives meaning to an Item or a Field in the Unito platform.
|
|
29
28
|
* An object with a specified semantic is expected to hold a certain type of value that can later be used
|
|
30
29
|
* by the consumers of the spec to better understand what that value means.
|
|
31
30
|
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
})(exports.Semantic || (exports.Semantic = {}));
|
|
31
|
+
const Semantic = {
|
|
32
|
+
CREATED_AT: 'createdAt',
|
|
33
|
+
DESCRIPTION: 'description',
|
|
34
|
+
DISPLAY_NAME: 'displayName',
|
|
35
|
+
PROVIDER_URL: 'providerUrl',
|
|
36
|
+
UPDATED_AT: 'updatedAt',
|
|
37
|
+
USER: 'user',
|
|
38
|
+
PARENT: 'parent',
|
|
39
|
+
};
|
|
42
40
|
/**
|
|
43
41
|
* A Relation Semantic gives meaning to a Relation in the Unito platform. A relation with a
|
|
44
42
|
* specified semantic is expected to hold a certain type of item that can later be used by
|
|
45
43
|
* the consumers of the spec for specific usage.
|
|
46
44
|
*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
})(exports.RelationSemantic || (exports.RelationSemantic = {}));
|
|
45
|
+
const RelationSemantic = {
|
|
46
|
+
COMMENTS: 'comments',
|
|
47
|
+
SUBTASKS: 'subtasks',
|
|
48
|
+
USERS: 'users',
|
|
49
|
+
ATTACHMENTS: 'attachments',
|
|
50
|
+
};
|
|
54
51
|
/**
|
|
55
52
|
* An OperatorType represents an operator used in a filter.
|
|
56
53
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
})(exports.OperatorType || (exports.OperatorType = {}));
|
|
54
|
+
const OperatorType = {
|
|
55
|
+
EQUAL: '=',
|
|
56
|
+
NOT_EQUAL: '!=',
|
|
57
|
+
GREATER_THAN: '>',
|
|
58
|
+
GREATER_THAN_OR_EQUAL: '>=',
|
|
59
|
+
LESSER_THAN: '<',
|
|
60
|
+
LESSER_THAN_OR_EQUAL: '<=',
|
|
61
|
+
INCLUDE: '*=',
|
|
62
|
+
EXCLUDE: '!*=',
|
|
63
|
+
START_WITH: '^=',
|
|
64
|
+
END_WITH: '$=',
|
|
65
|
+
IS_NULL: '!!',
|
|
66
|
+
IS_NOT_NULL: '!',
|
|
67
|
+
};
|
|
72
68
|
/**
|
|
73
69
|
* HTTP code returned by the integration
|
|
74
70
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
71
|
+
const StatusCode = {
|
|
72
|
+
OK: 200,
|
|
73
|
+
CREATED: 201,
|
|
74
|
+
ACCEPTED: 202,
|
|
75
|
+
NO_CONTENT: 204,
|
|
76
|
+
BAD_REQUEST: 400,
|
|
77
|
+
UNAUTHORIZED: 401,
|
|
78
|
+
FORBIDDEN: 403,
|
|
79
|
+
NOT_FOUND: 404,
|
|
80
|
+
NOT_ACCEPTABLE: 406,
|
|
81
|
+
REQUEST_TIMEOUT: 408,
|
|
82
|
+
UNPROCESSABLE_CONTENT: 422,
|
|
83
|
+
LOCKED: 423,
|
|
84
|
+
TOO_MANY_REQUESTS: 429,
|
|
85
|
+
INTERNAL_SERVER_ERROR: 500,
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
exports.FieldValueType = FieldValueType;
|
|
89
|
+
exports.OperatorType = OperatorType;
|
|
90
|
+
exports.RelationSemantic = RelationSemantic;
|
|
91
|
+
exports.Semantic = Semantic;
|
|
92
|
+
exports.StatusCode = StatusCode;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ interface AbstractFieldSchema {
|
|
|
70
70
|
/**
|
|
71
71
|
* The semantic of the field.
|
|
72
72
|
*/
|
|
73
|
-
semantic?: Semantic;
|
|
73
|
+
semantic?: (typeof Semantic)[keyof typeof Semantic];
|
|
74
74
|
/**
|
|
75
75
|
* Description of the field. For information purposes only.
|
|
76
76
|
*/
|
|
@@ -94,19 +94,19 @@ export interface BasicFieldSchema extends AbstractFieldSchema {
|
|
|
94
94
|
/**
|
|
95
95
|
* The type of the field.
|
|
96
96
|
*/
|
|
97
|
-
type: Exclude<FieldValueType, FieldValueType.BLOB | FieldValueType.REFERENCE | FieldValueType.OBJECT | FieldValueType.DATETIME_RANGE | FieldValueType.DATE_RANGE>;
|
|
97
|
+
type: Exclude<(typeof FieldValueType)[keyof typeof FieldValueType], typeof FieldValueType.BLOB | typeof FieldValueType.REFERENCE | typeof FieldValueType.OBJECT | typeof FieldValueType.DATETIME_RANGE | typeof FieldValueType.DATE_RANGE>;
|
|
98
98
|
}
|
|
99
99
|
export interface BlobFieldSchema extends AbstractFieldSchema {
|
|
100
100
|
/**
|
|
101
101
|
* The type of the field.
|
|
102
102
|
*/
|
|
103
|
-
type: FieldValueType.BLOB;
|
|
103
|
+
type: typeof FieldValueType.BLOB;
|
|
104
104
|
}
|
|
105
105
|
export interface ReferenceFieldSchema extends AbstractFieldSchema {
|
|
106
106
|
/**
|
|
107
107
|
* The type of the field.
|
|
108
108
|
*/
|
|
109
|
-
type: FieldValueType.REFERENCE;
|
|
109
|
+
type: typeof FieldValueType.REFERENCE;
|
|
110
110
|
/**
|
|
111
111
|
* Describe the referenced collection.
|
|
112
112
|
*/
|
|
@@ -116,7 +116,7 @@ export interface DatetimeRangeFieldSchema extends AbstractFieldSchema {
|
|
|
116
116
|
/**
|
|
117
117
|
* The type of the field.
|
|
118
118
|
*/
|
|
119
|
-
type: FieldValueType.DATETIME_RANGE;
|
|
119
|
+
type: typeof FieldValueType.DATETIME_RANGE;
|
|
120
120
|
/**
|
|
121
121
|
* Optional values that can be used in lieu of actual dates. They should represent points in time relative to today.
|
|
122
122
|
* e.g. [{ label: 'Yesterday', value: 'yesterday' }, ...]
|
|
@@ -132,7 +132,7 @@ export interface DateRangeFieldSchema extends AbstractFieldSchema {
|
|
|
132
132
|
/**
|
|
133
133
|
* The type of the field.
|
|
134
134
|
*/
|
|
135
|
-
type: FieldValueType.DATE_RANGE;
|
|
135
|
+
type: typeof FieldValueType.DATE_RANGE;
|
|
136
136
|
/**
|
|
137
137
|
* Optional values that can be used in lieu of actual dates. They should represent points in time relative to today.
|
|
138
138
|
* e.g. [{ label: 'Yesterday', value: 'yesterday' }, ...]
|
|
@@ -148,7 +148,7 @@ export interface ObjectFieldSchema extends AbstractFieldSchema {
|
|
|
148
148
|
/**
|
|
149
149
|
* The type of the field.
|
|
150
150
|
*/
|
|
151
|
-
type: FieldValueType.OBJECT;
|
|
151
|
+
type: typeof FieldValueType.OBJECT;
|
|
152
152
|
/**
|
|
153
153
|
* Describe the schema of the object.
|
|
154
154
|
*/
|
|
@@ -163,66 +163,66 @@ export type FieldSchema = BasicFieldSchema | BlobFieldSchema | ReferenceFieldSch
|
|
|
163
163
|
* The type represents a unique scalar value such as a string or an integer.
|
|
164
164
|
* For more complex types, use an Item instead.
|
|
165
165
|
*/
|
|
166
|
-
export declare
|
|
167
|
-
BLOB
|
|
168
|
-
BOOLEAN
|
|
169
|
-
DATE
|
|
170
|
-
DATE_RANGE
|
|
171
|
-
DATETIME
|
|
172
|
-
DATETIME_RANGE
|
|
173
|
-
DURATION
|
|
174
|
-
EMAIL
|
|
175
|
-
RICH_TEXT_HTML
|
|
176
|
-
INTEGER
|
|
177
|
-
RICH_TEXT_MARKDOWN
|
|
178
|
-
NUMBER
|
|
179
|
-
OBJECT
|
|
180
|
-
REFERENCE
|
|
181
|
-
STRING
|
|
182
|
-
URL
|
|
183
|
-
}
|
|
166
|
+
export declare const FieldValueType: {
|
|
167
|
+
readonly BLOB: "blob";
|
|
168
|
+
readonly BOOLEAN: "boolean";
|
|
169
|
+
readonly DATE: "date";
|
|
170
|
+
readonly DATE_RANGE: "dateRange";
|
|
171
|
+
readonly DATETIME: "datetime";
|
|
172
|
+
readonly DATETIME_RANGE: "datetimeRange";
|
|
173
|
+
readonly DURATION: "duration";
|
|
174
|
+
readonly EMAIL: "email";
|
|
175
|
+
readonly RICH_TEXT_HTML: "html";
|
|
176
|
+
readonly INTEGER: "integer";
|
|
177
|
+
readonly RICH_TEXT_MARKDOWN: "markdown";
|
|
178
|
+
readonly NUMBER: "number";
|
|
179
|
+
readonly OBJECT: "object";
|
|
180
|
+
readonly REFERENCE: "reference";
|
|
181
|
+
readonly STRING: "string";
|
|
182
|
+
readonly URL: "url";
|
|
183
|
+
};
|
|
184
184
|
/**
|
|
185
185
|
* A Semantic gives meaning to an Item or a Field in the Unito platform.
|
|
186
186
|
* An object with a specified semantic is expected to hold a certain type of value that can later be used
|
|
187
187
|
* by the consumers of the spec to better understand what that value means.
|
|
188
188
|
*/
|
|
189
|
-
export declare
|
|
190
|
-
CREATED_AT
|
|
191
|
-
DESCRIPTION
|
|
192
|
-
DISPLAY_NAME
|
|
193
|
-
PROVIDER_URL
|
|
194
|
-
UPDATED_AT
|
|
195
|
-
USER
|
|
196
|
-
PARENT
|
|
197
|
-
}
|
|
189
|
+
export declare const Semantic: {
|
|
190
|
+
readonly CREATED_AT: "createdAt";
|
|
191
|
+
readonly DESCRIPTION: "description";
|
|
192
|
+
readonly DISPLAY_NAME: "displayName";
|
|
193
|
+
readonly PROVIDER_URL: "providerUrl";
|
|
194
|
+
readonly UPDATED_AT: "updatedAt";
|
|
195
|
+
readonly USER: "user";
|
|
196
|
+
readonly PARENT: "parent";
|
|
197
|
+
};
|
|
198
198
|
/**
|
|
199
199
|
* A Relation Semantic gives meaning to a Relation in the Unito platform. A relation with a
|
|
200
200
|
* specified semantic is expected to hold a certain type of item that can later be used by
|
|
201
201
|
* the consumers of the spec for specific usage.
|
|
202
202
|
*/
|
|
203
|
-
export declare
|
|
204
|
-
COMMENTS
|
|
205
|
-
SUBTASKS
|
|
206
|
-
USERS
|
|
207
|
-
ATTACHMENTS
|
|
208
|
-
}
|
|
203
|
+
export declare const RelationSemantic: {
|
|
204
|
+
readonly COMMENTS: "comments";
|
|
205
|
+
readonly SUBTASKS: "subtasks";
|
|
206
|
+
readonly USERS: "users";
|
|
207
|
+
readonly ATTACHMENTS: "attachments";
|
|
208
|
+
};
|
|
209
209
|
/**
|
|
210
210
|
* An OperatorType represents an operator used in a filter.
|
|
211
211
|
*/
|
|
212
|
-
export declare
|
|
213
|
-
EQUAL
|
|
214
|
-
NOT_EQUAL
|
|
215
|
-
GREATER_THAN
|
|
216
|
-
GREATER_THAN_OR_EQUAL
|
|
217
|
-
LESSER_THAN
|
|
218
|
-
LESSER_THAN_OR_EQUAL
|
|
219
|
-
INCLUDE
|
|
220
|
-
EXCLUDE
|
|
221
|
-
START_WITH
|
|
222
|
-
END_WITH
|
|
223
|
-
IS_NULL
|
|
224
|
-
IS_NOT_NULL
|
|
225
|
-
}
|
|
212
|
+
export declare const OperatorType: {
|
|
213
|
+
readonly EQUAL: "=";
|
|
214
|
+
readonly NOT_EQUAL: "!=";
|
|
215
|
+
readonly GREATER_THAN: ">";
|
|
216
|
+
readonly GREATER_THAN_OR_EQUAL: ">=";
|
|
217
|
+
readonly LESSER_THAN: "<";
|
|
218
|
+
readonly LESSER_THAN_OR_EQUAL: "<=";
|
|
219
|
+
readonly INCLUDE: "*=";
|
|
220
|
+
readonly EXCLUDE: "!*=";
|
|
221
|
+
readonly START_WITH: "^=";
|
|
222
|
+
readonly END_WITH: "$=";
|
|
223
|
+
readonly IS_NULL: "!!";
|
|
224
|
+
readonly IS_NOT_NULL: "!";
|
|
225
|
+
};
|
|
226
226
|
/**
|
|
227
227
|
* An Item represents a syncable entity. It has fields of its own as well as relations to other items.
|
|
228
228
|
*/
|
|
@@ -310,7 +310,7 @@ export interface Relation {
|
|
|
310
310
|
/**
|
|
311
311
|
* The semantic of the relation.
|
|
312
312
|
*/
|
|
313
|
-
semantic?: RelationSemantic;
|
|
313
|
+
semantic?: (typeof RelationSemantic)[keyof typeof RelationSemantic];
|
|
314
314
|
/**
|
|
315
315
|
* The shape of the relation.
|
|
316
316
|
*/
|
|
@@ -336,7 +336,7 @@ export type RelationSummary = {
|
|
|
336
336
|
/**
|
|
337
337
|
* The semantic of the relation.
|
|
338
338
|
*/
|
|
339
|
-
semantic?: RelationSemantic;
|
|
339
|
+
semantic?: (typeof RelationSemantic)[keyof typeof RelationSemantic];
|
|
340
340
|
/**
|
|
341
341
|
* The shape of the relation.
|
|
342
342
|
*/
|
|
@@ -411,22 +411,22 @@ export interface RequestSchema {
|
|
|
411
411
|
/**
|
|
412
412
|
* HTTP code returned by the integration
|
|
413
413
|
*/
|
|
414
|
-
export declare
|
|
415
|
-
OK
|
|
416
|
-
CREATED
|
|
417
|
-
ACCEPTED
|
|
418
|
-
NO_CONTENT
|
|
419
|
-
BAD_REQUEST
|
|
420
|
-
UNAUTHORIZED
|
|
421
|
-
FORBIDDEN
|
|
422
|
-
NOT_FOUND
|
|
423
|
-
NOT_ACCEPTABLE
|
|
424
|
-
REQUEST_TIMEOUT
|
|
425
|
-
UNPROCESSABLE_CONTENT
|
|
426
|
-
LOCKED
|
|
427
|
-
TOO_MANY_REQUESTS
|
|
428
|
-
INTERNAL_SERVER_ERROR
|
|
429
|
-
}
|
|
414
|
+
export declare const StatusCode: {
|
|
415
|
+
readonly OK: 200;
|
|
416
|
+
readonly CREATED: 201;
|
|
417
|
+
readonly ACCEPTED: 202;
|
|
418
|
+
readonly NO_CONTENT: 204;
|
|
419
|
+
readonly BAD_REQUEST: 400;
|
|
420
|
+
readonly UNAUTHORIZED: 401;
|
|
421
|
+
readonly FORBIDDEN: 403;
|
|
422
|
+
readonly NOT_FOUND: 404;
|
|
423
|
+
readonly NOT_ACCEPTABLE: 406;
|
|
424
|
+
readonly REQUEST_TIMEOUT: 408;
|
|
425
|
+
readonly UNPROCESSABLE_CONTENT: 422;
|
|
426
|
+
readonly LOCKED: 423;
|
|
427
|
+
readonly TOO_MANY_REQUESTS: 429;
|
|
428
|
+
readonly INTERNAL_SERVER_ERROR: 500;
|
|
429
|
+
};
|
|
430
430
|
/**
|
|
431
431
|
* A WebhookSubscriptionPayload describes the shape of the request on the "webhook subscription" endpoint.
|
|
432
432
|
*/
|
package/dist/src/types.js
CHANGED
|
@@ -3,87 +3,82 @@
|
|
|
3
3
|
* The type represents a unique scalar value such as a string or an integer.
|
|
4
4
|
* For more complex types, use an Item instead.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})(FieldValueType || (FieldValueType = {}));
|
|
6
|
+
export const FieldValueType = {
|
|
7
|
+
BLOB: 'blob',
|
|
8
|
+
BOOLEAN: 'boolean',
|
|
9
|
+
DATE: 'date',
|
|
10
|
+
DATE_RANGE: 'dateRange',
|
|
11
|
+
DATETIME: 'datetime',
|
|
12
|
+
DATETIME_RANGE: 'datetimeRange',
|
|
13
|
+
DURATION: 'duration',
|
|
14
|
+
EMAIL: 'email',
|
|
15
|
+
RICH_TEXT_HTML: 'html',
|
|
16
|
+
INTEGER: 'integer',
|
|
17
|
+
RICH_TEXT_MARKDOWN: 'markdown',
|
|
18
|
+
NUMBER: 'number',
|
|
19
|
+
OBJECT: 'object',
|
|
20
|
+
REFERENCE: 'reference',
|
|
21
|
+
STRING: 'string',
|
|
22
|
+
URL: 'url',
|
|
23
|
+
};
|
|
25
24
|
/**
|
|
26
25
|
* A Semantic gives meaning to an Item or a Field in the Unito platform.
|
|
27
26
|
* An object with a specified semantic is expected to hold a certain type of value that can later be used
|
|
28
27
|
* by the consumers of the spec to better understand what that value means.
|
|
29
28
|
*/
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})(Semantic || (Semantic = {}));
|
|
29
|
+
export const Semantic = {
|
|
30
|
+
CREATED_AT: 'createdAt',
|
|
31
|
+
DESCRIPTION: 'description',
|
|
32
|
+
DISPLAY_NAME: 'displayName',
|
|
33
|
+
PROVIDER_URL: 'providerUrl',
|
|
34
|
+
UPDATED_AT: 'updatedAt',
|
|
35
|
+
USER: 'user',
|
|
36
|
+
PARENT: 'parent',
|
|
37
|
+
};
|
|
40
38
|
/**
|
|
41
39
|
* A Relation Semantic gives meaning to a Relation in the Unito platform. A relation with a
|
|
42
40
|
* specified semantic is expected to hold a certain type of item that can later be used by
|
|
43
41
|
* the consumers of the spec for specific usage.
|
|
44
42
|
*/
|
|
45
|
-
export
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
})(RelationSemantic || (RelationSemantic = {}));
|
|
43
|
+
export const RelationSemantic = {
|
|
44
|
+
COMMENTS: 'comments',
|
|
45
|
+
SUBTASKS: 'subtasks',
|
|
46
|
+
USERS: 'users',
|
|
47
|
+
ATTACHMENTS: 'attachments',
|
|
48
|
+
};
|
|
52
49
|
/**
|
|
53
50
|
* An OperatorType represents an operator used in a filter.
|
|
54
51
|
*/
|
|
55
|
-
export
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
})(OperatorType || (OperatorType = {}));
|
|
52
|
+
export const OperatorType = {
|
|
53
|
+
EQUAL: '=',
|
|
54
|
+
NOT_EQUAL: '!=',
|
|
55
|
+
GREATER_THAN: '>',
|
|
56
|
+
GREATER_THAN_OR_EQUAL: '>=',
|
|
57
|
+
LESSER_THAN: '<',
|
|
58
|
+
LESSER_THAN_OR_EQUAL: '<=',
|
|
59
|
+
INCLUDE: '*=',
|
|
60
|
+
EXCLUDE: '!*=',
|
|
61
|
+
START_WITH: '^=',
|
|
62
|
+
END_WITH: '$=',
|
|
63
|
+
IS_NULL: '!!',
|
|
64
|
+
IS_NOT_NULL: '!',
|
|
65
|
+
};
|
|
70
66
|
/**
|
|
71
67
|
* HTTP code returned by the integration
|
|
72
68
|
*/
|
|
73
|
-
export
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
})(StatusCode || (StatusCode = {}));
|
|
69
|
+
export const StatusCode = {
|
|
70
|
+
OK: 200,
|
|
71
|
+
CREATED: 201,
|
|
72
|
+
ACCEPTED: 202,
|
|
73
|
+
NO_CONTENT: 204,
|
|
74
|
+
BAD_REQUEST: 400,
|
|
75
|
+
UNAUTHORIZED: 401,
|
|
76
|
+
FORBIDDEN: 403,
|
|
77
|
+
NOT_FOUND: 404,
|
|
78
|
+
NOT_ACCEPTABLE: 406,
|
|
79
|
+
REQUEST_TIMEOUT: 408,
|
|
80
|
+
UNPROCESSABLE_CONTENT: 422,
|
|
81
|
+
LOCKED: 423,
|
|
82
|
+
TOO_MANY_REQUESTS: 429,
|
|
83
|
+
INTERNAL_SERVER_ERROR: 500,
|
|
84
|
+
};
|