@aptly-as/types 3.10.19 → 3.10.20

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
@@ -173,5 +173,7 @@ export declare enum AptlyDatabase {
173
173
  EFO = "efo",
174
174
  NRF = "nrf",
175
175
  NOBB = "nobb",
176
- Aptly = "aptly"
176
+ Aptly = "aptly",
177
+ Producer = "producer",
178
+ GTIN = "gtin"
177
179
  }
package/enums/index.js CHANGED
@@ -195,4 +195,6 @@ export var AptlyDatabase;
195
195
  AptlyDatabase["NRF"] = "nrf";
196
196
  AptlyDatabase["NOBB"] = "nobb";
197
197
  AptlyDatabase["Aptly"] = "aptly";
198
+ AptlyDatabase["Producer"] = "producer";
199
+ AptlyDatabase["GTIN"] = "gtin";
198
200
  })(AptlyDatabase || (AptlyDatabase = {}));
@@ -23,7 +23,6 @@ export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
23
23
  offer: ID | AptlyOfferSchema<ID, DATE> | null;
24
24
  category: ID | AptlyCategorySchema<ID, DATE> | null;
25
25
  option: ID | AptlyOptionSchema<ID, DATE> | null;
26
- offerItem: ID | null;
27
26
  period: ID | AptlyPeriodSchema<ID, DATE> | null;
28
27
  algorithm: ID | null;
29
28
  thumbnail: AptlyMediaSrcSchema<ID, DATE> | null;
@@ -32,13 +31,11 @@ export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
32
31
  lines: AptlyOptionLineSchema<ID, DATE>[];
33
32
  documents: (ID | AptlyDocumentSchema<ID, DATE>)[];
34
33
  producer: ID | AptlyProducerSchema<ID, DATE> | null;
35
- producerName: string;
36
34
  tags: string[];
37
35
  title: string;
38
36
  description: string;
39
37
  database: AptlyDatabase;
40
38
  identification: string;
41
- gtin: string;
42
39
  note: string;
43
40
  index: number;
44
41
  type: AptlyItemType;
package/models/price.d.ts CHANGED
@@ -5,6 +5,7 @@ export type AptlyPriceRow = AptlyPriceSchema<string, string>;
5
5
  export interface AptlyPriceSchema<ID, DATE> extends Pick<AptlyBaseSchema<ID, DATE>, '_id' | 'createdAt' | 'updatedAt'> {
6
6
  _id: ID;
7
7
  organization: ID | null;
8
+ name: string;
8
9
  product: ID | null;
9
10
  wholesaler: ID | AptlyWholesalerSchema<ID, DATE> | null;
10
11
  database: AptlyDatabase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "3.10.19",
3
+ "version": "3.10.20",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",