@aptly-as/types 1.2.2 → 1.2.3

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/models/page.d.ts CHANGED
@@ -5,12 +5,13 @@ export interface AptlyPageSchema<ID, DATE> {
5
5
  slug: string;
6
6
  name: string;
7
7
  project: ID;
8
+ organization: ID;
8
9
  showInMenu: boolean;
9
10
  summary: string;
10
11
  icon?: string;
11
12
  legacy?: string;
12
13
  image?: string;
13
- upsellTemplate: ID;
14
+ upsellTemplate?: ID | null;
14
15
  sections: AptlyPageSectionSchema<ID, DATE>[];
15
16
  archived?: boolean;
16
17
  }
package/models/page.ts CHANGED
@@ -6,12 +6,13 @@ export interface AptlyPageSchema<ID, DATE> {
6
6
  slug: string;
7
7
  name: string;
8
8
  project: ID;
9
+ organization: ID;
9
10
  showInMenu: boolean;
10
11
  summary: string;
11
12
  icon?: string;
12
13
  legacy?: string; // Deprecated
13
14
  image?: string; // Deprecated
14
- upsellTemplate: ID;
15
+ upsellTemplate?: ID | null;
15
16
  sections: AptlyPageSectionSchema<ID, DATE>[];
16
17
  archived?: boolean;
17
18
  }
@@ -1,11 +1,14 @@
1
+ import { AptlyMediaSrc } from './media';
1
2
  export declare type AptlyRecommendation = AptlyRecommendationSchema<string, string>;
2
3
  export interface AptlyRecommendationSchema<ID, DATE> {
3
4
  _id: ID;
4
- project: ID;
5
+ organization?: ID;
6
+ project?: ID;
5
7
  title: string;
6
8
  name: string;
7
9
  color: string;
8
10
  text: string;
9
- image: string;
11
+ image?: string | null;
12
+ imageMedia?: AptlyMediaSrc | null;
10
13
  archived?: boolean;
11
14
  }
@@ -1,12 +1,15 @@
1
+ import { AptlyMediaSrc } from './media';
1
2
 
2
3
  export type AptlyRecommendation = AptlyRecommendationSchema<string, string>;
3
4
  export interface AptlyRecommendationSchema<ID, DATE> {
4
5
  _id: ID;
5
- project: ID;
6
+ organization?: ID;
7
+ project?: ID;
6
8
  title: string;
7
9
  name: string;
8
10
  color: string;
9
11
  text: string;
10
- image: string;
12
+ image?: string | null;
13
+ imageMedia?: AptlyMediaSrc | null;
11
14
  archived?: boolean;
12
15
  }
@@ -3,12 +3,17 @@ export declare type AptlyUpsellTemplate = AptlyUpsellTemplateSchema<string, stri
3
3
  export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> {
4
4
  _id: ID;
5
5
  name: string;
6
+ /**
7
+ * @deprecated not used.. Only for frontend
8
+ */
6
9
  description: string;
7
- image?: string;
10
+ image?: string | null;
11
+ imageMedia?: string | null;
8
12
  videoEmbed?: string;
9
13
  text?: string;
10
14
  links: ID[];
11
- project: ID;
15
+ organization?: ID;
16
+ project?: ID;
12
17
  created: DATE;
13
18
  archived: boolean;
14
19
  }
@@ -4,12 +4,17 @@ export type AptlyUpsellTemplate = AptlyUpsellTemplateSchema<string, string>;
4
4
  export interface AptlyUpsellTemplateSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> {
5
5
  _id: ID;
6
6
  name: string;
7
+ /**
8
+ * @deprecated not used.. Only for frontend
9
+ */
7
10
  description: string;
8
- image?: string;
11
+ image?: string | null;
12
+ imageMedia?: string | null;
9
13
  videoEmbed?: string;
10
14
  text?: string;
11
15
  links: ID[];
12
- project: ID;
16
+ organization?: ID;
17
+ project?: ID;
13
18
  created: DATE;
14
19
  archived: boolean;
15
20
  }
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Aptly types and enums",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
+ "author": "Emil A. Olsen <emil@aptly.as>",
7
8
  "engines": {
8
9
  "node": ">14.0.0"
9
10
  },
@@ -18,6 +19,10 @@
18
19
  "postversion": "git push && git push --tags",
19
20
  "prepublish": "npm run build"
20
21
  },
22
+ "dependencies": {},
23
+ "devDependencies": {
24
+ "typescript": "^4.2.4"
25
+ },
21
26
  "repository": {
22
27
  "type": "git",
23
28
  "url": "git+https://github.com/aptly-as/types.git"
@@ -27,11 +32,10 @@
27
32
  "aptly",
28
33
  "types"
29
34
  ],
30
- "author": "Emil A. Olsen",
31
35
  "bugs": {
32
- "url": "https://github.com/aptly-as/inwise-types/issues"
36
+ "url": "https://github.com/aptly-as/types/issues"
33
37
  },
34
- "homepage": "https://github.com/aptly-as/inwise-types#readme",
38
+ "homepage": "https://github.com/aptly-as/types#readme",
35
39
  "files": [
36
40
  "core",
37
41
  "enums",
@@ -40,8 +44,5 @@
40
44
  "index.d.ts",
41
45
  "index.js",
42
46
  "index.js.map"
43
- ],
44
- "devDependencies": {
45
- "typescript": "^4.2.4"
46
- }
47
+ ]
47
48
  }