@aptly-as/types 1.2.0 → 1.2.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.
- package/models/producer.d.ts +9 -3
- package/models/producer.ts +9 -3
- package/models/supplier.d.ts +2 -0
- package/models/supplier.ts +2 -0
- package/package.json +1 -1
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/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;
|