@creopse/utils 0.0.4 → 0.0.6
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.
- package/dist/models/page.d.ts +11 -2
- package/dist/models/page.js +1 -2
- package/dist/models/section.d.ts +12 -4
- package/dist/models/section.js +2 -1
- package/dist/types/props.d.ts +14 -1
- package/package.json +1 -1
package/dist/models/page.d.ts
CHANGED
|
@@ -4,12 +4,21 @@ export declare class PageModel {
|
|
|
4
4
|
title: string;
|
|
5
5
|
slug: string;
|
|
6
6
|
content: string | null;
|
|
7
|
-
sectionsData?: any | null;
|
|
8
7
|
sectionsOrder?: string[] | null;
|
|
9
8
|
sectionsDisabled?: string[] | null;
|
|
10
9
|
sections?: SectionModel[];
|
|
11
10
|
id?: number;
|
|
12
11
|
createdAt?: string;
|
|
13
12
|
updatedAt?: string;
|
|
14
|
-
|
|
13
|
+
pivot?: {
|
|
14
|
+
dataSourceLinkId?: string | null;
|
|
15
|
+
dataSourcePageId?: number | null;
|
|
16
|
+
dataSourcePageTitle?: string | null;
|
|
17
|
+
linkId?: string | null;
|
|
18
|
+
data?: any;
|
|
19
|
+
settings?: any;
|
|
20
|
+
createdAt?: string;
|
|
21
|
+
updatedAt?: string;
|
|
22
|
+
};
|
|
23
|
+
constructor(name: string, title: string, slug: string, content: string | null, sectionsOrder?: string[] | null, sectionsDisabled?: string[] | null, sections?: SectionModel[], id?: number, createdAt?: string, updatedAt?: string);
|
|
15
24
|
}
|
package/dist/models/page.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export class PageModel {
|
|
2
|
-
constructor(name, title, slug, content,
|
|
2
|
+
constructor(name, title, slug, content, sectionsOrder, sectionsDisabled, sections, id, createdAt, updatedAt) {
|
|
3
3
|
this.id = id;
|
|
4
4
|
this.name = name;
|
|
5
5
|
this.title = title;
|
|
6
6
|
this.slug = slug;
|
|
7
7
|
this.content = content;
|
|
8
|
-
this.sectionsData = sectionsData;
|
|
9
8
|
this.sectionsOrder = sectionsOrder;
|
|
10
9
|
this.sectionsDisabled = sectionsDisabled;
|
|
11
10
|
this.sections = sections;
|
package/dist/models/section.d.ts
CHANGED
|
@@ -6,12 +6,20 @@ export declare class SectionModel {
|
|
|
6
6
|
slug: string;
|
|
7
7
|
content?: string | null;
|
|
8
8
|
dataStructure?: any | null;
|
|
9
|
+
settingsStructure?: any | null;
|
|
9
10
|
createdAt?: string;
|
|
10
11
|
updatedAt?: string;
|
|
11
12
|
pages?: PageModel[];
|
|
12
13
|
pagesCount?: number;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
pivot?: {
|
|
15
|
+
dataSourceLinkId?: string | null;
|
|
16
|
+
dataSourcePageId?: number | null;
|
|
17
|
+
dataSourcePageTitle?: string | null;
|
|
18
|
+
linkId?: string | null;
|
|
19
|
+
data?: any;
|
|
20
|
+
settings?: any;
|
|
21
|
+
createdAt?: string;
|
|
22
|
+
updatedAt?: string;
|
|
23
|
+
};
|
|
24
|
+
constructor(name: string, slug: string, title: string, content?: string | null, dataStructure?: any | null, settingsStructure?: any | null, id?: number, createdAt?: string, updatedAt?: string);
|
|
17
25
|
}
|
package/dist/models/section.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export class SectionModel {
|
|
2
|
-
constructor(name, slug, title, content, dataStructure, id, createdAt, updatedAt) {
|
|
2
|
+
constructor(name, slug, title, content, dataStructure, settingsStructure, id, createdAt, updatedAt) {
|
|
3
3
|
this.id = id;
|
|
4
4
|
this.name = name;
|
|
5
5
|
this.slug = slug;
|
|
6
6
|
this.title = title;
|
|
7
7
|
this.content = content;
|
|
8
8
|
this.dataStructure = dataStructure;
|
|
9
|
+
this.settingsStructure = settingsStructure;
|
|
9
10
|
this.createdAt = createdAt;
|
|
10
11
|
this.updatedAt = updatedAt;
|
|
11
12
|
}
|
package/dist/types/props.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AdModel } from '../models/ad';
|
|
2
2
|
import type { AdIdentifierModel } from '../models/ad-identifier';
|
|
3
|
+
import { AppInformationModel } from '../models/app-information';
|
|
3
4
|
import type { ContentModelModel } from '../models/content-model';
|
|
4
5
|
import type { ContentModelItemModel } from '../models/content-model-item';
|
|
5
6
|
import type { MenuModel } from '../models/menu';
|
|
@@ -12,7 +13,6 @@ import type { PageModel } from '../models/page';
|
|
|
12
13
|
import type { SectionModel } from '../models/section';
|
|
13
14
|
import type { Page } from '@inertiajs/core';
|
|
14
15
|
import type { PaginatedArticles } from './pagination';
|
|
15
|
-
import { AppInformationModel } from '../models/app-information';
|
|
16
16
|
export interface SharedProps extends Page {
|
|
17
17
|
appLocale: string;
|
|
18
18
|
appFallbackLocale: string;
|
|
@@ -40,3 +40,16 @@ export interface SharedProps extends Page {
|
|
|
40
40
|
youtubeChannelId?: string;
|
|
41
41
|
[key: string]: unknown;
|
|
42
42
|
}
|
|
43
|
+
export interface SectionProps {
|
|
44
|
+
data?: any;
|
|
45
|
+
settings?: any;
|
|
46
|
+
sectionKey?: string;
|
|
47
|
+
metadata: {
|
|
48
|
+
slug?: string;
|
|
49
|
+
name?: string;
|
|
50
|
+
title?: string;
|
|
51
|
+
linkId?: string | null | undefined;
|
|
52
|
+
createdAt?: string;
|
|
53
|
+
updatedAt?: string;
|
|
54
|
+
};
|
|
55
|
+
}
|