@creopse/utils 0.0.7 → 0.0.8

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 (33) hide show
  1. package/dist/enums/content-model/access-scope.d.ts +4 -0
  2. package/dist/enums/content-model/access-scope.js +5 -0
  3. package/dist/enums/content-model/intent.d.ts +5 -0
  4. package/dist/enums/content-model/intent.js +6 -0
  5. package/dist/enums/content-model/item-creator-type.d.ts +5 -0
  6. package/dist/enums/content-model/item-creator-type.js +6 -0
  7. package/dist/enums/editor-message-type.d.ts +4 -0
  8. package/dist/enums/editor-message-type.js +5 -0
  9. package/dist/models/ad-identifier.d.ts +2 -2
  10. package/dist/models/content-model-item.d.ts +6 -1
  11. package/dist/models/content-model-item.js +3 -1
  12. package/dist/models/content-model.d.ts +5 -1
  13. package/dist/models/content-model.js +3 -1
  14. package/dist/models/data-change.d.ts +8 -0
  15. package/dist/models/data-change.js +9 -0
  16. package/dist/models/index.d.ts +5 -0
  17. package/dist/models/index.js +5 -0
  18. package/dist/models/menu-item.d.ts +2 -2
  19. package/dist/models/menu-item.js +2 -2
  20. package/dist/models/page-section.d.ts +13 -0
  21. package/dist/models/page-section.js +14 -0
  22. package/dist/models/page.d.ts +2 -12
  23. package/dist/models/section.d.ts +2 -12
  24. package/dist/models/user-device.d.ts +12 -0
  25. package/dist/models/user-device.js +11 -0
  26. package/dist/models/user-place.d.ts +21 -0
  27. package/dist/models/user-place.js +20 -0
  28. package/dist/models/user.d.ts +11 -5
  29. package/dist/models/video-category.d.ts +19 -0
  30. package/dist/models/video-category.js +16 -0
  31. package/dist/models/video-item.d.ts +3 -0
  32. package/dist/tsconfig.tsbuildinfo +1 -1
  33. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ export declare enum AccessScope {
2
+ INTERNAL = "internal",
3
+ USER_EDITABLE = "user-editable"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var AccessScope;
2
+ (function (AccessScope) {
3
+ AccessScope["INTERNAL"] = "internal";
4
+ AccessScope["USER_EDITABLE"] = "user-editable";
5
+ })(AccessScope || (AccessScope = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum Intent {
2
+ EDITORIAL_CONTENT = "editorial-content",
3
+ USER_DATA = "user-data",
4
+ SYSTEM_DATA = "system-data"
5
+ }
@@ -0,0 +1,6 @@
1
+ export var Intent;
2
+ (function (Intent) {
3
+ Intent["EDITORIAL_CONTENT"] = "editorial-content";
4
+ Intent["USER_DATA"] = "user-data";
5
+ Intent["SYSTEM_DATA"] = "system-data";
6
+ })(Intent || (Intent = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum ItemCreatorType {
2
+ USER = "user",
3
+ ADMIN = "admin",
4
+ SYSTEM = "system"
5
+ }
@@ -0,0 +1,6 @@
1
+ export var ItemCreatorType;
2
+ (function (ItemCreatorType) {
3
+ ItemCreatorType["USER"] = "user";
4
+ ItemCreatorType["ADMIN"] = "admin";
5
+ ItemCreatorType["SYSTEM"] = "system";
6
+ })(ItemCreatorType || (ItemCreatorType = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum EditorMessageType {
2
+ RELOAD = "reload",
3
+ RELOAD_COMPLETE = "reload-complete"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var EditorMessageType;
2
+ (function (EditorMessageType) {
3
+ EditorMessageType["RELOAD"] = "reload";
4
+ EditorMessageType["RELOAD_COMPLETE"] = "reload-complete";
5
+ })(EditorMessageType || (EditorMessageType = {}));
@@ -5,10 +5,10 @@ export declare class AdIdentifierModel {
5
5
  reusable: boolean;
6
6
  contentType: AdContentType;
7
7
  contentSize?: string;
8
- params?: string[] | null;
8
+ params?: string[];
9
9
  createdAt?: string;
10
10
  updatedAt?: string;
11
11
  ads?: AdModel[];
12
12
  adsCount?: number;
13
- constructor(id: string, reusable: boolean, contentType: AdContentType, contentSize?: string, params?: string[] | null, createdAt?: string, updatedAt?: string);
13
+ constructor(id: string, reusable: boolean, contentType: AdContentType, contentSize?: string, params?: string[], createdAt?: string, updatedAt?: string);
14
14
  }
@@ -1,4 +1,6 @@
1
+ import { ItemCreatorType } from '../enums/content-model/item-creator-type';
1
2
  import { ContentModelModel } from './content-model';
3
+ import { UserModel } from './user';
2
4
  export declare class ContentModelItemModel {
3
5
  id?: number;
4
6
  contentModelId?: number;
@@ -8,10 +10,13 @@ export declare class ContentModelItemModel {
8
10
  [key: string]: any;
9
11
  } | null;
10
12
  isActive: boolean;
13
+ createdByType?: ItemCreatorType;
14
+ createdBy?: number;
11
15
  createdAt?: string;
12
16
  updatedAt?: string;
17
+ createdByUser?: UserModel;
13
18
  contentModel?: ContentModelModel;
14
19
  relatedItems?: ContentModelItemModel[];
15
20
  relatedTo?: ContentModelItemModel[];
16
- constructor(title: string, contentModelData: any | null, isActive: boolean, data?: any | null, contentModelId?: number, id?: number, createdAt?: string, updatedAt?: string);
21
+ constructor(title: string, contentModelData: any | null, isActive: boolean, createdByType?: ItemCreatorType, createdBy?: number, data?: any | null, contentModelId?: number, id?: number, createdAt?: string, updatedAt?: string);
17
22
  }
@@ -1,11 +1,13 @@
1
1
  export class ContentModelItemModel {
2
- constructor(title, contentModelData, isActive, data, contentModelId, id, createdAt, updatedAt) {
2
+ constructor(title, contentModelData, isActive, createdByType, createdBy, data, contentModelId, id, createdAt, updatedAt) {
3
3
  this.id = id;
4
4
  this.contentModelId = contentModelId;
5
5
  this.title = title;
6
6
  this.data = data;
7
7
  this.contentModelData = contentModelData;
8
8
  this.isActive = isActive;
9
+ this.createdByType = createdByType;
10
+ this.createdBy = createdBy;
9
11
  this.createdAt = createdAt;
10
12
  this.updatedAt = updatedAt;
11
13
  }
@@ -1,3 +1,5 @@
1
+ import { AccessScope } from '../enums/content-model/access-scope';
2
+ import { Intent } from '../enums/content-model/intent';
1
3
  import { ContentModelItemModel } from './content-model-item';
2
4
  export declare class ContentModelModel {
3
5
  id?: number;
@@ -9,10 +11,12 @@ export declare class ContentModelModel {
9
11
  description?: string | null;
10
12
  dataStructure?: any | null;
11
13
  titleFieldName?: string | null;
14
+ intent: Intent;
15
+ accessScope: AccessScope;
12
16
  hasPermalink?: boolean;
13
17
  createdAt?: string;
14
18
  updatedAt?: string;
15
19
  items?: ContentModelItemModel[];
16
20
  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);
21
+ constructor(name: string, slug: string, title: string, intent: Intent, accessScope: AccessScope, image?: string | null, imageUrl?: string | null, description?: string | null, dataStructure?: any | null, titleFieldName?: string | null, hasPermalink?: boolean, id?: number, createdAt?: string, updatedAt?: string);
18
22
  }
@@ -1,5 +1,5 @@
1
1
  export class ContentModelModel {
2
- constructor(name, slug, title, image, imageUrl, description, dataStructure, titleFieldName, hasPermalink, id, createdAt, updatedAt) {
2
+ constructor(name, slug, title, intent, accessScope, image, imageUrl, description, dataStructure, titleFieldName, hasPermalink, id, createdAt, updatedAt) {
3
3
  this.id = id;
4
4
  this.slug = slug;
5
5
  this.name = name;
@@ -9,6 +9,8 @@ export class ContentModelModel {
9
9
  this.description = description;
10
10
  this.dataStructure = dataStructure;
11
11
  this.titleFieldName = titleFieldName;
12
+ this.intent = intent;
13
+ this.accessScope = accessScope;
12
14
  this.hasPermalink = hasPermalink;
13
15
  this.createdAt = createdAt;
14
16
  this.updatedAt = updatedAt;
@@ -0,0 +1,8 @@
1
+ export declare class DataChangeModel {
2
+ id?: number;
3
+ tableName: string;
4
+ changeId: string;
5
+ createdAt?: string;
6
+ updatedAt?: string;
7
+ constructor(tableName: string, changeId: string, id?: number, createdAt?: string, updatedAt?: string);
8
+ }
@@ -0,0 +1,9 @@
1
+ export class DataChangeModel {
2
+ constructor(tableName, changeId, id, createdAt, updatedAt) {
3
+ this.tableName = tableName;
4
+ this.changeId = changeId;
5
+ this.id = id;
6
+ this.createdAt = createdAt;
7
+ this.updatedAt = updatedAt;
8
+ }
9
+ }
@@ -5,6 +5,7 @@ export * from './app-information';
5
5
  export * from './app-setting';
6
6
  export * from './content-model-item';
7
7
  export * from './content-model';
8
+ export * from './data-change';
8
9
  export * from './media-file';
9
10
  export * from './menu-item-group';
10
11
  export * from './menu-item';
@@ -18,13 +19,17 @@ export * from './newsletter-campaign';
18
19
  export * from './newsletter-email';
19
20
  export * from './newsletter-phone';
20
21
  export * from './notification';
22
+ export * from './page-section';
21
23
  export * from './page';
22
24
  export * from './permalink';
23
25
  export * from './permission';
24
26
  export * from './role';
25
27
  export * from './section';
26
28
  export * from './subscriber-profile';
29
+ export * from './user-device';
30
+ export * from './user-place';
27
31
  export * from './user-session';
28
32
  export * from './user';
33
+ export * from './video-category';
29
34
  export * from './video-item';
30
35
  export * from './video-setting';
@@ -5,6 +5,7 @@ export * from './app-information';
5
5
  export * from './app-setting';
6
6
  export * from './content-model-item';
7
7
  export * from './content-model';
8
+ export * from './data-change';
8
9
  export * from './media-file';
9
10
  export * from './menu-item-group';
10
11
  export * from './menu-item';
@@ -18,13 +19,17 @@ export * from './newsletter-campaign';
18
19
  export * from './newsletter-email';
19
20
  export * from './newsletter-phone';
20
21
  export * from './notification';
22
+ export * from './page-section';
21
23
  export * from './page';
22
24
  export * from './permalink';
23
25
  export * from './permission';
24
26
  export * from './role';
25
27
  export * from './section';
26
28
  export * from './subscriber-profile';
29
+ export * from './user-device';
30
+ export * from './user-place';
27
31
  export * from './user-session';
28
32
  export * from './user';
33
+ export * from './video-category';
29
34
  export * from './video-item';
30
35
  export * from './video-setting';
@@ -12,7 +12,7 @@ export declare class MenuItemModel {
12
12
  id?: number;
13
13
  menuId?: number;
14
14
  pageId?: number;
15
- sectionId?: number;
15
+ sectionKey?: string;
16
16
  menuItemGroupId?: number;
17
17
  title: string;
18
18
  description?: string | null;
@@ -35,5 +35,5 @@ export declare class MenuItemModel {
35
35
  section?: SectionModel;
36
36
  group?: MenuItemGroupModel;
37
37
  content?: ContentModelItemModel | NewsCategoryModel | NewsArticleModel | NewsTagModel;
38
- constructor(title: string, position: number, targetType: MenuItemTargetType, isActive: boolean, isVisible: boolean, color?: string, icon?: string, description?: string | null, path?: string | null, url?: string | null, controller?: string | null, parentId?: number | null, menuId?: number, pageId?: number, sectionId?: number, menuItemGroupId?: number, contentType?: ContentType, contentId?: number, id?: number, createdAt?: string, updatedAt?: string);
38
+ constructor(title: string, position: number, targetType: MenuItemTargetType, isActive: boolean, isVisible: boolean, color?: string, icon?: string, description?: string | null, path?: string | null, url?: string | null, controller?: string | null, parentId?: number | null, menuId?: number, pageId?: number, sectionKey?: string, menuItemGroupId?: number, contentType?: ContentType, contentId?: number, id?: number, createdAt?: string, updatedAt?: string);
39
39
  }
@@ -1,5 +1,5 @@
1
1
  export class MenuItemModel {
2
- constructor(title, position, targetType, isActive, isVisible, color, icon, description, path, url, controller, parentId, menuId, pageId, sectionId, menuItemGroupId, contentType, contentId, id, createdAt, updatedAt) {
2
+ constructor(title, position, targetType, isActive, isVisible, color, icon, description, path, url, controller, parentId, menuId, pageId, sectionKey, menuItemGroupId, contentType, contentId, id, createdAt, updatedAt) {
3
3
  this.id = id;
4
4
  this.menuItemGroupId = menuItemGroupId;
5
5
  this.title = title;
@@ -12,7 +12,7 @@ export class MenuItemModel {
12
12
  this.targetType = targetType;
13
13
  this.menuId = menuId;
14
14
  this.pageId = pageId;
15
- this.sectionId = sectionId;
15
+ this.sectionKey = sectionKey;
16
16
  this.isActive = isActive;
17
17
  this.isVisible = isVisible;
18
18
  this.color = color;
@@ -0,0 +1,13 @@
1
+ export declare class PageSectionModel {
2
+ pageId?: number;
3
+ sectionId?: number;
4
+ dataSourceLinkId?: string | null;
5
+ dataSourcePageId?: number | null;
6
+ dataSourcePageTitle?: string | null;
7
+ linkId?: string | null;
8
+ data?: any;
9
+ settings?: any;
10
+ createdAt?: string;
11
+ updatedAt?: string;
12
+ constructor(pageId?: number, sectionId?: number, dataSourceLinkId?: string | null, dataSourcePageId?: number | null, dataSourcePageTitle?: string | null, linkId?: string | null, data?: any, settings?: any, createdAt?: string, updatedAt?: string);
13
+ }
@@ -0,0 +1,14 @@
1
+ export class PageSectionModel {
2
+ constructor(pageId, sectionId, dataSourceLinkId, dataSourcePageId, dataSourcePageTitle, linkId, data, settings, createdAt, updatedAt) {
3
+ this.pageId = pageId;
4
+ this.sectionId = sectionId;
5
+ this.dataSourceLinkId = dataSourceLinkId;
6
+ this.dataSourcePageId = dataSourcePageId;
7
+ this.dataSourcePageTitle = dataSourcePageTitle;
8
+ this.linkId = linkId;
9
+ this.data = data;
10
+ this.settings = settings;
11
+ this.createdAt = createdAt;
12
+ this.updatedAt = updatedAt;
13
+ }
14
+ }
@@ -1,3 +1,4 @@
1
+ import { PageSectionModel } from './page-section';
1
2
  import { SectionModel } from './section';
2
3
  export declare class PageModel {
3
4
  name: string;
@@ -10,17 +11,6 @@ export declare class PageModel {
10
11
  id?: number;
11
12
  createdAt?: string;
12
13
  updatedAt?: string;
13
- pivot?: {
14
- pageId?: number;
15
- sectionId?: number;
16
- dataSourceLinkId?: string | null;
17
- dataSourcePageId?: number | null;
18
- dataSourcePageTitle?: string | null;
19
- linkId?: string | null;
20
- data?: any;
21
- settings?: any;
22
- createdAt?: string;
23
- updatedAt?: string;
24
- };
14
+ pivot?: PageSectionModel;
25
15
  constructor(name: string, title: string, slug: string, content: string | null, sectionsOrder?: string[] | null, sectionsDisabled?: string[] | null, sections?: SectionModel[], id?: number, createdAt?: string, updatedAt?: string);
26
16
  }
@@ -1,4 +1,5 @@
1
1
  import { PageModel } from './page';
2
+ import { PageSectionModel } from './page-section';
2
3
  export declare class SectionModel {
3
4
  id?: number;
4
5
  name: string;
@@ -11,17 +12,6 @@ export declare class SectionModel {
11
12
  updatedAt?: string;
12
13
  pages?: PageModel[];
13
14
  pagesCount?: number;
14
- pivot?: {
15
- pageId?: number;
16
- sectionId?: number;
17
- dataSourceLinkId?: string | null;
18
- dataSourcePageId?: number | null;
19
- dataSourcePageTitle?: string | null;
20
- linkId?: string | null;
21
- data?: any;
22
- settings?: any;
23
- createdAt?: string;
24
- updatedAt?: string;
25
- };
15
+ pivot?: PageSectionModel;
26
16
  constructor(name: string, slug: string, title: string, content?: string | null, dataStructure?: any | null, settingsStructure?: any | null, id?: number, createdAt?: string, updatedAt?: string);
27
17
  }
@@ -0,0 +1,12 @@
1
+ import { UserModel } from './user';
2
+ export declare class UserDeviceModel {
3
+ id?: number;
4
+ userId?: number;
5
+ deviceId?: string;
6
+ data?: any;
7
+ isActive?: boolean;
8
+ createdAt?: string;
9
+ updatedAt?: string;
10
+ user?: UserModel;
11
+ constructor(id?: number, userId?: number, deviceId?: string, data?: any, isActive?: boolean, createdAt?: string, updatedAt?: string);
12
+ }
@@ -0,0 +1,11 @@
1
+ export class UserDeviceModel {
2
+ constructor(id, userId, deviceId, data, isActive, createdAt, updatedAt) {
3
+ this.id = id;
4
+ this.userId = userId;
5
+ this.deviceId = deviceId;
6
+ this.data = data;
7
+ this.isActive = isActive;
8
+ this.createdAt = createdAt;
9
+ this.updatedAt = updatedAt;
10
+ }
11
+ }
@@ -0,0 +1,21 @@
1
+ import { UserModel } from './user';
2
+ export declare class UserPlaceModel {
3
+ id?: number;
4
+ userId?: number;
5
+ country?: string;
6
+ position?: string;
7
+ locality?: string;
8
+ administrativeArea?: string;
9
+ postalCode?: string;
10
+ name?: string;
11
+ subAdministrativeArea?: string;
12
+ isoCountryCode?: string;
13
+ subLocality?: string;
14
+ subThoroughfare?: string;
15
+ thoroughfare?: string;
16
+ street?: string;
17
+ createdAt?: string;
18
+ updatedAt?: string;
19
+ user?: UserModel;
20
+ constructor(id?: number, userId?: number, country?: string, position?: string, locality?: string, administrativeArea?: string, postalCode?: string, name?: string, subAdministrativeArea?: string, isoCountryCode?: string, subLocality?: string, subThoroughfare?: string, thoroughfare?: string, street?: string, createdAt?: string, updatedAt?: string);
21
+ }
@@ -0,0 +1,20 @@
1
+ export class UserPlaceModel {
2
+ constructor(id, userId, country, position, locality, administrativeArea, postalCode, name, subAdministrativeArea, isoCountryCode, subLocality, subThoroughfare, thoroughfare, street, createdAt, updatedAt) {
3
+ this.id = id;
4
+ this.userId = userId;
5
+ this.country = country;
6
+ this.position = position;
7
+ this.locality = locality;
8
+ this.administrativeArea = administrativeArea;
9
+ this.postalCode = postalCode;
10
+ this.name = name;
11
+ this.subAdministrativeArea = subAdministrativeArea;
12
+ this.isoCountryCode = isoCountryCode;
13
+ this.subLocality = subLocality;
14
+ this.subThoroughfare = subThoroughfare;
15
+ this.thoroughfare = thoroughfare;
16
+ this.street = street;
17
+ this.createdAt = createdAt;
18
+ this.updatedAt = updatedAt;
19
+ }
20
+ }
@@ -1,10 +1,13 @@
1
- import type { Coords } from '../types';
2
1
  import { AccountStatus } from '../enums/account-status';
3
2
  import { AuthType } from '../enums/auth-type';
4
3
  import { ProfileType } from '../enums/profile-type';
4
+ import { Coords } from '../types';
5
+ import { AdminProfileModel } from './admin-profile';
5
6
  import { PermissionModel } from './permission';
6
7
  import { RoleModel } from './role';
7
- import { SubscriberProfileModel } from './subscriber-profile';
8
+ import { UserDeviceModel } from './user-device';
9
+ import { UserPlaceModel } from './user-place';
10
+ import { UserSessionModel } from './user-session';
8
11
  export declare class UserModel {
9
12
  id?: number;
10
13
  uid?: string;
@@ -19,7 +22,7 @@ export declare class UserModel {
19
22
  phone?: string;
20
23
  address?: string;
21
24
  location?: Coords | null;
22
- profileType: ProfileType;
25
+ profileType: ProfileType | string;
23
26
  profileId: number;
24
27
  accountStatus: AccountStatus;
25
28
  preferences?: any;
@@ -30,7 +33,10 @@ export declare class UserModel {
30
33
  createdAt?: string;
31
34
  updatedAt?: string;
32
35
  permissions?: PermissionModel[];
33
- profile?: SubscriberProfileModel;
36
+ profile?: AdminProfileModel | any;
34
37
  roles?: RoleModel[];
35
- constructor(avatar: string, avatarUrl: string, fullname: string, lastname: string, firstname: string, email: string, password: string, profileType: ProfileType, profileId: number, accountStatus: AccountStatus, id?: number, uid?: string, emailVerifiedAt?: string, phone?: string, address?: string, location?: Coords | null, preferences?: any, authType?: AuthType, lastLoggedInAt?: string, rememberToken?: string, deletedAt?: string, createdAt?: string, updatedAt?: string);
38
+ sessions?: UserSessionModel[];
39
+ devices?: UserDeviceModel[];
40
+ place?: UserPlaceModel;
41
+ constructor(avatar: string, avatarUrl: string, fullname: string, lastname: string, firstname: string, email: string, password: string, profileType: ProfileType | string, profileId: number, accountStatus: AccountStatus, id?: number, uid?: string, emailVerifiedAt?: string, phone?: string, address?: string, location?: Coords | null, preferences?: any, authType?: AuthType, lastLoggedInAt?: string, rememberToken?: string, deletedAt?: string, createdAt?: string, updatedAt?: string);
36
42
  }
@@ -0,0 +1,19 @@
1
+ import { VideoItemModel } from './video-item';
2
+ export declare class VideoCategoryModel {
3
+ id?: number;
4
+ name: string;
5
+ slug?: string;
6
+ color?: string;
7
+ description?: string | null;
8
+ parentId?: number | null;
9
+ position?: number | null;
10
+ isActive: boolean;
11
+ image?: string | null;
12
+ imageUrl?: string | null;
13
+ deletedAt?: string | null;
14
+ createdAt?: string;
15
+ updatedAt?: string;
16
+ items?: VideoItemModel[];
17
+ itemsCount?: number;
18
+ constructor(name: string, isActive: boolean, id?: number, slug?: string, color?: string, description?: string | null, parentId?: number | null, position?: number | null, image?: string | null, deletedAt?: string | null, createdAt?: string, updatedAt?: string);
19
+ }
@@ -0,0 +1,16 @@
1
+ export class VideoCategoryModel {
2
+ constructor(name, isActive, id, slug, color, description, parentId, position, image, deletedAt, createdAt, updatedAt) {
3
+ this.id = id;
4
+ this.name = name;
5
+ this.slug = slug;
6
+ this.color = color;
7
+ this.description = description;
8
+ this.parentId = parentId;
9
+ this.position = position;
10
+ this.isActive = isActive;
11
+ this.image = image;
12
+ this.deletedAt = deletedAt;
13
+ this.createdAt = createdAt;
14
+ this.updatedAt = updatedAt;
15
+ }
16
+ }
@@ -1,6 +1,7 @@
1
1
  import { VideoDisplayType } from '../enums/video-display-type';
2
2
  import { VideoItemSource } from '../enums/video-item-source';
3
3
  import { UserModel } from './user';
4
+ import { VideoCategoryModel } from './video-category';
4
5
  export declare class VideoItemModel {
5
6
  id?: number;
6
7
  foreignId?: string | null;
@@ -19,5 +20,7 @@ export declare class VideoItemModel {
19
20
  createdAt?: string;
20
21
  updatedAt?: string;
21
22
  publisher?: UserModel;
23
+ categories?: VideoCategoryModel[];
24
+ categoriesCount?: number;
22
25
  constructor(title: string, path: string, source: VideoItemSource | undefined, displayType: VideoDisplayType | undefined, visible: boolean, id?: number, url?: string, slug?: string, publisherId?: number, foreignId?: string | null, description?: string | null, thumbnail?: string | null, thumbnailUrl?: string | null, publishedAt?: string | null, createdAt?: string, updatedAt?: string);
23
26
  }
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/enums/account-status.ts","../src/enums/ad-content-type.ts","../src/enums/auth-type.ts","../src/enums/bool.ts","../src/enums/content-type.ts","../src/enums/index.ts","../src/enums/media-file-type.ts","../src/enums/menu-item-target-type.ts","../src/enums/news-article-status.ts","../src/enums/notification-source.ts","../src/enums/notification-type.ts","../src/enums/permalink-content-type.ts","../src/enums/profile-type.ts","../src/enums/response-error-code.ts","../src/enums/user-role.ts","../src/enums/video-display-type.ts","../src/enums/video-item-source.ts","../src/models/ad-identifier.ts","../src/models/ad.ts","../src/models/admin-profile.ts","../src/models/app-information.ts","../src/models/app-setting.ts","../src/models/content-model-item.ts","../src/models/content-model.ts","../src/models/index.ts","../src/models/media-file.ts","../src/models/menu-item-group.ts","../src/models/menu-item.ts","../src/models/menu-location.ts","../src/models/menu.ts","../src/models/news-article.ts","../src/models/news-category.ts","../src/models/news-comment.ts","../src/models/news-tag.ts","../src/models/newsletter-campaign.ts","../src/models/newsletter-email.ts","../src/models/newsletter-phone.ts","../src/models/notification.ts","../src/models/page.ts","../src/models/permalink.ts","../src/models/permission.ts","../src/models/role.ts","../src/models/section.ts","../src/models/subscriber-profile.ts","../src/models/user-session.ts","../src/models/user.ts","../src/models/video-item.ts","../src/models/video-setting.ts","../src/types/app-information.ts","../src/types/common.ts","../src/types/index.ts","../src/types/pagination.ts","../src/types/props.ts","../src/utils/chronos.ts","../src/utils/functions.ts","../src/utils/index.ts"],"version":"5.8.3"}
1
+ {"root":["../src/index.ts","../src/enums/account-status.ts","../src/enums/ad-content-type.ts","../src/enums/auth-type.ts","../src/enums/bool.ts","../src/enums/content-type.ts","../src/enums/editor-message-type.ts","../src/enums/index.ts","../src/enums/media-file-type.ts","../src/enums/menu-item-target-type.ts","../src/enums/news-article-status.ts","../src/enums/notification-source.ts","../src/enums/notification-type.ts","../src/enums/permalink-content-type.ts","../src/enums/profile-type.ts","../src/enums/response-error-code.ts","../src/enums/user-role.ts","../src/enums/video-display-type.ts","../src/enums/video-item-source.ts","../src/enums/content-model/access-scope.ts","../src/enums/content-model/intent.ts","../src/enums/content-model/item-creator-type.ts","../src/models/ad-identifier.ts","../src/models/ad.ts","../src/models/admin-profile.ts","../src/models/app-information.ts","../src/models/app-setting.ts","../src/models/content-model-item.ts","../src/models/content-model.ts","../src/models/data-change.ts","../src/models/index.ts","../src/models/media-file.ts","../src/models/menu-item-group.ts","../src/models/menu-item.ts","../src/models/menu-location.ts","../src/models/menu.ts","../src/models/news-article.ts","../src/models/news-category.ts","../src/models/news-comment.ts","../src/models/news-tag.ts","../src/models/newsletter-campaign.ts","../src/models/newsletter-email.ts","../src/models/newsletter-phone.ts","../src/models/notification.ts","../src/models/page-section.ts","../src/models/page.ts","../src/models/permalink.ts","../src/models/permission.ts","../src/models/role.ts","../src/models/section.ts","../src/models/subscriber-profile.ts","../src/models/user-device.ts","../src/models/user-place.ts","../src/models/user-session.ts","../src/models/user.ts","../src/models/video-category.ts","../src/models/video-item.ts","../src/models/video-setting.ts","../src/types/app-information.ts","../src/types/common.ts","../src/types/index.ts","../src/types/pagination.ts","../src/types/props.ts","../src/utils/chronos.ts","../src/utils/functions.ts","../src/utils/index.ts"],"version":"5.8.3"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@creopse/utils",
3
3
  "description": "Creopse Utils Toolkit",
4
- "version": "0.0.7",
4
+ "version": "0.0.8",
5
5
  "private": false,
6
6
  "author": "Noé Gnanih <noegnanih@gmail.com>",
7
7
  "license": "MIT",