@loopstack/common 0.25.1 → 0.26.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/dist/documents/error-document.d.ts +8 -0
- package/dist/documents/error-document.d.ts.map +1 -0
- package/dist/documents/error-document.js +27 -0
- package/dist/documents/error-document.js.map +1 -0
- package/dist/documents/error-document.yaml +5 -0
- package/dist/documents/index.d.ts +6 -0
- package/dist/documents/index.d.ts.map +1 -0
- package/dist/documents/index.js +22 -0
- package/dist/documents/index.js.map +1 -0
- package/dist/documents/link-document.d.ts +21 -0
- package/dist/documents/link-document.d.ts.map +1 -0
- package/dist/documents/link-document.js +35 -0
- package/dist/documents/link-document.js.map +1 -0
- package/dist/documents/link-document.yaml +3 -0
- package/dist/documents/markdown-document.d.ts +8 -0
- package/dist/documents/markdown-document.d.ts.map +1 -0
- package/dist/documents/markdown-document.js +27 -0
- package/dist/documents/markdown-document.js.map +1 -0
- package/dist/documents/markdown-document.yaml +3 -0
- package/dist/documents/message-document.d.ts +10 -0
- package/dist/documents/message-document.d.ts.map +1 -0
- package/dist/documents/message-document.js +29 -0
- package/dist/documents/message-document.js.map +1 -0
- package/dist/documents/message-document.yaml +5 -0
- package/dist/documents/plain-document.d.ts +8 -0
- package/dist/documents/plain-document.d.ts.map +1 -0
- package/dist/documents/plain-document.js +27 -0
- package/dist/documents/plain-document.js.map +1 -0
- package/dist/documents/plain-document.yaml +3 -0
- package/dist/entities/index.d.ts +0 -1
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +0 -1
- package/dist/entities/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/block-metadata.utils.d.ts +1 -1
- package/dist/utils/block-metadata.utils.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/entities/secret.entity.d.ts +0 -11
- package/dist/entities/secret.entity.d.ts.map +0 -1
- package/dist/entities/secret.entity.js +0 -58
- package/dist/entities/secret.entity.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-document.d.ts","sourceRoot":"","sources":["../../src/documents/error-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;kBAIrB,CAAC;AAEZ,qBAIa,aAAa;IACxB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ErrorDocument = exports.ErrorDocumentSchema = void 0;
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
const block_decorator_1 = require("../decorators/block.decorator");
|
|
12
|
+
exports.ErrorDocumentSchema = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
error: zod_1.z.string(),
|
|
15
|
+
})
|
|
16
|
+
.strict();
|
|
17
|
+
let ErrorDocument = class ErrorDocument {
|
|
18
|
+
error;
|
|
19
|
+
};
|
|
20
|
+
exports.ErrorDocument = ErrorDocument;
|
|
21
|
+
exports.ErrorDocument = ErrorDocument = __decorate([
|
|
22
|
+
(0, block_decorator_1.Document)({
|
|
23
|
+
schema: exports.ErrorDocumentSchema,
|
|
24
|
+
uiConfig: __dirname + '/error-document.yaml',
|
|
25
|
+
})
|
|
26
|
+
], ErrorDocument);
|
|
27
|
+
//# sourceMappingURL=error-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-document.js","sourceRoot":"","sources":["../../src/documents/error-document.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6BAAwB;AACxB,mEAAyD;AAE5C,QAAA,mBAAmB,GAAG,OAAC;KACjC,MAAM,CAAC;IACN,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACD,MAAM,EAAE,CAAC;AAML,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,KAAK,CAAS;CACf,CAAA;AAFY,sCAAa;wBAAb,aAAa;IAJzB,IAAA,0BAAQ,EAAC;QACR,MAAM,EAAE,2BAAmB;QAC3B,QAAQ,EAAE,SAAS,GAAG,sBAAsB;KAC7C,CAAC;GACW,aAAa,CAEzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/documents/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./error-document"), exports);
|
|
18
|
+
__exportStar(require("./link-document"), exports);
|
|
19
|
+
__exportStar(require("./markdown-document"), exports);
|
|
20
|
+
__exportStar(require("./message-document"), exports);
|
|
21
|
+
__exportStar(require("./plain-document"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/documents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const LinkDocumentSchema: z.ZodObject<{
|
|
3
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
4
|
+
pending: "pending";
|
|
5
|
+
success: "success";
|
|
6
|
+
failure: "failure";
|
|
7
|
+
}>>;
|
|
8
|
+
label: z.ZodOptional<z.ZodString>;
|
|
9
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
embed: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
expanded: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export type LinkDocumentContent = z.infer<typeof LinkDocumentSchema>;
|
|
14
|
+
export declare class LinkDocument {
|
|
15
|
+
status?: 'pending' | 'success' | 'failure';
|
|
16
|
+
label?: string;
|
|
17
|
+
workflowId?: string;
|
|
18
|
+
embed?: boolean;
|
|
19
|
+
expanded?: boolean;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=link-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-document.d.ts","sourceRoot":"","sources":["../../src/documents/link-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;;;;;;;kBAQpB,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAErE,qBAIa,YAAY;IACvB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.LinkDocument = exports.LinkDocumentSchema = void 0;
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
const block_decorator_1 = require("../decorators/block.decorator");
|
|
12
|
+
exports.LinkDocumentSchema = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
status: zod_1.z.enum(['pending', 'success', 'failure']).optional(),
|
|
15
|
+
label: zod_1.z.string().optional(),
|
|
16
|
+
workflowId: zod_1.z.string().optional(),
|
|
17
|
+
embed: zod_1.z.boolean().optional(),
|
|
18
|
+
expanded: zod_1.z.boolean().optional(),
|
|
19
|
+
})
|
|
20
|
+
.strict();
|
|
21
|
+
let LinkDocument = class LinkDocument {
|
|
22
|
+
status;
|
|
23
|
+
label;
|
|
24
|
+
workflowId;
|
|
25
|
+
embed;
|
|
26
|
+
expanded;
|
|
27
|
+
};
|
|
28
|
+
exports.LinkDocument = LinkDocument;
|
|
29
|
+
exports.LinkDocument = LinkDocument = __decorate([
|
|
30
|
+
(0, block_decorator_1.Document)({
|
|
31
|
+
schema: exports.LinkDocumentSchema,
|
|
32
|
+
uiConfig: __dirname + '/link-document.yaml',
|
|
33
|
+
})
|
|
34
|
+
], LinkDocument);
|
|
35
|
+
//# sourceMappingURL=link-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-document.js","sourceRoot":"","sources":["../../src/documents/link-document.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6BAAwB;AACxB,mEAAyD;AAE5C,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,CAAC;IACN,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5D,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC;KACD,MAAM,EAAE,CAAC;AAQL,IAAM,YAAY,GAAlB,MAAM,YAAY;IACvB,MAAM,CAAqC;IAC3C,KAAK,CAAU;IACf,UAAU,CAAU;IACpB,KAAK,CAAW;IAChB,QAAQ,CAAW;CACpB,CAAA;AANY,oCAAY;uBAAZ,YAAY;IAJxB,IAAA,0BAAQ,EAAC;QACR,MAAM,EAAE,0BAAkB;QAC1B,QAAQ,EAAE,SAAS,GAAG,qBAAqB;KAC5C,CAAC;GACW,YAAY,CAMxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-document.d.ts","sourceRoot":"","sources":["../../src/documents/markdown-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB;;kBAIxB,CAAC;AAEZ,qBAIa,gBAAgB;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.MarkdownDocument = exports.MarkdownDocumentSchema = void 0;
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
const block_decorator_1 = require("../decorators/block.decorator");
|
|
12
|
+
exports.MarkdownDocumentSchema = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
markdown: zod_1.z.string(),
|
|
15
|
+
})
|
|
16
|
+
.strict();
|
|
17
|
+
let MarkdownDocument = class MarkdownDocument {
|
|
18
|
+
markdown;
|
|
19
|
+
};
|
|
20
|
+
exports.MarkdownDocument = MarkdownDocument;
|
|
21
|
+
exports.MarkdownDocument = MarkdownDocument = __decorate([
|
|
22
|
+
(0, block_decorator_1.Document)({
|
|
23
|
+
schema: exports.MarkdownDocumentSchema,
|
|
24
|
+
uiConfig: __dirname + '/markdown-document.yaml',
|
|
25
|
+
})
|
|
26
|
+
], MarkdownDocument);
|
|
27
|
+
//# sourceMappingURL=markdown-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-document.js","sourceRoot":"","sources":["../../src/documents/markdown-document.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6BAAwB;AACxB,mEAAyD;AAE5C,QAAA,sBAAsB,GAAG,OAAC;KACpC,MAAM,CAAC;IACN,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;CACrB,CAAC;KACD,MAAM,EAAE,CAAC;AAML,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,QAAQ,CAAS;CAClB,CAAA;AAFY,4CAAgB;2BAAhB,gBAAgB;IAJ5B,IAAA,0BAAQ,EAAC;QACR,MAAM,EAAE,8BAAsB;QAC9B,QAAQ,EAAE,SAAS,GAAG,yBAAyB;KAChD,CAAC;GACW,gBAAgB,CAE5B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MessageDocumentSchema: z.ZodObject<{
|
|
3
|
+
role: z.ZodString;
|
|
4
|
+
content: z.ZodString;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export declare class MessageDocument {
|
|
7
|
+
role: string;
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=message-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-document.d.ts","sourceRoot":"","sources":["../../src/documents/message-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;kBAKvB,CAAC;AAEZ,qBAIa,eAAe;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.MessageDocument = exports.MessageDocumentSchema = void 0;
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
const block_decorator_1 = require("../decorators/block.decorator");
|
|
12
|
+
exports.MessageDocumentSchema = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
role: zod_1.z.string(),
|
|
15
|
+
content: zod_1.z.string(),
|
|
16
|
+
})
|
|
17
|
+
.strict();
|
|
18
|
+
let MessageDocument = class MessageDocument {
|
|
19
|
+
role;
|
|
20
|
+
content;
|
|
21
|
+
};
|
|
22
|
+
exports.MessageDocument = MessageDocument;
|
|
23
|
+
exports.MessageDocument = MessageDocument = __decorate([
|
|
24
|
+
(0, block_decorator_1.Document)({
|
|
25
|
+
schema: exports.MessageDocumentSchema,
|
|
26
|
+
uiConfig: __dirname + '/message-document.yaml',
|
|
27
|
+
})
|
|
28
|
+
], MessageDocument);
|
|
29
|
+
//# sourceMappingURL=message-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-document.js","sourceRoot":"","sources":["../../src/documents/message-document.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6BAAwB;AACxB,mEAAyD;AAE5C,QAAA,qBAAqB,GAAG,OAAC;KACnC,MAAM,CAAC;IACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC;KACD,MAAM,EAAE,CAAC;AAML,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,IAAI,CAAS;IACb,OAAO,CAAS;CACjB,CAAA;AAHY,0CAAe;0BAAf,eAAe;IAJ3B,IAAA,0BAAQ,EAAC;QACR,MAAM,EAAE,6BAAqB;QAC7B,QAAQ,EAAE,SAAS,GAAG,wBAAwB;KAC/C,CAAC;GACW,eAAe,CAG3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plain-document.d.ts","sourceRoot":"","sources":["../../src/documents/plain-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;kBAIrB,CAAC;AAEZ,qBAIa,aAAa;IACxB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PlainDocument = exports.PlainDocumentSchema = void 0;
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
const block_decorator_1 = require("../decorators/block.decorator");
|
|
12
|
+
exports.PlainDocumentSchema = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
text: zod_1.z.string(),
|
|
15
|
+
})
|
|
16
|
+
.strict();
|
|
17
|
+
let PlainDocument = class PlainDocument {
|
|
18
|
+
text;
|
|
19
|
+
};
|
|
20
|
+
exports.PlainDocument = PlainDocument;
|
|
21
|
+
exports.PlainDocument = PlainDocument = __decorate([
|
|
22
|
+
(0, block_decorator_1.Document)({
|
|
23
|
+
schema: exports.PlainDocumentSchema,
|
|
24
|
+
uiConfig: __dirname + '/plain-document.yaml',
|
|
25
|
+
})
|
|
26
|
+
], PlainDocument);
|
|
27
|
+
//# sourceMappingURL=plain-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plain-document.js","sourceRoot":"","sources":["../../src/documents/plain-document.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6BAAwB;AACxB,mEAAyD;AAE5C,QAAA,mBAAmB,GAAG,OAAC;KACjC,MAAM,CAAC;IACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACjB,CAAC;KACD,MAAM,EAAE,CAAC;AAML,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,IAAI,CAAS;CACd,CAAA;AAFY,sCAAa;wBAAb,aAAa;IAJzB,IAAA,0BAAQ,EAAC;QACR,MAAM,EAAE,2BAAmB;QAC3B,QAAQ,EAAE,SAAS,GAAG,sBAAsB;KAC7C,CAAC;GACW,aAAa,CAEzB"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
package/dist/entities/index.js
CHANGED
|
@@ -21,5 +21,4 @@ __exportStar(require("./workspace.entity.js"), exports);
|
|
|
21
21
|
__exportStar(require("./workspace-environment.entity.js"), exports);
|
|
22
22
|
__exportStar(require("./role.entity.js"), exports);
|
|
23
23
|
__exportStar(require("./user.entity.js"), exports);
|
|
24
|
-
__exportStar(require("./secret.entity.js"), exports);
|
|
25
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,uDAAqC;AACrC,kEAAgD;AAChD,wDAAsC;AACtC,oEAAkD;AAClD,mDAAiC;AACjC,mDAAiC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,uDAAqC;AACrC,kEAAgD;AAChD,wDAAsC;AACtC,oEAAkD;AAClD,mDAAiC;AACjC,mDAAiC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './enums/index.js';
|
|
|
6
6
|
export * from './interfaces/index.js';
|
|
7
7
|
export * from './utils/index.js';
|
|
8
8
|
export * from './constants/index.js';
|
|
9
|
+
export * from './documents/index.js';
|
|
9
10
|
export * from './dtos/index.js';
|
|
10
11
|
export * from './tokens.js';
|
|
11
12
|
export * from './schema/index.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./enums/index.js"), exports);
|
|
|
22
22
|
__exportStar(require("./interfaces/index.js"), exports);
|
|
23
23
|
__exportStar(require("./utils/index.js"), exports);
|
|
24
24
|
__exportStar(require("./constants/index.js"), exports);
|
|
25
|
+
__exportStar(require("./documents/index.js"), exports);
|
|
25
26
|
__exportStar(require("./dtos/index.js"), exports);
|
|
26
27
|
__exportStar(require("./tokens.js"), exports);
|
|
27
28
|
__exportStar(require("./schema/index.js"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,kDAAgC;AAChC,wDAAsC;AACtC,sDAAoC;AACpC,mDAAiC;AACjC,wDAAsC;AACtC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,8CAA4B;AAC5B,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,kDAAgC;AAChC,wDAAsC;AACtC,sDAAoC;AACpC,mDAAiC;AACjC,wDAAsC;AACtC,mDAAiC;AACjC,uDAAqC;AACrC,uDAAqC;AACrC,kDAAgC;AAChC,8CAA4B;AAC5B,oDAAkC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { BlockConfigType } from '@loopstack/contracts/types';
|
|
2
|
+
import { BlockConfigType } from '@loopstack/contracts/dist/types';
|
|
3
3
|
import { BlockOptions, BlockType, GuardMetadata, TransitionMetadata } from '../decorators';
|
|
4
4
|
type Constructor = Function & {
|
|
5
5
|
prototype: object;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-metadata.utils.d.ts","sourceRoot":"","sources":["../../src/utils/block-metadata.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"block-metadata.utils.d.ts","sourceRoot":"","sources":["../../src/utils/block-metadata.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAGL,YAAY,EACZ,SAAS,EAET,aAAa,EAMb,kBAAkB,EACnB,MAAM,eAAe,CAAC;AAIvB,KAAK,WAAW,GAAG,QAAQ,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAyBF,wBAAgB,cAAc,CAAC,CAAC,GAAG,eAAe,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,CAAC,GAAG,SAAS,CAI/F;AAKD,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,YAAY,GAAG,SAAS,CAGtF;AAKD,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,EAAE,CAIpE;AAKD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,EAAE,CAIxE;AAKD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,EAAE,CAIxE;AAKD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,CAAC,CAAC,OAAO,GAAG,SAAS,CAItF;AAKD,wBAAgB,gBAAgB,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAGzF;AAKD,wBAAgB,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAGrF;AAKD,wBAAgB,gBAAgB,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAGzF;AAOD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,kBAAkB,EAAE,CAGxF;AAKD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,aAAa,EAAE,CAG9E;AAKD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAO5F;AAKD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAG5F;AAMD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,CAAC,CAAC,OAAO,GAAG,SAAS,CAErF;AAKD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,EAAE,CAI/E"}
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "@loopstack/common",
|
|
3
3
|
"displayName": "Loopstack Common Module",
|
|
4
4
|
"description": "A collection of utils and dtos shared between nestjs modules",
|
|
5
|
-
"version": "0.
|
|
6
|
-
"license": "
|
|
5
|
+
"version": "0.26.0",
|
|
6
|
+
"license": "MIT",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Jakob Klippel",
|
|
9
9
|
"url": "https://www.linkedin.com/in/jakob-klippel/"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"watch": "nest build --watch"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@loopstack/contracts": "^0.25.
|
|
27
|
+
"@loopstack/contracts": "^0.25.2",
|
|
28
28
|
"class-transformer": "^0.5.1",
|
|
29
29
|
"fast-json-stable-stringify": "^2.1.0",
|
|
30
30
|
"reflect-metadata": "^0.2.2",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WorkspaceEntity } from './workspace.entity';
|
|
2
|
-
export declare class SecretEntity {
|
|
3
|
-
id: string;
|
|
4
|
-
key: string;
|
|
5
|
-
value: string;
|
|
6
|
-
workspace: WorkspaceEntity;
|
|
7
|
-
workspaceId: string;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
updatedAt: Date;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=secret.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secret.entity.d.ts","sourceRoot":"","sources":["../../src/entities/secret.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAEa,YAAY;IAEvB,EAAE,EAAG,MAAM,CAAC;IAGZ,GAAG,EAAG,MAAM,CAAC;IAGb,KAAK,EAAG,MAAM,CAAC;IAIf,SAAS,EAAG,eAAe,CAAC;IAG5B,WAAW,EAAG,MAAM,CAAC;IAGrB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SecretEntity = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const workspace_entity_1 = require("./workspace.entity");
|
|
15
|
-
let SecretEntity = class SecretEntity {
|
|
16
|
-
id;
|
|
17
|
-
key;
|
|
18
|
-
value;
|
|
19
|
-
workspace;
|
|
20
|
-
workspaceId;
|
|
21
|
-
createdAt;
|
|
22
|
-
updatedAt;
|
|
23
|
-
};
|
|
24
|
-
exports.SecretEntity = SecretEntity;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], SecretEntity.prototype, "id", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], SecretEntity.prototype, "key", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], SecretEntity.prototype, "value", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.ManyToOne)(() => workspace_entity_1.WorkspaceEntity, { onDelete: 'CASCADE' }),
|
|
39
|
-
(0, typeorm_1.JoinColumn)({ name: 'workspace_id' }),
|
|
40
|
-
__metadata("design:type", workspace_entity_1.WorkspaceEntity)
|
|
41
|
-
], SecretEntity.prototype, "workspace", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ name: 'workspace_id' }),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], SecretEntity.prototype, "workspaceId", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
48
|
-
__metadata("design:type", Date)
|
|
49
|
-
], SecretEntity.prototype, "createdAt", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
|
|
52
|
-
__metadata("design:type", Date)
|
|
53
|
-
], SecretEntity.prototype, "updatedAt", void 0);
|
|
54
|
-
exports.SecretEntity = SecretEntity = __decorate([
|
|
55
|
-
(0, typeorm_1.Entity)({ name: 'core_secret' }),
|
|
56
|
-
(0, typeorm_1.Index)(['workspaceId', 'key'], { unique: true })
|
|
57
|
-
], SecretEntity);
|
|
58
|
-
//# sourceMappingURL=secret.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secret.entity.js","sourceRoot":"","sources":["../../src/entities/secret.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AACjB,yDAAqD;AAI9C,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEvB,EAAE,CAAU;IAGZ,GAAG,CAAU;IAGb,KAAK,CAAU;IAIf,SAAS,CAAmB;IAG5B,WAAW,CAAU;IAGrB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAtBY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;wCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;yCACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACb;AAIf;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAe,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACzD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BACzB,kCAAe;+CAAC;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;iDACZ;AAGrB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;+CAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;+CAAC;uBArBN,YAAY;IAFxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;IAC/B,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACnC,YAAY,CAsBxB"}
|