@aptly-as/types 1.9.0 → 1.10.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.
package/core/error.d.ts CHANGED
@@ -1,13 +1,16 @@
1
1
  import { AptlyErrorCode } from '../enums/index.js';
2
+ export type AptlyErrorSimple = Pick<AptlyError, 'status' | 'title' | 'detail' | 'link'>;
2
3
  export interface AptlyError {
3
4
  id: string;
4
- links?: {
5
- self?: AptlyErrorLink | string;
6
- };
7
5
  status: string;
8
6
  code: AptlyErrorCode;
9
- title?: string;
7
+ title: string;
10
8
  detail?: string;
9
+ errors?: AptlyErrorSimple[];
10
+ link?: string;
11
+ links?: {
12
+ self?: AptlyErrorLink | string;
13
+ };
11
14
  source?: {
12
15
  pointer?: string;
13
16
  parameter?: string;
package/models/unit.d.ts CHANGED
@@ -36,9 +36,16 @@ export interface AptlyUnitSchema<ID, DATE> extends AptlyUnitTemplateBaseSchema<I
36
36
  overridePeriod?: ID;
37
37
  overridePeriods?: AptlyUnitOverridePeriodSchema<ID, DATE>[];
38
38
  integrations: AptlyUnitIntegrationSchema<ID>[];
39
+ gdpr?: AptlyUnitGDPRSchema<DATE, ID>;
39
40
  tree: any[];
40
41
  created: DATE;
41
42
  }
43
+ interface AptlyUnitGDPRSchema<DATE, ID> {
44
+ approved: boolean;
45
+ approvedAt: DATE | null;
46
+ documents: ID[];
47
+ users: ID[];
48
+ }
42
49
  export type AptlyUnitOverridePeriod = AptlyUnitOverridePeriodSchema<string, string>;
43
50
  export interface AptlyUnitOverridePeriodSchema<ID, DATE> {
44
51
  _id: ID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "1.9.0",
3
+ "version": "1.10.1",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",