@aptly-as/types 3.8.0 → 3.8.2

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/core/job.d.ts CHANGED
@@ -2,7 +2,8 @@ import { AptlyOrder } from '../models/index.js';
2
2
  export declare enum AptlyJobQueue {
3
3
  Documents = "documents",
4
4
  Orders = "orders",
5
- Units = "units"
5
+ Units = "units",
6
+ Inquiries = "inquiries"
6
7
  }
7
8
  export declare enum AptlyJobName {
8
9
  ZipDocuments = "zip-documents",
package/core/job.js CHANGED
@@ -3,6 +3,7 @@ export var AptlyJobQueue;
3
3
  AptlyJobQueue["Documents"] = "documents";
4
4
  AptlyJobQueue["Orders"] = "orders";
5
5
  AptlyJobQueue["Units"] = "units";
6
+ AptlyJobQueue["Inquiries"] = "inquiries";
6
7
  })(AptlyJobQueue || (AptlyJobQueue = {}));
7
8
  export var AptlyJobName;
8
9
  (function (AptlyJobName) {
package/enums/index.d.ts CHANGED
@@ -168,3 +168,9 @@ export declare enum AptlySlugLevel {
168
168
  Project = 4,
169
169
  Unit = 5
170
170
  }
171
+ export declare enum AptlyDatabase {
172
+ Unknown = "",
173
+ EFO = "efo",
174
+ NRF = "nrf",
175
+ NOBB = "nobb"
176
+ }
package/enums/index.js CHANGED
@@ -188,3 +188,10 @@ export var AptlySlugLevel;
188
188
  AptlySlugLevel[AptlySlugLevel["Project"] = 4] = "Project";
189
189
  AptlySlugLevel[AptlySlugLevel["Unit"] = 5] = "Unit";
190
190
  })(AptlySlugLevel || (AptlySlugLevel = {}));
191
+ export var AptlyDatabase;
192
+ (function (AptlyDatabase) {
193
+ AptlyDatabase["Unknown"] = "";
194
+ AptlyDatabase["EFO"] = "efo";
195
+ AptlyDatabase["NRF"] = "nrf";
196
+ AptlyDatabase["NOBB"] = "nobb";
197
+ })(AptlyDatabase || (AptlyDatabase = {}));
@@ -3,6 +3,7 @@ import { AptlyBaseSchema, AptlyDBCrawlerCleaner, AptlyHistorySchema } from './ex
3
3
  import { AptlyMediaSrcSchema } from './media.js';
4
4
  import { AptlyProducerSchema } from './producer.js';
5
5
  import { AptlyTagSchema } from './tag.js';
6
+ import { AptlyDatabase } from '../enums/index.js';
6
7
  export type AptlyProduct = AptlyProductSchema<string, string>;
7
8
  export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, AptlyBaseSchema<ID, DATE>, AptlyHistorySchema<ID, DATE> {
8
9
  searchableName: string;
@@ -10,11 +11,13 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
10
11
  project?: ID;
11
12
  base?: boolean;
12
13
  extends?: ID | AptlyProductSchema<ID, DATE>;
14
+ database: AptlyDatabase;
13
15
  productNumber: string;
14
16
  itemNumber?: string;
15
17
  eanNumber?: string;
16
18
  gtin?: string;
17
19
  description: string;
20
+ technicalDescription: string;
18
21
  images: AptlyProductImageSchema<ID, DATE>[];
19
22
  variants: AptlyProductVariantSchema<ID, DATE>[];
20
23
  products?: (ID | AptlyProductSchema<ID, DATE>)[];
@@ -33,8 +36,10 @@ export interface AptlyProductSchema<ID, DATE> extends AptlyDBCrawlerCleaner, Apt
33
36
  unitCost?: number;
34
37
  netCost?: number;
35
38
  producer?: ID | AptlyProducerSchema<ID, DATE> | null;
39
+ producerName: string;
36
40
  supplier?: ID;
37
41
  tags: (ID | AptlyTagSchema<ID, DATE>)[];
42
+ tagsLabel: string[];
38
43
  documents: (ID | AptlyDocumentSchema<ID, DATE>)[];
39
44
  createdBy: ID;
40
45
  stats?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "3.8.0",
3
+ "version": "3.8.2",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",