@aptly-as/types 2.2.0 → 2.2.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.
package/core/index.d.ts CHANGED
@@ -3,8 +3,9 @@ import { AptlyCloudinaryFile } from './cloudinary.js';
3
3
  export * from './api.js';
4
4
  export * from './app.js';
5
5
  export * from './cloudinary.js';
6
+ export * from './job.js';
7
+ export * from './redirect.js';
6
8
  export * from './scope.js';
7
- export * from './error.js';
8
9
  export * from './fields.js';
9
10
  export * from './signage.js';
10
11
  export * from './webhook-event-data.js';
package/core/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  export * from './api.js';
2
2
  export * from './app.js';
3
3
  export * from './cloudinary.js';
4
+ export * from './job.js';
5
+ export * from './redirect.js';
4
6
  export * from './scope.js';
5
- export * from './error.js';
6
7
  export * from './fields.js';
7
8
  export * from './signage.js';
8
9
  export * from './webhook-event-data.js';
package/core/job.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ import { AptlyOrder } from '../models/index.js';
2
+ export declare enum AptlyJobQueue {
3
+ Documents = "documents",
4
+ Orders = "orders",
5
+ Units = "units"
6
+ }
7
+ export declare enum AptlyJobName {
8
+ ZipDocuments = "zip-documents",
9
+ Create = "create"
10
+ }
11
+ export interface AptlyJob<DATA = any, RETURN = any> {
12
+ id: string;
13
+ name: AptlyJobName;
14
+ progress: number;
15
+ data: DATA;
16
+ returnvalue: RETURN;
17
+ }
18
+ export type AptlyJobOrder = AptlyJob<any, {
19
+ order: AptlyOrder;
20
+ }>;
package/core/job.js ADDED
@@ -0,0 +1,11 @@
1
+ export var AptlyJobQueue;
2
+ (function (AptlyJobQueue) {
3
+ AptlyJobQueue["Documents"] = "documents";
4
+ AptlyJobQueue["Orders"] = "orders";
5
+ AptlyJobQueue["Units"] = "units";
6
+ })(AptlyJobQueue || (AptlyJobQueue = {}));
7
+ export var AptlyJobName;
8
+ (function (AptlyJobName) {
9
+ AptlyJobName["ZipDocuments"] = "zip-documents";
10
+ AptlyJobName["Create"] = "create";
11
+ })(AptlyJobName || (AptlyJobName = {}));
@@ -0,0 +1,14 @@
1
+ export declare enum AptlyRedirectAction {
2
+ Sign = "sign"
3
+ }
4
+ export declare enum AptlyRedirectActionError {
5
+ SignCancel = "signCancel",
6
+ SignError = "signError"
7
+ }
8
+ export type AptlyRedirectOptions = {
9
+ action: AptlyRedirectAction;
10
+ error?: AptlyRedirectActionError;
11
+ error_description?: string;
12
+ };
13
+ export type AptlyClientRedirectOptions = Record<'unit', string> & Partial<Record<'period', string>> & AptlyRedirectOptions;
14
+ export type AptlyDashboardRedirectOptions = Record<'organization' | 'project', string> & AptlyRedirectOptions;
@@ -0,0 +1,9 @@
1
+ export var AptlyRedirectAction;
2
+ (function (AptlyRedirectAction) {
3
+ AptlyRedirectAction["Sign"] = "sign";
4
+ })(AptlyRedirectAction || (AptlyRedirectAction = {}));
5
+ export var AptlyRedirectActionError;
6
+ (function (AptlyRedirectActionError) {
7
+ AptlyRedirectActionError["SignCancel"] = "signCancel";
8
+ AptlyRedirectActionError["SignError"] = "signError";
9
+ })(AptlyRedirectActionError || (AptlyRedirectActionError = {}));
@@ -0,0 +1,28 @@
1
+ export interface AptlyErrorBody {
2
+ name: 'AptlyError';
3
+ status: number;
4
+ title: string;
5
+ id?: string;
6
+ code?: number;
7
+ detail?: string;
8
+ errors?: AptlyErrorBodySimple[];
9
+ link?: string;
10
+ error?: string;
11
+ }
12
+ export type AptlyErrorBodySimple = Pick<AptlyErrorBody, 'status' | 'title' | 'detail' | 'link'>;
13
+ export declare class AptlyError extends Error {
14
+ readonly data: Omit<AptlyErrorBody, 'name'>;
15
+ readonly error?: Error | undefined;
16
+ readonly name = "AptlyError";
17
+ id: string;
18
+ constructor(data: Omit<AptlyErrorBody, 'name'>, error?: Error | undefined);
19
+ static fromFetchResponse(response: Response): Promise<AptlyError>;
20
+ get status(): number;
21
+ get title(): string;
22
+ get code(): number | undefined;
23
+ get detail(): string | undefined;
24
+ get link(): string | undefined;
25
+ get errors(): AptlyErrorBodySimple[];
26
+ toJSON(): AptlyErrorBody;
27
+ toString(): string;
28
+ }
package/error/error.js ADDED
@@ -0,0 +1,50 @@
1
+ export class AptlyError extends Error {
2
+ constructor(data, error) {
3
+ super(data.title);
4
+ this.data = data;
5
+ this.error = error;
6
+ this.name = 'AptlyError';
7
+ this.id = data.id || '';
8
+ }
9
+ static async fromFetchResponse(response) {
10
+ if (response.headers.get('content-type') !== 'application/json') {
11
+ const body = await response.json();
12
+ if (body.name === AptlyError.name) {
13
+ return new AptlyError(body);
14
+ }
15
+ }
16
+ throw new AptlyError({
17
+ id: 'unknown',
18
+ status: response.status,
19
+ title: response.statusText,
20
+ detail: `Failed to fetch from url: ${response.url}`,
21
+ });
22
+ }
23
+ get status() {
24
+ return this.data.status;
25
+ }
26
+ get title() {
27
+ return this.data.title;
28
+ }
29
+ get code() {
30
+ return this.data.code;
31
+ }
32
+ get detail() {
33
+ return this.data.detail;
34
+ }
35
+ get link() {
36
+ return this.data.link;
37
+ }
38
+ get errors() {
39
+ return this.data.errors || [];
40
+ }
41
+ toJSON() {
42
+ return {
43
+ name: this.name,
44
+ ...this.data,
45
+ };
46
+ }
47
+ toString() {
48
+ return this.message;
49
+ }
50
+ }
@@ -0,0 +1 @@
1
+ export * from './error.js';
package/error/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './error.js';
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './core/index.js';
2
2
  export * from './enums/index.js';
3
+ export * from './error/index.js';
3
4
  export * from './models/index.js';
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './core/index.js';
2
2
  export * from './enums/index.js';
3
+ export * from './error/index.js';
3
4
  export * from './models/index.js';
package/models/order.d.ts CHANGED
@@ -2,7 +2,7 @@ import { AptlyOrderStatus } from '../enums/index.js';
2
2
  import { AptlyAppSchema } from './app.js';
3
3
  import { AptlyDocumentSchema } from './document.js';
4
4
  import { AptlyOrganizationSchema } from './organization.js';
5
- import { AptlyProjectPeriodSchema, AptlyProjectSchema } from './project.js';
5
+ import { AptlyProject, AptlyProjectPeriodSchema, AptlyProjectSchema } from './project.js';
6
6
  import { AptlyUnit, AptlyUnitItemParamSchema, AptlyUnitSchema } from './unit.js';
7
7
  import { AptlyBaseSchema } from './extends.js';
8
8
  import { AptlyUser, AptlyUserSchema } from './user.js';
@@ -16,13 +16,14 @@ export interface AptlyOrderSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DAT
16
16
  signers: (ID | AptlyUserSchema<ID, DATE>)[];
17
17
  status: AptlyOrderStatus;
18
18
  receipt: ID | AptlyDocumentSchema<ID, DATE>;
19
- signedReceipt?: ID;
19
+ signedReceipt?: ID | AptlyDocumentSchema<ID, DATE>;
20
20
  attachments: ID[];
21
21
  signage: AptlyOrderSignageSchema<ID, DATE>;
22
22
  items: AptlyOrderItemSchema<ID, DATE>[];
23
23
  totalCost: number;
24
24
  pricePipeline: AptlyOrderPricePipelineItemSchema<ID>[];
25
25
  signees: AptlyOrderSigneeSchema<ID, DATE>[];
26
+ emailText?: string;
26
27
  created: DATE;
27
28
  }
28
29
  export type AptlyOrderSignee = AptlyOrderSigneeSchema<string, string>;
@@ -87,9 +88,12 @@ export interface AptlyOrderActionItemSchema<ID, DATE> {
87
88
  costPerSign?: number;
88
89
  }
89
90
  export interface AptlyOrderActionSignData {
90
- project: string;
91
+ project: Pick<AptlyProject, '_id' | 'name'> & {
92
+ theme: Pick<AptlyProject['theme'], 'contact'>;
93
+ };
91
94
  unit: Pick<AptlyUnit, '_id' | 'name'>;
92
- order: Pick<AptlyOrder, '_id' | 'orderNumber' | 'receipt'>;
93
- users: Pick<AptlyUser, '_id' | 'firstName' | 'lastName' | 'fullName' | 'email' | 'phone'>[];
94
- admins: Pick<AptlyUser, '_id' | 'firstName' | 'lastName' | 'fullName' | 'email' | 'phone'>[];
95
+ order: Pick<AptlyOrder, '_id' | 'orderNumber' | 'receipt' | 'period'>;
96
+ users: Pick<AptlyUser, '_id' | 'firstName' | 'lastName' | 'fullName' | 'email' | 'phone' | 'language' | 'profileImage'>[];
97
+ admins: Pick<AptlyUser, '_id' | 'firstName' | 'lastName' | 'fullName' | 'email' | 'phone' | 'language' | 'profileImage'>[];
98
+ emailText?: string;
95
99
  }
@@ -27,5 +27,6 @@ export declare enum AptlyUnitEmailType {
27
27
  BookingConfirm = "booking-confirm",
28
28
  BookingCancel = "booking-cancel",
29
29
  OrderCreated = "order-created",
30
- OrderSigned = "order-signed"
30
+ OrderSigned = "order-signed",
31
+ OrderCompleted = "order-completed"
31
32
  }
@@ -9,4 +9,5 @@ export var AptlyUnitEmailType;
9
9
  AptlyUnitEmailType["BookingCancel"] = "booking-cancel";
10
10
  AptlyUnitEmailType["OrderCreated"] = "order-created";
11
11
  AptlyUnitEmailType["OrderSigned"] = "order-signed";
12
+ AptlyUnitEmailType["OrderCompleted"] = "order-completed";
12
13
  })(AptlyUnitEmailType || (AptlyUnitEmailType = {}));
package/models/user.d.ts CHANGED
@@ -1,5 +1,10 @@
1
1
  import { AptlyUserRoles } from '../core/index.js';
2
2
  import { AptlyBaseSchema } from './extends.js';
3
+ export declare enum AptlyLanguage {
4
+ English = "en",
5
+ Norwegian = "no",
6
+ NorwegianBokmal = "nb"
7
+ }
3
8
  export type AptlyUser = AptlyUserSchema<string, string>;
4
9
  export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>, 'archived' | 'name'> {
5
10
  email: string;
@@ -9,6 +14,7 @@ export interface AptlyUserSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE
9
14
  profileImage: string | null;
10
15
  permissions: AptlyUserRoles[];
11
16
  roles: AptlyUserRoles[];
17
+ language?: AptlyLanguage;
12
18
  gdpr: boolean;
13
19
  phone: string;
14
20
  synced: DATE;
package/models/user.js CHANGED
@@ -1 +1,6 @@
1
- export {};
1
+ export var AptlyLanguage;
2
+ (function (AptlyLanguage) {
3
+ AptlyLanguage["English"] = "en";
4
+ AptlyLanguage["Norwegian"] = "no";
5
+ AptlyLanguage["NorwegianBokmal"] = "nb";
6
+ })(AptlyLanguage || (AptlyLanguage = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",
package/core/error.d.ts DELETED
@@ -1,43 +0,0 @@
1
- import { AptlyErrorCode } from '../enums/index.js';
2
- export type AptlyErrorSimple = Pick<AptlyError, 'status' | 'title' | 'detail' | 'link'>;
3
- export interface AptlyError {
4
- id: string;
5
- status: string;
6
- code: AptlyErrorCode;
7
- title: string;
8
- detail?: string;
9
- errors?: AptlyErrorSimple[];
10
- link?: string;
11
- links?: {
12
- self?: AptlyErrorLink | string;
13
- };
14
- source?: {
15
- pointer?: string;
16
- parameter?: string;
17
- header?: string;
18
- body?: string;
19
- };
20
- meta?: object;
21
- }
22
- export interface AptlyErrorLink {
23
- href: string;
24
- title?: string;
25
- describedBy?: string;
26
- meta: {
27
- count: number;
28
- };
29
- }
30
- export declare class AptlyApiError<R> extends Error {
31
- readonly id: string;
32
- readonly status: string;
33
- readonly detail: string;
34
- readonly link: string;
35
- readonly code: AptlyErrorCode;
36
- readonly error?: Error;
37
- readonly errors?: AptlyErrorSimple[];
38
- readonly response?: R;
39
- constructor(error: AptlyError & {
40
- error?: Error;
41
- response?: R;
42
- });
43
- }
package/core/error.js DELETED
@@ -1,13 +0,0 @@
1
- export class AptlyApiError extends Error {
2
- constructor(error) {
3
- super(error.title);
4
- this.id = error.id;
5
- this.status = error.status;
6
- this.detail = error.detail || '';
7
- this.link = error.link || '';
8
- this.code = error.code;
9
- this.error = error.error;
10
- this.errors = error.errors;
11
- this.response = error.response;
12
- }
13
- }
@@ -1,101 +0,0 @@
1
- export declare enum AptlyModule {
2
- Algorithms = "algorithms",
3
- Booking = "booking",
4
- Core = "core",
5
- Default = "default",
6
- Departments = "departments",
7
- OptionLabels = "optionLabels",
8
- Pages = "pages",
9
- ProductsExtended = "productsExtended",
10
- Recommendations = "recommendations",
11
- Subcontractor = "subcontractor",
12
- Support = "support",
13
- Testing = "testing",
14
- UnitExtraOptions = "unitExtraOptions",
15
- UnitExtraFields = "unitExtraFields"
16
- }
17
- export declare enum AptlyScope {
18
- Admin = "admin",
19
- AdminBilling = "adminBilling",
20
- AdminProducers = "adminProducers",
21
- AdminProducts = "adminProducts",
22
- AdminReport = "adminReport",
23
- AdminStats = "adminStats",
24
- AdminSuppliers = "adminSuppliers",
25
- AdminTags = "adminTags",
26
- AdminTesting = "adminTesting",
27
- AdminUsers = "adminUsers",
28
- AdminOrganizations = "adminOrganizations",
29
- Beta = "beta",
30
- Organization = "organization",
31
- OrganizationAlgorithms = "organizationAlgorithms",
32
- OrganizationBooking = "organizationBooking",
33
- OrganizationClients = "organizationClients",
34
- OrganizationDepartments = "organizationDepartments",
35
- OrganizationLogo = "organizationLogo",
36
- OrganizationMembers = "organizationMembers",
37
- OrganizationOptionLabels = "organizationOptionLabels",
38
- OrganizationOrders = "organizationOrders",
39
- OrganizationPages = "organizationPages",
40
- OrganizationProducts = "organizationProducts",
41
- OrganizationProductsExtended = "organizationProductsExtended",
42
- OrganizationRecommendations = "organizationRecommendations",
43
- OrganizationReport = "organizationReport",
44
- OrganizationStats = "organizationStats",
45
- OrganizationUnitTemplates = "organizationUnitTemplates",
46
- OrganizationUpsellTemplates = "organizationUpsellTemplates",
47
- OrganizationWebhooks = "organizationWebhooks",
48
- Project = "project",
49
- ProjectAlgorithms = "projectAlgorithms",
50
- ProjectBooking = "projectBooking",
51
- ProjectDocuments = "projectDocuments",
52
- ProjectInquiry = "projectInquiry",
53
- ProjectOrders = "projectOrders",
54
- ProjectPages = "projectPages",
55
- ProjectPeriods = "projectPeriods",
56
- ProjectProducts = "projectProducts",
57
- ProjectRecommendations = "projectRecommendations",
58
- ProjectReport = "projectReport",
59
- ProjectReportPrice = "projectReportPrice",
60
- ProjectTheme = "projectTheme",
61
- ProjectSigning = "projectSigning",
62
- ProjectSubcontractor = "projectSubcontractor",
63
- ProjectUnits = "projectUnits",
64
- ProjectUnitInvites = "projectUnitInvites",
65
- ProjectUnitExtraFields = "projectUnitExtraFields",
66
- ProjectUnitExtraOptions = "projectUnitExtraOptions",
67
- ProjectUnitTemplates = "projectUnitTemplates",
68
- ProjectUnitTemplatesAlgorithms = "projectUnitTemplatesAlgorithms",
69
- ProjectUnitTemplatesPrices = "projectUnitTemplatesPrices",
70
- ProjectUpsellTemplates = "projectUpsellTemplates",
71
- Unit = "unit",
72
- UnitBooking = "unitBooking",
73
- UnitInquiry = "unitInquiry",
74
- UnitNotes = "unitNotes",
75
- UnitOrders = "unitOrders",
76
- UnitPages = "unitPages",
77
- UnitProducts = "unitProducts",
78
- UnitReport = "unitReport"
79
- }
80
- export declare enum AptlyUserRole {
81
- Admin = "admin",
82
- Beta = "beta",
83
- Default = "default",
84
- SuperAdmin = "superAdmin"
85
- }
86
- export declare enum AptlyOrganizationRole {
87
- Admin = "admin",
88
- Content = "content",
89
- OrganizationContent = "organizationContent",
90
- Default = "default",
91
- ProjectAdmin = "projectAdmin",
92
- TestingAdmin = "testingAdmin",
93
- Reports = "reports",
94
- Support = "support",
95
- ThirdParty = "thirdParty"
96
- }
97
- export type AptlyScopeCrud = 'C' | 'R' | 'U' | 'D';
98
- export type AptlyScopeSchemaValue = 'C' | 'CR' | 'CRU' | 'CRUD' | 'R' | 'RU' | 'RUD' | 'U' | 'UD' | 'D';
99
- export type AptlyScopeSchema = {
100
- [key in AptlyScope]: AptlyScopeSchemaValue;
101
- };
@@ -1,100 +0,0 @@
1
- export var AptlyModule;
2
- (function (AptlyModule) {
3
- AptlyModule["Algorithms"] = "algorithms";
4
- AptlyModule["Booking"] = "booking";
5
- AptlyModule["Core"] = "core";
6
- AptlyModule["Default"] = "default";
7
- AptlyModule["Departments"] = "departments";
8
- AptlyModule["OptionLabels"] = "optionLabels";
9
- AptlyModule["Pages"] = "pages";
10
- AptlyModule["ProductsExtended"] = "productsExtended";
11
- AptlyModule["Recommendations"] = "recommendations";
12
- AptlyModule["Subcontractor"] = "subcontractor";
13
- AptlyModule["Support"] = "support";
14
- AptlyModule["Testing"] = "testing";
15
- AptlyModule["UnitExtraOptions"] = "unitExtraOptions";
16
- AptlyModule["UnitExtraFields"] = "unitExtraFields";
17
- })(AptlyModule || (AptlyModule = {}));
18
- export var AptlyScope;
19
- (function (AptlyScope) {
20
- AptlyScope["Admin"] = "admin";
21
- AptlyScope["AdminBilling"] = "adminBilling";
22
- AptlyScope["AdminProducers"] = "adminProducers";
23
- AptlyScope["AdminProducts"] = "adminProducts";
24
- AptlyScope["AdminReport"] = "adminReport";
25
- AptlyScope["AdminStats"] = "adminStats";
26
- AptlyScope["AdminSuppliers"] = "adminSuppliers";
27
- AptlyScope["AdminTags"] = "adminTags";
28
- AptlyScope["AdminTesting"] = "adminTesting";
29
- AptlyScope["AdminUsers"] = "adminUsers";
30
- AptlyScope["AdminOrganizations"] = "adminOrganizations";
31
- AptlyScope["Beta"] = "beta";
32
- AptlyScope["Organization"] = "organization";
33
- AptlyScope["OrganizationAlgorithms"] = "organizationAlgorithms";
34
- AptlyScope["OrganizationBooking"] = "organizationBooking";
35
- AptlyScope["OrganizationClients"] = "organizationClients";
36
- AptlyScope["OrganizationDepartments"] = "organizationDepartments";
37
- AptlyScope["OrganizationLogo"] = "organizationLogo";
38
- AptlyScope["OrganizationMembers"] = "organizationMembers";
39
- AptlyScope["OrganizationOptionLabels"] = "organizationOptionLabels";
40
- AptlyScope["OrganizationOrders"] = "organizationOrders";
41
- AptlyScope["OrganizationPages"] = "organizationPages";
42
- AptlyScope["OrganizationProducts"] = "organizationProducts";
43
- AptlyScope["OrganizationProductsExtended"] = "organizationProductsExtended";
44
- AptlyScope["OrganizationRecommendations"] = "organizationRecommendations";
45
- AptlyScope["OrganizationReport"] = "organizationReport";
46
- AptlyScope["OrganizationStats"] = "organizationStats";
47
- AptlyScope["OrganizationUnitTemplates"] = "organizationUnitTemplates";
48
- AptlyScope["OrganizationUpsellTemplates"] = "organizationUpsellTemplates";
49
- AptlyScope["OrganizationWebhooks"] = "organizationWebhooks";
50
- AptlyScope["Project"] = "project";
51
- AptlyScope["ProjectAlgorithms"] = "projectAlgorithms";
52
- AptlyScope["ProjectBooking"] = "projectBooking";
53
- AptlyScope["ProjectDocuments"] = "projectDocuments";
54
- AptlyScope["ProjectInquiry"] = "projectInquiry";
55
- AptlyScope["ProjectOrders"] = "projectOrders";
56
- AptlyScope["ProjectPages"] = "projectPages";
57
- AptlyScope["ProjectPeriods"] = "projectPeriods";
58
- AptlyScope["ProjectProducts"] = "projectProducts";
59
- AptlyScope["ProjectRecommendations"] = "projectRecommendations";
60
- AptlyScope["ProjectReport"] = "projectReport";
61
- AptlyScope["ProjectReportPrice"] = "projectReportPrice";
62
- AptlyScope["ProjectTheme"] = "projectTheme";
63
- AptlyScope["ProjectSigning"] = "projectSigning";
64
- AptlyScope["ProjectSubcontractor"] = "projectSubcontractor";
65
- AptlyScope["ProjectUnits"] = "projectUnits";
66
- AptlyScope["ProjectUnitInvites"] = "projectUnitInvites";
67
- AptlyScope["ProjectUnitExtraFields"] = "projectUnitExtraFields";
68
- AptlyScope["ProjectUnitExtraOptions"] = "projectUnitExtraOptions";
69
- AptlyScope["ProjectUnitTemplates"] = "projectUnitTemplates";
70
- AptlyScope["ProjectUnitTemplatesAlgorithms"] = "projectUnitTemplatesAlgorithms";
71
- AptlyScope["ProjectUnitTemplatesPrices"] = "projectUnitTemplatesPrices";
72
- AptlyScope["ProjectUpsellTemplates"] = "projectUpsellTemplates";
73
- AptlyScope["Unit"] = "unit";
74
- AptlyScope["UnitBooking"] = "unitBooking";
75
- AptlyScope["UnitInquiry"] = "unitInquiry";
76
- AptlyScope["UnitNotes"] = "unitNotes";
77
- AptlyScope["UnitOrders"] = "unitOrders";
78
- AptlyScope["UnitPages"] = "unitPages";
79
- AptlyScope["UnitProducts"] = "unitProducts";
80
- AptlyScope["UnitReport"] = "unitReport";
81
- })(AptlyScope || (AptlyScope = {}));
82
- export var AptlyUserRole;
83
- (function (AptlyUserRole) {
84
- AptlyUserRole["Admin"] = "admin";
85
- AptlyUserRole["Beta"] = "beta";
86
- AptlyUserRole["Default"] = "default";
87
- AptlyUserRole["SuperAdmin"] = "superAdmin";
88
- })(AptlyUserRole || (AptlyUserRole = {}));
89
- export var AptlyOrganizationRole;
90
- (function (AptlyOrganizationRole) {
91
- AptlyOrganizationRole["Admin"] = "admin";
92
- AptlyOrganizationRole["Content"] = "content";
93
- AptlyOrganizationRole["OrganizationContent"] = "organizationContent";
94
- AptlyOrganizationRole["Default"] = "default";
95
- AptlyOrganizationRole["ProjectAdmin"] = "projectAdmin";
96
- AptlyOrganizationRole["TestingAdmin"] = "testingAdmin";
97
- AptlyOrganizationRole["Reports"] = "reports";
98
- AptlyOrganizationRole["Support"] = "support";
99
- AptlyOrganizationRole["ThirdParty"] = "thirdParty";
100
- })(AptlyOrganizationRole || (AptlyOrganizationRole = {}));