biz-slide-core 1.2.85 → 1.2.87

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.
Files changed (67) hide show
  1. package/dist/entity/analytic.entity.js +4 -4
  2. package/dist/entity/config.enity.js +2 -2
  3. package/dist/entity/cron.entity.js +2 -2
  4. package/dist/entity/customer.entity.js +3 -3
  5. package/dist/entity/image.entity.js +2 -2
  6. package/dist/entity/logs.entity.js +2 -2
  7. package/dist/entity/png-svg.entity.js +2 -2
  8. package/dist/entity/ppt-email-queue.entity.js +2 -2
  9. package/dist/entity/ppt-event.entity.js +2 -2
  10. package/dist/entity/ppt-slide.entity.js +2 -2
  11. package/dist/entity/ppt.entity.d.ts +1 -0
  12. package/dist/entity/ppt.entity.d.ts.map +1 -1
  13. package/dist/entity/ppt.entity.js +2 -2
  14. package/dist/entity/slide-layout.entity.js +4 -4
  15. package/dist/entity/slide.entity.js +3 -3
  16. package/dist/entity/socket.entity.js +2 -2
  17. package/dist/entity/template-type.entity.js +6 -6
  18. package/dist/entity/template.entity.js +2 -2
  19. package/dist/entity/training-queue.entity.js +2 -2
  20. package/dist/entity/user.entity.js +2 -2
  21. package/dist/middleware/authentication.js +112 -215
  22. package/dist/middleware/schemaValidate.js +10 -52
  23. package/dist/resHandler/errorHandler.js +20 -42
  24. package/dist/resHandler/successHandler.js +1 -1
  25. package/dist/utilities/callWithRetries.js +9 -67
  26. package/dist/utilities/createFolder.js +10 -51
  27. package/dist/utilities/encryptionUtils.js +14 -54
  28. package/dist/utilities/hasAbusiveWords.js +4 -5
  29. package/package.json +3 -1
  30. package/src/entity/analytic.entity.ts +0 -62
  31. package/src/entity/common.ts +0 -19
  32. package/src/entity/config.enity.ts +0 -18
  33. package/src/entity/cron.entity.ts +0 -22
  34. package/src/entity/customer.entity.ts +0 -40
  35. package/src/entity/image.entity.ts +0 -32
  36. package/src/entity/index.ts +0 -20
  37. package/src/entity/logs.entity.ts +0 -20
  38. package/src/entity/png-svg.entity.ts +0 -44
  39. package/src/entity/ppt-email-queue.entity.ts +0 -22
  40. package/src/entity/ppt-event.entity.ts +0 -25
  41. package/src/entity/ppt-slide.entity.ts +0 -40
  42. package/src/entity/ppt.entity.ts +0 -79
  43. package/src/entity/slide-layout.entity.ts +0 -56
  44. package/src/entity/slide.entity.ts +0 -61
  45. package/src/entity/socket.entity.ts +0 -20
  46. package/src/entity/template-type.entity.ts +0 -87
  47. package/src/entity/template.entity.ts +0 -38
  48. package/src/entity/training-queue.entity.ts +0 -26
  49. package/src/entity/user.entity.ts +0 -24
  50. package/src/index.ts +0 -6
  51. package/src/middleware/authentication.ts +0 -150
  52. package/src/middleware/index.ts +0 -3
  53. package/src/middleware/role.ts +0 -5
  54. package/src/middleware/schemaValidate.ts +0 -20
  55. package/src/resHandler/errorHandler.ts +0 -66
  56. package/src/resHandler/index.ts +0 -2
  57. package/src/resHandler/successHandler.ts +0 -11
  58. package/src/types/IController.ts +0 -6
  59. package/src/types/IRequest.ts +0 -8
  60. package/src/types/index.ts +0 -11
  61. package/src/utilities/callWithRetries.ts +0 -9
  62. package/src/utilities/createFolder.ts +0 -11
  63. package/src/utilities/encryptionUtils.ts +0 -26
  64. package/src/utilities/hasAbusiveWords.ts +0 -33
  65. package/src/utilities/index.ts +0 -5
  66. package/src/utilities/pngSvgCategories.ts +0 -167
  67. package/tsconfig.json +0 -11
@@ -1,33 +0,0 @@
1
- export function hasExactMatch(str: string, word: string) {
2
- // Construct a regular expression to match the word as a whole word
3
- const regex = new RegExp('\\b' + word + '\\b', 'i'); // 'i' for case-insensitive matching
4
-
5
- // Test if the word has an exact match in the string
6
- return regex.test(str);
7
- }
8
-
9
- export function hasSpecialCharacter(str: string) {
10
- // Define a regular expression with a character class containing special characters
11
- const regex = /[!@#$%^&*()_+\-=\[\]{};:\\|<>\/?]/;
12
-
13
- // Test if the string contains any special character
14
- return regex.test(str);
15
- }
16
-
17
-
18
- export function hasAbusiveWords(str: string, words: string[]) {
19
- // Convert the string to lowercase for case-insensitive matching
20
- const lowerStr = str.toLowerCase();
21
-
22
- if(hasSpecialCharacter(lowerStr)) {
23
- return true;
24
- }
25
-
26
- // Check if any abusive word exists in the string
27
- for (const word of words) {
28
- if(hasExactMatch(lowerStr, word.toLowerCase())) {
29
- return true
30
- }
31
- }
32
- return false;
33
- }
@@ -1,5 +0,0 @@
1
- export * from "./callWithRetries";
2
- export * from "./createFolder";
3
- export * from "./encryptionUtils";
4
- export * from "./pngSvgCategories";
5
- export * from "./hasAbusiveWords";
@@ -1,167 +0,0 @@
1
- export const pngSvgCategories = {
2
- "Logo": {
3
- "Outline": {
4
- "alias": ""
5
- },
6
- "Monogram": {
7
- "alias": ""
8
- },
9
- "Wordmark": {
10
- "alias": ""
11
- },
12
- "Emblem": {
13
- "alias": ""
14
- },
15
- "Abstract Logo": {
16
- "alias": ""
17
- },
18
- "Mascot": {
19
- "alias": ""
20
- }
21
- },
22
- "Icons": {
23
- "Outline": {
24
- "alias": ""
25
- },
26
- "Pictogram": {
27
- "alias": ""
28
- },
29
- "Broken Line": {
30
- "alias": ""
31
- },
32
- "Gradient Line": {
33
- "alias": ""
34
- },
35
- "Gradient Shape": {
36
- "alias": "The icon should have strong and dramatic lighting and have a clean look on white background and should have only the suggested colour scheme."
37
- },
38
- "Doodle": {
39
- "alias": ""
40
- },
41
- "Flat": {
42
- "alias": ""
43
- },
44
- "Minimalistic": {
45
- "alias": ""
46
- },
47
- "Isometric": {
48
- "alias": "The icon should have strong and dramatic lighting and have a clean look on white background and should have only the suggested colour scheme. "
49
- },
50
- "3D Icons": {
51
- "alias": "The icon should have strong and dramatic lighting and have a clean look on white background and should have only the suggested colour scheme."
52
- }
53
- },
54
- "Illustrations": {
55
- "Hand Drawn": {
56
- "alias": ""
57
- },
58
- "Glow": {
59
- "alias": "The icon should have strong and dramatic lighting and have a clean look on white background and should have only the suggested colour scheme. "
60
- },
61
- "Pixel Art": {
62
- "alias": ""
63
- },
64
- "Watercolour": {
65
- "alias": ""
66
- },
67
- "Psychedelic": {
68
- "alias": "The icon should have strong and dramatic lighting and have a clean look on white background and should have only the suggested colour scheme. "
69
- },
70
- "80's": {
71
- "alias": "The icon should have strong and dramatic lighting and have a clean look on white background and should have only the suggested colour scheme. "
72
- },
73
- "Digital Art": {
74
- "alias": "The icon should have strong and dramatic lighting and have a clean look on white background and should have only the suggested colour scheme. "
75
- },
76
- "Abstract": {
77
- "alias": "The icon should have strong and dramatic lighting and have a clean look on white background and should have only the suggested colour scheme. "
78
- },
79
- "Realistic": {
80
- "alias": "The icon should have strong and dramatic lighting and have a clean look on white background and should have only the suggested colour scheme. "
81
- },
82
- "Comic Style": {
83
- "alias": "The icon should have strong and dramatic lighting and have a clean look on white background and should have only the suggested colour scheme. "
84
- },
85
- "Fantasy": {
86
- "alias": "The icon should have strong and dramatic lighting and have a clean look on white background and should have only the suggested colour scheme. "
87
- },
88
- "Anime": {
89
- "alias": ""
90
- },
91
- "Minimalist": {
92
- "alias": ""
93
- },
94
- "Pencil Sketch": {
95
- "alias": ""
96
- },
97
- },
98
- "3D illustration": {
99
- "Wireframe": {
100
- "alias": ""
101
- },
102
- "Low Poly": {
103
- "alias": ""
104
- },
105
- "Cartoon 3D": {
106
- "alias": ""
107
- },
108
- "Plastic 3D": {
109
- "alias": ""
110
- },
111
- "3D render": {
112
- "alias": ""
113
- },
114
- },
115
- "Photorealism": {
116
- "Photorealistic Painting": {
117
- "alias": ""
118
- },
119
- "Photorealistic Drawing": {
120
- "alias": ""
121
- },
122
- "Hyperealism": {
123
- "alias": ""
124
- },
125
- "Photorealism": {
126
- "alias": ""
127
- },
128
- },
129
- "Vector Art": {
130
- "Line Art": {
131
- "alias": ""
132
- },
133
- "Cartoon": {
134
- "alias": ""
135
- },
136
- "Vector Kawai": {
137
- "alias": ""
138
- },
139
- "Linocut": {
140
- "alias": ""
141
- },
142
- "Engraving": {
143
- "alias": ""
144
- },
145
- "Doodle Line Art": {
146
- "alias": ""
147
- },
148
- "Geometric": {
149
- "alias": ""
150
- },
151
- "Abstract": {
152
- "alias": ""
153
- },
154
- "Vintage": {
155
- "alias": ""
156
- },
157
- "Minimalist": {
158
- "alias": ""
159
- },
160
- "Stylized": {
161
- "alias": ""
162
- },
163
- "Flat Design": {
164
- "alias": ""
165
- },
166
- }
167
- }
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "commonjs",
5
- "outDir": "./dist", // Specify your desired output directory
6
- "strict": true,
7
- "esModuleInterop": true
8
- },
9
- "include": ["src/**/*.ts"],
10
- "exclude": ["node_modules"]
11
- }