biz-slide-core 1.2.84 → 1.2.86

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. package/entity/analytic.entity.d.ts +50 -0
  2. package/entity/analytic.entity.d.ts.map +1 -0
  3. package/entity/common.d.ts +19 -0
  4. package/entity/common.d.ts.map +1 -0
  5. package/entity/config.enity.d.ts +33 -0
  6. package/entity/config.enity.d.ts.map +1 -0
  7. package/entity/cron.entity.d.ts +33 -0
  8. package/entity/cron.entity.d.ts.map +1 -0
  9. package/entity/customer.entity.d.ts +38 -0
  10. package/entity/customer.entity.d.ts.map +1 -0
  11. package/entity/image.entity.d.ts +44 -0
  12. package/entity/image.entity.d.ts.map +1 -0
  13. package/entity/index.d.ts +19 -0
  14. package/entity/index.d.ts.map +1 -0
  15. package/entity/logs.entity.d.ts +34 -0
  16. package/entity/logs.entity.d.ts.map +1 -0
  17. package/entity/png-svg.entity.d.ts +47 -0
  18. package/entity/png-svg.entity.d.ts.map +1 -0
  19. package/entity/ppt-email-queue.entity.d.ts +34 -0
  20. package/entity/ppt-email-queue.entity.d.ts.map +1 -0
  21. package/entity/ppt-event.entity.d.ts +37 -0
  22. package/entity/ppt-event.entity.d.ts.map +1 -0
  23. package/entity/ppt-slide.entity.d.ts +44 -0
  24. package/entity/ppt-slide.entity.d.ts.map +1 -0
  25. package/entity/ppt.entity.d.ts +62 -0
  26. package/entity/ppt.entity.d.ts.map +1 -0
  27. package/entity/ppt.entity.js +2 -1
  28. package/entity/slide-layout.entity.d.ts +45 -0
  29. package/entity/slide-layout.entity.d.ts.map +1 -0
  30. package/entity/slide.entity.d.ts +51 -0
  31. package/entity/slide.entity.d.ts.map +1 -0
  32. package/entity/socket.entity.d.ts +35 -0
  33. package/entity/socket.entity.d.ts.map +1 -0
  34. package/entity/template-type.entity.d.ts +49 -0
  35. package/entity/template-type.entity.d.ts.map +1 -0
  36. package/entity/template.entity.d.ts +40 -0
  37. package/entity/template.entity.d.ts.map +1 -0
  38. package/entity/training-queue.entity.d.ts +39 -0
  39. package/entity/training-queue.entity.d.ts.map +1 -0
  40. package/entity/user.entity.d.ts +38 -0
  41. package/entity/user.entity.d.ts.map +1 -0
  42. package/index.d.ts +6 -0
  43. package/index.d.ts.map +1 -0
  44. package/middleware/authentication.d.ts +8 -0
  45. package/middleware/authentication.d.ts.map +1 -0
  46. package/middleware/authentication.js +1 -0
  47. package/middleware/index.d.ts +4 -0
  48. package/middleware/index.d.ts.map +1 -0
  49. package/middleware/role.d.ts +6 -0
  50. package/middleware/role.d.ts.map +1 -0
  51. package/middleware/schemaValidate.d.ts +5 -0
  52. package/middleware/schemaValidate.d.ts.map +1 -0
  53. package/package.json +2 -1
  54. package/resHandler/errorHandler.d.ts +17 -0
  55. package/resHandler/errorHandler.d.ts.map +1 -0
  56. package/resHandler/index.d.ts +3 -0
  57. package/resHandler/index.d.ts.map +1 -0
  58. package/resHandler/successHandler.d.ts +3 -0
  59. package/resHandler/successHandler.d.ts.map +1 -0
  60. package/types/IController.d.ts +6 -0
  61. package/types/IController.d.ts.map +1 -0
  62. package/types/IRequest.d.ts +8 -0
  63. package/types/IRequest.d.ts.map +1 -0
  64. package/types/index.d.ts +11 -0
  65. package/types/index.d.ts.map +1 -0
  66. package/utilities/callWithRetries.d.ts +2 -0
  67. package/utilities/callWithRetries.d.ts.map +1 -0
  68. package/utilities/createFolder.d.ts +2 -0
  69. package/utilities/createFolder.d.ts.map +1 -0
  70. package/utilities/encryptionUtils.d.ts +4 -0
  71. package/utilities/encryptionUtils.d.ts.map +1 -0
  72. package/utilities/hasAbusiveWords.d.ts +4 -0
  73. package/utilities/hasAbusiveWords.d.ts.map +1 -0
  74. package/utilities/index.d.ts +6 -0
  75. package/utilities/index.d.ts.map +1 -0
  76. package/utilities/pngSvgCategories.d.ts +168 -0
  77. package/utilities/pngSvgCategories.d.ts.map +1 -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/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export * from "./entity";
2
+ export * from "./middleware";
3
+ export * from "./resHandler";
4
+ export * from "./types";
5
+ export * from "./utilities";
6
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map 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"}
@@ -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,4 @@
1
+ export * from "./authentication";
2
+ export * from "./role";
3
+ export * from "./schemaValidate";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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,6 @@
1
+ export declare const ROLES: {
2
+ User: string;
3
+ Admin: string;
4
+ SuperAdmin: string;
5
+ };
6
+ //# sourceMappingURL=role.d.ts.map
@@ -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"}
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.84",
3
+ "version": "1.2.86",
4
4
  "description": "",
5
+ "main": "dist/index.js",
5
6
  "scripts": {
6
7
  "build": "tsc",
7
8
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -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,3 @@
1
+ export * from "./errorHandler";
2
+ export * from "./successHandler";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ import { Request, Response, NextFunction } from 'express';
2
+ export declare const successHandler: (data: any, req: Request, res: Response, next: NextFunction) => void;
3
+ //# sourceMappingURL=successHandler.d.ts.map
@@ -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,6 @@
1
+ import { Response } from "express";
2
+ import { IRequest } from "./IRequest";
3
+ export interface IController {
4
+ (req: IRequest, res: Response): void;
5
+ }
6
+ //# sourceMappingURL=IController.d.ts.map
@@ -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,8 @@
1
+ import { Request } from "express";
2
+ export interface IRequest extends Request {
3
+ user?: any;
4
+ token?: any;
5
+ role?: any;
6
+ file?: any;
7
+ }
8
+ //# sourceMappingURL=IRequest.d.ts.map
@@ -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,2 @@
1
+ export declare function callWithRetries(retryCount: number, failedMessage: string, functionRef: Function, ...args: any): Promise<any>;
2
+ //# sourceMappingURL=callWithRetries.d.ts.map
@@ -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,2 @@
1
+ export declare function createFolder(folderPath: string): Promise<void>;
2
+ //# sourceMappingURL=createFolder.d.ts.map
@@ -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,4 @@
1
+ declare const signUid: (value: object) => string;
2
+ declare const verifyUid: (token: string) => Promise<any>;
3
+ export { signUid, verifyUid };
4
+ //# sourceMappingURL=encryptionUtils.d.ts.map
@@ -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,4 @@
1
+ export declare function hasExactMatch(str: string, word: string): boolean;
2
+ export declare function hasSpecialCharacter(str: string): boolean;
3
+ export declare function hasAbusiveWords(str: string, words: string[]): boolean;
4
+ //# sourceMappingURL=hasAbusiveWords.d.ts.map
@@ -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,6 @@
1
+ export * from "./callWithRetries";
2
+ export * from "./createFolder";
3
+ export * from "./encryptionUtils";
4
+ export * from "./pngSvgCategories";
5
+ export * from "./hasAbusiveWords";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}