@unito/integration-api 1.0.3 → 2.0.0
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 +75 -70
- 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 FieldValueTypes = {
|
|
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 Semantics = {
|
|
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 RelationSemantics = {
|
|
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 OperatorTypes = {
|
|
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 StatusCodes = {
|
|
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.FieldValueTypes = FieldValueTypes;
|
|
89
|
+
exports.OperatorTypes = OperatorTypes;
|
|
90
|
+
exports.RelationSemantics = RelationSemantics;
|
|
91
|
+
exports.Semantics = Semantics;
|
|
92
|
+
exports.StatusCodes = StatusCodes;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -94,19 +94,19 @@ export interface BasicFieldSchema extends AbstractFieldSchema {
|
|
|
94
94
|
/**
|
|
95
95
|
* The type of the field.
|
|
96
96
|
*/
|
|
97
|
-
type: Exclude<FieldValueType,
|
|
97
|
+
type: Exclude<FieldValueType, typeof FieldValueTypes.BLOB | typeof FieldValueTypes.REFERENCE | typeof FieldValueTypes.OBJECT | typeof FieldValueTypes.DATETIME_RANGE | typeof FieldValueTypes.DATE_RANGE>;
|
|
98
98
|
}
|
|
99
99
|
export interface BlobFieldSchema extends AbstractFieldSchema {
|
|
100
100
|
/**
|
|
101
101
|
* The type of the field.
|
|
102
102
|
*/
|
|
103
|
-
type:
|
|
103
|
+
type: typeof FieldValueTypes.BLOB;
|
|
104
104
|
}
|
|
105
105
|
export interface ReferenceFieldSchema extends AbstractFieldSchema {
|
|
106
106
|
/**
|
|
107
107
|
* The type of the field.
|
|
108
108
|
*/
|
|
109
|
-
type:
|
|
109
|
+
type: typeof FieldValueTypes.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:
|
|
119
|
+
type: typeof FieldValueTypes.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:
|
|
135
|
+
type: typeof FieldValueTypes.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:
|
|
151
|
+
type: typeof FieldValueTypes.OBJECT;
|
|
152
152
|
/**
|
|
153
153
|
* Describe the schema of the object.
|
|
154
154
|
*/
|
|
@@ -163,66 +163,70 @@ 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 FieldValueTypes: {
|
|
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
|
+
export type FieldValueType = (typeof FieldValueTypes)[keyof typeof FieldValueTypes];
|
|
184
185
|
/**
|
|
185
186
|
* A Semantic gives meaning to an Item or a Field in the Unito platform.
|
|
186
187
|
* An object with a specified semantic is expected to hold a certain type of value that can later be used
|
|
187
188
|
* by the consumers of the spec to better understand what that value means.
|
|
188
189
|
*/
|
|
189
|
-
export declare
|
|
190
|
-
CREATED_AT
|
|
191
|
-
DESCRIPTION
|
|
192
|
-
DISPLAY_NAME
|
|
193
|
-
PROVIDER_URL
|
|
194
|
-
UPDATED_AT
|
|
195
|
-
USER
|
|
196
|
-
PARENT
|
|
197
|
-
}
|
|
190
|
+
export declare const Semantics: {
|
|
191
|
+
readonly CREATED_AT: "createdAt";
|
|
192
|
+
readonly DESCRIPTION: "description";
|
|
193
|
+
readonly DISPLAY_NAME: "displayName";
|
|
194
|
+
readonly PROVIDER_URL: "providerUrl";
|
|
195
|
+
readonly UPDATED_AT: "updatedAt";
|
|
196
|
+
readonly USER: "user";
|
|
197
|
+
readonly PARENT: "parent";
|
|
198
|
+
};
|
|
199
|
+
export type Semantic = (typeof Semantics)[keyof typeof Semantics];
|
|
198
200
|
/**
|
|
199
201
|
* A Relation Semantic gives meaning to a Relation in the Unito platform. A relation with a
|
|
200
202
|
* specified semantic is expected to hold a certain type of item that can later be used by
|
|
201
203
|
* the consumers of the spec for specific usage.
|
|
202
204
|
*/
|
|
203
|
-
export declare
|
|
204
|
-
COMMENTS
|
|
205
|
-
SUBTASKS
|
|
206
|
-
USERS
|
|
207
|
-
ATTACHMENTS
|
|
208
|
-
}
|
|
205
|
+
export declare const RelationSemantics: {
|
|
206
|
+
readonly COMMENTS: "comments";
|
|
207
|
+
readonly SUBTASKS: "subtasks";
|
|
208
|
+
readonly USERS: "users";
|
|
209
|
+
readonly ATTACHMENTS: "attachments";
|
|
210
|
+
};
|
|
211
|
+
export type RelationSemantic = (typeof RelationSemantics)[keyof typeof RelationSemantics];
|
|
209
212
|
/**
|
|
210
213
|
* An OperatorType represents an operator used in a filter.
|
|
211
214
|
*/
|
|
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
|
-
}
|
|
215
|
+
export declare const OperatorTypes: {
|
|
216
|
+
readonly EQUAL: "=";
|
|
217
|
+
readonly NOT_EQUAL: "!=";
|
|
218
|
+
readonly GREATER_THAN: ">";
|
|
219
|
+
readonly GREATER_THAN_OR_EQUAL: ">=";
|
|
220
|
+
readonly LESSER_THAN: "<";
|
|
221
|
+
readonly LESSER_THAN_OR_EQUAL: "<=";
|
|
222
|
+
readonly INCLUDE: "*=";
|
|
223
|
+
readonly EXCLUDE: "!*=";
|
|
224
|
+
readonly START_WITH: "^=";
|
|
225
|
+
readonly END_WITH: "$=";
|
|
226
|
+
readonly IS_NULL: "!!";
|
|
227
|
+
readonly IS_NOT_NULL: "!";
|
|
228
|
+
};
|
|
229
|
+
export type OperationType = (typeof OperatorTypes)[keyof typeof OperatorTypes];
|
|
226
230
|
/**
|
|
227
231
|
* An Item represents a syncable entity. It has fields of its own as well as relations to other items.
|
|
228
232
|
*/
|
|
@@ -310,7 +314,7 @@ export interface Relation {
|
|
|
310
314
|
/**
|
|
311
315
|
* The semantic of the relation.
|
|
312
316
|
*/
|
|
313
|
-
semantic?:
|
|
317
|
+
semantic?: Semantic;
|
|
314
318
|
/**
|
|
315
319
|
* The shape of the relation.
|
|
316
320
|
*/
|
|
@@ -411,22 +415,23 @@ export interface RequestSchema {
|
|
|
411
415
|
/**
|
|
412
416
|
* HTTP code returned by the integration
|
|
413
417
|
*/
|
|
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
|
-
}
|
|
418
|
+
export declare const StatusCodes: {
|
|
419
|
+
readonly OK: 200;
|
|
420
|
+
readonly CREATED: 201;
|
|
421
|
+
readonly ACCEPTED: 202;
|
|
422
|
+
readonly NO_CONTENT: 204;
|
|
423
|
+
readonly BAD_REQUEST: 400;
|
|
424
|
+
readonly UNAUTHORIZED: 401;
|
|
425
|
+
readonly FORBIDDEN: 403;
|
|
426
|
+
readonly NOT_FOUND: 404;
|
|
427
|
+
readonly NOT_ACCEPTABLE: 406;
|
|
428
|
+
readonly REQUEST_TIMEOUT: 408;
|
|
429
|
+
readonly UNPROCESSABLE_CONTENT: 422;
|
|
430
|
+
readonly LOCKED: 423;
|
|
431
|
+
readonly TOO_MANY_REQUESTS: 429;
|
|
432
|
+
readonly INTERNAL_SERVER_ERROR: 500;
|
|
433
|
+
};
|
|
434
|
+
export type StatusCode = (typeof StatusCodes)[keyof typeof StatusCodes];
|
|
430
435
|
/**
|
|
431
436
|
* A WebhookSubscriptionPayload describes the shape of the request on the "webhook subscription" endpoint.
|
|
432
437
|
*/
|
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 FieldValueTypes = {
|
|
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 Semantics = {
|
|
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 RelationSemantics = {
|
|
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 OperatorTypes = {
|
|
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 StatusCodes = {
|
|
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
|
+
};
|