@perforce-perfecto/scriptless-helpers-types 0.0.2 → 1.75.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/package.json +2 -2
- package/src/lib/execution-cache.d.ts +4 -0
- package/src/lib/execution-cache.js +4 -7
- package/CLAUDE.md +0 -50
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perforce-perfecto/scriptless-helpers-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.75.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
}
|
|
13
|
-
}
|
|
13
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export declare enum ExecutionCacheItemStatus {
|
|
2
|
+
/** Set before the execution container is created. */
|
|
2
3
|
Initializing = "Initializing",
|
|
4
|
+
/** Set when the execution starts running. */
|
|
3
5
|
Running = "Running",
|
|
6
|
+
/** Set when the execution is being cancelled. */
|
|
4
7
|
Terminating = "Terminating",
|
|
8
|
+
/** Set when the execution finishes. */
|
|
5
9
|
Completed = "Completed"
|
|
6
10
|
}
|
|
@@ -3,16 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ExecutionCacheItemStatus = void 0;
|
|
4
4
|
var ExecutionCacheItemStatus;
|
|
5
5
|
(function (ExecutionCacheItemStatus) {
|
|
6
|
-
|
|
7
|
-
* ExecutionCacheItemStatus values and their usage:
|
|
8
|
-
* Initializing - when the execution is created, i.e. before creating the execution container in ExecutionsService
|
|
9
|
-
* Running - upon receiving the ExecutionStartEvent in ReportingEventsService
|
|
10
|
-
* Terminating - when the execution is cancelled in ExecutionsService
|
|
11
|
-
* Completed - upon receiving the ExecutionProgressEndEvent in ProgressEventsService
|
|
12
|
-
*/
|
|
6
|
+
/** Set before the execution container is created. */
|
|
13
7
|
ExecutionCacheItemStatus["Initializing"] = "Initializing";
|
|
8
|
+
/** Set when the execution starts running. */
|
|
14
9
|
ExecutionCacheItemStatus["Running"] = "Running";
|
|
10
|
+
/** Set when the execution is being cancelled. */
|
|
15
11
|
ExecutionCacheItemStatus["Terminating"] = "Terminating";
|
|
12
|
+
/** Set when the execution finishes. */
|
|
16
13
|
ExecutionCacheItemStatus["Completed"] = "Completed";
|
|
17
14
|
})(ExecutionCacheItemStatus || (exports.ExecutionCacheItemStatus = ExecutionCacheItemStatus = {}));
|
|
18
15
|
//# sourceMappingURL=execution-cache.js.map
|
package/CLAUDE.md
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# shared-types-public
|
|
2
|
-
|
|
3
|
-
Published to npm as `@perforce-perfecto/scriptless-helpers-types` (`scope:public`). This package is consumed by external users — everything in it is fully public.
|
|
4
|
-
|
|
5
|
-
## What belongs here
|
|
6
|
-
|
|
7
|
-
Shared TypeScript types, interfaces, and enums that must be understood by both internal services and external consumers of the public npm package. Examples: execution DTOs, device capability types, data-table structures.
|
|
8
|
-
|
|
9
|
-
## Rules
|
|
10
|
-
|
|
11
|
-
### No sensitive or proprietary content
|
|
12
|
-
Never add to this lib:
|
|
13
|
-
- Internal URLs, hostnames, environment variables, or infrastructure details
|
|
14
|
-
- Credentials, tokens, API keys, or secrets of any kind
|
|
15
|
-
- Business logic, algorithms, or implementation details that are proprietary
|
|
16
|
-
- Internal Perfecto/Perforce system identifiers or configurations
|
|
17
|
-
- Types that expose internal service architecture (e.g. RabbitMQ queue names, S3 bucket shapes, K8s job specs)
|
|
18
|
-
|
|
19
|
-
Only pure type definitions and enums with no runtime logic that reveals internal systems.
|
|
20
|
-
|
|
21
|
-
### Allowed imports only
|
|
22
|
-
This lib has `scope:public` tag. It may only import from other `scope:public` libs.
|
|
23
|
-
|
|
24
|
-
**Allowed:**
|
|
25
|
-
- `tslib`
|
|
26
|
-
- Other `@perforce-perfecto/*` public npm packages
|
|
27
|
-
- Standard TypeScript/Node built-in types
|
|
28
|
-
|
|
29
|
-
**Forbidden:**
|
|
30
|
-
- `@perfectomobiledev/*` — these are internal private packages and must never be imported here
|
|
31
|
-
- Any `scope:private` lib from this monorepo
|
|
32
|
-
- Internal service clients or infrastructure SDKs (AWS, K8s, RabbitMQ, etc.)
|
|
33
|
-
|
|
34
|
-
Nx enforces this via `@nx/enforce-module-boundaries` — a lint error will surface any violation.
|
|
35
|
-
|
|
36
|
-
### PRs touching this lib
|
|
37
|
-
All PRs require a review confirming no proprietary logic, internal URLs, credentials, or internal infrastructure details are exposed.
|
|
38
|
-
|
|
39
|
-
## Build & publish
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
# Build
|
|
43
|
-
npx nx build shared-types-public
|
|
44
|
-
|
|
45
|
-
# Publish (from dist)
|
|
46
|
-
cd dist/libs/shared-types-public
|
|
47
|
-
npm publish --access public
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
The `.npmignore` in this directory excludes `*.js.map` files from the published package.
|