@aptly-as/types 3.6.2 → 3.7.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.
@@ -13,6 +13,7 @@ export interface AptlyInquirySchema<ID, DATE> extends Pick<AptlyBaseSchema<ID, D
13
13
  project: ID | AptlyProjectSchema<ID, DATE>;
14
14
  organization: ID | AptlyOrganizationSchema<ID, DATE>;
15
15
  unit: ID | AptlyUnitSchema<ID, DATE>;
16
+ order?: ID | null;
16
17
  product?: ID | AptlyProductSchema<ID, DATE>;
17
18
  variant?: ID;
18
19
  producer?: ID;
package/models/item.d.ts CHANGED
@@ -19,7 +19,8 @@ export declare enum AptlyItemType {
19
19
  Digital = "digital",
20
20
  Service = "service",
21
21
  Resource = "resource",
22
- Material = "material"
22
+ Material = "material",
23
+ Category = "category"
23
24
  }
24
25
  export interface AptlyItemStandardIdentification {
25
26
  scheme: AptlyInternationalCodeDesignator;
package/models/item.js CHANGED
@@ -5,4 +5,5 @@ export var AptlyItemType;
5
5
  AptlyItemType["Service"] = "service";
6
6
  AptlyItemType["Resource"] = "resource";
7
7
  AptlyItemType["Material"] = "material";
8
+ AptlyItemType["Category"] = "category";
8
9
  })(AptlyItemType || (AptlyItemType = {}));
@@ -20,8 +20,7 @@ export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
20
20
  product: ID | AptlyProductSchema<ID, DATE> | null;
21
21
  producer: ID | AptlyProducerSchema<ID, DATE> | null;
22
22
  offer: ID | AptlyOfferSchema<ID, DATE> | null;
23
- category: ID | AptlyCategorySchema<ID, DATE> | null;
24
- partOfCategory: ID | AptlyCategorySchema<ID, DATE> | null;
23
+ category: ID | null;
25
24
  option: ID | AptlyOptionSchema<ID, DATE> | null;
26
25
  offerItem: ID | null;
27
26
  period: ID | AptlyPeriodSchema<ID, DATE> | null;
@@ -5,6 +5,7 @@ import { AptlyInquirySchema } from './inquiry.js';
5
5
  import { AptlyOrganizationSchema } from './organization.js';
6
6
  import { AptlyProjectSchema } from './project.js';
7
7
  import { AptlyUnitSchema } from './unit.js';
8
+ import { AptlyOrderSchema } from './order';
8
9
  export type AptlyUnitEmail = AptlyUnitEmailSchema<string, string>;
9
10
  export interface AptlyUnitEmailSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'name' | 'archived'> {
10
11
  type: AptlyEmailType;
@@ -17,6 +18,7 @@ export interface AptlyUnitEmailSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID,
17
18
  organization: ID | AptlyOrganizationSchema<ID, DATE>;
18
19
  project: ID | AptlyProjectSchema<ID, DATE>;
19
20
  unit: ID | AptlyUnitSchema<ID, DATE>;
21
+ order?: ID | AptlyOrderSchema<ID, DATE> | null;
20
22
  inquiry?: ID | AptlyInquirySchema<ID, DATE>;
21
23
  booking?: ID | AptlyBookingSchema<ID, DATE>;
22
24
  created: DATE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "3.6.2",
3
+ "version": "3.7.1",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",