biz-slide-core 1.2.83 → 1.2.85
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/entity/analytic.entity.d.ts +50 -0
- package/dist/entity/analytic.entity.d.ts.map +1 -0
- package/dist/entity/common.d.ts +19 -0
- package/dist/entity/common.d.ts.map +1 -0
- package/dist/entity/config.enity.d.ts +33 -0
- package/dist/entity/config.enity.d.ts.map +1 -0
- package/dist/entity/cron.entity.d.ts +33 -0
- package/dist/entity/cron.entity.d.ts.map +1 -0
- package/dist/entity/customer.entity.d.ts +38 -0
- package/dist/entity/customer.entity.d.ts.map +1 -0
- package/dist/entity/image.entity.d.ts +44 -0
- package/dist/entity/image.entity.d.ts.map +1 -0
- package/dist/entity/index.d.ts +19 -0
- package/dist/entity/index.d.ts.map +1 -0
- package/dist/entity/logs.entity.d.ts +34 -0
- package/dist/entity/logs.entity.d.ts.map +1 -0
- package/dist/entity/png-svg.entity.d.ts +47 -0
- package/dist/entity/png-svg.entity.d.ts.map +1 -0
- package/dist/entity/ppt-email-queue.entity.d.ts +34 -0
- package/dist/entity/ppt-email-queue.entity.d.ts.map +1 -0
- package/dist/entity/ppt-event.entity.d.ts +37 -0
- package/dist/entity/ppt-event.entity.d.ts.map +1 -0
- package/dist/entity/ppt-slide.entity.d.ts +44 -0
- package/dist/entity/ppt-slide.entity.d.ts.map +1 -0
- package/dist/entity/ppt.entity.d.ts +62 -0
- package/dist/entity/ppt.entity.d.ts.map +1 -0
- package/{entity → dist/entity}/ppt.entity.js +2 -1
- package/dist/entity/slide-layout.entity.d.ts +45 -0
- package/dist/entity/slide-layout.entity.d.ts.map +1 -0
- package/dist/entity/slide.entity.d.ts +51 -0
- package/dist/entity/slide.entity.d.ts.map +1 -0
- package/dist/entity/socket.entity.d.ts +35 -0
- package/dist/entity/socket.entity.d.ts.map +1 -0
- package/dist/entity/template-type.entity.d.ts +49 -0
- package/dist/entity/template-type.entity.d.ts.map +1 -0
- package/dist/entity/template.entity.d.ts +40 -0
- package/dist/entity/template.entity.d.ts.map +1 -0
- package/dist/entity/training-queue.entity.d.ts +39 -0
- package/dist/entity/training-queue.entity.d.ts.map +1 -0
- package/dist/entity/user.entity.d.ts +38 -0
- package/dist/entity/user.entity.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/middleware/authentication.d.ts +8 -0
- package/dist/middleware/authentication.d.ts.map +1 -0
- package/{middleware → dist/middleware}/authentication.js +2 -1
- package/dist/middleware/index.d.ts +4 -0
- package/dist/middleware/index.d.ts.map +1 -0
- package/dist/middleware/role.d.ts +6 -0
- package/dist/middleware/role.d.ts.map +1 -0
- package/dist/middleware/schemaValidate.d.ts +5 -0
- package/dist/middleware/schemaValidate.d.ts.map +1 -0
- package/dist/resHandler/errorHandler.d.ts +17 -0
- package/dist/resHandler/errorHandler.d.ts.map +1 -0
- package/dist/resHandler/index.d.ts +3 -0
- package/dist/resHandler/index.d.ts.map +1 -0
- package/dist/resHandler/successHandler.d.ts +3 -0
- package/dist/resHandler/successHandler.d.ts.map +1 -0
- package/dist/types/IController.d.ts +6 -0
- package/dist/types/IController.d.ts.map +1 -0
- package/dist/types/IRequest.d.ts +8 -0
- package/dist/types/IRequest.d.ts.map +1 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utilities/callWithRetries.d.ts +2 -0
- package/dist/utilities/callWithRetries.d.ts.map +1 -0
- package/dist/utilities/createFolder.d.ts +2 -0
- package/dist/utilities/createFolder.d.ts.map +1 -0
- package/dist/utilities/encryptionUtils.d.ts +4 -0
- package/dist/utilities/encryptionUtils.d.ts.map +1 -0
- package/dist/utilities/hasAbusiveWords.d.ts +4 -0
- package/dist/utilities/hasAbusiveWords.d.ts.map +1 -0
- package/dist/utilities/index.d.ts +6 -0
- package/dist/utilities/index.d.ts.map +1 -0
- package/dist/utilities/pngSvgCategories.d.ts +168 -0
- package/dist/utilities/pngSvgCategories.d.ts.map +1 -0
- package/package.json +2 -1
- package/src/entity/analytic.entity.ts +62 -0
- package/src/entity/common.ts +19 -0
- package/src/entity/config.enity.ts +18 -0
- package/src/entity/cron.entity.ts +22 -0
- package/src/entity/customer.entity.ts +40 -0
- package/src/entity/image.entity.ts +32 -0
- package/src/entity/index.ts +20 -0
- package/src/entity/logs.entity.ts +20 -0
- package/src/entity/png-svg.entity.ts +44 -0
- package/src/entity/ppt-email-queue.entity.ts +22 -0
- package/src/entity/ppt-event.entity.ts +25 -0
- package/src/entity/ppt-slide.entity.ts +40 -0
- package/src/entity/ppt.entity.ts +79 -0
- package/src/entity/slide-layout.entity.ts +56 -0
- package/src/entity/slide.entity.ts +61 -0
- package/src/entity/socket.entity.ts +20 -0
- package/src/entity/template-type.entity.ts +87 -0
- package/src/entity/template.entity.ts +38 -0
- package/src/entity/training-queue.entity.ts +26 -0
- package/src/entity/user.entity.ts +24 -0
- package/src/index.ts +6 -0
- package/src/middleware/authentication.ts +150 -0
- package/src/middleware/index.ts +3 -0
- package/src/middleware/role.ts +5 -0
- package/src/middleware/schemaValidate.ts +20 -0
- package/src/resHandler/errorHandler.ts +66 -0
- package/src/resHandler/index.ts +2 -0
- package/src/resHandler/successHandler.ts +11 -0
- package/src/types/IController.ts +6 -0
- package/src/types/IRequest.ts +8 -0
- package/src/types/index.ts +11 -0
- package/src/utilities/callWithRetries.ts +9 -0
- package/src/utilities/createFolder.ts +11 -0
- package/src/utilities/encryptionUtils.ts +26 -0
- package/src/utilities/hasAbusiveWords.ts +33 -0
- package/src/utilities/index.ts +5 -0
- package/src/utilities/pngSvgCategories.ts +167 -0
- package/tsconfig.json +11 -0
- /package/{entity → dist/entity}/analytic.entity.js +0 -0
- /package/{entity → dist/entity}/common.js +0 -0
- /package/{entity → dist/entity}/config.enity.js +0 -0
- /package/{entity → dist/entity}/cron.entity.js +0 -0
- /package/{entity → dist/entity}/customer.entity.js +0 -0
- /package/{entity → dist/entity}/image.entity.js +0 -0
- /package/{entity → dist/entity}/index.js +0 -0
- /package/{entity → dist/entity}/logs.entity.js +0 -0
- /package/{entity → dist/entity}/png-svg.entity.js +0 -0
- /package/{entity → dist/entity}/ppt-email-queue.entity.js +0 -0
- /package/{entity → dist/entity}/ppt-event.entity.js +0 -0
- /package/{entity → dist/entity}/ppt-slide.entity.js +0 -0
- /package/{entity → dist/entity}/slide-layout.entity.js +0 -0
- /package/{entity → dist/entity}/slide.entity.js +0 -0
- /package/{entity → dist/entity}/socket.entity.js +0 -0
- /package/{entity → dist/entity}/template-type.entity.js +0 -0
- /package/{entity → dist/entity}/template.entity.js +0 -0
- /package/{entity → dist/entity}/training-queue.entity.js +0 -0
- /package/{entity → dist/entity}/user.entity.js +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{middleware → dist/middleware}/index.js +0 -0
- /package/{middleware → dist/middleware}/role.js +0 -0
- /package/{middleware → dist/middleware}/schemaValidate.js +0 -0
- /package/{resHandler → dist/resHandler}/errorHandler.js +0 -0
- /package/{resHandler → dist/resHandler}/index.js +0 -0
- /package/{resHandler → dist/resHandler}/successHandler.js +0 -0
- /package/{types → dist/types}/IController.js +0 -0
- /package/{types → dist/types}/IRequest.js +0 -0
- /package/{types → dist/types}/index.js +0 -0
- /package/{utilities → dist/utilities}/callWithRetries.js +0 -0
- /package/{utilities → dist/utilities}/createFolder.js +0 -0
- /package/{utilities → dist/utilities}/encryptionUtils.js +0 -0
- /package/{utilities → dist/utilities}/hasAbusiveWords.js +0 -0
- /package/{utilities → dist/utilities}/index.js +0 -0
- /package/{utilities → dist/utilities}/pngSvgCategories.js +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"slide-layout.entity.d.ts","sourceRoot":"","sources":["../../src/entity/slide-layout.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,aAAa,EAAkB,MAAM,UAAU,CAAC;AAGzD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,aAAa,CAAC;IACrC,kBAAkB,EAAE,aAAa,CAAC;IAClC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAqCD,eAAO,MAAM,gBAAgB;;eAA+D,CAAC"}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
6
|
+
/// <reference types="mongoose/types/document" />
|
7
|
+
/// <reference types="mongoose/types/error" />
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
12
|
+
/// <reference types="mongoose/types/models" />
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
16
|
+
/// <reference types="mongoose/types/query" />
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
19
|
+
/// <reference types="mongoose/types/session" />
|
20
|
+
/// <reference types="mongoose/types/types" />
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
25
|
+
import { Types } from "mongoose";
|
26
|
+
interface layer {
|
27
|
+
metaType: String;
|
28
|
+
optionsMeta: String;
|
29
|
+
chatMeta: string;
|
30
|
+
}
|
31
|
+
export interface ISlideSchema {
|
32
|
+
name: string;
|
33
|
+
postfix: string;
|
34
|
+
rules: string;
|
35
|
+
slideLayoutId: Types.ObjectId;
|
36
|
+
templateId: Types.ObjectId;
|
37
|
+
layers: layer[];
|
38
|
+
createdAt: Date;
|
39
|
+
updatedAt: Date;
|
40
|
+
deletedAt: Date;
|
41
|
+
isDelete: boolean;
|
42
|
+
published: boolean;
|
43
|
+
stage: string;
|
44
|
+
isDefault: boolean;
|
45
|
+
category: string;
|
46
|
+
}
|
47
|
+
export declare const SlideModel: import("mongoose").Model<ISlideSchema, {}, {}, {}, import("mongoose").Document<unknown, {}, ISlideSchema> & Omit<ISlideSchema & {
|
48
|
+
_id: Types.ObjectId;
|
49
|
+
}, never>, any>;
|
50
|
+
export {};
|
51
|
+
//# sourceMappingURL=slide.entity.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"slide.entity.d.ts","sourceRoot":"","sources":["../../src/entity/slide.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,UAAU,KAAK;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAWD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AA4BD,eAAO,MAAM,UAAU;;eAA4C,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
6
|
+
/// <reference types="mongoose/types/document" />
|
7
|
+
/// <reference types="mongoose/types/error" />
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
12
|
+
/// <reference types="mongoose/types/models" />
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
16
|
+
/// <reference types="mongoose/types/query" />
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
19
|
+
/// <reference types="mongoose/types/session" />
|
20
|
+
/// <reference types="mongoose/types/types" />
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
25
|
+
import { Types } from "mongoose";
|
26
|
+
export interface ISocketSchema {
|
27
|
+
userId: string;
|
28
|
+
socketIds: Array<string>;
|
29
|
+
createdAt?: Date;
|
30
|
+
updatedAt?: Date;
|
31
|
+
}
|
32
|
+
export declare const SocketModel: import("mongoose").Model<ISocketSchema, {}, {}, {}, import("mongoose").Document<unknown, {}, ISocketSchema> & Omit<ISocketSchema & {
|
33
|
+
_id: Types.ObjectId;
|
34
|
+
}, never>, any>;
|
35
|
+
//# sourceMappingURL=socket.entity.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"socket.entity.d.ts","sourceRoot":"","sources":["../../src/entity/socket.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAYD,eAAO,MAAM,WAAW;;eAA+C,CAAC"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
6
|
+
/// <reference types="mongoose/types/document" />
|
7
|
+
/// <reference types="mongoose/types/error" />
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
12
|
+
/// <reference types="mongoose/types/models" />
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
16
|
+
/// <reference types="mongoose/types/query" />
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
19
|
+
/// <reference types="mongoose/types/session" />
|
20
|
+
/// <reference types="mongoose/types/types" />
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
24
|
+
/// <reference types="mongoose" />
|
25
|
+
/// <reference types="mongoose/types/inferschematype" />
|
26
|
+
import { IVariantsSystemLayout, ISystemLayout, IMessageSchema } from "./common";
|
27
|
+
export interface ITemplateLayout {
|
28
|
+
title: string;
|
29
|
+
layoutType: string;
|
30
|
+
}
|
31
|
+
export interface ITemplateTypeSchema {
|
32
|
+
name: string;
|
33
|
+
layouts: Array<ITemplateLayout>;
|
34
|
+
createdAt: Date;
|
35
|
+
updatedAt: Date;
|
36
|
+
deletedAt: Date;
|
37
|
+
suggestionPrompts: Array<string>;
|
38
|
+
topicPrompt: IVariantsSystemLayout;
|
39
|
+
layoutPrompt: IVariantsSystemLayout;
|
40
|
+
insertTopicPrompt: ISystemLayout;
|
41
|
+
slidePrompt: IMessageSchema;
|
42
|
+
defaultLayout: string;
|
43
|
+
published: boolean;
|
44
|
+
colorPalletes: Array<Array<string>>;
|
45
|
+
}
|
46
|
+
export declare const TemplateTypeModel: import("mongoose").Model<ITemplateTypeSchema, {}, {}, {}, import("mongoose").Document<unknown, {}, ITemplateTypeSchema> & Omit<ITemplateTypeSchema & {
|
47
|
+
_id: import("mongoose").Types.ObjectId;
|
48
|
+
}, never>, any>;
|
49
|
+
//# sourceMappingURL=template-type.entity.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"template-type.entity.d.ts","sourceRoot":"","sources":["../../src/entity/template-type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEhF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAChC,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,WAAW,EAAE,qBAAqB,CAAC;IACnC,YAAY,EAAE,qBAAqB,CAAC;IACpC,iBAAiB,EAAE,aAAa,CAAC;IACjC,WAAW,EAAE,cAAc,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;CACrC;AA+DD,eAAO,MAAM,iBAAiB;;eAAkE,CAAC"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
6
|
+
/// <reference types="mongoose/types/document" />
|
7
|
+
/// <reference types="mongoose/types/error" />
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
12
|
+
/// <reference types="mongoose/types/models" />
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
16
|
+
/// <reference types="mongoose/types/query" />
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
19
|
+
/// <reference types="mongoose/types/session" />
|
20
|
+
/// <reference types="mongoose/types/types" />
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
25
|
+
import { Types } from "mongoose";
|
26
|
+
export interface ITemplateSchema {
|
27
|
+
name: string;
|
28
|
+
templateTypeId: Types.ObjectId;
|
29
|
+
createdAt: Date;
|
30
|
+
updatedAt: Date;
|
31
|
+
deletedAt: Date;
|
32
|
+
defaultColorPallete: Array<string>;
|
33
|
+
colorPalletes: Array<Array<string>>;
|
34
|
+
staticImageDir: string;
|
35
|
+
published: boolean;
|
36
|
+
}
|
37
|
+
export declare const TemplateModel: import("mongoose").Model<ITemplateSchema, {}, {}, {}, import("mongoose").Document<unknown, {}, ITemplateSchema> & Omit<ITemplateSchema & {
|
38
|
+
_id: Types.ObjectId;
|
39
|
+
}, never>, any>;
|
40
|
+
//# sourceMappingURL=template.entity.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"template.entity.d.ts","sourceRoot":"","sources":["../../src/entity/template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,mBAAmB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;CACpB;AAyBD,eAAO,MAAM,aAAa;;eAAqD,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
6
|
+
/// <reference types="mongoose/types/document" />
|
7
|
+
/// <reference types="mongoose/types/error" />
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
12
|
+
/// <reference types="mongoose/types/models" />
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
16
|
+
/// <reference types="mongoose/types/query" />
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
19
|
+
/// <reference types="mongoose/types/session" />
|
20
|
+
/// <reference types="mongoose/types/types" />
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
25
|
+
import { Types } from "mongoose";
|
26
|
+
interface ITrainingQueue {
|
27
|
+
filename: string;
|
28
|
+
isCompleted: boolean;
|
29
|
+
isLocked: boolean;
|
30
|
+
userId: Types.ObjectId;
|
31
|
+
createdAt: Date;
|
32
|
+
updatedAt: Date;
|
33
|
+
deletedAt: Date;
|
34
|
+
}
|
35
|
+
export declare const TrainingQueueModel: import("mongoose").Model<ITrainingQueue, {}, {}, {}, import("mongoose").Document<unknown, {}, ITrainingQueue> & Omit<ITrainingQueue & {
|
36
|
+
_id: Types.ObjectId;
|
37
|
+
}, never>, any>;
|
38
|
+
export {};
|
39
|
+
//# sourceMappingURL=training-queue.entity.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"training-queue.entity.d.ts","sourceRoot":"","sources":["../../src/entity/training-queue.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,UAAU,cAAc;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAA;CAChB;AAeD,eAAO,MAAM,kBAAkB;;eAA+D,CAAC"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
6
|
+
/// <reference types="mongoose/types/document" />
|
7
|
+
/// <reference types="mongoose/types/error" />
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
12
|
+
/// <reference types="mongoose/types/models" />
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
16
|
+
/// <reference types="mongoose/types/query" />
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
19
|
+
/// <reference types="mongoose/types/session" />
|
20
|
+
/// <reference types="mongoose/types/types" />
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
24
|
+
/// <reference types="mongoose" />
|
25
|
+
/// <reference types="mongoose/types/inferschematype" />
|
26
|
+
interface IUser {
|
27
|
+
email: string | null;
|
28
|
+
password: string;
|
29
|
+
role: string;
|
30
|
+
createdAt: Date;
|
31
|
+
updatedAt: Date;
|
32
|
+
deletedAt: Date;
|
33
|
+
}
|
34
|
+
export declare const UserModel: import("mongoose").Model<IUser, {}, {}, {}, import("mongoose").Document<unknown, {}, IUser> & Omit<IUser & {
|
35
|
+
_id: import("mongoose").Types.ObjectId;
|
36
|
+
}, never>, any>;
|
37
|
+
export {};
|
38
|
+
//# sourceMappingURL=user.entity.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entity/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAA;CAChB;AAcD,eAAO,MAAM,SAAS;;eAAmC,CAAC"}
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AAExB,cAAc,aAAa,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Response, NextFunction } from "express";
|
2
|
+
import { IRequest } from "../types";
|
3
|
+
declare const authorize: (roles: string[]) => (req: IRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
4
|
+
declare const authorizeWithSlideApp: () => (req: IRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
5
|
+
declare const nonAuthorizeWithSlideApp: () => (req: IRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
6
|
+
declare const authorizeWithGpt: () => (req: IRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
7
|
+
export { authorize, authorizeWithSlideApp, nonAuthorizeWithSlideApp, authorizeWithGpt };
|
8
|
+
//# sourceMappingURL=authentication.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../src/middleware/authentication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIpC,QAAA,MAAM,SAAS,UAAW,MAAM,EAAE,WACJ,QAAQ,OAAO,QAAQ,QAAQ,YAAY,4DA+BxE,CAAA;AAeD,QAAA,MAAM,qBAAqB,cACG,QAAQ,OAAO,QAAQ,QAAQ,YAAY,4DAiCxE,CAAA;AAED,QAAA,MAAM,wBAAwB,cACA,QAAQ,OAAO,QAAQ,QAAQ,YAAY,4DAkCxE,CAAA;AAGD,QAAA,MAAM,gBAAgB,cACQ,QAAQ,OAAO,QAAQ,QAAQ,YAAY,4DAmBxE,CAAA;AAED,OAAO,EAAC,SAAS,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,gBAAgB,EAAC,CAAC"}
|
@@ -111,7 +111,7 @@ var createUser = function (emailId, userId, appName) { return __awaiter(void 0,
|
|
111
111
|
customer = _a.sent();
|
112
112
|
if (!!customer) return [3 /*break*/, 3];
|
113
113
|
newCustomer = new entity_1.CustomerModel({
|
114
|
-
appName: appName,
|
114
|
+
appName: appName || "default",
|
115
115
|
emailId: emailId,
|
116
116
|
emailTemplateStatus: {},
|
117
117
|
userId: userId
|
@@ -216,6 +216,7 @@ var nonAuthorizeWithSlideApp = function () {
|
|
216
216
|
};
|
217
217
|
};
|
218
218
|
exports.nonAuthorizeWithSlideApp = nonAuthorizeWithSlideApp;
|
219
|
+
// TODO: Delete It
|
219
220
|
var authorizeWithGpt = function () {
|
220
221
|
return function (req, res, next) {
|
221
222
|
return __awaiter(this, void 0, void 0, function () {
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/middleware/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../src/middleware/role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;CAIjB,CAAA"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { NextFunction, Response } from "express";
|
2
|
+
import Joi from 'joi';
|
3
|
+
import { IRequest } from "../types";
|
4
|
+
export declare const validateSchema: (schema: Joi.ObjectSchema<any>) => (req: IRequest, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
5
|
+
//# sourceMappingURL=schemaValidate.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schemaValidate.d.ts","sourceRoot":"","sources":["../../src/middleware/schemaValidate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,eAAO,MAAM,cAAc,WAAY,IAAI,YAAY,CAAC,GAAG,CAAC,WAC9B,QAAQ,OAAO,QAAQ,QAAQ,YAAY,4DAWxE,CAAA"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Request, Response, NextFunction } from 'express';
|
2
|
+
export declare class BadRequestError extends Error {
|
3
|
+
constructor(message: string);
|
4
|
+
}
|
5
|
+
export declare class NotFoundRequestError extends Error {
|
6
|
+
constructor(message: string);
|
7
|
+
}
|
8
|
+
export declare class CustomRequestError {
|
9
|
+
name: string;
|
10
|
+
message: {
|
11
|
+
title: string;
|
12
|
+
description: string;
|
13
|
+
};
|
14
|
+
constructor(title: string, description: string);
|
15
|
+
}
|
16
|
+
export declare const errorHandler: (err: Error, req: Request, res: Response, next: NextFunction) => void;
|
17
|
+
//# sourceMappingURL=errorHandler.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"errorHandler.d.ts","sourceRoot":"","sources":["../../src/resHandler/errorHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE1D,qBAAa,eAAgB,SAAQ,KAAK;gBAC5B,OAAO,EAAE,MAAM;CAK5B;AAED,qBAAa,oBAAqB,SAAQ,KAAK;gBACjC,OAAO,EAAE,MAAM;CAK5B;AAED,qBAAa,kBAAkB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAA;KACpB,CAAC;gBAEU,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;CAO/C;AAKD,eAAO,MAAM,YAAY,QAClB,KAAK,OACL,OAAO,OACP,QAAQ,QACP,YAAY,SAwBnB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resHandler/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"successHandler.d.ts","sourceRoot":"","sources":["../../src/resHandler/successHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG1D,eAAO,MAAM,cAAc,SACnB,GAAG,OACJ,OAAO,OACP,QAAQ,QACP,YAAY,SAGnB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IController.d.ts","sourceRoot":"","sources":["../../src/types/IController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,GAAG,IAAI,CAAC;CACtC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IRequest.d.ts","sourceRoot":"","sources":["../../src/types/IRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,QAAS,SAAQ,OAAO;IACrC,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,IAAI,CAAC,EAAC,GAAG,CAAA;CACZ"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export * from "./IController";
|
2
|
+
export * from "./IRequest";
|
3
|
+
export declare enum QUEUES {
|
4
|
+
IMAGE_MODEL_BULK = "image-model-bulk",// Will be used for bulk training model
|
5
|
+
IMAGE_MODEL_SINGLE = "image-model-single",// Will be used for single image training
|
6
|
+
NOTIFICATION = "notification",// Notify to user
|
7
|
+
THUMBNAIL = "thumbnail",// To create thubmnail
|
8
|
+
PPT = "ppt",// to call PPT Service
|
9
|
+
PNG_SVG = "png-svg"
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAE3B,oBAAY,MAAM;IAChB,gBAAgB,qBAAqB,CAAE,uCAAuC;IAC9E,kBAAkB,uBAAuB,CAAE,yCAAyC;IACpF,YAAY,iBAAiB,CAAE,iBAAiB;IAChD,SAAS,cAAc,CAAE,sBAAsB;IAC/C,GAAG,QAAQ,CAAE,sBAAsB;IACnC,OAAO,YAAY;CACpB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"callWithRetries.d.ts","sourceRoot":"","sources":["../../src/utilities/callWithRetries.ts"],"names":[],"mappings":"AAAA,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAQlI"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createFolder.d.ts","sourceRoot":"","sources":["../../src/utilities/createFolder.ts"],"names":[],"mappings":"AAEA,wBAAsB,YAAY,CAAC,UAAU,EAAE,MAAM,iBAQpD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"encryptionUtils.d.ts","sourceRoot":"","sources":["../../src/utilities/encryptionUtils.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,UAAW,MAAM,WAI7B,CAAC;AAEF,QAAA,MAAM,SAAS,UAAiB,MAAM,KAAG,QAAQ,GAAG,CAehD,CAAC;AAEL,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hasAbusiveWords.d.ts","sourceRoot":"","sources":["../../src/utilities/hasAbusiveWords.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,WAMtD;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,WAM9C;AAGD,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAe3D"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|