@aptly-as/types 1.1.6 → 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/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/models/index.js.map +1 -1
- package/models/index.ts +1 -0
- package/models/media.d.ts +51 -0
- package/models/media.js +3 -0
- package/models/media.js.map +1 -0
- package/models/media.ts +61 -0
- package/models/option-label.d.ts +2 -1
- package/models/option-label.ts +2 -1
- package/models/organization.d.ts +5 -2
- package/models/organization.ts +5 -2
- package/models/page.d.ts +2 -1
- package/models/page.ts +2 -1
- package/models/producer.d.ts +9 -3
- package/models/producer.ts +9 -3
- package/models/product.d.ts +8 -7
- package/models/product.ts +8 -7
- package/models/project.d.ts +10 -6
- package/models/project.ts +10 -6
- package/models/recommendation.d.ts +5 -2
- package/models/recommendation.ts +5 -2
- package/models/supplier.d.ts +2 -0
- package/models/supplier.ts +2 -0
- package/models/upsell-template.d.ts +7 -2
- package/models/upsell-template.ts +7 -2
- package/package.json +9 -8
package/models/index.d.ts
CHANGED
package/models/index.js
CHANGED
|
@@ -8,6 +8,7 @@ __export(require("./client"));
|
|
|
8
8
|
__export(require("./document"));
|
|
9
9
|
__export(require("./extends"));
|
|
10
10
|
__export(require("./inquiry"));
|
|
11
|
+
__export(require("./media"));
|
|
11
12
|
__export(require("./notification-trigger"));
|
|
12
13
|
__export(require("./option-label"));
|
|
13
14
|
__export(require("./order"));
|
package/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AACA,+BAA0B;AAC1B,8BAAyB;AACzB,gCAA2B;AAC3B,+BAA0B;AAC1B,+BAA0B;AAC1B,4CAAuC;AACvC,oCAA+B;AAC/B,6BAAwB;AACxB,oCAA+B;AAC/B,4BAAuB;AACvB,gCAA2B;AAC3B,+BAA0B;AAC1B,qCAAgC;AAChC,+BAA0B;AAC1B,sCAAiC;AACjC,gCAA2B;AAC3B,2BAAsB;AACtB,4BAAuB;AACvB,qCAAgC;AAChC,kCAA6B;AAC7B,uCAAkC;AAClC,4BAAuB;AACvB,+BAA0B;AAC1B,qCAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AACA,+BAA0B;AAC1B,8BAAyB;AACzB,gCAA2B;AAC3B,+BAA0B;AAC1B,+BAA0B;AAC1B,6BAAwB;AACxB,4CAAuC;AACvC,oCAA+B;AAC/B,6BAAwB;AACxB,oCAA+B;AAC/B,4BAAuB;AACvB,gCAA2B;AAC3B,+BAA0B;AAC1B,qCAAgC;AAChC,+BAA0B;AAC1B,sCAAiC;AACjC,gCAA2B;AAC3B,2BAAsB;AACtB,4BAAuB;AACvB,qCAAgC;AAChC,kCAA6B;AAC7B,uCAAkC;AAClC,4BAAuB;AACvB,+BAA0B;AAC1B,qCAAgC"}
|
package/models/index.ts
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AptlyOrganizationSchema } from './organization';
|
|
2
|
+
export interface AptlyMediaSchema<ID, DATE> {
|
|
3
|
+
_id: ID;
|
|
4
|
+
archived: boolean;
|
|
5
|
+
created: DATE;
|
|
6
|
+
updated: DATE;
|
|
7
|
+
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
8
|
+
src: string;
|
|
9
|
+
name: string;
|
|
10
|
+
alt: string;
|
|
11
|
+
caption?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
mime: string;
|
|
14
|
+
tags: string[];
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
albums: string[];
|
|
18
|
+
public_id: string;
|
|
19
|
+
asset_id: string;
|
|
20
|
+
version: number;
|
|
21
|
+
version_id: string;
|
|
22
|
+
signature: string;
|
|
23
|
+
format: string;
|
|
24
|
+
resource_type: string;
|
|
25
|
+
created_at: string;
|
|
26
|
+
bytes: number;
|
|
27
|
+
type: string;
|
|
28
|
+
etag: string;
|
|
29
|
+
placeholder: boolean;
|
|
30
|
+
url: string;
|
|
31
|
+
original_filename: string;
|
|
32
|
+
srcUrl?: string;
|
|
33
|
+
uploadSignature?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface AptlyMediaSrcArea {
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
}
|
|
41
|
+
export interface AptlyMediaSrcLocation {
|
|
42
|
+
x: number;
|
|
43
|
+
y: number;
|
|
44
|
+
}
|
|
45
|
+
export interface AptlyMediaSrcSchema<ID, DATE> extends Pick<AptlyMediaSchema<ID, DATE>, AptlyMediaSrcKeys> {
|
|
46
|
+
area?: AptlyMediaSrcArea;
|
|
47
|
+
location?: AptlyMediaSrcLocation;
|
|
48
|
+
}
|
|
49
|
+
export declare type AptlyMediaSrcKeys = '_id' | 'name' | 'src' | 'url' | 'alt' | 'title' | 'caption' | 'mime' | 'width' | 'height';
|
|
50
|
+
export declare type AptlyMediaSrc = AptlyMediaSrcSchema<string, string>;
|
|
51
|
+
export declare type AptlyMedia = AptlyMediaSchema<string, string>;
|
package/models/media.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.js","sourceRoot":"","sources":["media.ts"],"names":[],"mappings":""}
|
package/models/media.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AptlyOrganizationSchema } from './organization';
|
|
2
|
+
|
|
3
|
+
export interface AptlyMediaSchema<ID, DATE> {
|
|
4
|
+
// Aptly data
|
|
5
|
+
_id: ID;
|
|
6
|
+
archived: boolean;
|
|
7
|
+
created: DATE;
|
|
8
|
+
updated: DATE;
|
|
9
|
+
organization: ID | AptlyOrganizationSchema<ID, DATE>;
|
|
10
|
+
src: string;
|
|
11
|
+
name: string;
|
|
12
|
+
alt: string;
|
|
13
|
+
caption?: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
mime: string;
|
|
16
|
+
tags: string[];
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
albums: string[];
|
|
20
|
+
|
|
21
|
+
// Cloudinary datayarn sta
|
|
22
|
+
public_id: string;
|
|
23
|
+
asset_id: string;
|
|
24
|
+
version: number;
|
|
25
|
+
version_id: string;
|
|
26
|
+
signature: string;
|
|
27
|
+
format: string;
|
|
28
|
+
resource_type: string;
|
|
29
|
+
created_at: string;
|
|
30
|
+
bytes: number;
|
|
31
|
+
type: string;
|
|
32
|
+
etag: string;
|
|
33
|
+
placeholder: boolean;
|
|
34
|
+
url: string;
|
|
35
|
+
original_filename: string;
|
|
36
|
+
|
|
37
|
+
// Aptly recognize help values
|
|
38
|
+
srcUrl?: string; // Recognize image if uploaded with url.
|
|
39
|
+
uploadSignature?: string; // Recognize images with buffer content
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface AptlyMediaSrcArea {
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface AptlyMediaSrcLocation {
|
|
50
|
+
x: number;
|
|
51
|
+
y: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface AptlyMediaSrcSchema<ID, DATE> extends Pick<AptlyMediaSchema<ID, DATE>, AptlyMediaSrcKeys> {
|
|
55
|
+
area?: AptlyMediaSrcArea;
|
|
56
|
+
location?: AptlyMediaSrcLocation;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type AptlyMediaSrcKeys = '_id' | 'name' | 'src' | 'url' | 'alt' | 'title' | 'caption' | 'mime' | 'width' | 'height';
|
|
60
|
+
export type AptlyMediaSrc = AptlyMediaSrcSchema<string, string>;
|
|
61
|
+
export type AptlyMedia = AptlyMediaSchema<string, string>;
|
package/models/option-label.d.ts
CHANGED
package/models/option-label.ts
CHANGED
package/models/organization.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels } from '../core';
|
|
2
2
|
import { AptlySignageSchema } from '../core/signage';
|
|
3
3
|
import { AptlyUserSchema } from './user';
|
|
4
|
+
import { AptlyMediaSrc } from './media';
|
|
4
5
|
export declare type AptlyOrganization = AptlyOrganizationSchema<string, string>;
|
|
5
6
|
export interface AptlyOrganizationSchema<ID, DATE> {
|
|
6
7
|
_id: ID;
|
|
7
8
|
name: string;
|
|
8
9
|
slug: string;
|
|
9
|
-
logo
|
|
10
|
+
logo?: string | null;
|
|
11
|
+
logoMedia?: AptlyMediaSrc | null;
|
|
10
12
|
address: {
|
|
11
13
|
visit: {
|
|
12
14
|
street: string;
|
|
@@ -37,6 +39,7 @@ export interface AptlyOrganizationIntegrationsSchema<ID> {
|
|
|
37
39
|
}
|
|
38
40
|
export declare type AptlyOrganizationMember = AptlyOrganizationMemberSchema<string, string>;
|
|
39
41
|
export interface AptlyOrganizationMemberSchema<ID, DATE> {
|
|
42
|
+
_id: ID;
|
|
40
43
|
user: AptlyUserSchema<ID, DATE> | ID;
|
|
41
|
-
permissions:
|
|
44
|
+
permissions: AptlyPermissionOrganizationModels[];
|
|
42
45
|
}
|
package/models/organization.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { AptlyPermissionModulesModels, AptlyPermissionOrganizationModels } from '../core';
|
|
2
2
|
import { AptlySignageSchema } from '../core/signage';
|
|
3
3
|
import { AptlyUserSchema } from './user';
|
|
4
|
+
import { AptlyMediaSrc } from './media';
|
|
4
5
|
|
|
5
6
|
export type AptlyOrganization = AptlyOrganizationSchema<string, string>;
|
|
6
7
|
export interface AptlyOrganizationSchema<ID, DATE> {
|
|
7
8
|
_id: ID;
|
|
8
9
|
name: string;
|
|
9
10
|
slug: string;
|
|
10
|
-
logo
|
|
11
|
+
logo?: string | null;
|
|
12
|
+
logoMedia?: AptlyMediaSrc | null;
|
|
11
13
|
address: {
|
|
12
14
|
visit: {
|
|
13
15
|
street: string;
|
|
@@ -40,6 +42,7 @@ export interface AptlyOrganizationIntegrationsSchema<ID> {
|
|
|
40
42
|
|
|
41
43
|
export type AptlyOrganizationMember = AptlyOrganizationMemberSchema<string, string>;
|
|
42
44
|
export interface AptlyOrganizationMemberSchema<ID, DATE> {
|
|
45
|
+
_id: ID;
|
|
43
46
|
user: AptlyUserSchema<ID, DATE> | ID;
|
|
44
|
-
permissions:
|
|
47
|
+
permissions: AptlyPermissionOrganizationModels[];
|
|
45
48
|
}
|
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
|
|
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
|
|
15
|
+
upsellTemplate?: ID | null;
|
|
15
16
|
sections: AptlyPageSectionSchema<ID, DATE>[];
|
|
16
17
|
archived?: boolean;
|
|
17
18
|
}
|
package/models/producer.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { AptlyHistorySchema } from './extends';
|
|
2
|
+
import { AptlyMediaSrc } from './media';
|
|
2
3
|
export declare type AptlyProducer = AptlyProducerSchema<string, string>;
|
|
3
4
|
export interface AptlyProducerSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> {
|
|
4
5
|
_id: ID;
|
|
5
6
|
name: string;
|
|
6
7
|
email: string;
|
|
7
|
-
logo: string;
|
|
8
|
+
logo: string | null;
|
|
9
|
+
logoMedia?: AptlyMediaSrc | null;
|
|
10
|
+
url?: string;
|
|
8
11
|
created: DATE;
|
|
9
|
-
organization
|
|
10
|
-
extends: ID;
|
|
12
|
+
organization?: ID;
|
|
11
13
|
archived: boolean;
|
|
12
14
|
createdBy: ID;
|
|
13
15
|
tags: ID[];
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated not used
|
|
18
|
+
*/
|
|
19
|
+
extends: ID;
|
|
14
20
|
}
|
package/models/producer.ts
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { AptlyHistorySchema } from './extends';
|
|
2
|
+
import { AptlyMediaSrc } from './media';
|
|
2
3
|
|
|
3
4
|
export type AptlyProducer = AptlyProducerSchema<string, string>;
|
|
4
5
|
export interface AptlyProducerSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> {
|
|
5
6
|
_id: ID;
|
|
6
7
|
name: string;
|
|
7
8
|
email: string;
|
|
8
|
-
logo: string;
|
|
9
|
+
logo: string | null;
|
|
10
|
+
logoMedia?: AptlyMediaSrc | null;
|
|
11
|
+
url?: string;
|
|
9
12
|
created: DATE;
|
|
10
|
-
organization
|
|
11
|
-
extends: ID;
|
|
13
|
+
organization?: ID;
|
|
12
14
|
archived: boolean;
|
|
13
15
|
createdBy: ID;
|
|
14
16
|
tags: ID[];
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated not used
|
|
19
|
+
*/
|
|
20
|
+
extends: ID;
|
|
15
21
|
}
|
package/models/product.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends';
|
|
2
|
+
import { AptlyMediaSrcSchema } from './media';
|
|
2
3
|
export declare type AptlyProduct = AptlyProductSchema<string, string>;
|
|
3
4
|
export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyHistorySchema<ID, DATE> {
|
|
4
5
|
_id: ID;
|
|
@@ -10,7 +11,7 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
|
|
|
10
11
|
extends?: ID;
|
|
11
12
|
productNumber: string;
|
|
12
13
|
description: string;
|
|
13
|
-
images:
|
|
14
|
+
images: AptlyProductImageSchema<ID, DATE>[];
|
|
14
15
|
variants: AptlyProductVariantSchema<ID, DATE>[];
|
|
15
16
|
color?: string;
|
|
16
17
|
colorLabel?: string;
|
|
@@ -37,18 +38,18 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
|
|
|
37
38
|
stats?: any;
|
|
38
39
|
importID?: ID;
|
|
39
40
|
}
|
|
40
|
-
export declare type
|
|
41
|
-
export interface
|
|
42
|
-
_id: ID;
|
|
41
|
+
export declare type AptlyProductImage = AptlyProductImageSchema<string, string>;
|
|
42
|
+
export interface AptlyProductImageSchema<ID, DATE> extends AptlyMediaSrcSchema<ID, DATE> {
|
|
43
43
|
image: string;
|
|
44
|
-
description
|
|
45
|
-
featured
|
|
44
|
+
description?: string;
|
|
45
|
+
featured?: boolean;
|
|
46
46
|
}
|
|
47
47
|
export declare type AptlyProductVariant = AptlyProductVariantSchema<string, string>;
|
|
48
48
|
export interface AptlyProductVariantSchema<ID, DATE> {
|
|
49
49
|
_id: ID;
|
|
50
|
-
images: IProductImageSchema<ID>[];
|
|
51
50
|
title: string;
|
|
51
|
+
images: AptlyProductImageSchema<ID, DATE>[];
|
|
52
|
+
documents: ID[];
|
|
52
53
|
name?: string;
|
|
53
54
|
description?: string;
|
|
54
55
|
productNumber?: string;
|
package/models/product.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends';
|
|
2
|
+
import { AptlyMediaSrcSchema } from './media';
|
|
2
3
|
|
|
3
4
|
export type AptlyProduct = AptlyProductSchema<string, string>;
|
|
4
5
|
export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyHistorySchema<ID, DATE> {
|
|
@@ -11,7 +12,7 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
|
|
|
11
12
|
extends?: ID;
|
|
12
13
|
productNumber: string;
|
|
13
14
|
description: string;
|
|
14
|
-
images:
|
|
15
|
+
images: AptlyProductImageSchema<ID, DATE>[];
|
|
15
16
|
variants: AptlyProductVariantSchema<ID, DATE>[];
|
|
16
17
|
color?: string;
|
|
17
18
|
colorLabel?: string;
|
|
@@ -39,19 +40,19 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
|
|
|
39
40
|
importID?: ID;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
export type
|
|
43
|
-
export interface
|
|
44
|
-
_id: ID;
|
|
43
|
+
export type AptlyProductImage = AptlyProductImageSchema<string, string>;
|
|
44
|
+
export interface AptlyProductImageSchema<ID, DATE> extends AptlyMediaSrcSchema<ID, DATE> {
|
|
45
45
|
image: string;
|
|
46
|
-
description
|
|
47
|
-
featured
|
|
46
|
+
description?: string;
|
|
47
|
+
featured?: boolean;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export type AptlyProductVariant = AptlyProductVariantSchema<string, string>;
|
|
51
51
|
export interface AptlyProductVariantSchema<ID, DATE> {
|
|
52
52
|
_id: ID;
|
|
53
|
-
images: IProductImageSchema<ID>[];
|
|
54
53
|
title: string;
|
|
54
|
+
images: AptlyProductImageSchema<ID, DATE>[];
|
|
55
|
+
documents: ID[];
|
|
55
56
|
|
|
56
57
|
name?: string;
|
|
57
58
|
description?: string;
|
package/models/project.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { AptlyUserSchema } from './user';
|
|
|
4
4
|
import { AptlyHistorySchema } from './extends';
|
|
5
5
|
import { AptlyDocumentSchema } from './document';
|
|
6
6
|
import { AptlyUnitOptionExtraItemSchema } from './unit';
|
|
7
|
+
import { AptlyMediaSrc } from './media';
|
|
7
8
|
export declare type AptlyProject = AptlyProjectSchema<string, string>;
|
|
8
9
|
export interface AptlyProjectSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> {
|
|
9
10
|
_id: ID;
|
|
@@ -69,13 +70,16 @@ export interface AptlyProjectTheme {
|
|
|
69
70
|
tertiary?: string;
|
|
70
71
|
links?: [string];
|
|
71
72
|
};
|
|
72
|
-
images
|
|
73
|
-
logo?: string;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
images: {
|
|
74
|
+
logo?: string | null;
|
|
75
|
+
logoMedia?: AptlyMediaSrc | null;
|
|
76
|
+
largeLogo?: string | null;
|
|
77
|
+
hero?: string | null;
|
|
78
|
+
heroMedia?: AptlyMediaSrc | null;
|
|
79
|
+
fallback?: string | null;
|
|
80
|
+
fallbackMedia?: AptlyMediaSrc | null;
|
|
77
81
|
};
|
|
78
|
-
contact
|
|
82
|
+
contact: {
|
|
79
83
|
name?: string;
|
|
80
84
|
phone?: string;
|
|
81
85
|
mail?: string;
|
package/models/project.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { AptlyUserSchema } from './user';
|
|
|
4
4
|
import { AptlyHistorySchema } from './extends';
|
|
5
5
|
import { AptlyDocumentSchema } from './document';
|
|
6
6
|
import { AptlyUnitOptionExtraItemSchema } from './unit';
|
|
7
|
+
import { AptlyMediaSrc } from './media';
|
|
7
8
|
|
|
8
9
|
export type AptlyProject = AptlyProjectSchema<string, string>;
|
|
9
10
|
export interface AptlyProjectSchema<ID, DATE> extends AptlyHistorySchema<ID, DATE> {
|
|
@@ -74,13 +75,16 @@ export interface AptlyProjectTheme {
|
|
|
74
75
|
tertiary?: string;
|
|
75
76
|
links?: [string];
|
|
76
77
|
};
|
|
77
|
-
images
|
|
78
|
-
logo?: string;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
images: {
|
|
79
|
+
logo?: string | null;
|
|
80
|
+
logoMedia?: AptlyMediaSrc | null;
|
|
81
|
+
largeLogo?: string | null;
|
|
82
|
+
hero?: string | null;
|
|
83
|
+
heroMedia?: AptlyMediaSrc | null;
|
|
84
|
+
fallback?: string | null;
|
|
85
|
+
fallbackMedia?: AptlyMediaSrc | null;
|
|
82
86
|
};
|
|
83
|
-
contact
|
|
87
|
+
contact: {
|
|
84
88
|
name?: string;
|
|
85
89
|
phone?: string;
|
|
86
90
|
mail?: string;
|
|
@@ -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
|
-
|
|
5
|
+
organization?: ID;
|
|
6
|
+
project?: ID;
|
|
5
7
|
title: string;
|
|
6
8
|
name: string;
|
|
7
9
|
color: string;
|
|
8
10
|
text: string;
|
|
9
|
-
image
|
|
11
|
+
image?: string | null;
|
|
12
|
+
imageMedia?: AptlyMediaSrc | null;
|
|
10
13
|
archived?: boolean;
|
|
11
14
|
}
|
package/models/recommendation.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
+
organization?: ID;
|
|
7
|
+
project?: ID;
|
|
6
8
|
title: string;
|
|
7
9
|
name: string;
|
|
8
10
|
color: string;
|
|
9
11
|
text: string;
|
|
10
|
-
image
|
|
12
|
+
image?: string | null;
|
|
13
|
+
imageMedia?: AptlyMediaSrc | null;
|
|
11
14
|
archived?: boolean;
|
|
12
15
|
}
|
package/models/supplier.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { AptlyMediaSrc } from './media';
|
|
1
2
|
export declare type AptlySupplier = AptlySupplierSchema<string, string>;
|
|
2
3
|
export interface AptlySupplierSchema<ID, DATE> {
|
|
3
4
|
_id: ID;
|
|
4
5
|
name: string;
|
|
5
6
|
email?: string;
|
|
6
7
|
logo: string | null;
|
|
8
|
+
logoMedia?: AptlyMediaSrc | null;
|
|
7
9
|
created: DATE;
|
|
8
10
|
archived: boolean;
|
|
9
11
|
createdBy: ID;
|
package/models/supplier.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AptlyMediaSrc } from './media';
|
|
1
2
|
|
|
2
3
|
export type AptlySupplier = AptlySupplierSchema<string, string>;
|
|
3
4
|
export interface AptlySupplierSchema<ID, DATE> {
|
|
@@ -5,6 +6,7 @@ export interface AptlySupplierSchema<ID, DATE> {
|
|
|
5
6
|
name: string;
|
|
6
7
|
email?: string;
|
|
7
8
|
logo: string | null;
|
|
9
|
+
logoMedia?: AptlyMediaSrc | null;
|
|
8
10
|
created: DATE;
|
|
9
11
|
archived: boolean;
|
|
10
12
|
createdBy: ID;
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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.
|
|
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/
|
|
36
|
+
"url": "https://github.com/aptly-as/types/issues"
|
|
33
37
|
},
|
|
34
|
-
"homepage": "https://github.com/aptly-as/
|
|
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
|
}
|