@creopse/utils 0.0.1

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 (117) hide show
  1. package/README.md +1 -0
  2. package/dist/enums/account-status.d.ts +4 -0
  3. package/dist/enums/account-status.js +5 -0
  4. package/dist/enums/ad-content-type.d.ts +4 -0
  5. package/dist/enums/ad-content-type.js +5 -0
  6. package/dist/enums/auth-type.d.ts +8 -0
  7. package/dist/enums/auth-type.js +9 -0
  8. package/dist/enums/bool.d.ts +4 -0
  9. package/dist/enums/bool.js +5 -0
  10. package/dist/enums/content-type.d.ts +6 -0
  11. package/dist/enums/content-type.js +7 -0
  12. package/dist/enums/index.d.ts +16 -0
  13. package/dist/enums/index.js +16 -0
  14. package/dist/enums/media-file-type.d.ts +7 -0
  15. package/dist/enums/media-file-type.js +8 -0
  16. package/dist/enums/menu-item-target-type.d.ts +5 -0
  17. package/dist/enums/menu-item-target-type.js +6 -0
  18. package/dist/enums/news-article-status.d.ts +6 -0
  19. package/dist/enums/news-article-status.js +7 -0
  20. package/dist/enums/notification-source.d.ts +4 -0
  21. package/dist/enums/notification-source.js +5 -0
  22. package/dist/enums/notification-type.d.ts +3 -0
  23. package/dist/enums/notification-type.js +4 -0
  24. package/dist/enums/permalink-content-type.d.ts +6 -0
  25. package/dist/enums/permalink-content-type.js +7 -0
  26. package/dist/enums/profile-type.d.ts +3 -0
  27. package/dist/enums/profile-type.js +4 -0
  28. package/dist/enums/response-error-code.d.ts +18 -0
  29. package/dist/enums/response-error-code.js +20 -0
  30. package/dist/enums/user-role.d.ts +5 -0
  31. package/dist/enums/user-role.js +6 -0
  32. package/dist/enums/video-display-type.d.ts +4 -0
  33. package/dist/enums/video-display-type.js +5 -0
  34. package/dist/enums/video-item-source.d.ts +4 -0
  35. package/dist/enums/video-item-source.js +5 -0
  36. package/dist/index.d.ts +4 -0
  37. package/dist/index.js +4 -0
  38. package/dist/models/ad-identifier.d.ts +14 -0
  39. package/dist/models/ad-identifier.js +11 -0
  40. package/dist/models/ad.d.ts +21 -0
  41. package/dist/models/ad.js +16 -0
  42. package/dist/models/admin-profile.d.ts +7 -0
  43. package/dist/models/admin-profile.js +8 -0
  44. package/dist/models/app-information.d.ts +8 -0
  45. package/dist/models/app-information.js +9 -0
  46. package/dist/models/app-setting.d.ts +8 -0
  47. package/dist/models/app-setting.js +9 -0
  48. package/dist/models/content-model-item.d.ts +17 -0
  49. package/dist/models/content-model-item.js +12 -0
  50. package/dist/models/content-model.d.ts +18 -0
  51. package/dist/models/content-model.js +16 -0
  52. package/dist/models/index.d.ts +30 -0
  53. package/dist/models/index.js +30 -0
  54. package/dist/models/media-file.d.ts +23 -0
  55. package/dist/models/media-file.js +22 -0
  56. package/dist/models/menu-item-group.d.ts +8 -0
  57. package/dist/models/menu-item-group.js +9 -0
  58. package/dist/models/menu-item.d.ts +39 -0
  59. package/dist/models/menu-item.js +25 -0
  60. package/dist/models/menu-location.d.ts +8 -0
  61. package/dist/models/menu-location.js +9 -0
  62. package/dist/models/menu.d.ts +15 -0
  63. package/dist/models/menu.js +11 -0
  64. package/dist/models/news-article.d.ts +35 -0
  65. package/dist/models/news-article.js +23 -0
  66. package/dist/models/news-category.d.ts +20 -0
  67. package/dist/models/news-category.js +17 -0
  68. package/dist/models/news-comment.d.ts +18 -0
  69. package/dist/models/news-comment.js +15 -0
  70. package/dist/models/news-tag.d.ts +15 -0
  71. package/dist/models/news-tag.js +13 -0
  72. package/dist/models/newsletter-campaign.d.ts +17 -0
  73. package/dist/models/newsletter-campaign.js +13 -0
  74. package/dist/models/newsletter-email.d.ts +7 -0
  75. package/dist/models/newsletter-email.js +8 -0
  76. package/dist/models/newsletter-phone.d.ts +7 -0
  77. package/dist/models/newsletter-phone.js +8 -0
  78. package/dist/models/notification.d.ts +22 -0
  79. package/dist/models/notification.js +12 -0
  80. package/dist/models/page.d.ts +15 -0
  81. package/dist/models/page.js +15 -0
  82. package/dist/models/permalink.d.ts +14 -0
  83. package/dist/models/permalink.js +12 -0
  84. package/dist/models/permission.d.ts +9 -0
  85. package/dist/models/permission.js +10 -0
  86. package/dist/models/role.d.ts +11 -0
  87. package/dist/models/role.js +11 -0
  88. package/dist/models/section.d.ts +17 -0
  89. package/dist/models/section.js +12 -0
  90. package/dist/models/subscriber-profile.d.ts +7 -0
  91. package/dist/models/subscriber-profile.js +8 -0
  92. package/dist/models/user-session.d.ts +27 -0
  93. package/dist/models/user-session.js +12 -0
  94. package/dist/models/user.d.ts +36 -0
  95. package/dist/models/user.js +27 -0
  96. package/dist/models/video-item.d.ts +23 -0
  97. package/dist/models/video-item.js +22 -0
  98. package/dist/models/video-setting.d.ts +8 -0
  99. package/dist/models/video-setting.js +9 -0
  100. package/dist/tsconfig.tsbuildinfo +1 -0
  101. package/dist/types/app-information.d.ts +41 -0
  102. package/dist/types/app-information.js +1 -0
  103. package/dist/types/common.d.ts +11 -0
  104. package/dist/types/common.js +1 -0
  105. package/dist/types/index.d.ts +4 -0
  106. package/dist/types/index.js +4 -0
  107. package/dist/types/pagination.d.ts +26 -0
  108. package/dist/types/pagination.js +1 -0
  109. package/dist/types/props.d.ts +42 -0
  110. package/dist/types/props.js +1 -0
  111. package/dist/utils/chronos.d.ts +97 -0
  112. package/dist/utils/chronos.js +97 -0
  113. package/dist/utils/functions.d.ts +312 -0
  114. package/dist/utils/functions.js +574 -0
  115. package/dist/utils/index.d.ts +2 -0
  116. package/dist/utils/index.js +2 -0
  117. package/package.json +48 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # Creopse Utils
@@ -0,0 +1,4 @@
1
+ export declare enum AccountStatus {
2
+ DISABLED = 0,
3
+ ENABLED = 1
4
+ }
@@ -0,0 +1,5 @@
1
+ export var AccountStatus;
2
+ (function (AccountStatus) {
3
+ AccountStatus[AccountStatus["DISABLED"] = 0] = "DISABLED";
4
+ AccountStatus[AccountStatus["ENABLED"] = 1] = "ENABLED";
5
+ })(AccountStatus || (AccountStatus = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum AdContentType {
2
+ IMAGE = "image",
3
+ VIDEO = "video"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var AdContentType;
2
+ (function (AdContentType) {
3
+ AdContentType["IMAGE"] = "image";
4
+ AdContentType["VIDEO"] = "video";
5
+ })(AdContentType || (AdContentType = {}));
@@ -0,0 +1,8 @@
1
+ export declare enum AuthType {
2
+ UNDEFINED = 0,
3
+ EMAIL_PASSWORD = 1,
4
+ PHONE = 2,
5
+ GOOGLE = 3,
6
+ FACEBOOK = 4,
7
+ TWITTER = 5
8
+ }
@@ -0,0 +1,9 @@
1
+ export var AuthType;
2
+ (function (AuthType) {
3
+ AuthType[AuthType["UNDEFINED"] = 0] = "UNDEFINED";
4
+ AuthType[AuthType["EMAIL_PASSWORD"] = 1] = "EMAIL_PASSWORD";
5
+ AuthType[AuthType["PHONE"] = 2] = "PHONE";
6
+ AuthType[AuthType["GOOGLE"] = 3] = "GOOGLE";
7
+ AuthType[AuthType["FACEBOOK"] = 4] = "FACEBOOK";
8
+ AuthType[AuthType["TWITTER"] = 5] = "TWITTER";
9
+ })(AuthType || (AuthType = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum Bool {
2
+ FALSE = 0,
3
+ TRUE = 1
4
+ }
@@ -0,0 +1,5 @@
1
+ export var Bool;
2
+ (function (Bool) {
3
+ Bool[Bool["FALSE"] = 0] = "FALSE";
4
+ Bool[Bool["TRUE"] = 1] = "TRUE";
5
+ })(Bool || (Bool = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum ContentType {
2
+ NEWS_TAG = "news-tag",
3
+ NEWS_CATEGORY = "news-category",
4
+ NEWS_ARTICLE = "news-article",
5
+ CONTENT_MODEL = "content-model"
6
+ }
@@ -0,0 +1,7 @@
1
+ export var ContentType;
2
+ (function (ContentType) {
3
+ ContentType["NEWS_TAG"] = "news-tag";
4
+ ContentType["NEWS_CATEGORY"] = "news-category";
5
+ ContentType["NEWS_ARTICLE"] = "news-article";
6
+ ContentType["CONTENT_MODEL"] = "content-model";
7
+ })(ContentType || (ContentType = {}));
@@ -0,0 +1,16 @@
1
+ export * from './account-status';
2
+ export * from './ad-content-type';
3
+ export * from './auth-type';
4
+ export * from './bool';
5
+ export * from './content-type';
6
+ export * from './media-file-type';
7
+ export * from './menu-item-target-type';
8
+ export * from './news-article-status';
9
+ export * from './notification-source';
10
+ export * from './notification-type';
11
+ export * from './permalink-content-type';
12
+ export * from './profile-type';
13
+ export * from './response-error-code';
14
+ export * from './user-role';
15
+ export * from './video-display-type';
16
+ export * from './video-item-source';
@@ -0,0 +1,16 @@
1
+ export * from './account-status';
2
+ export * from './ad-content-type';
3
+ export * from './auth-type';
4
+ export * from './bool';
5
+ export * from './content-type';
6
+ export * from './media-file-type';
7
+ export * from './menu-item-target-type';
8
+ export * from './news-article-status';
9
+ export * from './notification-source';
10
+ export * from './notification-type';
11
+ export * from './permalink-content-type';
12
+ export * from './profile-type';
13
+ export * from './response-error-code';
14
+ export * from './user-role';
15
+ export * from './video-display-type';
16
+ export * from './video-item-source';
@@ -0,0 +1,7 @@
1
+ export declare enum MediaFileType {
2
+ DOCUMENT = 1,
3
+ IMAGE = 2,
4
+ VIDEO = 3,
5
+ AUDIO = 4,
6
+ OTHER = 5
7
+ }
@@ -0,0 +1,8 @@
1
+ export var MediaFileType;
2
+ (function (MediaFileType) {
3
+ MediaFileType[MediaFileType["DOCUMENT"] = 1] = "DOCUMENT";
4
+ MediaFileType[MediaFileType["IMAGE"] = 2] = "IMAGE";
5
+ MediaFileType[MediaFileType["VIDEO"] = 3] = "VIDEO";
6
+ MediaFileType[MediaFileType["AUDIO"] = 4] = "AUDIO";
7
+ MediaFileType[MediaFileType["OTHER"] = 5] = "OTHER";
8
+ })(MediaFileType || (MediaFileType = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum MenuItemTargetType {
2
+ EXTERNAL_LINK = "external-link",
3
+ PAGE_LINK = "page-link",
4
+ CONTENT_LINK = "content-link"
5
+ }
@@ -0,0 +1,6 @@
1
+ export var MenuItemTargetType;
2
+ (function (MenuItemTargetType) {
3
+ MenuItemTargetType["EXTERNAL_LINK"] = "external-link";
4
+ MenuItemTargetType["PAGE_LINK"] = "page-link";
5
+ MenuItemTargetType["CONTENT_LINK"] = "content-link";
6
+ })(MenuItemTargetType || (MenuItemTargetType = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum NewsArticleStatus {
2
+ DRAFT = 1,
3
+ PENDING = 2,
4
+ PUBLISHED = 3,
5
+ TRASH = 4
6
+ }
@@ -0,0 +1,7 @@
1
+ export var NewsArticleStatus;
2
+ (function (NewsArticleStatus) {
3
+ NewsArticleStatus[NewsArticleStatus["DRAFT"] = 1] = "DRAFT";
4
+ NewsArticleStatus[NewsArticleStatus["PENDING"] = 2] = "PENDING";
5
+ NewsArticleStatus[NewsArticleStatus["PUBLISHED"] = 3] = "PUBLISHED";
6
+ NewsArticleStatus[NewsArticleStatus["TRASH"] = 4] = "TRASH";
7
+ })(NewsArticleStatus || (NewsArticleStatus = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum NotificationSource {
2
+ SYSTEM = 1,
3
+ USER = 2
4
+ }
@@ -0,0 +1,5 @@
1
+ export var NotificationSource;
2
+ (function (NotificationSource) {
3
+ NotificationSource[NotificationSource["SYSTEM"] = 1] = "SYSTEM";
4
+ NotificationSource[NotificationSource["USER"] = 2] = "USER";
5
+ })(NotificationSource || (NotificationSource = {}));
@@ -0,0 +1,3 @@
1
+ export declare enum NotificationType {
2
+ WELCOME_USER = "App\\Notifications\\WelcomeUser"
3
+ }
@@ -0,0 +1,4 @@
1
+ export var NotificationType;
2
+ (function (NotificationType) {
3
+ NotificationType["WELCOME_USER"] = "App\\Notifications\\WelcomeUser";
4
+ })(NotificationType || (NotificationType = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum PermalinkContentType {
2
+ NEWS_TAG = "news-tag",
3
+ NEWS_CATEGORY = "news-category",
4
+ NEWS_ARTICLE = "news-article",
5
+ CONTENT_MODEL = "content-model"
6
+ }
@@ -0,0 +1,7 @@
1
+ export var PermalinkContentType;
2
+ (function (PermalinkContentType) {
3
+ PermalinkContentType["NEWS_TAG"] = "news-tag";
4
+ PermalinkContentType["NEWS_CATEGORY"] = "news-category";
5
+ PermalinkContentType["NEWS_ARTICLE"] = "news-article";
6
+ PermalinkContentType["CONTENT_MODEL"] = "content-model";
7
+ })(PermalinkContentType || (PermalinkContentType = {}));
@@ -0,0 +1,3 @@
1
+ export declare enum ProfileType {
2
+ SUBSCRIBER = "App\\Models\\SubscriberProfile"
3
+ }
@@ -0,0 +1,4 @@
1
+ export var ProfileType;
2
+ (function (ProfileType) {
3
+ ProfileType["SUBSCRIBER"] = "App\\Models\\SubscriberProfile";
4
+ })(ProfileType || (ProfileType = {}));
@@ -0,0 +1,18 @@
1
+ export declare enum ResponseErrorCode {
2
+ FORM_INVALID_DATA = "form/invalid_data",
3
+ AUTH_LOGIN_FAILED = "auth/login_failed",
4
+ AUTH_REGISTRATION_FAILED = "auth/registration_failed",
5
+ AUTH_MISSING_DATA = "auth/missing_data",
6
+ AUTH_WRONG_PASSWORD = "auth/wrong_password",
7
+ AUTH_USER_DISABLED = "auth/user_disabled",
8
+ AUTH_USER_NOT_FOUND = "auth/user_not_found",
9
+ AUTH_PROFILE_TYPE_NOT_FOUND = "auth/profile_type_not_found",
10
+ AUTH_EMAIL_ALREADY_USED = "auth/email_already_used",
11
+ AUTH_EMAIL_ALREADY_VERIFIED = "auth/email_already_verified",
12
+ AUTH_PROFILE_ALREADY_EXISTS = "auth/profile_already_exists",
13
+ AUTH_PROFILE_NOT_FOUND = "auth/profile_not_found",
14
+ AUTH_INVALID_TOKEN = "auth/invalid_token",
15
+ AUTH_CODE_SENDING_FAILED = "auth/code_sending_failed",
16
+ AUTH_CODE_VERIFICATION_FAILED = "auth/code_verification_failed",
17
+ AUTH_CODE_EXPIRED = "auth/code_expired"
18
+ }
@@ -0,0 +1,20 @@
1
+ export var ResponseErrorCode;
2
+ (function (ResponseErrorCode) {
3
+ ResponseErrorCode["FORM_INVALID_DATA"] = "form/invalid_data";
4
+ // AUTH ERROR CODES
5
+ ResponseErrorCode["AUTH_LOGIN_FAILED"] = "auth/login_failed";
6
+ ResponseErrorCode["AUTH_REGISTRATION_FAILED"] = "auth/registration_failed";
7
+ ResponseErrorCode["AUTH_MISSING_DATA"] = "auth/missing_data";
8
+ ResponseErrorCode["AUTH_WRONG_PASSWORD"] = "auth/wrong_password";
9
+ ResponseErrorCode["AUTH_USER_DISABLED"] = "auth/user_disabled";
10
+ ResponseErrorCode["AUTH_USER_NOT_FOUND"] = "auth/user_not_found";
11
+ ResponseErrorCode["AUTH_PROFILE_TYPE_NOT_FOUND"] = "auth/profile_type_not_found";
12
+ ResponseErrorCode["AUTH_EMAIL_ALREADY_USED"] = "auth/email_already_used";
13
+ ResponseErrorCode["AUTH_EMAIL_ALREADY_VERIFIED"] = "auth/email_already_verified";
14
+ ResponseErrorCode["AUTH_PROFILE_ALREADY_EXISTS"] = "auth/profile_already_exists";
15
+ ResponseErrorCode["AUTH_PROFILE_NOT_FOUND"] = "auth/profile_not_found";
16
+ ResponseErrorCode["AUTH_INVALID_TOKEN"] = "auth/invalid_token";
17
+ ResponseErrorCode["AUTH_CODE_SENDING_FAILED"] = "auth/code_sending_failed";
18
+ ResponseErrorCode["AUTH_CODE_VERIFICATION_FAILED"] = "auth/code_verification_failed";
19
+ ResponseErrorCode["AUTH_CODE_EXPIRED"] = "auth/code_expired";
20
+ })(ResponseErrorCode || (ResponseErrorCode = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum UserRole {
2
+ SUPER_ADMIN = "super-admin",
3
+ ADMIN = "admin",
4
+ USER = "user"
5
+ }
@@ -0,0 +1,6 @@
1
+ export var UserRole;
2
+ (function (UserRole) {
3
+ UserRole["SUPER_ADMIN"] = "super-admin";
4
+ UserRole["ADMIN"] = "admin";
5
+ UserRole["USER"] = "user";
6
+ })(UserRole || (UserRole = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum VideoDisplayType {
2
+ VERTICAL = "vertical",
3
+ HORIZONTAL = "horizontal"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var VideoDisplayType;
2
+ (function (VideoDisplayType) {
3
+ VideoDisplayType["VERTICAL"] = "vertical";
4
+ VideoDisplayType["HORIZONTAL"] = "horizontal";
5
+ })(VideoDisplayType || (VideoDisplayType = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum VideoItemSource {
2
+ SELF_HOSTED = "self-hosted",
3
+ YOUTUBE = "youtube"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var VideoItemSource;
2
+ (function (VideoItemSource) {
3
+ VideoItemSource["SELF_HOSTED"] = "self-hosted";
4
+ VideoItemSource["YOUTUBE"] = "youtube";
5
+ })(VideoItemSource || (VideoItemSource = {}));
@@ -0,0 +1,4 @@
1
+ export * from './models';
2
+ export * from './utils';
3
+ export * from './enums';
4
+ export * from './types';
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export * from './models';
2
+ export * from './utils';
3
+ export * from './enums';
4
+ export * from './types';
@@ -0,0 +1,14 @@
1
+ import { AdContentType } from '../enums/ad-content-type';
2
+ import { AdModel } from './ad';
3
+ export declare class AdIdentifierModel {
4
+ id: string;
5
+ reusable: boolean;
6
+ contentType: AdContentType;
7
+ contentSize?: string;
8
+ params?: string[] | null;
9
+ createdAt?: string;
10
+ updatedAt?: string;
11
+ ads?: AdModel[];
12
+ adsCount?: number;
13
+ constructor(id: string, reusable: boolean, contentType: AdContentType, contentSize?: string, params?: string[] | null, createdAt?: string, updatedAt?: string);
14
+ }
@@ -0,0 +1,11 @@
1
+ export class AdIdentifierModel {
2
+ constructor(id, reusable, contentType, contentSize, params, createdAt, updatedAt) {
3
+ this.id = id;
4
+ this.contentType = contentType;
5
+ this.contentSize = contentSize;
6
+ this.reusable = reusable;
7
+ this.params = params;
8
+ this.createdAt = createdAt;
9
+ this.updatedAt = updatedAt;
10
+ }
11
+ }
@@ -0,0 +1,21 @@
1
+ import { AdIdentifierModel } from './ad-identifier';
2
+ export declare class AdModel {
3
+ pid: string;
4
+ title: string;
5
+ display: boolean;
6
+ data: {
7
+ [key: string]: any;
8
+ };
9
+ description: string | null;
10
+ content: string | null;
11
+ contentUrl?: string | null;
12
+ broadcastStart?: string | null;
13
+ broadcastEnd?: string | null;
14
+ id?: number;
15
+ createdAt?: string;
16
+ updatedAt?: string;
17
+ adIdentifier?: AdIdentifierModel;
18
+ constructor(pid: string, title: string, display: boolean, data: {
19
+ [key: string]: any;
20
+ }, description: string | null, content: string | null, contentUrl?: string | null, broadcastStart?: string | null, broadcastEnd?: string | null, id?: number, createdAt?: string, updatedAt?: string);
21
+ }
@@ -0,0 +1,16 @@
1
+ export class AdModel {
2
+ constructor(pid, title, display, data, description, content, contentUrl, broadcastStart, broadcastEnd, id, createdAt, updatedAt) {
3
+ this.id = id;
4
+ this.pid = pid;
5
+ this.title = title;
6
+ this.display = display;
7
+ this.content = content;
8
+ this.contentUrl = contentUrl;
9
+ this.description = description;
10
+ this.data = data;
11
+ this.broadcastStart = broadcastStart;
12
+ this.broadcastEnd = broadcastEnd;
13
+ this.createdAt = createdAt;
14
+ this.updatedAt = updatedAt;
15
+ }
16
+ }
@@ -0,0 +1,7 @@
1
+ export declare class AdminProfileModel {
2
+ id?: number;
3
+ userId: number;
4
+ createdAt?: string;
5
+ updatedAt?: string;
6
+ constructor(userId: number, id?: number, createdAt?: string, updatedAt?: string);
7
+ }
@@ -0,0 +1,8 @@
1
+ export class AdminProfileModel {
2
+ constructor(userId, id, createdAt, updatedAt) {
3
+ this.id = id;
4
+ this.userId = userId;
5
+ this.createdAt = createdAt;
6
+ this.updatedAt = updatedAt;
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ export declare class AppInformationModel {
2
+ id?: number;
3
+ key: string;
4
+ value: string;
5
+ createdAt?: string;
6
+ updatedAt?: string;
7
+ constructor(key: string, value: string, id?: number, createdAt?: string, updatedAt?: string);
8
+ }
@@ -0,0 +1,9 @@
1
+ export class AppInformationModel {
2
+ constructor(key, value, id, createdAt, updatedAt) {
3
+ this.id = id;
4
+ this.key = key;
5
+ this.value = value;
6
+ this.createdAt = createdAt;
7
+ this.updatedAt = updatedAt;
8
+ }
9
+ }
@@ -0,0 +1,8 @@
1
+ export declare class AppSettingModel {
2
+ id?: number;
3
+ key: string;
4
+ value: string;
5
+ createdAt?: string;
6
+ updatedAt?: string;
7
+ constructor(key: string, value: string, id?: number, createdAt?: string, updatedAt?: string);
8
+ }
@@ -0,0 +1,9 @@
1
+ export class AppSettingModel {
2
+ constructor(key, value, id, createdAt, updatedAt) {
3
+ this.id = id;
4
+ this.key = key;
5
+ this.value = value;
6
+ this.createdAt = createdAt;
7
+ this.updatedAt = updatedAt;
8
+ }
9
+ }
@@ -0,0 +1,17 @@
1
+ import { ContentModelModel } from './content-model';
2
+ export declare class ContentModelItemModel {
3
+ id?: number;
4
+ contentModelId?: number;
5
+ title: string;
6
+ contentModelData: any | null;
7
+ data?: {
8
+ [key: string]: any;
9
+ } | null;
10
+ isActive: boolean;
11
+ createdAt?: string;
12
+ updatedAt?: string;
13
+ contentModel?: ContentModelModel;
14
+ relatedItems?: ContentModelItemModel[];
15
+ relatedTo?: ContentModelItemModel[];
16
+ constructor(title: string, contentModelData: any | null, isActive: boolean, data?: any | null, contentModelId?: number, id?: number, createdAt?: string, updatedAt?: string);
17
+ }
@@ -0,0 +1,12 @@
1
+ export class ContentModelItemModel {
2
+ constructor(title, contentModelData, isActive, data, contentModelId, id, createdAt, updatedAt) {
3
+ this.id = id;
4
+ this.contentModelId = contentModelId;
5
+ this.title = title;
6
+ this.data = data;
7
+ this.contentModelData = contentModelData;
8
+ this.isActive = isActive;
9
+ this.createdAt = createdAt;
10
+ this.updatedAt = updatedAt;
11
+ }
12
+ }
@@ -0,0 +1,18 @@
1
+ import { ContentModelItemModel } from './content-model-item';
2
+ export declare class ContentModelModel {
3
+ id?: number;
4
+ name: string;
5
+ title: string;
6
+ slug: string;
7
+ image?: string | null;
8
+ imageUrl?: string | null;
9
+ description?: string | null;
10
+ dataStructure?: any | null;
11
+ titleFieldName?: string | null;
12
+ hasPermalink?: boolean;
13
+ createdAt?: string;
14
+ updatedAt?: string;
15
+ items?: ContentModelItemModel[];
16
+ itemsCount?: number;
17
+ constructor(name: string, slug: string, title: string, image?: string | null, imageUrl?: string | null, description?: string | null, dataStructure?: any | null, titleFieldName?: string | null, hasPermalink?: boolean, id?: number, createdAt?: string, updatedAt?: string);
18
+ }
@@ -0,0 +1,16 @@
1
+ export class ContentModelModel {
2
+ constructor(name, slug, title, image, imageUrl, description, dataStructure, titleFieldName, hasPermalink, id, createdAt, updatedAt) {
3
+ this.id = id;
4
+ this.slug = slug;
5
+ this.name = name;
6
+ this.title = title;
7
+ this.image = image;
8
+ this.imageUrl = imageUrl;
9
+ this.description = description;
10
+ this.dataStructure = dataStructure;
11
+ this.titleFieldName = titleFieldName;
12
+ this.hasPermalink = hasPermalink;
13
+ this.createdAt = createdAt;
14
+ this.updatedAt = updatedAt;
15
+ }
16
+ }
@@ -0,0 +1,30 @@
1
+ export * from './ad-identifier';
2
+ export * from './ad';
3
+ export * from './admin-profile';
4
+ export * from './app-information';
5
+ export * from './app-setting';
6
+ export * from './content-model-item';
7
+ export * from './content-model';
8
+ export * from './media-file';
9
+ export * from './menu-item-group';
10
+ export * from './menu-item';
11
+ export * from './menu-location';
12
+ export * from './menu';
13
+ export * from './news-article';
14
+ export * from './news-category';
15
+ export * from './news-comment';
16
+ export * from './news-tag';
17
+ export * from './newsletter-campaign';
18
+ export * from './newsletter-email';
19
+ export * from './newsletter-phone';
20
+ export * from './notification';
21
+ export * from './page';
22
+ export * from './permalink';
23
+ export * from './permission';
24
+ export * from './role';
25
+ export * from './section';
26
+ export * from './subscriber-profile';
27
+ export * from './user-session';
28
+ export * from './user';
29
+ export * from './video-item';
30
+ export * from './video-setting';
@@ -0,0 +1,30 @@
1
+ export * from './ad-identifier';
2
+ export * from './ad';
3
+ export * from './admin-profile';
4
+ export * from './app-information';
5
+ export * from './app-setting';
6
+ export * from './content-model-item';
7
+ export * from './content-model';
8
+ export * from './media-file';
9
+ export * from './menu-item-group';
10
+ export * from './menu-item';
11
+ export * from './menu-location';
12
+ export * from './menu';
13
+ export * from './news-article';
14
+ export * from './news-category';
15
+ export * from './news-comment';
16
+ export * from './news-tag';
17
+ export * from './newsletter-campaign';
18
+ export * from './newsletter-email';
19
+ export * from './newsletter-phone';
20
+ export * from './notification';
21
+ export * from './page';
22
+ export * from './permalink';
23
+ export * from './permission';
24
+ export * from './role';
25
+ export * from './section';
26
+ export * from './subscriber-profile';
27
+ export * from './user-session';
28
+ export * from './user';
29
+ export * from './video-item';
30
+ export * from './video-setting';
@@ -0,0 +1,23 @@
1
+ import { MediaFileType } from '../enums/media-file-type';
2
+ import { UserModel } from './user';
3
+ export declare class MediaFileModel {
4
+ id?: number;
5
+ foreignId?: number | null;
6
+ senderId?: number | null;
7
+ foreignUrl?: string | null;
8
+ url?: string;
9
+ name: string;
10
+ path: string;
11
+ size: number;
12
+ type: MediaFileType;
13
+ extension?: string | null;
14
+ mimeType?: string | null;
15
+ title?: string | null;
16
+ description?: string | null;
17
+ additionalMetadata?: object | null;
18
+ deletedAt?: string | null;
19
+ createdAt?: string;
20
+ updatedAt?: string;
21
+ sender?: UserModel | null;
22
+ constructor(name: string, path: string, size: number, type?: MediaFileType, id?: number, url?: string, foreignId?: number | null, senderId?: number | null, foreignUrl?: string | null, extension?: string | null, mimeType?: string | null, title?: string | null, description?: string | null, additionalMetadata?: object | null, deletedAt?: string | null, createdAt?: string, updatedAt?: string);
23
+ }
@@ -0,0 +1,22 @@
1
+ import { MediaFileType } from '../enums/media-file-type';
2
+ export class MediaFileModel {
3
+ constructor(name, path, size, type = MediaFileType.OTHER, id, url, foreignId, senderId, foreignUrl, extension, mimeType, title, description, additionalMetadata, deletedAt, createdAt, updatedAt) {
4
+ this.id = id;
5
+ this.url = url;
6
+ this.foreignId = foreignId;
7
+ this.senderId = senderId;
8
+ this.foreignUrl = foreignUrl;
9
+ this.name = name;
10
+ this.path = path;
11
+ this.size = size;
12
+ this.type = type;
13
+ this.extension = extension;
14
+ this.mimeType = mimeType;
15
+ this.title = title;
16
+ this.description = description;
17
+ this.additionalMetadata = additionalMetadata;
18
+ this.deletedAt = deletedAt;
19
+ this.createdAt = createdAt;
20
+ this.updatedAt = updatedAt;
21
+ }
22
+ }
@@ -0,0 +1,8 @@
1
+ export declare class MenuItemGroupModel {
2
+ id?: number;
3
+ name: string;
4
+ description?: string | null;
5
+ createdAt?: string;
6
+ updatedAt?: string;
7
+ constructor(name: string, description?: string | null, id?: number, createdAt?: string, updatedAt?: string);
8
+ }