@cinema-ms/common 1.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.
@@ -0,0 +1 @@
1
+ export * from './rpc-status.enum';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./rpc-status.enum"), exports);
@@ -0,0 +1,19 @@
1
+ export declare enum RpcStatus {
2
+ OK = 0,// 200 OK
3
+ CANCELLED = 1,// 499 Client Closed Request
4
+ UNKNOWN = 2,// 500 Internal Server Error
5
+ INVALID_ARGUMENT = 3,// 400 Bad Request
6
+ DEADLINE_EXCEEDED = 4,// 504 Gateway Timeout
7
+ NOT_FOUND = 5,// 404 Not Found
8
+ ALREADY_EXISTS = 6,// 409 Conflict
9
+ PERMISSION_DENIED = 7,// 403 Forbidden
10
+ RESOURCE_EXHAUSTED = 8,// 429 Too Many Requests
11
+ FAILED_PRECONDITION = 9,// 412 Precondition Failed
12
+ ABORTED = 10,// 409 Conflict
13
+ OUT_OF_RANGE = 11,// 416 Range Not Satisfiable
14
+ UNIMPLEMENTED = 12,// 501 Not Implemented
15
+ INTERNAL = 13,// 500 Internal Server Error
16
+ UNAVAILABLE = 14,// 503 Service Unavailable
17
+ DATA_LOSS = 15,// 500 Internal Server Error
18
+ UNAUTHENTICATED = 16
19
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RpcStatus = void 0;
4
+ var RpcStatus;
5
+ (function (RpcStatus) {
6
+ RpcStatus[RpcStatus["OK"] = 0] = "OK";
7
+ RpcStatus[RpcStatus["CANCELLED"] = 1] = "CANCELLED";
8
+ RpcStatus[RpcStatus["UNKNOWN"] = 2] = "UNKNOWN";
9
+ RpcStatus[RpcStatus["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT";
10
+ RpcStatus[RpcStatus["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED";
11
+ RpcStatus[RpcStatus["NOT_FOUND"] = 5] = "NOT_FOUND";
12
+ RpcStatus[RpcStatus["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS";
13
+ RpcStatus[RpcStatus["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED";
14
+ RpcStatus[RpcStatus["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED";
15
+ RpcStatus[RpcStatus["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION";
16
+ RpcStatus[RpcStatus["ABORTED"] = 10] = "ABORTED";
17
+ RpcStatus[RpcStatus["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE";
18
+ RpcStatus[RpcStatus["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED";
19
+ RpcStatus[RpcStatus["INTERNAL"] = 13] = "INTERNAL";
20
+ RpcStatus[RpcStatus["UNAVAILABLE"] = 14] = "UNAVAILABLE";
21
+ RpcStatus[RpcStatus["DATA_LOSS"] = 15] = "DATA_LOSS";
22
+ RpcStatus[RpcStatus["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED";
23
+ })(RpcStatus || (exports.RpcStatus = RpcStatus = {}));
@@ -0,0 +1 @@
1
+ export * from './enums';
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums"), exports);
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@cinema-ms/common",
3
+ "version": "1.0.0",
4
+ "description": "Shared utilities for cinema microservice ecosystem",
5
+ "main": "dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "scripts": {
14
+ "build": "tsc -p tsconfig.build.json",
15
+ "format": "prettier --write \"libs/**/*.ts\" \"test/**/*.ts\""
16
+ },
17
+ "devDependencies": {
18
+ "@cinema-ms/core": "^1.0.10",
19
+ "@types/node": "^25.0.10",
20
+ "prettier": "^3.8.1",
21
+ "typescript": "^5.9.3"
22
+ }
23
+ }