@aptly-as/types 1.7.3 → 1.7.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/.idea/aptly-types.iml +12 -0
- package/.idea/codeStyles/Project.xml +62 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/models/product.d.ts +1 -0
- package/package.json +1 -10
- package/core/api.ts +0 -15
- package/core/app.ts +0 -41
- package/core/cloudinary.ts +0 -11
- package/core/error.ts +0 -28
- package/core/fields.ts +0 -19
- package/core/index.ts +0 -16
- package/core/permission.ts +0 -212
- package/core/scope.ts +0 -12
- package/core/signage.ts +0 -21
- package/core/webhook-event-data.ts +0 -15
- package/enums/document.ts +0 -31
- package/enums/fields.ts +0 -26
- package/enums/index.ts +0 -120
- package/enums/unit-template.ts +0 -11
- package/enums/webhook.ts +0 -24
- package/index.ts +0 -3
- package/models/algorithm.ts +0 -31
- package/models/app.ts +0 -75
- package/models/booking.ts +0 -57
- package/models/client.ts +0 -15
- package/models/department.ts +0 -31
- package/models/document.ts +0 -35
- package/models/extends.ts +0 -39
- package/models/index.ts +0 -30
- package/models/inquiry.ts +0 -57
- package/models/media.ts +0 -71
- package/models/notification-trigger.ts +0 -10
- package/models/option-label.ts +0 -12
- package/models/order.ts +0 -66
- package/models/organization.ts +0 -91
- package/models/page.ts +0 -34
- package/models/producer.ts +0 -22
- package/models/product-stats.ts +0 -19
- package/models/product.ts +0 -78
- package/models/project.ts +0 -139
- package/models/queue-download.ts +0 -21
- package/models/recommendation.ts +0 -13
- package/models/supplier.ts +0 -17
- package/models/tag.ts +0 -9
- package/models/unit-email.ts +0 -39
- package/models/unit-template.ts +0 -140
- package/models/unit.ts +0 -242
- package/models/upsell-template.ts +0 -21
- package/models/user.ts +0 -19
- package/models/webhook-event.ts +0 -50
- package/models/webhook.ts +0 -21
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
</content>
|
|
9
|
+
<orderEntry type="inheritedJdk" />
|
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
+
<code_scheme name="Project" version="173">
|
|
3
|
+
<HTMLCodeStyleSettings>
|
|
4
|
+
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
|
|
5
|
+
<option name="HTML_QUOTE_STYLE" value="Single" />
|
|
6
|
+
<option name="HTML_ENFORCE_QUOTES" value="true" />
|
|
7
|
+
</HTMLCodeStyleSettings>
|
|
8
|
+
<JSCodeStyleSettings version="0">
|
|
9
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
10
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
11
|
+
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
12
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
13
|
+
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
|
|
14
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
15
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
16
|
+
</JSCodeStyleSettings>
|
|
17
|
+
<TypeScriptCodeStyleSettings version="0">
|
|
18
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
19
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
20
|
+
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
21
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
22
|
+
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
|
|
23
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
24
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
25
|
+
</TypeScriptCodeStyleSettings>
|
|
26
|
+
<VueCodeStyleSettings>
|
|
27
|
+
<option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
|
|
28
|
+
<option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
|
|
29
|
+
</VueCodeStyleSettings>
|
|
30
|
+
<codeStyleSettings language="HTML">
|
|
31
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
32
|
+
<indentOptions>
|
|
33
|
+
<option name="INDENT_SIZE" value="2" />
|
|
34
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
35
|
+
<option name="TAB_SIZE" value="2" />
|
|
36
|
+
</indentOptions>
|
|
37
|
+
</codeStyleSettings>
|
|
38
|
+
<codeStyleSettings language="JavaScript">
|
|
39
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
40
|
+
<indentOptions>
|
|
41
|
+
<option name="INDENT_SIZE" value="2" />
|
|
42
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
43
|
+
<option name="TAB_SIZE" value="2" />
|
|
44
|
+
</indentOptions>
|
|
45
|
+
</codeStyleSettings>
|
|
46
|
+
<codeStyleSettings language="TypeScript">
|
|
47
|
+
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
|
|
48
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
49
|
+
<indentOptions>
|
|
50
|
+
<option name="INDENT_SIZE" value="2" />
|
|
51
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
52
|
+
<option name="TAB_SIZE" value="2" />
|
|
53
|
+
</indentOptions>
|
|
54
|
+
</codeStyleSettings>
|
|
55
|
+
<codeStyleSettings language="Vue">
|
|
56
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
57
|
+
<indentOptions>
|
|
58
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
59
|
+
</indentOptions>
|
|
60
|
+
</codeStyleSettings>
|
|
61
|
+
</code_scheme>
|
|
62
|
+
</component>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/aptly-types.iml" filepath="$PROJECT_DIR$/.idea/aptly-types.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
package/.idea/vcs.xml
ADDED
package/models/product.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptly-as/types",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "Aptly types and enums",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -35,15 +35,6 @@
|
|
|
35
35
|
"url": "https://github.com/aptly-as/types/issues"
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/aptly-as/types#readme",
|
|
38
|
-
"files": [
|
|
39
|
-
"core",
|
|
40
|
-
"enums",
|
|
41
|
-
"models",
|
|
42
|
-
"index.ts",
|
|
43
|
-
"index.d.ts",
|
|
44
|
-
"index.js",
|
|
45
|
-
"index.js.map"
|
|
46
|
-
],
|
|
47
38
|
"lint-staged": {
|
|
48
39
|
"**/*": "prettier --write --ignore-unknown"
|
|
49
40
|
}
|
package/core/api.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export interface AptlySearchPaginateResponse<T> {
|
|
3
|
-
limit: number;
|
|
4
|
-
skip: number;
|
|
5
|
-
data: T[];
|
|
6
|
-
count: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface AptlyApiQueries {
|
|
10
|
-
limit?: number; // Limit documents
|
|
11
|
-
skip?: number; // skip document for pagination
|
|
12
|
-
text?: string; // search all fields
|
|
13
|
-
select?: string; // Split with spaces
|
|
14
|
-
populate?: string; // user:_id,fullName;organization
|
|
15
|
-
}
|
package/core/app.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { AptlyScope } from './scope';
|
|
2
|
-
import { AptlyApp, AptlyOrganization, AptlyOrganizationAppConfig } from '../models';
|
|
3
|
-
|
|
4
|
-
export enum AptlyAppSandbox {
|
|
5
|
-
AllowForms = 'allow-forms',
|
|
6
|
-
AllowPopups = 'allow-popups',
|
|
7
|
-
AllowScripts = 'allow-scripts',
|
|
8
|
-
AllowSameOrigin = 'allow-same-origin',
|
|
9
|
-
AllowPointerLock = 'allow-pointer-lock',
|
|
10
|
-
AllowTopNavigation = 'allow-top-navigation',
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface AptlyAppJWT {
|
|
14
|
-
exp: number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface AptlyAppAuthorizeCode {
|
|
18
|
-
scope: AptlyScope[];
|
|
19
|
-
aud: string; // organization_id
|
|
20
|
-
sub: string; // app_id
|
|
21
|
-
jti: string; // user_id
|
|
22
|
-
iss: 'aptly.as';
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface AptlyAppAuthorizeToken {
|
|
26
|
-
iss: string; // client_id
|
|
27
|
-
aud: string; // organization_id
|
|
28
|
-
sub: string; // app_id
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface AptlyAppWebContext<S extends object> {
|
|
32
|
-
organization: Pick<AptlyOrganization, '_id' | 'slug' | 'name'>;
|
|
33
|
-
app: AptlyApp;
|
|
34
|
-
config: AptlyOrganizationAppConfig<S>;
|
|
35
|
-
theme: any;
|
|
36
|
-
media: AptlyAppWebContextMedia;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface AptlyAppWebContextMedia {
|
|
40
|
-
cloudinaryKey: string;
|
|
41
|
-
}
|
package/core/cloudinary.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AptlyCloudinaryResourceType } from '../enums';
|
|
2
|
-
|
|
3
|
-
export interface AptlyCloudinaryFile {
|
|
4
|
-
public_id: string;
|
|
5
|
-
url: string;
|
|
6
|
-
secure_url: string;
|
|
7
|
-
format: string;
|
|
8
|
-
resource_type: AptlyCloudinaryResourceType;
|
|
9
|
-
original_filename: string;
|
|
10
|
-
bytes: number;
|
|
11
|
-
}
|
package/core/error.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { AptlyErrorCode } from '../enums/index';
|
|
2
|
-
|
|
3
|
-
export interface AptlyError {
|
|
4
|
-
id: string;
|
|
5
|
-
links?: {
|
|
6
|
-
self?: AptlyErrorLink | string;
|
|
7
|
-
}
|
|
8
|
-
status: string;
|
|
9
|
-
code: AptlyErrorCode;
|
|
10
|
-
title?: string;
|
|
11
|
-
detail?: string;
|
|
12
|
-
source?: {
|
|
13
|
-
pointer?: string;
|
|
14
|
-
parameter?: string;
|
|
15
|
-
header?: string;
|
|
16
|
-
body?: string;
|
|
17
|
-
};
|
|
18
|
-
meta?: object;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface AptlyErrorLink {
|
|
22
|
-
href: string;
|
|
23
|
-
title?: string;
|
|
24
|
-
describedBy?: string;
|
|
25
|
-
meta: {
|
|
26
|
-
count: number;
|
|
27
|
-
}
|
|
28
|
-
}
|
package/core/fields.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AptlyFieldType } from '../enums';
|
|
2
|
-
|
|
3
|
-
export interface AptlyField {
|
|
4
|
-
type: AptlyFieldType;
|
|
5
|
-
label: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
pattern?: string;
|
|
9
|
-
autoComplete?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
multiple?: boolean;
|
|
12
|
-
autoFocus?: boolean;
|
|
13
|
-
options: AptlyFieldOption[];
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface AptlyFieldOption<V extends string = string> {
|
|
17
|
-
value: V;
|
|
18
|
-
label: string;
|
|
19
|
-
}
|
package/core/index.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AptlyCloudinaryFile } from './cloudinary';
|
|
2
|
-
|
|
3
|
-
export * from './api';
|
|
4
|
-
export * from './app';
|
|
5
|
-
export * from './cloudinary';
|
|
6
|
-
export * from './permission';
|
|
7
|
-
export * from './error';
|
|
8
|
-
export * from './fields';
|
|
9
|
-
export * from './scope';
|
|
10
|
-
export * from './signage';
|
|
11
|
-
export * from './webhook-event-data';
|
|
12
|
-
|
|
13
|
-
export interface AptlySchemaFile
|
|
14
|
-
extends Pick<AptlyCloudinaryFile, 'public_id' | 'url' | 'format' | 'resource_type' | 'bytes'> {
|
|
15
|
-
filename: string;
|
|
16
|
-
}
|
package/core/permission.ts
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated use AptlyPermissionGlobalModel enum
|
|
4
|
-
*/
|
|
5
|
-
export type AptlyPermissionGlobalModels = 'superAdmin' | 'admin' | 'beta' | 'default';
|
|
6
|
-
|
|
7
|
-
export enum AptlyPermissionGlobalModel {
|
|
8
|
-
Admin = 'admin',
|
|
9
|
-
Beta = 'beta',
|
|
10
|
-
Default = 'default',
|
|
11
|
-
SuperAdmin = 'superAdmin',
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Dont think this is used?
|
|
16
|
-
*/
|
|
17
|
-
export type AptlyPermissionModules = 'projectBooking' | 'projectSupport' | 'projectRecommendations';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated use AptlyPermissionOrganizationModel enum
|
|
21
|
-
*/
|
|
22
|
-
export type AptlyPermissionModulesModels =
|
|
23
|
-
| 'default'
|
|
24
|
-
| 'core'
|
|
25
|
-
| 'algorithms'
|
|
26
|
-
| 'departments'
|
|
27
|
-
| 'booking'
|
|
28
|
-
| 'unitExtraOptions'
|
|
29
|
-
| 'unitExtraFields'
|
|
30
|
-
| 'pages'
|
|
31
|
-
| 'recommendations'
|
|
32
|
-
| 'subcontractor'
|
|
33
|
-
| 'optionLabels'
|
|
34
|
-
| 'support'
|
|
35
|
-
| 'productsExtended'
|
|
36
|
-
| 'testing';
|
|
37
|
-
|
|
38
|
-
export enum AptlyPermissionModulesModel {
|
|
39
|
-
Algorithms = 'algorithms',
|
|
40
|
-
Booking = 'booking',
|
|
41
|
-
Core = 'core',
|
|
42
|
-
Default = 'default',
|
|
43
|
-
Departments = 'departments',
|
|
44
|
-
OptionLabels = 'optionLabels',
|
|
45
|
-
Pages = 'pages',
|
|
46
|
-
ProductsExtended = 'productsExtended',
|
|
47
|
-
Recommendations = 'recommendations',
|
|
48
|
-
Subcontractor = 'subcontractor',
|
|
49
|
-
Support = 'support',
|
|
50
|
-
Testing = 'testing',
|
|
51
|
-
UnitExtraOptions = 'unitExtraOptions',
|
|
52
|
-
UnitExtraFields = 'unitExtraFields',
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated use AptlyPermissionOrganizationModel enum
|
|
57
|
-
*/
|
|
58
|
-
export type AptlyPermissionOrganizationModels =
|
|
59
|
-
| 'testingAdmin'
|
|
60
|
-
| 'admin'
|
|
61
|
-
| 'projectAdmin'
|
|
62
|
-
| 'content'
|
|
63
|
-
| 'organizationContent'
|
|
64
|
-
| 'reports'
|
|
65
|
-
| 'support'
|
|
66
|
-
| 'thirdParty'
|
|
67
|
-
| 'default';
|
|
68
|
-
|
|
69
|
-
export enum AptlyPermissionOrganizationModel {
|
|
70
|
-
Admin = 'admin',
|
|
71
|
-
Content = 'content',
|
|
72
|
-
OrganizationContent = 'organizationContent',
|
|
73
|
-
Default = 'default',
|
|
74
|
-
ProjectAdmin = 'projectAdmin',
|
|
75
|
-
TestingAdmin = 'testingAdmin',
|
|
76
|
-
Reports = 'reports',
|
|
77
|
-
Support = 'support',
|
|
78
|
-
ThirdParty = 'thirdParty',
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @deprecated use AptlyPermissionModel enum
|
|
83
|
-
*/
|
|
84
|
-
export type AptlyPermissionModels =
|
|
85
|
-
| 'admin'
|
|
86
|
-
| 'adminBilling'
|
|
87
|
-
| 'adminProducers'
|
|
88
|
-
| 'adminProducts'
|
|
89
|
-
| 'adminReport'
|
|
90
|
-
| 'adminStats'
|
|
91
|
-
| 'adminSuppliers'
|
|
92
|
-
| 'adminTags'
|
|
93
|
-
| 'adminTesting'
|
|
94
|
-
| 'adminUsers'
|
|
95
|
-
| 'adminOrganizations'
|
|
96
|
-
| 'beta'
|
|
97
|
-
| 'organization'
|
|
98
|
-
| 'organizationAlgorithms'
|
|
99
|
-
| 'organizationBooking'
|
|
100
|
-
| 'organizationClients'
|
|
101
|
-
| 'organizationDepartments'
|
|
102
|
-
| 'organizationLogo'
|
|
103
|
-
| 'organizationMembers'
|
|
104
|
-
| 'organizationOptionLabels'
|
|
105
|
-
| 'organizationOrders'
|
|
106
|
-
| 'organizationPages'
|
|
107
|
-
| 'organizationProducts'
|
|
108
|
-
| 'organizationProductsExtended'
|
|
109
|
-
| 'organizationRecommendations'
|
|
110
|
-
| 'organizationReport'
|
|
111
|
-
| 'organizationStats'
|
|
112
|
-
| 'organizationUnitTemplates'
|
|
113
|
-
| 'organizationUpsellTemplates'
|
|
114
|
-
| 'organizationWebhooks'
|
|
115
|
-
| 'project'
|
|
116
|
-
| 'projectAlgorithms'
|
|
117
|
-
| 'projectBooking'
|
|
118
|
-
| 'projectDocuments'
|
|
119
|
-
| 'projectInquiry'
|
|
120
|
-
| 'projectOrders'
|
|
121
|
-
| 'projectPages'
|
|
122
|
-
| 'projectPeriods'
|
|
123
|
-
| 'projectProducts'
|
|
124
|
-
| 'projectRecommendations'
|
|
125
|
-
| 'projectReport'
|
|
126
|
-
| 'projectReportPrice'
|
|
127
|
-
| 'projectTheme'
|
|
128
|
-
| 'projectSigning'
|
|
129
|
-
| 'projectSubcontractor'
|
|
130
|
-
| 'projectUnits'
|
|
131
|
-
| 'projectUnitInvites'
|
|
132
|
-
| 'projectUnitExtraFields'
|
|
133
|
-
| 'projectUnitExtraOptions'
|
|
134
|
-
| 'projectUnitTemplates'
|
|
135
|
-
| 'projectUnitTemplatesAlgorithms'
|
|
136
|
-
| 'projectUnitTemplatesPrices'
|
|
137
|
-
| 'projectUpsellTemplates'
|
|
138
|
-
| 'unit'
|
|
139
|
-
| 'unitBooking'
|
|
140
|
-
| 'unitInquiry'
|
|
141
|
-
| 'unitOrders'
|
|
142
|
-
| 'unitPages'
|
|
143
|
-
| 'unitProducts'
|
|
144
|
-
| 'unitReport';
|
|
145
|
-
|
|
146
|
-
export enum AptlyPermissionModel {
|
|
147
|
-
Admin = 'admin',
|
|
148
|
-
AdminBilling = 'adminBilling',
|
|
149
|
-
AdminProducers = 'adminProducers',
|
|
150
|
-
AdminProducts = 'adminProducts',
|
|
151
|
-
AdminReport = 'adminReport',
|
|
152
|
-
AdminStats = 'adminStats',
|
|
153
|
-
AdminSuppliers = 'adminSuppliers',
|
|
154
|
-
AdminTags = 'adminTags',
|
|
155
|
-
AdminTesting = 'adminTesting',
|
|
156
|
-
AdminUsers = 'adminUsers',
|
|
157
|
-
AdminOrganizations = 'adminOrganizations',
|
|
158
|
-
Beta = 'beta',
|
|
159
|
-
Organization = 'organization',
|
|
160
|
-
OrganizationAlgorithms = 'organizationAlgorithms',
|
|
161
|
-
OrganizationBooking = 'organizationBooking',
|
|
162
|
-
OrganizationClients = 'organizationClients',
|
|
163
|
-
OrganizationDepartments = 'organizationDepartments',
|
|
164
|
-
OrganizationLogo = 'organizationLogo',
|
|
165
|
-
OrganizationMembers = 'organizationMembers',
|
|
166
|
-
OrganizationOptionLabels = 'organizationOptionLabels',
|
|
167
|
-
OrganizationOrders = 'organizationOrders',
|
|
168
|
-
OrganizationPages = 'organizationPages',
|
|
169
|
-
OrganizationProducts = 'organizationProducts',
|
|
170
|
-
OrganizationProductsExtended = 'organizationProductsExtended',
|
|
171
|
-
OrganizationRecommendations = 'organizationRecommendations',
|
|
172
|
-
OrganizationReport = 'organizationReport',
|
|
173
|
-
OrganizationStats = 'organizationStats',
|
|
174
|
-
OrganizationUnitTemplates = 'organizationUnitTemplates',
|
|
175
|
-
OrganizationUpsellTemplates = 'organizationUpsellTemplates',
|
|
176
|
-
OrganizationWebhooks = 'organizationWebhooks',
|
|
177
|
-
Project = 'project',
|
|
178
|
-
ProjectAlgorithms = 'projectAlgorithms',
|
|
179
|
-
ProjectBooking = 'projectBooking',
|
|
180
|
-
ProjectDocuments = 'projectDocuments',
|
|
181
|
-
ProjectInquiry = 'projectInquiry',
|
|
182
|
-
ProjectOrders = 'projectOrders',
|
|
183
|
-
ProjectPages = 'projectPages',
|
|
184
|
-
ProjectPeriods = 'projectPeriods',
|
|
185
|
-
ProjectProducts = 'projectProducts',
|
|
186
|
-
ProjectRecommendations = 'projectRecommendations',
|
|
187
|
-
ProjectReport = 'projectReport',
|
|
188
|
-
ProjectReportPrice = 'projectReportPrice',
|
|
189
|
-
ProjectTheme = 'projectTheme',
|
|
190
|
-
ProjectSigning = 'projectSigning',
|
|
191
|
-
ProjectSubcontractor = 'projectSubcontractor',
|
|
192
|
-
ProjectUnits = 'projectUnits',
|
|
193
|
-
ProjectUnitInvites = 'projectUnitInvites',
|
|
194
|
-
ProjectUnitExtraFields = 'projectUnitExtraFields',
|
|
195
|
-
ProjectUnitExtraOptions = 'projectUnitExtraOptions',
|
|
196
|
-
ProjectUnitTemplates = 'projectUnitTemplates',
|
|
197
|
-
ProjectUnitTemplatesAlgorithms = 'projectUnitTemplatesAlgorithms',
|
|
198
|
-
ProjectUnitTemplatesPrices = 'projectUnitTemplatesPrices',
|
|
199
|
-
ProjectUpsellTemplates = 'projectUpsellTemplates',
|
|
200
|
-
Unit = 'unit',
|
|
201
|
-
UnitBooking = 'unitBooking',
|
|
202
|
-
UnitInquiry = 'unitInquiry',
|
|
203
|
-
UnitOrders = 'unitOrders',
|
|
204
|
-
UnitPages = 'unitPages',
|
|
205
|
-
UnitProducts = 'unitProducts',
|
|
206
|
-
UnitReport = 'unitReport',
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export type AptlyPermissionCrud = 'C' | 'R' | 'U' | 'D';
|
|
210
|
-
export type AptlyPermissionSchema = {
|
|
211
|
-
[key in AptlyPermissionModels]: 'R' | 'CR' | 'CRU' | 'RU' | 'CRUD';
|
|
212
|
-
}
|
package/core/scope.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AptlyPermissionModel } from './permission';
|
|
2
|
-
|
|
3
|
-
export enum AptlyScopeAction {
|
|
4
|
-
Read = 'read',
|
|
5
|
-
Write = 'write',
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type AptlyScope = `aptly.${AptlyPermissionModel}` | `aptly.${AptlyPermissionModel}.${AptlyScopeAction}`;
|
|
9
|
-
export type AptlyScopeTranslations = { [key in AptlyScope]: {
|
|
10
|
-
label: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
}; };
|
package/core/signage.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AptlySignageSignerRef } from '../enums';
|
|
2
|
-
|
|
3
|
-
export type AptlySignage = AptlySignageSchema<string, string>;
|
|
4
|
-
export interface AptlySignageSchema<ID, DATE> {
|
|
5
|
-
hasReceivedFile: boolean;
|
|
6
|
-
documentId: string;
|
|
7
|
-
document: ID;
|
|
8
|
-
signedFile: ID;
|
|
9
|
-
signed: boolean;
|
|
10
|
-
documentCreationDate: DATE;
|
|
11
|
-
expireDate: DATE;
|
|
12
|
-
signers: AptlySignageSignerSchema<ID, DATE>[];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type AptlySignageSigner = AptlySignageSignerSchema<string, string>;
|
|
16
|
-
export interface AptlySignageSignerSchema<ID, DATE> {
|
|
17
|
-
_id: ID;
|
|
18
|
-
ref: AptlySignageSignerRef;
|
|
19
|
-
signerId: string;
|
|
20
|
-
signedAt?: DATE;
|
|
21
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AptlyDocumentSchema,
|
|
3
|
-
AptlyOrderSchema,
|
|
4
|
-
AptlyUnitSchema
|
|
5
|
-
} from '../models';
|
|
6
|
-
|
|
7
|
-
export namespace AptlyWebhookEventData {
|
|
8
|
-
export type NewUnitOrderSigned = NewUnitOrderSignedSchema<string, string>;
|
|
9
|
-
export interface NewUnitOrderSignedSchema<ID, DATE> {
|
|
10
|
-
order: Pick<AptlyOrderSchema<ID, DATE>, '_id' | 'orderNumber' | 'receipt' | 'period'>;
|
|
11
|
-
unit: Pick<AptlyUnitSchema<ID, DATE>, '_id' | 'name'>;
|
|
12
|
-
document: AptlyDocumentSchema<ID, DATE>;
|
|
13
|
-
documentUrl: string;
|
|
14
|
-
}
|
|
15
|
-
}
|
package/enums/document.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export enum AptlyDocumentType {
|
|
3
|
-
Document = 'document',
|
|
4
|
-
DeliveryDescription = 'deliveryDescription',
|
|
5
|
-
UnitPlan = 'unitPlan',
|
|
6
|
-
ElDrawing = 'elDrawing',
|
|
7
|
-
VVSDrawing = 'vvsDrawing',
|
|
8
|
-
BathroomDrawing = 'bathroomDrawing',
|
|
9
|
-
FDV = 'fdv',
|
|
10
|
-
Manual = 'manual',
|
|
11
|
-
KitchenDrawing = 'kitchenDrawing',
|
|
12
|
-
Receipt = 'receipt',
|
|
13
|
-
ProductAttachment = 'productAttachment',
|
|
14
|
-
SignedReceipt = 'signedReceipt',
|
|
15
|
-
OrderAttachment = 'orderAttachment',
|
|
16
|
-
InspectionReport = 'inspectionReport',
|
|
17
|
-
Public = 'public',
|
|
18
|
-
Prospect = 'prospect',
|
|
19
|
-
EndReport = 'endReport',
|
|
20
|
-
Contract = 'contract',
|
|
21
|
-
Chunk = 'chunk',
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export enum AptlyHistoryType {
|
|
25
|
-
Added = 'added',
|
|
26
|
-
Updated = 'updated',
|
|
27
|
-
Deleted = 'deleted',
|
|
28
|
-
Moved = 'moved',
|
|
29
|
-
Copied = 'copied',
|
|
30
|
-
Imported = 'imported',
|
|
31
|
-
}
|
package/enums/fields.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export enum AptlyFieldType {
|
|
3
|
-
Object = 'object',
|
|
4
|
-
Images = 'images',
|
|
5
|
-
Image = 'image',
|
|
6
|
-
Text = 'text',
|
|
7
|
-
Password = 'password',
|
|
8
|
-
TextArea = 'text-area',
|
|
9
|
-
Email = 'email',
|
|
10
|
-
Number = 'number',
|
|
11
|
-
Date = 'date',
|
|
12
|
-
DateTime = 'date-time',
|
|
13
|
-
Color = 'color',
|
|
14
|
-
Select = 'select',
|
|
15
|
-
File = 'file',
|
|
16
|
-
Files = 'files',
|
|
17
|
-
Documents = 'documents',
|
|
18
|
-
DraftJS = 'draft-js',
|
|
19
|
-
Reference = 'reference',
|
|
20
|
-
Custom = 'custom',
|
|
21
|
-
BulkIds = 'bulk-ids',
|
|
22
|
-
Hidden = 'hidden',
|
|
23
|
-
Sort = 'sort',
|
|
24
|
-
Switch = 'switch',
|
|
25
|
-
Checkbox = 'checkbox',
|
|
26
|
-
}
|