@code.store/arcxp-sdk-ts 4.14.0 → 4.14.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.
@@ -6,6 +6,22 @@ export type SectionReference = {
6
6
  type: 'section';
7
7
  };
8
8
  };
9
+ export type SectionOrder = {
10
+ default?: number;
11
+ footer?: number;
12
+ main_navigation?: number;
13
+ header?: number;
14
+ } & {
15
+ [key: string]: number | undefined;
16
+ };
17
+ export type SectionParent = {
18
+ default?: string;
19
+ footer?: null | string;
20
+ main_navigation?: string;
21
+ header?: string;
22
+ } & {
23
+ [key: string]: string | undefined;
24
+ };
9
25
  export type Section = {
10
26
  _id: string;
11
27
  site?: {
@@ -35,12 +51,8 @@ export type Section = {
35
51
  };
36
52
  _website?: string;
37
53
  name: string;
38
- order?: any;
39
- parent?: {
40
- default?: string;
41
- footer?: null | string;
42
- header?: string;
43
- };
54
+ order?: SectionOrder;
55
+ parent?: SectionParent;
44
56
  ancestors?: {
45
57
  default: [];
46
58
  footer: [];
@@ -53,11 +65,6 @@ export type SetSection = {
53
65
  _id: string;
54
66
  website: string;
55
67
  name: string;
56
- parent: {
57
- default: string;
58
- footer?: null | string;
59
- header: string;
60
- };
61
68
  navigation?: {
62
69
  nav_title: string;
63
70
  };
@@ -65,7 +72,8 @@ export type SetSection = {
65
72
  alias_ids: string[];
66
73
  };
67
74
  ancestors?: string[];
68
- order?: any;
75
+ order?: SectionOrder;
76
+ parent?: SectionParent;
69
77
  inactive?: false;
70
78
  site?: Partial<{
71
79
  site_url: null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code.store/arcxp-sdk-ts",
3
- "version": "4.14.0",
3
+ "version": "4.14.1",
4
4
  "description": "A strongly typed set of ArcXP API's and utilities reduce the amount of work required to develop with ArcXP, starting with reducing the boilerplate code you have to write.",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",