@aptly-as/types 2.5.3 → 2.5.4
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/api.d.ts +13 -13
- package/core/api.js +1 -1
- package/core/app.d.ts +37 -37
- package/core/app.js +9 -9
- package/core/cloudinary.d.ts +2 -2
- package/core/cloudinary.js +1 -1
- package/core/fields.d.ts +19 -19
- package/core/fields.js +1 -1
- package/core/index.d.ts +16 -16
- package/core/index.js +9 -9
- package/core/job.d.ts +21 -21
- package/core/job.js +11 -11
- package/core/redirect.d.ts +17 -17
- package/core/redirect.js +12 -12
- package/core/scope.d.ts +124 -124
- package/core/scope.js +117 -117
- package/core/signage.d.ts +19 -19
- package/core/signage.js +1 -1
- package/core/webhook-event-data.d.ts +16 -16
- package/core/webhook-event-data.js +1 -1
- package/enums/document.d.ts +38 -38
- package/enums/document.js +41 -41
- package/enums/fields.d.ts +30 -30
- package/enums/fields.js +31 -31
- package/enums/index.d.ts +151 -150
- package/enums/index.js +171 -170
- package/enums/unit-template.d.ts +10 -10
- package/enums/unit-template.js +12 -12
- package/enums/webhook.d.ts +23 -23
- package/enums/webhook.js +26 -26
- package/error/error.d.ts +28 -28
- package/error/error.js +50 -50
- package/error/index.d.ts +1 -1
- package/error/index.js +1 -1
- package/index.d.ts +4 -4
- package/index.js +4 -4
- package/models/algorithm.d.ts +32 -32
- package/models/algorithm.js +15 -15
- package/models/app.d.ts +101 -101
- package/models/app.js +52 -52
- package/models/availability.d.ts +35 -35
- package/models/availability.js +1 -1
- package/models/booking.d.ts +57 -57
- package/models/booking.js +1 -1
- package/models/client.d.ts +10 -10
- package/models/client.js +1 -1
- package/models/department.d.ts +28 -28
- package/models/department.js +1 -1
- package/models/document.d.ts +37 -37
- package/models/document.js +1 -1
- package/models/email.d.ts +16 -16
- package/models/email.js +1 -1
- package/models/extends.d.ts +37 -37
- package/models/extends.js +1 -1
- package/models/index.d.ts +34 -34
- package/models/index.js +34 -34
- package/models/inquiry.d.ts +57 -57
- package/models/inquiry.js +1 -1
- package/models/media.d.ts +50 -50
- package/models/media.js +1 -1
- package/models/module.d.ts +19 -19
- package/models/module.js +1 -1
- package/models/note.d.ts +19 -19
- package/models/note.js +1 -1
- package/models/notification-trigger.d.ts +9 -9
- package/models/notification-trigger.js +1 -1
- package/models/option-label.d.ts +7 -7
- package/models/option-label.js +1 -1
- package/models/order.d.ts +164 -163
- package/models/order.js +20 -20
- package/models/organization.d.ts +86 -86
- package/models/organization.js +7 -7
- package/models/page.d.ts +22 -22
- package/models/page.js +1 -1
- package/models/payment.d.ts +94 -94
- package/models/payment.js +1 -1
- package/models/period.d.ts +8 -8
- package/models/period.js +1 -1
- package/models/producer.d.ts +24 -24
- package/models/producer.js +1 -1
- package/models/product-stats.d.ts +18 -18
- package/models/product-stats.js +1 -1
- package/models/product.d.ts +78 -78
- package/models/product.js +1 -1
- package/models/project.d.ts +124 -124
- package/models/project.js +1 -1
- package/models/queue-download.d.ts +19 -19
- package/models/queue-download.js +1 -1
- package/models/recommendation.d.ts +12 -12
- package/models/recommendation.js +1 -1
- package/models/supplier.d.ts +12 -12
- package/models/supplier.js +1 -1
- package/models/tag.d.ts +5 -5
- package/models/tag.js +1 -1
- package/models/unit-email.d.ts +21 -21
- package/models/unit-email.js +1 -1
- package/models/unit-template.d.ts +124 -124
- package/models/unit-template.js +1 -1
- package/models/unit.d.ts +243 -243
- package/models/unit.js +1 -1
- package/models/upsell-template.d.ts +13 -13
- package/models/upsell-template.js +1 -1
- package/models/user.d.ts +33 -33
- package/models/user.js +16 -16
- package/models/webhook-event.d.ts +43 -43
- package/models/webhook-event.js +1 -1
- package/models/webhook.d.ts +15 -15
- package/models/webhook.js +1 -1
- package/package.json +5 -5
package/core/api.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export interface AptlySearchPaginateResponse<T> {
|
|
2
|
-
limit: number;
|
|
3
|
-
skip: number;
|
|
4
|
-
data: T[];
|
|
5
|
-
count: number;
|
|
6
|
-
}
|
|
7
|
-
export interface AptlyApiQueries {
|
|
8
|
-
limit?: number;
|
|
9
|
-
skip?: number;
|
|
10
|
-
text?: string;
|
|
11
|
-
select?: string;
|
|
12
|
-
populate?: string;
|
|
13
|
-
}
|
|
1
|
+
export interface AptlySearchPaginateResponse<T> {
|
|
2
|
+
limit: number;
|
|
3
|
+
skip: number;
|
|
4
|
+
data: T[];
|
|
5
|
+
count: number;
|
|
6
|
+
}
|
|
7
|
+
export interface AptlyApiQueries {
|
|
8
|
+
limit?: number;
|
|
9
|
+
skip?: number;
|
|
10
|
+
text?: string;
|
|
11
|
+
select?: string;
|
|
12
|
+
populate?: string;
|
|
13
|
+
}
|
package/core/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/core/app.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { AptlyAppScope } from './scope.js';
|
|
2
|
-
import { AptlyApp, AptlyOrganization, AptlyOrganizationAppConfig } from '../models/index.js';
|
|
3
|
-
export declare enum AptlyAppSandbox {
|
|
4
|
-
AllowForms = "allow-forms",
|
|
5
|
-
AllowPopups = "allow-popups",
|
|
6
|
-
AllowScripts = "allow-scripts",
|
|
7
|
-
AllowSameOrigin = "allow-same-origin",
|
|
8
|
-
AllowPointerLock = "allow-pointer-lock",
|
|
9
|
-
AllowTopNavigation = "allow-top-navigation"
|
|
10
|
-
}
|
|
11
|
-
export interface AptlyAppJWT {
|
|
12
|
-
exp: number;
|
|
13
|
-
}
|
|
14
|
-
export interface AptlyAppAuthorizeCode {
|
|
15
|
-
jti: string;
|
|
16
|
-
aud: string;
|
|
17
|
-
sub: string;
|
|
18
|
-
iss: 'aptly.as';
|
|
19
|
-
organization: string;
|
|
20
|
-
app: string;
|
|
21
|
-
scope: AptlyAppScope[];
|
|
22
|
-
}
|
|
23
|
-
export interface AptlyAppAuthorizeToken extends Omit<AptlyAppAuthorizeCode, 'aud'> {
|
|
24
|
-
aud: string;
|
|
25
|
-
}
|
|
26
|
-
export interface AptlyAppWebContext<S extends object> {
|
|
27
|
-
organization: Pick<AptlyOrganization, '_id' | 'slug' | 'name'>;
|
|
28
|
-
project?: string;
|
|
29
|
-
unit?: string;
|
|
30
|
-
app: AptlyApp;
|
|
31
|
-
config: AptlyOrganizationAppConfig<S>;
|
|
32
|
-
theme: any;
|
|
33
|
-
media: AptlyAppWebContextMedia;
|
|
34
|
-
}
|
|
35
|
-
export interface AptlyAppWebContextMedia {
|
|
36
|
-
cloudinaryKey: string;
|
|
37
|
-
}
|
|
1
|
+
import { AptlyAppScope } from './scope.js';
|
|
2
|
+
import { AptlyApp, AptlyOrganization, AptlyOrganizationAppConfig } from '../models/index.js';
|
|
3
|
+
export declare enum AptlyAppSandbox {
|
|
4
|
+
AllowForms = "allow-forms",
|
|
5
|
+
AllowPopups = "allow-popups",
|
|
6
|
+
AllowScripts = "allow-scripts",
|
|
7
|
+
AllowSameOrigin = "allow-same-origin",
|
|
8
|
+
AllowPointerLock = "allow-pointer-lock",
|
|
9
|
+
AllowTopNavigation = "allow-top-navigation"
|
|
10
|
+
}
|
|
11
|
+
export interface AptlyAppJWT {
|
|
12
|
+
exp: number;
|
|
13
|
+
}
|
|
14
|
+
export interface AptlyAppAuthorizeCode {
|
|
15
|
+
jti: string;
|
|
16
|
+
aud: string;
|
|
17
|
+
sub: string;
|
|
18
|
+
iss: 'aptly.as';
|
|
19
|
+
organization: string;
|
|
20
|
+
app: string;
|
|
21
|
+
scope: AptlyAppScope[];
|
|
22
|
+
}
|
|
23
|
+
export interface AptlyAppAuthorizeToken extends Omit<AptlyAppAuthorizeCode, 'aud'> {
|
|
24
|
+
aud: string;
|
|
25
|
+
}
|
|
26
|
+
export interface AptlyAppWebContext<S extends object> {
|
|
27
|
+
organization: Pick<AptlyOrganization, '_id' | 'slug' | 'name'>;
|
|
28
|
+
project?: string;
|
|
29
|
+
unit?: string;
|
|
30
|
+
app: AptlyApp;
|
|
31
|
+
config: AptlyOrganizationAppConfig<S>;
|
|
32
|
+
theme: any;
|
|
33
|
+
media: AptlyAppWebContextMedia;
|
|
34
|
+
}
|
|
35
|
+
export interface AptlyAppWebContextMedia {
|
|
36
|
+
cloudinaryKey: string;
|
|
37
|
+
}
|
package/core/app.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export var AptlyAppSandbox;
|
|
2
|
-
(function (AptlyAppSandbox) {
|
|
3
|
-
AptlyAppSandbox["AllowForms"] = "allow-forms";
|
|
4
|
-
AptlyAppSandbox["AllowPopups"] = "allow-popups";
|
|
5
|
-
AptlyAppSandbox["AllowScripts"] = "allow-scripts";
|
|
6
|
-
AptlyAppSandbox["AllowSameOrigin"] = "allow-same-origin";
|
|
7
|
-
AptlyAppSandbox["AllowPointerLock"] = "allow-pointer-lock";
|
|
8
|
-
AptlyAppSandbox["AllowTopNavigation"] = "allow-top-navigation";
|
|
9
|
-
})(AptlyAppSandbox || (AptlyAppSandbox = {}));
|
|
1
|
+
export var AptlyAppSandbox;
|
|
2
|
+
(function (AptlyAppSandbox) {
|
|
3
|
+
AptlyAppSandbox["AllowForms"] = "allow-forms";
|
|
4
|
+
AptlyAppSandbox["AllowPopups"] = "allow-popups";
|
|
5
|
+
AptlyAppSandbox["AllowScripts"] = "allow-scripts";
|
|
6
|
+
AptlyAppSandbox["AllowSameOrigin"] = "allow-same-origin";
|
|
7
|
+
AptlyAppSandbox["AllowPointerLock"] = "allow-pointer-lock";
|
|
8
|
+
AptlyAppSandbox["AllowTopNavigation"] = "allow-top-navigation";
|
|
9
|
+
})(AptlyAppSandbox || (AptlyAppSandbox = {}));
|
package/core/cloudinary.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as cloudinary from 'cloudinary';
|
|
2
|
-
export type AptlyCloudinaryFile = cloudinary.UploadApiResponse;
|
|
1
|
+
import * as cloudinary from 'cloudinary';
|
|
2
|
+
export type AptlyCloudinaryFile = cloudinary.UploadApiResponse;
|
package/core/cloudinary.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/core/fields.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { AptlyFieldType } from '../enums/index.js';
|
|
2
|
-
export type AptlyDraftJS = string;
|
|
3
|
-
export type AptlyMarkdown = string;
|
|
4
|
-
export interface AptlyField<L = string> {
|
|
5
|
-
type: AptlyFieldType;
|
|
6
|
-
label: L;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
pattern?: string;
|
|
10
|
-
autoComplete?: string;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
multiple?: boolean;
|
|
13
|
-
autoFocus?: boolean;
|
|
14
|
-
options: AptlyFieldOption[];
|
|
15
|
-
}
|
|
16
|
-
export interface AptlyFieldOption<V extends string = string> {
|
|
17
|
-
value: V;
|
|
18
|
-
label: string;
|
|
19
|
-
}
|
|
1
|
+
import { AptlyFieldType } from '../enums/index.js';
|
|
2
|
+
export type AptlyDraftJS = string;
|
|
3
|
+
export type AptlyMarkdown = string;
|
|
4
|
+
export interface AptlyField<L = string> {
|
|
5
|
+
type: AptlyFieldType;
|
|
6
|
+
label: L;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
pattern?: string;
|
|
10
|
+
autoComplete?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
autoFocus?: boolean;
|
|
14
|
+
options: AptlyFieldOption[];
|
|
15
|
+
}
|
|
16
|
+
export interface AptlyFieldOption<V extends string = string> {
|
|
17
|
+
value: V;
|
|
18
|
+
label: string;
|
|
19
|
+
}
|
package/core/fields.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/core/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { AptlyDocumentS3 } from '../models/index.js';
|
|
2
|
-
import { AptlyCloudinaryFile } from './cloudinary.js';
|
|
3
|
-
export * from './api.js';
|
|
4
|
-
export * from './app.js';
|
|
5
|
-
export * from './cloudinary.js';
|
|
6
|
-
export * from './job.js';
|
|
7
|
-
export * from './redirect.js';
|
|
8
|
-
export * from './scope.js';
|
|
9
|
-
export * from './fields.js';
|
|
10
|
-
export * from './signage.js';
|
|
11
|
-
export * from './webhook-event-data.js';
|
|
12
|
-
export interface AptlySchemaFile<ID> extends Pick<AptlyCloudinaryFile, 'public_id' | 'url' | 'format' | 'resource_type' | 'bytes'> {
|
|
13
|
-
filename: string;
|
|
14
|
-
s3?: AptlyDocumentS3;
|
|
15
|
-
document?: ID;
|
|
16
|
-
}
|
|
1
|
+
import { AptlyDocumentS3 } from '../models/index.js';
|
|
2
|
+
import { AptlyCloudinaryFile } from './cloudinary.js';
|
|
3
|
+
export * from './api.js';
|
|
4
|
+
export * from './app.js';
|
|
5
|
+
export * from './cloudinary.js';
|
|
6
|
+
export * from './job.js';
|
|
7
|
+
export * from './redirect.js';
|
|
8
|
+
export * from './scope.js';
|
|
9
|
+
export * from './fields.js';
|
|
10
|
+
export * from './signage.js';
|
|
11
|
+
export * from './webhook-event-data.js';
|
|
12
|
+
export interface AptlySchemaFile<ID> extends Pick<AptlyCloudinaryFile, 'public_id' | 'url' | 'format' | 'resource_type' | 'bytes'> {
|
|
13
|
+
filename: string;
|
|
14
|
+
s3?: AptlyDocumentS3;
|
|
15
|
+
document?: ID;
|
|
16
|
+
}
|
package/core/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './api.js';
|
|
2
|
-
export * from './app.js';
|
|
3
|
-
export * from './cloudinary.js';
|
|
4
|
-
export * from './job.js';
|
|
5
|
-
export * from './redirect.js';
|
|
6
|
-
export * from './scope.js';
|
|
7
|
-
export * from './fields.js';
|
|
8
|
-
export * from './signage.js';
|
|
9
|
-
export * from './webhook-event-data.js';
|
|
1
|
+
export * from './api.js';
|
|
2
|
+
export * from './app.js';
|
|
3
|
+
export * from './cloudinary.js';
|
|
4
|
+
export * from './job.js';
|
|
5
|
+
export * from './redirect.js';
|
|
6
|
+
export * from './scope.js';
|
|
7
|
+
export * from './fields.js';
|
|
8
|
+
export * from './signage.js';
|
|
9
|
+
export * from './webhook-event-data.js';
|
package/core/job.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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
|
-
failedReason?: string;
|
|
18
|
-
}
|
|
19
|
-
export type AptlyJobOrder = AptlyJob<any, {
|
|
20
|
-
order: AptlyOrder;
|
|
21
|
-
}>;
|
|
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
|
+
failedReason?: string;
|
|
18
|
+
}
|
|
19
|
+
export type AptlyJobOrder = AptlyJob<any, {
|
|
20
|
+
order: AptlyOrder;
|
|
21
|
+
}>;
|
package/core/job.js
CHANGED
|
@@ -1,11 +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 = {}));
|
|
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 = {}));
|
package/core/redirect.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export declare enum AptlyRedirectAction {
|
|
2
|
-
Sign = "sign",
|
|
3
|
-
Payment = "payment"
|
|
4
|
-
}
|
|
5
|
-
export declare enum AptlyRedirectActionError {
|
|
6
|
-
SignCancel = "signCancel",
|
|
7
|
-
SignError = "signError",
|
|
8
|
-
Cancel = "cancel",
|
|
9
|
-
Error = "error"
|
|
10
|
-
}
|
|
11
|
-
export type AptlyRedirectOptions = {
|
|
12
|
-
action: AptlyRedirectAction;
|
|
13
|
-
error?: AptlyRedirectActionError;
|
|
14
|
-
error_description?: string;
|
|
15
|
-
};
|
|
16
|
-
export type AptlyClientRedirectOptions = Record<'unit', string> & Partial<Record<'period', string>> & AptlyRedirectOptions;
|
|
17
|
-
export type AptlyDashboardRedirectOptions = Record<'organization' | 'project', string> & AptlyRedirectOptions;
|
|
1
|
+
export declare enum AptlyRedirectAction {
|
|
2
|
+
Sign = "sign",
|
|
3
|
+
Payment = "payment"
|
|
4
|
+
}
|
|
5
|
+
export declare enum AptlyRedirectActionError {
|
|
6
|
+
SignCancel = "signCancel",
|
|
7
|
+
SignError = "signError",
|
|
8
|
+
Cancel = "cancel",
|
|
9
|
+
Error = "error"
|
|
10
|
+
}
|
|
11
|
+
export type AptlyRedirectOptions = {
|
|
12
|
+
action: AptlyRedirectAction;
|
|
13
|
+
error?: AptlyRedirectActionError;
|
|
14
|
+
error_description?: string;
|
|
15
|
+
};
|
|
16
|
+
export type AptlyClientRedirectOptions = Record<'unit', string> & Partial<Record<'period', string>> & AptlyRedirectOptions;
|
|
17
|
+
export type AptlyDashboardRedirectOptions = Record<'organization' | 'project', string> & AptlyRedirectOptions;
|
package/core/redirect.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export var AptlyRedirectAction;
|
|
2
|
-
(function (AptlyRedirectAction) {
|
|
3
|
-
AptlyRedirectAction["Sign"] = "sign";
|
|
4
|
-
AptlyRedirectAction["Payment"] = "payment";
|
|
5
|
-
})(AptlyRedirectAction || (AptlyRedirectAction = {}));
|
|
6
|
-
export var AptlyRedirectActionError;
|
|
7
|
-
(function (AptlyRedirectActionError) {
|
|
8
|
-
AptlyRedirectActionError["SignCancel"] = "signCancel";
|
|
9
|
-
AptlyRedirectActionError["SignError"] = "signError";
|
|
10
|
-
AptlyRedirectActionError["Cancel"] = "cancel";
|
|
11
|
-
AptlyRedirectActionError["Error"] = "error";
|
|
12
|
-
})(AptlyRedirectActionError || (AptlyRedirectActionError = {}));
|
|
1
|
+
export var AptlyRedirectAction;
|
|
2
|
+
(function (AptlyRedirectAction) {
|
|
3
|
+
AptlyRedirectAction["Sign"] = "sign";
|
|
4
|
+
AptlyRedirectAction["Payment"] = "payment";
|
|
5
|
+
})(AptlyRedirectAction || (AptlyRedirectAction = {}));
|
|
6
|
+
export var AptlyRedirectActionError;
|
|
7
|
+
(function (AptlyRedirectActionError) {
|
|
8
|
+
AptlyRedirectActionError["SignCancel"] = "signCancel";
|
|
9
|
+
AptlyRedirectActionError["SignError"] = "signError";
|
|
10
|
+
AptlyRedirectActionError["Cancel"] = "cancel";
|
|
11
|
+
AptlyRedirectActionError["Error"] = "error";
|
|
12
|
+
})(AptlyRedirectActionError || (AptlyRedirectActionError = {}));
|
package/core/scope.d.ts
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
export declare enum AptlyModules {
|
|
2
|
-
Algorithms = "algorithms",
|
|
3
|
-
Booking = "booking",
|
|
4
|
-
Core = "core",
|
|
5
|
-
Default = "default",
|
|
6
|
-
Departments = "departments",
|
|
7
|
-
Emails = "emails",
|
|
8
|
-
OptionLabels = "optionLabels",
|
|
9
|
-
Pages = "pages",
|
|
10
|
-
Payment = "payment",
|
|
11
|
-
ProductsExtended = "productsExtended",
|
|
12
|
-
Recommendations = "recommendations",
|
|
13
|
-
Signing = "signing",
|
|
14
|
-
Support = "support",
|
|
15
|
-
SupportComplaint = "supportComplaint",
|
|
16
|
-
Testing = "testing",
|
|
17
|
-
ThirdParty = "thirdParty",
|
|
18
|
-
UnitExtraOptions = "unitExtraOptions",
|
|
19
|
-
UnitExtraFields = "unitExtraFields"
|
|
20
|
-
}
|
|
21
|
-
export declare enum AptlyScopes {
|
|
22
|
-
Admin = "admin",
|
|
23
|
-
AdminApps = "adminApps",
|
|
24
|
-
AdminBilling = "adminBilling",
|
|
25
|
-
AdminModules = "adminModules",
|
|
26
|
-
AdminProducers = "adminProducers",
|
|
27
|
-
AdminProducts = "adminProducts",
|
|
28
|
-
AdminReport = "adminReport",
|
|
29
|
-
AdminStats = "adminStats",
|
|
30
|
-
AdminSuppliers = "adminSuppliers",
|
|
31
|
-
AdminTags = "adminTags",
|
|
32
|
-
AdminTesting = "adminTesting",
|
|
33
|
-
AdminUsers = "adminUsers",
|
|
34
|
-
AdminOrganizations = "adminOrganizations",
|
|
35
|
-
Beta = "beta",
|
|
36
|
-
Organization = "organization",
|
|
37
|
-
OrganizationAlgorithms = "organizationAlgorithms",
|
|
38
|
-
OrganizationBooking = "organizationBooking",
|
|
39
|
-
OrganizationClients = "organizationClients",
|
|
40
|
-
OrganizationDepartments = "organizationDepartments",
|
|
41
|
-
OrganizationLogo = "organizationLogo",
|
|
42
|
-
OrganizationMembers = "organizationMembers",
|
|
43
|
-
OrganizationOptionLabels = "organizationOptionLabels",
|
|
44
|
-
OrganizationOrders = "organizationOrders",
|
|
45
|
-
OrganizationPayment = "organizationPayment",
|
|
46
|
-
OrganizationPages = "organizationPages",
|
|
47
|
-
OrganizationProducts = "organizationProducts",
|
|
48
|
-
OrganizationProductsExtended = "organizationProductsExtended",
|
|
49
|
-
OrganizationRecommendations = "organizationRecommendations",
|
|
50
|
-
OrganizationReport = "organizationReport",
|
|
51
|
-
OrganizationStats = "organizationStats",
|
|
52
|
-
OrganizationUnitTemplates = "organizationUnitTemplates",
|
|
53
|
-
OrganizationUpsellTemplates = "organizationUpsellTemplates",
|
|
54
|
-
OrganizationWebhooks = "organizationWebhooks",
|
|
55
|
-
Project = "project",
|
|
56
|
-
ProjectAlgorithms = "projectAlgorithms",
|
|
57
|
-
ProjectBooking = "projectBooking",
|
|
58
|
-
ProjectDocuments = "projectDocuments",
|
|
59
|
-
ProjectEmails = "projectEmails",
|
|
60
|
-
ProjectInquiry = "projectInquiry",
|
|
61
|
-
ProjectInquiryComplaint = "projectInquiryComplaint",
|
|
62
|
-
ProjectOrders = "projectOrders",
|
|
63
|
-
ProjectPayment = "projectPayment",
|
|
64
|
-
ProjectPages = "projectPages",
|
|
65
|
-
ProjectPeriods = "projectPeriods",
|
|
66
|
-
ProjectProducts = "projectProducts",
|
|
67
|
-
ProjectRecommendations = "projectRecommendations",
|
|
68
|
-
ProjectReport = "projectReport",
|
|
69
|
-
ProjectReportPrice = "projectReportPrice",
|
|
70
|
-
ProjectTheme = "projectTheme",
|
|
71
|
-
ProjectSigning = "projectSigning",
|
|
72
|
-
ProjectThirdParty = "projectThirdParty",
|
|
73
|
-
ProjectUnits = "projectUnits",
|
|
74
|
-
ProjectUnitInvites = "projectUnitInvites",
|
|
75
|
-
ProjectUnitExtraFields = "projectUnitExtraFields",
|
|
76
|
-
ProjectUnitExtraOptions = "projectUnitExtraOptions",
|
|
77
|
-
ProjectUnitDocuments = "projectUnitDocuments",
|
|
78
|
-
ProjectUnitTemplates = "projectUnitTemplates",
|
|
79
|
-
ProjectUnitTemplatesAlgorithms = "projectUnitTemplatesAlgorithms",
|
|
80
|
-
ProjectUnitTemplatesPrices = "projectUnitTemplatesPrices",
|
|
81
|
-
ProjectUpsellTemplates = "projectUpsellTemplates",
|
|
82
|
-
Unit = "unit",
|
|
83
|
-
UnitBooking = "unitBooking",
|
|
84
|
-
UnitInquiry = "unitInquiry",
|
|
85
|
-
UnitNotes = "unitNotes",
|
|
86
|
-
UnitOrders = "unitOrders",
|
|
87
|
-
UnitPages = "unitPages",
|
|
88
|
-
UnitProducts = "unitProducts",
|
|
89
|
-
UnitReport = "unitReport"
|
|
90
|
-
}
|
|
91
|
-
export declare enum AptlyUserRoles {
|
|
92
|
-
Admin = "admin",
|
|
93
|
-
Beta = "beta",
|
|
94
|
-
Default = "default",
|
|
95
|
-
SuperAdmin = "superAdmin"
|
|
96
|
-
}
|
|
97
|
-
export declare enum AptlyOrganizationRoles {
|
|
98
|
-
Admin = "admin",
|
|
99
|
-
Content = "content",
|
|
100
|
-
Default = "default",
|
|
101
|
-
Orders = "orders",
|
|
102
|
-
OrganizationContent = "organizationContent",
|
|
103
|
-
ProjectAdmin = "projectAdmin",
|
|
104
|
-
Reports = "reports",
|
|
105
|
-
Support = "support",
|
|
106
|
-
TestingAdmin = "testingAdmin",
|
|
107
|
-
ThirdParty = "thirdParty"
|
|
108
|
-
}
|
|
109
|
-
export type AptlyScopeCrud = 'C' | 'R' | 'U' | 'D';
|
|
110
|
-
export type AptlyScopeSchemaValue = 'C' | 'CR' | 'CRU' | 'CRUD' | 'R' | 'RU' | 'RUD' | 'U' | 'UD' | 'D';
|
|
111
|
-
export type AptlyScopeSchema = {
|
|
112
|
-
[key in AptlyScopes]: AptlyScopeSchemaValue;
|
|
113
|
-
};
|
|
114
|
-
export declare enum AptlyScopeAction {
|
|
115
|
-
Read = "read",
|
|
116
|
-
Write = "write"
|
|
117
|
-
}
|
|
118
|
-
export type AptlyAppScope = `aptly.${AptlyScopes}` | `aptly.${AptlyScopes}.${AptlyScopeAction}`;
|
|
119
|
-
export type AptlyAppScopeTranslations = {
|
|
120
|
-
[key in AptlyAppScope]: {
|
|
121
|
-
label: string;
|
|
122
|
-
description?: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
1
|
+
export declare enum AptlyModules {
|
|
2
|
+
Algorithms = "algorithms",
|
|
3
|
+
Booking = "booking",
|
|
4
|
+
Core = "core",
|
|
5
|
+
Default = "default",
|
|
6
|
+
Departments = "departments",
|
|
7
|
+
Emails = "emails",
|
|
8
|
+
OptionLabels = "optionLabels",
|
|
9
|
+
Pages = "pages",
|
|
10
|
+
Payment = "payment",
|
|
11
|
+
ProductsExtended = "productsExtended",
|
|
12
|
+
Recommendations = "recommendations",
|
|
13
|
+
Signing = "signing",
|
|
14
|
+
Support = "support",
|
|
15
|
+
SupportComplaint = "supportComplaint",
|
|
16
|
+
Testing = "testing",
|
|
17
|
+
ThirdParty = "thirdParty",
|
|
18
|
+
UnitExtraOptions = "unitExtraOptions",
|
|
19
|
+
UnitExtraFields = "unitExtraFields"
|
|
20
|
+
}
|
|
21
|
+
export declare enum AptlyScopes {
|
|
22
|
+
Admin = "admin",
|
|
23
|
+
AdminApps = "adminApps",
|
|
24
|
+
AdminBilling = "adminBilling",
|
|
25
|
+
AdminModules = "adminModules",
|
|
26
|
+
AdminProducers = "adminProducers",
|
|
27
|
+
AdminProducts = "adminProducts",
|
|
28
|
+
AdminReport = "adminReport",
|
|
29
|
+
AdminStats = "adminStats",
|
|
30
|
+
AdminSuppliers = "adminSuppliers",
|
|
31
|
+
AdminTags = "adminTags",
|
|
32
|
+
AdminTesting = "adminTesting",
|
|
33
|
+
AdminUsers = "adminUsers",
|
|
34
|
+
AdminOrganizations = "adminOrganizations",
|
|
35
|
+
Beta = "beta",
|
|
36
|
+
Organization = "organization",
|
|
37
|
+
OrganizationAlgorithms = "organizationAlgorithms",
|
|
38
|
+
OrganizationBooking = "organizationBooking",
|
|
39
|
+
OrganizationClients = "organizationClients",
|
|
40
|
+
OrganizationDepartments = "organizationDepartments",
|
|
41
|
+
OrganizationLogo = "organizationLogo",
|
|
42
|
+
OrganizationMembers = "organizationMembers",
|
|
43
|
+
OrganizationOptionLabels = "organizationOptionLabels",
|
|
44
|
+
OrganizationOrders = "organizationOrders",
|
|
45
|
+
OrganizationPayment = "organizationPayment",
|
|
46
|
+
OrganizationPages = "organizationPages",
|
|
47
|
+
OrganizationProducts = "organizationProducts",
|
|
48
|
+
OrganizationProductsExtended = "organizationProductsExtended",
|
|
49
|
+
OrganizationRecommendations = "organizationRecommendations",
|
|
50
|
+
OrganizationReport = "organizationReport",
|
|
51
|
+
OrganizationStats = "organizationStats",
|
|
52
|
+
OrganizationUnitTemplates = "organizationUnitTemplates",
|
|
53
|
+
OrganizationUpsellTemplates = "organizationUpsellTemplates",
|
|
54
|
+
OrganizationWebhooks = "organizationWebhooks",
|
|
55
|
+
Project = "project",
|
|
56
|
+
ProjectAlgorithms = "projectAlgorithms",
|
|
57
|
+
ProjectBooking = "projectBooking",
|
|
58
|
+
ProjectDocuments = "projectDocuments",
|
|
59
|
+
ProjectEmails = "projectEmails",
|
|
60
|
+
ProjectInquiry = "projectInquiry",
|
|
61
|
+
ProjectInquiryComplaint = "projectInquiryComplaint",
|
|
62
|
+
ProjectOrders = "projectOrders",
|
|
63
|
+
ProjectPayment = "projectPayment",
|
|
64
|
+
ProjectPages = "projectPages",
|
|
65
|
+
ProjectPeriods = "projectPeriods",
|
|
66
|
+
ProjectProducts = "projectProducts",
|
|
67
|
+
ProjectRecommendations = "projectRecommendations",
|
|
68
|
+
ProjectReport = "projectReport",
|
|
69
|
+
ProjectReportPrice = "projectReportPrice",
|
|
70
|
+
ProjectTheme = "projectTheme",
|
|
71
|
+
ProjectSigning = "projectSigning",
|
|
72
|
+
ProjectThirdParty = "projectThirdParty",
|
|
73
|
+
ProjectUnits = "projectUnits",
|
|
74
|
+
ProjectUnitInvites = "projectUnitInvites",
|
|
75
|
+
ProjectUnitExtraFields = "projectUnitExtraFields",
|
|
76
|
+
ProjectUnitExtraOptions = "projectUnitExtraOptions",
|
|
77
|
+
ProjectUnitDocuments = "projectUnitDocuments",
|
|
78
|
+
ProjectUnitTemplates = "projectUnitTemplates",
|
|
79
|
+
ProjectUnitTemplatesAlgorithms = "projectUnitTemplatesAlgorithms",
|
|
80
|
+
ProjectUnitTemplatesPrices = "projectUnitTemplatesPrices",
|
|
81
|
+
ProjectUpsellTemplates = "projectUpsellTemplates",
|
|
82
|
+
Unit = "unit",
|
|
83
|
+
UnitBooking = "unitBooking",
|
|
84
|
+
UnitInquiry = "unitInquiry",
|
|
85
|
+
UnitNotes = "unitNotes",
|
|
86
|
+
UnitOrders = "unitOrders",
|
|
87
|
+
UnitPages = "unitPages",
|
|
88
|
+
UnitProducts = "unitProducts",
|
|
89
|
+
UnitReport = "unitReport"
|
|
90
|
+
}
|
|
91
|
+
export declare enum AptlyUserRoles {
|
|
92
|
+
Admin = "admin",
|
|
93
|
+
Beta = "beta",
|
|
94
|
+
Default = "default",
|
|
95
|
+
SuperAdmin = "superAdmin"
|
|
96
|
+
}
|
|
97
|
+
export declare enum AptlyOrganizationRoles {
|
|
98
|
+
Admin = "admin",
|
|
99
|
+
Content = "content",
|
|
100
|
+
Default = "default",
|
|
101
|
+
Orders = "orders",
|
|
102
|
+
OrganizationContent = "organizationContent",
|
|
103
|
+
ProjectAdmin = "projectAdmin",
|
|
104
|
+
Reports = "reports",
|
|
105
|
+
Support = "support",
|
|
106
|
+
TestingAdmin = "testingAdmin",
|
|
107
|
+
ThirdParty = "thirdParty"
|
|
108
|
+
}
|
|
109
|
+
export type AptlyScopeCrud = 'C' | 'R' | 'U' | 'D';
|
|
110
|
+
export type AptlyScopeSchemaValue = 'C' | 'CR' | 'CRU' | 'CRUD' | 'R' | 'RU' | 'RUD' | 'U' | 'UD' | 'D';
|
|
111
|
+
export type AptlyScopeSchema = {
|
|
112
|
+
[key in AptlyScopes]: AptlyScopeSchemaValue;
|
|
113
|
+
};
|
|
114
|
+
export declare enum AptlyScopeAction {
|
|
115
|
+
Read = "read",
|
|
116
|
+
Write = "write"
|
|
117
|
+
}
|
|
118
|
+
export type AptlyAppScope = `aptly.${AptlyScopes}` | `aptly.${AptlyScopes}.${AptlyScopeAction}`;
|
|
119
|
+
export type AptlyAppScopeTranslations = {
|
|
120
|
+
[key in AptlyAppScope]: {
|
|
121
|
+
label: string;
|
|
122
|
+
description?: string;
|
|
123
|
+
};
|
|
124
|
+
};
|