@norskvideo/ctl-sdk 0.1.3 → 0.1.5
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 +1 -1
- package/product-template-error.d.ts +1 -10
- package/product-template-error.js +4 -14
package/package.json
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Error class for product-template lifecycle issues. Codes cover both the
|
|
3
|
-
* "store + extract" path (used by ctl's ProductTemplateService — extraction,
|
|
4
|
-
* manifest parsing, in-use guarding) and the simpler "store raw bytes"
|
|
5
|
-
* path (used by mgr — name validation + bytes persistence).
|
|
6
|
-
*/
|
|
7
|
-
export declare class ProductTemplateError extends Error {
|
|
8
|
-
code: "INVALID_NAME" | "NAME_CONFLICT" | "FILE_NOT_FOUND" | "EXTRACTION_FAILED" | "MANIFEST_MISSING" | "MANIFEST_INVALID" | "COMPOSE_MISSING" | "PARAMETERS_INVALID" | "NOT_FOUND" | "IN_USE" | "PRODUCT_MISMATCH";
|
|
9
|
-
constructor(code: "INVALID_NAME" | "NAME_CONFLICT" | "FILE_NOT_FOUND" | "EXTRACTION_FAILED" | "MANIFEST_MISSING" | "MANIFEST_INVALID" | "COMPOSE_MISSING" | "PARAMETERS_INVALID" | "NOT_FOUND" | "IN_USE" | "PRODUCT_MISMATCH", message: string);
|
|
10
|
-
}
|
|
1
|
+
export { ProductTemplateError } from "@norskvideo/ctl-product-template-schema/read";
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* path (used by mgr — name validation + bytes persistence).
|
|
6
|
-
*/
|
|
7
|
-
export class ProductTemplateError extends Error {
|
|
8
|
-
code;
|
|
9
|
-
constructor(code, message) {
|
|
10
|
-
super(message);
|
|
11
|
-
this.code = code;
|
|
12
|
-
this.name = "ProductTemplateError";
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
// Moved to the schema package (the error taxonomy lives with the contract it
|
|
2
|
+
// reports on — see @norskvideo/ctl-product-template-schema/read). Re-exported
|
|
3
|
+
// here so existing importers of @norskvideo/ctl-sdk keep working.
|
|
4
|
+
export { ProductTemplateError } from "@norskvideo/ctl-product-template-schema/read";
|