@aptly-as/types 3.10.12 → 3.10.14

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.
@@ -28,6 +28,7 @@ export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
28
28
  algorithm: ID | null;
29
29
  thumbnail: AptlyMediaSrcSchema<ID, DATE> | null;
30
30
  variants: (ID | AptlyOptionSchema<ID, DATE>)[];
31
+ products: (ID | AptlyProductSchema<ID, DATE>)[];
31
32
  lines: AptlyOptionLineSchema<ID, DATE>[];
32
33
  documents: (ID | AptlyDocumentSchema<ID, DATE>)[];
33
34
  producer: ID | AptlyProducerSchema<ID, DATE> | null;
package/models/plan.d.ts CHANGED
@@ -30,7 +30,7 @@ export interface AptlyPlanSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
30
30
  lastPaymentAt: DATE | null;
31
31
  nextPaymentAt: DATE | null;
32
32
  user: {
33
- freeQuantity: number;
33
+ monthlyQuantity: number;
34
34
  monthly: number;
35
35
  };
36
36
  unit: {
@@ -43,6 +43,7 @@ export interface AptlyPlanSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
43
43
  amount: number;
44
44
  };
45
45
  signage: {
46
+ freeQuantity: number;
46
47
  amount: number;
47
48
  signee: number;
48
49
  };
@@ -1,6 +1,7 @@
1
1
  import { AptlyDocumentSchema } from './document.js';
2
2
  import { AptlyBaseSchema, AptlyDBCrawlerCleaner, AptlyHistorySchema } from './extends.js';
3
3
  import { AptlyMediaSrcSchema } from './media.js';
4
+ import { AptlyPriceSchema } from './price.js';
4
5
  import { AptlyProducerSchema } from './producer.js';
5
6
  import { AptlyDatabase, AptlyQuantityUnitCode } from '../enums/index.js';
6
7
  export type AptlyProduct = AptlyProductSchema<string, string>;
@@ -81,3 +82,7 @@ export interface AptlyProductImportSchema<ID, DATE> extends Partial<Omit<AptlyPr
81
82
  images: string[];
82
83
  documents: string[];
83
84
  }
85
+ export type AptlyProductWithPrice = AptlyProductWithPriceSchema<string, string>;
86
+ export interface AptlyProductWithPriceSchema<ID, DATE> extends AptlyProductSchema<ID, DATE> {
87
+ price?: AptlyPriceSchema<ID, DATE>;
88
+ }
package/models/unit.d.ts CHANGED
@@ -54,6 +54,7 @@ export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<I
54
54
  integrations: AptlyUnitIntegrationSchema<ID>[];
55
55
  gdpr?: AptlyUnitGDPRSchema<DATE, ID>;
56
56
  tree: any[];
57
+ activatedAt: DATE | null;
57
58
  created: DATE;
58
59
  }
59
60
  interface AptlyUnitGDPRSchema<DATE, ID> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "3.10.12",
3
+ "version": "3.10.14",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",