@aptly-as/types 3.2.4 → 3.3.0
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/scope.d.ts +1 -0
- package/core/scope.js +1 -0
- package/enums/index.d.ts +2 -1
- package/enums/index.js +1 -0
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/models/news.d.ts +12 -0
- package/models/news.js +1 -0
- package/models/organization.d.ts +4 -4
- package/models/user.d.ts +7 -4
- package/package.json +1 -1
package/core/scope.d.ts
CHANGED
package/core/scope.js
CHANGED
|
@@ -31,6 +31,7 @@ export var AptlyScopes;
|
|
|
31
31
|
AptlyScopes["AdminApps"] = "adminApps";
|
|
32
32
|
AptlyScopes["AdminBilling"] = "adminBilling";
|
|
33
33
|
AptlyScopes["AdminModules"] = "adminModules";
|
|
34
|
+
AptlyScopes["AdminNews"] = "adminNews";
|
|
34
35
|
AptlyScopes["AdminPlans"] = "adminPlans";
|
|
35
36
|
AptlyScopes["AdminProducers"] = "adminProducers";
|
|
36
37
|
AptlyScopes["AdminProducts"] = "adminProducts";
|
package/enums/index.d.ts
CHANGED
package/enums/index.js
CHANGED
|
@@ -144,6 +144,7 @@ export var AptlyOrganizationStatus;
|
|
|
144
144
|
AptlyOrganizationStatus[AptlyOrganizationStatus["Paused"] = 3] = "Paused";
|
|
145
145
|
AptlyOrganizationStatus[AptlyOrganizationStatus["Closed"] = 4] = "Closed";
|
|
146
146
|
AptlyOrganizationStatus[AptlyOrganizationStatus["Template"] = 5] = "Template";
|
|
147
|
+
AptlyOrganizationStatus[AptlyOrganizationStatus["Demo"] = 6] = "Demo";
|
|
147
148
|
})(AptlyOrganizationStatus || (AptlyOrganizationStatus = {}));
|
|
148
149
|
export var AptlyEmailType;
|
|
149
150
|
(function (AptlyEmailType) {
|
package/models/index.d.ts
CHANGED
package/models/index.js
CHANGED
package/models/news.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AptlyBaseSchema } from './extends.js';
|
|
2
|
+
import { AptlyMediaSrcSchema } from './media.js';
|
|
3
|
+
import { AptlyUserSchema } from './user.js';
|
|
4
|
+
export type AptlyNews = AptlyNewsSchema<string, string>;
|
|
5
|
+
export interface AptlyNewsSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> {
|
|
6
|
+
media: AptlyMediaSrcSchema<ID, DATE> | null;
|
|
7
|
+
embed: string;
|
|
8
|
+
description: string;
|
|
9
|
+
published: boolean;
|
|
10
|
+
publishAt: DATE;
|
|
11
|
+
createdBy: ID | AptlyUserSchema<ID, DATE>;
|
|
12
|
+
}
|
package/models/news.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/models/organization.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { AptlyModuleItemSchema } from './module.js';
|
|
|
8
8
|
import { AptlyPlanInstalledSchema } from './plan.js';
|
|
9
9
|
import { AptlyProjectSchema } from './project.js';
|
|
10
10
|
import { AptlyUserSchema } from './user.js';
|
|
11
|
-
import {
|
|
11
|
+
import { AptlyMediaSrcSchema } from './media.js';
|
|
12
12
|
import { AptlyBaseSchema, AptlyHistorySchema } from './extends.js';
|
|
13
13
|
import { AptlyDepartmentGeneric } from './department.js';
|
|
14
14
|
import { AptlyProducerSchema } from './producer.js';
|
|
@@ -22,9 +22,9 @@ export interface AptlyOrganizationSchema<ID, DATE> extends AptlyBaseSchema<ID, D
|
|
|
22
22
|
number?: string;
|
|
23
23
|
vat?: string;
|
|
24
24
|
logo?: string | null;
|
|
25
|
-
logoMedia?:
|
|
26
|
-
negativeLogoMedia?:
|
|
27
|
-
projectLogoMedia?:
|
|
25
|
+
logoMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
|
|
26
|
+
negativeLogoMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
|
|
27
|
+
projectLogoMedia?: AptlyMediaSrcSchema<ID, DATE> | null;
|
|
28
28
|
address: {
|
|
29
29
|
billing: AptlyAddress;
|
|
30
30
|
visit: AptlyAddress;
|
package/models/user.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AptlyUserRoles } from '../core/index.js';
|
|
2
2
|
import { AptlyBaseSchema } from './extends.js';
|
|
3
|
+
import { AptlyMediaSrcSchema } from './media.js';
|
|
3
4
|
export declare enum AptlyLanguage {
|
|
4
5
|
English = "en",
|
|
5
6
|
Norwegian = "no",
|
|
@@ -21,14 +22,16 @@ export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE
|
|
|
21
22
|
firstName?: string;
|
|
22
23
|
lastName?: string;
|
|
23
24
|
profileImage: string | null;
|
|
25
|
+
phone: string;
|
|
26
|
+
synced: DATE;
|
|
27
|
+
language?: AptlyLanguage;
|
|
28
|
+
verifiedAt?: DATE;
|
|
24
29
|
permissions: AptlyUserRoles[];
|
|
25
30
|
roles: AptlyUserRoles[];
|
|
26
|
-
language?: AptlyLanguage;
|
|
27
31
|
gdpr: boolean;
|
|
28
|
-
phone: string;
|
|
29
|
-
synced: DATE;
|
|
30
32
|
isGuest?: boolean;
|
|
31
33
|
forgetStatus?: AptlyUserForgetStatus;
|
|
32
|
-
|
|
34
|
+
lastNewsRead?: ID;
|
|
35
|
+
media?: AptlyMediaSrcSchema<ID, DATE> | null;
|
|
33
36
|
created: DATE;
|
|
34
37
|
}
|