@aptly-as/types 2.1.0 → 2.1.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.
@@ -29,3 +29,8 @@ export declare enum AptlyHistoryType {
29
29
  Copied = "copied",
30
30
  Imported = "imported"
31
31
  }
32
+ export declare enum AptlyDocumentAccess {
33
+ Public = 0,
34
+ User = 1,
35
+ Admin = 2
36
+ }
package/enums/document.js CHANGED
@@ -31,3 +31,9 @@ export var AptlyHistoryType;
31
31
  AptlyHistoryType["Copied"] = "copied";
32
32
  AptlyHistoryType["Imported"] = "imported";
33
33
  })(AptlyHistoryType || (AptlyHistoryType = {}));
34
+ export var AptlyDocumentAccess;
35
+ (function (AptlyDocumentAccess) {
36
+ AptlyDocumentAccess[AptlyDocumentAccess["Public"] = 0] = "Public";
37
+ AptlyDocumentAccess[AptlyDocumentAccess["User"] = 1] = "User";
38
+ AptlyDocumentAccess[AptlyDocumentAccess["Admin"] = 2] = "Admin";
39
+ })(AptlyDocumentAccess || (AptlyDocumentAccess = {}));
package/enums/index.d.ts CHANGED
@@ -103,6 +103,7 @@ export declare enum AptlyIcon {
103
103
  Map = "map"
104
104
  }
105
105
  export declare enum AptlyProjectStatus {
106
+ Template = "template",
106
107
  NotStarted = "notStarted",
107
108
  Started = "started",
108
109
  Completed = "completed"
package/enums/index.js CHANGED
@@ -120,6 +120,7 @@ export var AptlyIcon;
120
120
  })(AptlyIcon || (AptlyIcon = {}));
121
121
  export var AptlyProjectStatus;
122
122
  (function (AptlyProjectStatus) {
123
+ AptlyProjectStatus["Template"] = "template";
123
124
  AptlyProjectStatus["NotStarted"] = "notStarted";
124
125
  AptlyProjectStatus["Started"] = "started";
125
126
  AptlyProjectStatus["Completed"] = "completed";
@@ -1,10 +1,11 @@
1
1
  import type { CompleteMultipartUploadOutput } from '@aws-sdk/client-s3';
2
- import { AptlyDocumentType } from '../enums/index.js';
2
+ import { AptlyDocumentAccess, AptlyDocumentType } from '../enums/index.js';
3
3
  import { AptlyBaseSchema, AptlyDBCrawlerCleaner } from './extends.js';
4
4
  import { AptlyProductSchema } from './product.js';
5
5
  export type AptlyDocument = AptlyDocumentSchema<string, string>;
6
6
  export interface AptlyDocumentSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived'>, AptlyDBCrawlerCleaner {
7
7
  mime: string;
8
+ access?: AptlyDocumentAccess;
8
9
  _type: AptlyDocumentType;
9
10
  data: string;
10
11
  organization?: ID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",