@taico/errors 0.0.1 → 0.0.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.
@@ -3,9 +3,16 @@ export declare const ErrorCodes: {
3
3
  readonly TASK_NOT_ASSIGNED: "TASK_NOT_ASSIGNED";
4
4
  readonly INVALID_STATUS_TRANSITION: "INVALID_STATUS_TRANSITION";
5
5
  readonly COMMENT_REQUIRED: "COMMENT_REQUIRED";
6
+ readonly TASK_IS_THREAD_PARENT: "TASK_IS_THREAD_PARENT";
7
+ readonly INPUT_REQUEST_SELF_ASSIGNMENT: "INPUT_REQUEST_SELF_ASSIGNMENT";
8
+ readonly TASK_BLUEPRINT_NOT_FOUND: "TASK_BLUEPRINT_NOT_FOUND";
9
+ readonly TASK_BLUEPRINT_HAS_ACTIVE_SCHEDULES: "TASK_BLUEPRINT_HAS_ACTIVE_SCHEDULES";
10
+ readonly SCHEDULED_TASK_NOT_FOUND: "SCHEDULED_TASK_NOT_FOUND";
11
+ readonly INVALID_CRON_EXPRESSION: "INVALID_CRON_EXPRESSION";
6
12
  readonly PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
7
13
  readonly PARENT_PAGE_NOT_FOUND: "PARENT_PAGE_NOT_FOUND";
8
14
  readonly CIRCULAR_REFERENCE: "CIRCULAR_REFERENCE";
15
+ readonly BLOCK_IS_THREAD_STATE: "BLOCK_IS_THREAD_STATE";
9
16
  readonly AGENT_NOT_FOUND: "AGENT_NOT_FOUND";
10
17
  readonly AGENT_SLUG_CONFLICT: "AGENT_SLUG_CONFLICT";
11
18
  readonly AGENT_RUN_NOT_FOUND: "AGENT_RUN_NOT_FOUND";
@@ -51,6 +58,9 @@ export declare const ErrorCodes: {
51
58
  readonly INVALID_REFRESH_TOKEN: "INVALID_REFRESH_TOKEN";
52
59
  readonly REFRESH_TOKEN_EXPIRED: "REFRESH_TOKEN_EXPIRED";
53
60
  readonly REFRESH_TOKEN_REVOKED: "REFRESH_TOKEN_REVOKED";
61
+ readonly SECRET_NOT_FOUND: "SECRET_NOT_FOUND";
62
+ readonly SECRET_NAME_CONFLICT: "SECRET_NAME_CONFLICT";
63
+ readonly SECRET_FEATURE_DISABLED: "SECRET_FEATURE_DISABLED";
54
64
  readonly VALIDATION_FAILED: "VALIDATION_FAILED";
55
65
  readonly INTERNAL_ERROR: "INTERNAL_ERROR";
56
66
  };
@@ -4,10 +4,18 @@ export const ErrorCodes = {
4
4
  TASK_NOT_ASSIGNED: 'TASK_NOT_ASSIGNED',
5
5
  INVALID_STATUS_TRANSITION: 'INVALID_STATUS_TRANSITION',
6
6
  COMMENT_REQUIRED: 'COMMENT_REQUIRED',
7
+ TASK_IS_THREAD_PARENT: 'TASK_IS_THREAD_PARENT',
8
+ INPUT_REQUEST_SELF_ASSIGNMENT: 'INPUT_REQUEST_SELF_ASSIGNMENT',
9
+ // Task Blueprint errors
10
+ TASK_BLUEPRINT_NOT_FOUND: 'TASK_BLUEPRINT_NOT_FOUND',
11
+ TASK_BLUEPRINT_HAS_ACTIVE_SCHEDULES: 'TASK_BLUEPRINT_HAS_ACTIVE_SCHEDULES',
12
+ SCHEDULED_TASK_NOT_FOUND: 'SCHEDULED_TASK_NOT_FOUND',
13
+ INVALID_CRON_EXPRESSION: 'INVALID_CRON_EXPRESSION',
7
14
  // Context errors
8
15
  PAGE_NOT_FOUND: 'PAGE_NOT_FOUND',
9
16
  PARENT_PAGE_NOT_FOUND: 'PARENT_PAGE_NOT_FOUND',
10
17
  CIRCULAR_REFERENCE: 'CIRCULAR_REFERENCE',
18
+ BLOCK_IS_THREAD_STATE: 'BLOCK_IS_THREAD_STATE',
11
19
  // Agent errors
12
20
  AGENT_NOT_FOUND: 'AGENT_NOT_FOUND',
13
21
  AGENT_SLUG_CONFLICT: 'AGENT_SLUG_CONFLICT',
@@ -60,6 +68,10 @@ export const ErrorCodes = {
60
68
  INVALID_REFRESH_TOKEN: 'INVALID_REFRESH_TOKEN',
61
69
  REFRESH_TOKEN_EXPIRED: 'REFRESH_TOKEN_EXPIRED',
62
70
  REFRESH_TOKEN_REVOKED: 'REFRESH_TOKEN_REVOKED',
71
+ // Secret errors
72
+ SECRET_NOT_FOUND: 'SECRET_NOT_FOUND',
73
+ SECRET_NAME_CONFLICT: 'SECRET_NAME_CONFLICT',
74
+ SECRET_FEATURE_DISABLED: 'SECRET_FEATURE_DISABLED',
63
75
  // Generic errors
64
76
  VALIDATION_FAILED: 'VALIDATION_FAILED',
65
77
  INTERNAL_ERROR: 'INTERNAL_ERROR',
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@taico/errors",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
+ "private": false,
5
6
  "license": "MIT",
6
7
  "main": "./dist/index.js",
7
8
  "types": "./dist/index.d.ts",
8
- "files": ["dist"],
9
- "private": false,
9
+ "files": [
10
+ "dist",
11
+ "package.json"
12
+ ],
10
13
  "exports": {
11
14
  ".": {
12
15
  "types": "./dist/index.d.ts",
@@ -16,9 +19,11 @@
16
19
  "./package.json": "./package.json"
17
20
  },
18
21
  "scripts": {
19
- "build": "tsc -p tsconfig.build.json"
22
+ "build": "tsc -p tsconfig.build.json",
23
+ "pack": "npm run build && npm pack",
24
+ "release": "npm run build && npm publish --access public"
20
25
  },
21
26
  "devDependencies": {
22
27
  "typescript": "^5.6.3"
23
28
  }
24
- }
29
+ }