@aptly-as/types 3.4.1 → 3.4.3

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
@@ -157,3 +157,11 @@ export declare enum AptlyEmailType {
157
157
  PeriodOpen = "period-open",
158
158
  PeriodClose = "period-close"
159
159
  }
160
+ export declare enum AptlySlugLevel {
161
+ Base = 0,
162
+ Admin = 1,
163
+ User = 2,
164
+ Organization = 3,
165
+ Project = 4,
166
+ Unit = 5
167
+ }
package/enums/index.js CHANGED
@@ -176,3 +176,12 @@ export var AptlyEmailType;
176
176
  AptlyEmailType["PeriodOpen"] = "period-open";
177
177
  AptlyEmailType["PeriodClose"] = "period-close";
178
178
  })(AptlyEmailType || (AptlyEmailType = {}));
179
+ export var AptlySlugLevel;
180
+ (function (AptlySlugLevel) {
181
+ AptlySlugLevel[AptlySlugLevel["Base"] = 0] = "Base";
182
+ AptlySlugLevel[AptlySlugLevel["Admin"] = 1] = "Admin";
183
+ AptlySlugLevel[AptlySlugLevel["User"] = 2] = "User";
184
+ AptlySlugLevel[AptlySlugLevel["Organization"] = 3] = "Organization";
185
+ AptlySlugLevel[AptlySlugLevel["Project"] = 4] = "Project";
186
+ AptlySlugLevel[AptlySlugLevel["Unit"] = 5] = "Unit";
187
+ })(AptlySlugLevel || (AptlySlugLevel = {}));
package/models/info.d.ts CHANGED
@@ -1,12 +1,15 @@
1
1
  import { AptlyBaseSchema } from './extends';
2
2
  import { AptlyModules } from '../core';
3
3
  import { AptlyMediaSrcSchema } from './media';
4
+ import { AptlySlugLevel } from '../enums/index';
4
5
  export type AptlyInfo = AptlyInfoSchema<string, string>;
5
6
  export interface AptlyInfoSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
7
+ index: number;
6
8
  published: boolean;
7
9
  media: AptlyMediaSrcSchema<ID, DATE> | null;
8
10
  embed: string;
9
11
  module: AptlyModules;
10
12
  description: string;
11
- path: string;
13
+ levels: AptlySlugLevel[];
14
+ href: string;
12
15
  }
@@ -23,6 +23,7 @@ export interface AptlyOptionSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
23
23
  period: ID | AptlyPeriodSchema<ID, DATE> | null;
24
24
  algorithm: ID | null;
25
25
  thumbnail: AptlyMediaSrcSchema<ID, DATE> | null;
26
+ options: (ID | AptlyOptionSchema<ID, DATE>)[];
26
27
  title: string;
27
28
  description: string;
28
29
  identification: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",