@m4s-chinema/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,2 @@
1
+ export * from './rpc-status.enum';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,18 @@
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);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC"}
@@ -0,0 +1,20 @@
1
+ export declare enum RpcStatus {
2
+ OK = 0,
3
+ CANCALLED = 1,
4
+ UNKNOWN = 2,
5
+ INVALID_ARGUMENT = 3,
6
+ DEADLINE_EXCEEDED = 4,
7
+ NOT_FOUND = 5,
8
+ ALREADY_EXISTS = 6,
9
+ PERMISSION_DENIED = 7,
10
+ RESOURCE_EXHAUSTED = 8,
11
+ FAILED_PRECONDITION = 9,
12
+ ABORTED = 10,
13
+ OUT_OF_RANGE = 11,
14
+ UNINMPLEMENTED = 12,
15
+ INTENRAL = 13,
16
+ UNAVAILABLE = 14,
17
+ DATA_LOSS = 15,
18
+ UNATHENTICATED = 16
19
+ }
20
+ //# sourceMappingURL=rpc-status.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc-status.enum.d.ts","sourceRoot":"","sources":["../../src/enums/rpc-status.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACpB,EAAE,IAAI;IACN,SAAS,IAAI;IACb,OAAO,IAAI;IACX,gBAAgB,IAAI;IACpB,iBAAiB,IAAI;IACrB,SAAS,IAAI;IACb,cAAc,IAAI;IAClB,iBAAiB,IAAI;IACrB,kBAAkB,IAAI;IACtB,mBAAmB,IAAI;IACvB,OAAO,KAAK;IACZ,YAAY,KAAK;IACjB,cAAc,KAAK;IACnB,QAAQ,KAAK;IACb,WAAW,KAAK;IAChB,SAAS,KAAK;IACd,cAAc,KAAK;CACnB"}
@@ -0,0 +1,24 @@
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["CANCALLED"] = 1] = "CANCALLED";
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["UNINMPLEMENTED"] = 12] = "UNINMPLEMENTED";
19
+ RpcStatus[RpcStatus["INTENRAL"] = 13] = "INTENRAL";
20
+ RpcStatus[RpcStatus["UNAVAILABLE"] = 14] = "UNAVAILABLE";
21
+ RpcStatus[RpcStatus["DATA_LOSS"] = 15] = "DATA_LOSS";
22
+ RpcStatus[RpcStatus["UNATHENTICATED"] = 16] = "UNATHENTICATED";
23
+ })(RpcStatus || (exports.RpcStatus = RpcStatus = {}));
24
+ //# sourceMappingURL=rpc-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc-status.enum.js","sourceRoot":"","sources":["../../src/enums/rpc-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAkBX;AAlBD,WAAY,SAAS;IACpB,qCAAM,CAAA;IACN,mDAAa,CAAA;IACb,+CAAW,CAAA;IACX,iEAAoB,CAAA;IACpB,mEAAqB,CAAA;IACrB,mDAAa,CAAA;IACb,6DAAkB,CAAA;IAClB,mEAAqB,CAAA;IACrB,qEAAsB,CAAA;IACtB,uEAAuB,CAAA;IACvB,gDAAY,CAAA;IACZ,0DAAiB,CAAA;IACjB,8DAAmB,CAAA;IACnB,kDAAa,CAAA;IACb,wDAAgB,CAAA;IAChB,oDAAc,CAAA;IACd,8DAAmB,CAAA;AACpB,CAAC,EAlBW,SAAS,yBAAT,SAAS,QAkBpB"}
@@ -0,0 +1,2 @@
1
+ export * from "./enums";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
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);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@m4s-chinema/common",
3
+ "version": "1.0.0",
4
+ "description": "Common utilities",
5
+ "author": {
6
+ "name": "Maksim",
7
+ "email": "email@gmail.com"
8
+ },
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "devEngines": {
13
+ "packageManager": {
14
+ "name": "pnpm",
15
+ "version": "^11.9.0",
16
+ "onFail": "download"
17
+ },
18
+ "runtime": {
19
+ "name": "node",
20
+ "version": "26.4.0",
21
+ "onFail": "download"
22
+ }
23
+ },
24
+ "main": "dist/index.js",
25
+ "types": "dist/index.d.ts",
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "devDependencies": {
30
+ "@types/node": "^26.0.0",
31
+ "typescript": "^6.0.3",
32
+ "node": "runtime:26.4.0"
33
+ },
34
+ "scripts": {
35
+ "build": "tsc",
36
+ "dev": "tsc --watch"
37
+ }
38
+ }