@aptly-as/types 1.2.0 → 1.3.0

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/enums/index.d.ts CHANGED
@@ -82,3 +82,12 @@ export declare enum AptlyErrorCode {
82
82
  InvalidFields = "invalid-fields",
83
83
  SessionExpired = "session-expired"
84
84
  }
85
+ export declare enum AptlyQueueDownloadType {
86
+ Document = "document",
87
+ Image = "image"
88
+ }
89
+ export declare enum AptlyQueueDownloadStatus {
90
+ Queued = "queued",
91
+ Downloaded = "downloaded",
92
+ Error = "error"
93
+ }
package/enums/index.js CHANGED
@@ -100,4 +100,15 @@ var AptlyErrorCode;
100
100
  AptlyErrorCode["InvalidFields"] = "invalid-fields";
101
101
  AptlyErrorCode["SessionExpired"] = "session-expired";
102
102
  })(AptlyErrorCode = exports.AptlyErrorCode || (exports.AptlyErrorCode = {}));
103
+ var AptlyQueueDownloadType;
104
+ (function (AptlyQueueDownloadType) {
105
+ AptlyQueueDownloadType["Document"] = "document";
106
+ AptlyQueueDownloadType["Image"] = "image";
107
+ })(AptlyQueueDownloadType = exports.AptlyQueueDownloadType || (exports.AptlyQueueDownloadType = {}));
108
+ var AptlyQueueDownloadStatus;
109
+ (function (AptlyQueueDownloadStatus) {
110
+ AptlyQueueDownloadStatus["Queued"] = "queued";
111
+ AptlyQueueDownloadStatus["Downloaded"] = "downloaded";
112
+ AptlyQueueDownloadStatus["Error"] = "error";
113
+ })(AptlyQueueDownloadStatus = exports.AptlyQueueDownloadStatus || (exports.AptlyQueueDownloadStatus = {}));
103
114
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AACA,gCAA2B;AAC3B,qCAAgC;AAChC,+BAA0B;AAE1B,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,+CAA2B,CAAA;IAC3B,yDAAqC,CAAA;IACrC,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AsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,6CAAiB,CAAA;IACjB,qDAAyB,CAAA;IACzB,2CAAe,CAAA;AACjB,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC"}
package/enums/index.ts CHANGED
@@ -95,4 +95,15 @@ export enum AptlySignageSignerRef {
95
95
  export enum AptlyErrorCode {
96
96
  InvalidFields = 'invalid-fields',
97
97
  SessionExpired = 'session-expired'
98
+ }
99
+
100
+ export enum AptlyQueueDownloadType {
101
+ Document = 'document',
102
+ Image = 'image',
103
+ }
104
+
105
+ export enum AptlyQueueDownloadStatus {
106
+ Queued = 'queued',
107
+ Downloaded = 'downloaded',
108
+ Error = 'error',
98
109
  }
@@ -9,6 +9,7 @@ export interface AptlyDocumentSchema<ID, DATE> {
9
9
  organization?: string;
10
10
  project?: string;
11
11
  unit?: string;
12
+ product?: string;
12
13
  text?: string;
13
14
  size: number;
14
15
  created: DATE;
@@ -11,6 +11,7 @@ export interface AptlyDocumentSchema<ID, DATE> {
11
11
  organization?: string;
12
12
  project?: string;
13
13
  unit?: string;
14
+ product?: string;
14
15
  text?: string;
15
16
  size: number;
16
17
  created: DATE;
package/models/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export * from './producer';
13
13
  export * from './product';
14
14
  export * from './product-stats';
15
15
  export * from './project';
16
+ export * from './queue-download';
16
17
  export * from './recommendation';
17
18
  export * from './supplier';
18
19
  export * from './tag';
package/models/index.js CHANGED
@@ -18,6 +18,7 @@ __export(require("./producer"));
18
18
  __export(require("./product"));
19
19
  __export(require("./product-stats"));
20
20
  __export(require("./project"));
21
+ __export(require("./queue-download"));
21
22
  __export(require("./recommendation"));
22
23
  __export(require("./supplier"));
23
24
  __export(require("./tag"));
@@ -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,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"}
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,sCAAiC;AACjC,gCAA2B;AAC3B,2BAAsB;AACtB,4BAAuB;AACvB,qCAAgC;AAChC,kCAA6B;AAC7B,uCAAkC;AAClC,4BAAuB;AACvB,+BAA0B;AAC1B,qCAAgC"}
package/models/index.ts CHANGED
@@ -14,6 +14,7 @@ export * from './producer';
14
14
  export * from './product';
15
15
  export * from './product-stats';
16
16
  export * from './project';
17
+ export * from './queue-download';
17
18
  export * from './recommendation';
18
19
  export * from './supplier';
19
20
  export * from './tag';
@@ -3,6 +3,7 @@ export interface AptlyOptionLabelSchema<ID, DATE> {
3
3
  _id: ID;
4
4
  name: string;
5
5
  created: DATE;
6
- organization: string;
6
+ organization?: string;
7
7
  project?: string;
8
+ archived?: boolean;
8
9
  }
@@ -4,6 +4,7 @@ export interface AptlyOptionLabelSchema<ID, DATE> {
4
4
  _id: ID;
5
5
  name: string;
6
6
  created: DATE;
7
- organization: string;
7
+ organization?: string;
8
8
  project?: string;
9
+ archived?: boolean;
9
10
  }
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,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: ID;
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
  }
@@ -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: ID;
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
  }
@@ -13,6 +13,7 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
13
13
  description: string;
14
14
  images: AptlyProductImageSchema<ID, DATE>[];
15
15
  variants: AptlyProductVariantSchema<ID, DATE>[];
16
+ url?: string;
16
17
  color?: string;
17
18
  colorLabel?: string;
18
19
  series?: string;
package/models/product.ts CHANGED
@@ -14,6 +14,7 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
14
14
  description: string;
15
15
  images: AptlyProductImageSchema<ID, DATE>[];
16
16
  variants: AptlyProductVariantSchema<ID, DATE>[];
17
+ url?: string;
17
18
  color?: string;
18
19
  colorLabel?: string;
19
20
  series?: string;
@@ -0,0 +1,20 @@
1
+ import { AptlyQueueDownloadStatus, AptlyQueueDownloadType } from '../enums/index';
2
+ import { AptlyDocumentSchema } from './document';
3
+ import { AptlyMediaSchema } from './media';
4
+ export declare type AptlyQueueDownload = AptlyQueueDownloadSchema<string, string>;
5
+ export interface AptlyQueueDownloadSchema<ID, DATE> {
6
+ _id: ID;
7
+ url: string;
8
+ type: AptlyQueueDownloadType;
9
+ status: AptlyQueueDownloadStatus;
10
+ error?: string;
11
+ organization?: ID;
12
+ project?: ID;
13
+ unit?: ID;
14
+ product?: ID;
15
+ productVariant?: ID;
16
+ document?: Partial<Pick<AptlyDocumentSchema<ID, DATE>, '_type' | 'name'>> | null;
17
+ media?: Partial<Pick<AptlyMediaSchema<ID, DATE>, 'name'>> | null;
18
+ createdAt: DATE;
19
+ updatedAt: DATE;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=queue-download.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queue-download.js","sourceRoot":"","sources":["queue-download.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { AptlyQueueDownloadStatus, AptlyQueueDownloadType } from '../enums/index';
2
+ import { AptlyDocumentSchema } from './document';
3
+ import { AptlyMediaSchema } from './media';
4
+
5
+ export type AptlyQueueDownload = AptlyQueueDownloadSchema<string, string>;
6
+ export interface AptlyQueueDownloadSchema<ID, DATE> {
7
+ _id: ID;
8
+ url: string;
9
+ type: AptlyQueueDownloadType;
10
+ status: AptlyQueueDownloadStatus;
11
+ error?: string;
12
+
13
+ organization?: ID;
14
+ project?: ID;
15
+ unit?: ID;
16
+ product?: ID;
17
+ productVariant?: ID;
18
+
19
+ document?: Partial<Pick<AptlyDocumentSchema<ID, DATE>, '_type' | 'name'>> | null;
20
+ media?: Partial<Pick<AptlyMediaSchema<ID, DATE>, 'name'>> | null;
21
+
22
+ createdAt: DATE;
23
+ updatedAt: DATE;
24
+ }
@@ -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
  }
@@ -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;
@@ -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
- 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.0",
3
+ "version": "1.3.0",
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
  }