@abyss-project/form 1.0.9 → 1.0.11
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/.eslintrc.js +33 -33
- package/README.md +2 -2
- package/dist/api/report.admin.api.d.ts +3 -2
- package/dist/api/report.admin.api.js +5 -1
- package/dist/index.d.ts +159 -0
- package/dist/index.js +175 -0
- package/dist/types/interface/api/requests/report.admin.request.d.ts +5 -1
- package/dist/types/interface/api/responses/report.admin.response.d.ts +1 -1
- package/package.json +5 -3
- package/tsconfig.json +105 -105
package/.eslintrc.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
project: 'tsconfig.json',
|
|
5
|
-
tsconfigRootDir: __dirname,
|
|
6
|
-
sourceType: 'module',
|
|
7
|
-
},
|
|
8
|
-
plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
|
|
9
|
-
extends: [
|
|
10
|
-
'plugin:@typescript-eslint/recommended',
|
|
11
|
-
'plugin:prettier/recommended',
|
|
12
|
-
],
|
|
13
|
-
root: true,
|
|
14
|
-
env: {
|
|
15
|
-
node: true,
|
|
16
|
-
jest: true,
|
|
17
|
-
},
|
|
18
|
-
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
-
rules: {
|
|
20
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
-
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
25
|
-
'filenames-simple/naming-convention': [
|
|
26
|
-
'error',
|
|
27
|
-
{
|
|
28
|
-
// Use custom regexp to match migration file
|
|
29
|
-
rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
overrides: [],
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: 'tsconfig.json',
|
|
5
|
+
tsconfigRootDir: __dirname,
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
|
|
9
|
+
extends: [
|
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
|
11
|
+
'plugin:prettier/recommended',
|
|
12
|
+
],
|
|
13
|
+
root: true,
|
|
14
|
+
env: {
|
|
15
|
+
node: true,
|
|
16
|
+
jest: true,
|
|
17
|
+
},
|
|
18
|
+
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
+
rules: {
|
|
20
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
25
|
+
'filenames-simple/naming-convention': [
|
|
26
|
+
'error',
|
|
27
|
+
{
|
|
28
|
+
// Use custom regexp to match migration file
|
|
29
|
+
rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
overrides: [],
|
|
34
34
|
};
|
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# abyss-form
|
|
2
|
-
https://abyss-project.gitbook.io/abyss-form/
|
|
1
|
+
# abyss-form
|
|
2
|
+
https://abyss-project.gitbook.io/abyss-form/
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getReportAdmin: (body:
|
|
1
|
+
import { GetReportAdminBody, GetReportAdminResponse, GetGlobalReportAdminBody } from '../types';
|
|
2
|
+
export declare const getReportAdmin: (body: GetReportAdminBody) => Promise<GetReportAdminResponse>;
|
|
3
|
+
export declare const getGlobalReportAdmin: (body: GetGlobalReportAdminBody) => Promise<GetReportAdminResponse>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getReportAdmin = void 0;
|
|
3
|
+
exports.getGlobalReportAdmin = exports.getReportAdmin = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const getReportAdmin = async (body) => {
|
|
6
6
|
return (await __1.AbyssFormCore.axios.post(`report/admin/report`, body)).data;
|
|
7
7
|
};
|
|
8
8
|
exports.getReportAdmin = getReportAdmin;
|
|
9
|
+
const getGlobalReportAdmin = async (body) => {
|
|
10
|
+
return (await __1.AbyssFormCore.axios.post(`report/admin/global-report`, body)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.getGlobalReportAdmin = getGlobalReportAdmin;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import { IAxiosRetryConfig } from 'axios-retry';
|
|
2
|
+
import * as abyssAdminApi from './api/abyss.admin.api';
|
|
3
|
+
import * as formApi from './api/form.api';
|
|
4
|
+
import * as formAdminApi from './api/form.admin.api';
|
|
5
|
+
import * as formPublicApi from './api/form.public.api';
|
|
6
|
+
import * as formDocumentApi from './api/form-document.api';
|
|
7
|
+
import * as formDocumentAdminApi from './api/form-document.admin.api';
|
|
8
|
+
import * as formWebhookApi from './api/form-webhook.api';
|
|
9
|
+
import * as formWebhookAdminApi from './api/form-webhook.admin.api';
|
|
10
|
+
import * as formWebhookHistoryApi from './api/form-webhook-history.api';
|
|
11
|
+
import * as formWebhookHistoryAdminApi from './api/form-webhook-history.admin.api';
|
|
12
|
+
import * as formCodeBlockApi from './api/form-code-block.api';
|
|
13
|
+
import * as formCodeBlockAdminApi from './api/form-code-block.admin.api';
|
|
14
|
+
import * as formSubmissionApi from './api/form-submission.api';
|
|
15
|
+
import * as formSubmissionAdminApi from './api/form-submission.admin.api';
|
|
16
|
+
import * as userApi from './api/user.api';
|
|
17
|
+
import * as userAdminApi from './api/user.admin.api';
|
|
18
|
+
import * as monitorApi from './api/monitor.api';
|
|
19
|
+
import * as reportAdminApi from './api/report.admin.api';
|
|
2
20
|
export * from './types';
|
|
3
21
|
export * from './utils';
|
|
4
22
|
export * from './api';
|
|
@@ -13,9 +31,150 @@ type CoreConfig = {
|
|
|
13
31
|
adminToken?: string;
|
|
14
32
|
baseURL?: string;
|
|
15
33
|
};
|
|
34
|
+
type AbyssFormCoreSDK = {
|
|
35
|
+
abyss: {
|
|
36
|
+
admin: {
|
|
37
|
+
activateUserService: typeof abyssAdminApi.activateUserServiceAbyssAdmin;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
form: {
|
|
41
|
+
get: typeof formApi.getForm;
|
|
42
|
+
getMetrics: typeof formApi.getMetricsForm;
|
|
43
|
+
listByAbyssProjectId: typeof formApi.listByAbyssProjectIdForm;
|
|
44
|
+
delete: typeof formApi.deleteForm;
|
|
45
|
+
paginate: typeof formApi.paginateForm;
|
|
46
|
+
update: typeof formApi.updateForm;
|
|
47
|
+
linkToAbyssProject: typeof formApi.linkToAbyssProjectForm;
|
|
48
|
+
linkToAbyssProjectApplication: typeof formApi.linkToAbyssProjectApplicationForm;
|
|
49
|
+
create: typeof formApi.createForm;
|
|
50
|
+
transfer: typeof formApi.transferForm;
|
|
51
|
+
updateConfiguration: typeof formApi.updateConfigurationForm;
|
|
52
|
+
getConfiguration: typeof formApi.getConfigurationForm;
|
|
53
|
+
linkPresentation: typeof formApi.linkPresentationForm;
|
|
54
|
+
getMainMetrics: typeof formApi.getMainMetricsForm;
|
|
55
|
+
admin: {
|
|
56
|
+
get: typeof formAdminApi.getFormAdmin;
|
|
57
|
+
listByAbyssProjectId: typeof formAdminApi.listByAbyssProjectIdFormAdmin;
|
|
58
|
+
delete: typeof formAdminApi.deleteFormAdmin;
|
|
59
|
+
paginate: typeof formAdminApi.paginateFormAdmin;
|
|
60
|
+
update: typeof formAdminApi.updateFormAdmin;
|
|
61
|
+
linkToAbyss: typeof formAdminApi.linkToAbyssFormAdmin;
|
|
62
|
+
linkToAbyssApplication: typeof formAdminApi.linkToAbyssApplicationFormAdmin;
|
|
63
|
+
create: typeof formAdminApi.createFormAdmin;
|
|
64
|
+
transfer: typeof formAdminApi.transferFormAdmin;
|
|
65
|
+
updateConfiguration: typeof formAdminApi.updateConfigurationFormAdmin;
|
|
66
|
+
getConfiguration: typeof formAdminApi.getConfigurationFormAdmin;
|
|
67
|
+
linkPresentation: typeof formAdminApi.linkPresentationFormAdmin;
|
|
68
|
+
};
|
|
69
|
+
public: {
|
|
70
|
+
getPublished: typeof formPublicApi.getPublishedFormPublic;
|
|
71
|
+
paginatePublished: typeof formPublicApi.paginatePublishedFormPublic;
|
|
72
|
+
getPopular: typeof formPublicApi.getPopularFormPublic;
|
|
73
|
+
checkCanStartSubmission: typeof formPublicApi.checkCanStartSubmissionFormPublic;
|
|
74
|
+
startSubmission: typeof formPublicApi.startSubmissionFormPublic;
|
|
75
|
+
checkPassword: typeof formPublicApi.checkPasswordFormPublic;
|
|
76
|
+
sendSubmission: typeof formPublicApi.sendSubmissionFormPublic;
|
|
77
|
+
getPreSignerUrl: typeof formPublicApi.getPreSignerUrlFormPublic;
|
|
78
|
+
importFromCloud: typeof formPublicApi.importFromCloudFormPublic;
|
|
79
|
+
findId: typeof formPublicApi.findIdFormPublic;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
formDocument: {
|
|
83
|
+
get: typeof formDocumentApi.getFormDocument;
|
|
84
|
+
getUploadUrl: typeof formDocumentApi.getUploadUrlFormDocument;
|
|
85
|
+
importFromCloud: typeof formDocumentApi.importFromCloudFormDocument;
|
|
86
|
+
importFromCollection: typeof formDocumentApi.importFromCollectionFormDocument;
|
|
87
|
+
paginate: typeof formDocumentApi.paginateFormDocument;
|
|
88
|
+
list: typeof formDocumentApi.listFormDocument;
|
|
89
|
+
delete: typeof formDocumentApi.deleteFormDocument;
|
|
90
|
+
admin: {
|
|
91
|
+
get: typeof formDocumentAdminApi.getFormDocumentAdmin;
|
|
92
|
+
paginate: typeof formDocumentAdminApi.paginateFormDocumentAdmin;
|
|
93
|
+
list: typeof formDocumentAdminApi.listFormDocumentAdmin;
|
|
94
|
+
delete: typeof formDocumentAdminApi.deleteFormDocumentAdmin;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
formWebhook: {
|
|
98
|
+
get: typeof formWebhookApi.getFormWebhook;
|
|
99
|
+
delete: typeof formWebhookApi.deleteFormWebhook;
|
|
100
|
+
update: typeof formWebhookApi.updateFormWebhook;
|
|
101
|
+
resetSecret: typeof formWebhookApi.resetResetSecretFormWebhook;
|
|
102
|
+
create: typeof formWebhookApi.createFormWebhook;
|
|
103
|
+
paginate: typeof formWebhookApi.paginateFormWebhook;
|
|
104
|
+
admin: {
|
|
105
|
+
get: typeof formWebhookAdminApi.getFormWebhookAdmin;
|
|
106
|
+
delete: typeof formWebhookAdminApi.deleteFormWebhookAdmin;
|
|
107
|
+
update: typeof formWebhookAdminApi.updateFormWebhookAdmin;
|
|
108
|
+
resetSecret: typeof formWebhookAdminApi.resetResetSecretFormWebhookAdmin;
|
|
109
|
+
create: typeof formWebhookAdminApi.createFormWebhookAdmin;
|
|
110
|
+
paginate: typeof formWebhookAdminApi.paginateFormWebhookAdmin;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
formWebhookHistory: {
|
|
114
|
+
get: typeof formWebhookHistoryApi.getFormWebhookHistory;
|
|
115
|
+
paginate: typeof formWebhookHistoryApi.paginateFormWebhookHistory;
|
|
116
|
+
admin: {
|
|
117
|
+
get: typeof formWebhookHistoryAdminApi.getFormWebhookHistoryAdmin;
|
|
118
|
+
paginate: typeof formWebhookHistoryAdminApi.paginateFormWebhookHistoryAdmin;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
formCodeBlock: {
|
|
122
|
+
get: typeof formCodeBlockApi.getFormCodeBlock;
|
|
123
|
+
delete: typeof formCodeBlockApi.deleteFormCodeBlock;
|
|
124
|
+
update: typeof formCodeBlockApi.updateFormCodeBlock;
|
|
125
|
+
create: typeof formCodeBlockApi.createFormCodeBlock;
|
|
126
|
+
paginate: typeof formCodeBlockApi.paginateFormCodeBlock;
|
|
127
|
+
list: typeof formCodeBlockApi.listFormCodeBlock;
|
|
128
|
+
admin: {
|
|
129
|
+
get: typeof formCodeBlockAdminApi.getFormCodeBlockAdmin;
|
|
130
|
+
delete: typeof formCodeBlockAdminApi.deleteFormCodeBlockAdmin;
|
|
131
|
+
update: typeof formCodeBlockAdminApi.updateFormCodeBlockAdmin;
|
|
132
|
+
create: typeof formCodeBlockAdminApi.createFormCodeBlockAdmin;
|
|
133
|
+
paginate: typeof formCodeBlockAdminApi.paginateFormCodeBlockAdmin;
|
|
134
|
+
list: typeof formCodeBlockAdminApi.listFormCodeBlockAdmin;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
formSubmission: {
|
|
138
|
+
get: typeof formSubmissionApi.getFormSubmission;
|
|
139
|
+
getNextToReview: typeof formSubmissionApi.getNextToReviewFormSubmission;
|
|
140
|
+
update: typeof formSubmissionApi.updateFormSubmission;
|
|
141
|
+
archive: typeof formSubmissionApi.archiveFormSubmission;
|
|
142
|
+
paginate: typeof formSubmissionApi.paginateFormSubmission;
|
|
143
|
+
admin: {
|
|
144
|
+
get: typeof formSubmissionAdminApi.getFormSubmissionAdmin;
|
|
145
|
+
update: typeof formSubmissionAdminApi.updateFormSubmissionAdmin;
|
|
146
|
+
archive: typeof formSubmissionAdminApi.archiveFormSubmissionAdmin;
|
|
147
|
+
paginate: typeof formSubmissionAdminApi.paginateFormSubmissionAdmin;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
user: {
|
|
151
|
+
me: typeof userApi.meUser;
|
|
152
|
+
update: typeof userApi.updateUser;
|
|
153
|
+
resetApiKey: typeof userApi.resetApiKeyUser;
|
|
154
|
+
getDetails: typeof userApi.getDetailsUser;
|
|
155
|
+
admin: {
|
|
156
|
+
get: typeof userAdminApi.getUserAdmin;
|
|
157
|
+
resetApiKey: typeof userAdminApi.resetApiKeyUserAdmin;
|
|
158
|
+
paginate: typeof userAdminApi.paginateUserAdmin;
|
|
159
|
+
update: typeof userAdminApi.updateUserAdmin;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
monitor: {
|
|
163
|
+
up: typeof monitorApi.upMonitor;
|
|
164
|
+
};
|
|
165
|
+
report: {
|
|
166
|
+
admin: {
|
|
167
|
+
getReport: typeof reportAdminApi.getReportAdmin;
|
|
168
|
+
getGlobalReport: typeof reportAdminApi.getGlobalReportAdmin;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
16
172
|
export declare class AbyssFormCore {
|
|
17
173
|
private static config;
|
|
18
174
|
static axios: import("axios").AxiosInstance;
|
|
175
|
+
private static _sdk;
|
|
176
|
+
static get sdk(): AbyssFormCoreSDK;
|
|
177
|
+
private static buildSDK;
|
|
19
178
|
static enableAxiosRetry(axiosRetryConfig?: IAxiosRetryConfig): void;
|
|
20
179
|
static setConfig(config: CoreConfig): void;
|
|
21
180
|
static getConfig(): CoreConfig;
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
33
33
|
exports.AbyssFormCore = exports.WEBHOOK_SIGNATURE_ALGORITHM = exports.HEADER_WEBHOOK_SIGNATURE_NAME = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_HEADER = void 0;
|
|
34
34
|
const axios_1 = __importDefault(require("axios"));
|
|
35
35
|
const axios_retry_1 = __importStar(require("axios-retry"));
|
|
36
|
+
const abyssAdminApi = __importStar(require("./api/abyss.admin.api"));
|
|
37
|
+
const formApi = __importStar(require("./api/form.api"));
|
|
38
|
+
const formAdminApi = __importStar(require("./api/form.admin.api"));
|
|
39
|
+
const formPublicApi = __importStar(require("./api/form.public.api"));
|
|
40
|
+
const formDocumentApi = __importStar(require("./api/form-document.api"));
|
|
41
|
+
const formDocumentAdminApi = __importStar(require("./api/form-document.admin.api"));
|
|
42
|
+
const formWebhookApi = __importStar(require("./api/form-webhook.api"));
|
|
43
|
+
const formWebhookAdminApi = __importStar(require("./api/form-webhook.admin.api"));
|
|
44
|
+
const formWebhookHistoryApi = __importStar(require("./api/form-webhook-history.api"));
|
|
45
|
+
const formWebhookHistoryAdminApi = __importStar(require("./api/form-webhook-history.admin.api"));
|
|
46
|
+
const formCodeBlockApi = __importStar(require("./api/form-code-block.api"));
|
|
47
|
+
const formCodeBlockAdminApi = __importStar(require("./api/form-code-block.admin.api"));
|
|
48
|
+
const formSubmissionApi = __importStar(require("./api/form-submission.api"));
|
|
49
|
+
const formSubmissionAdminApi = __importStar(require("./api/form-submission.admin.api"));
|
|
50
|
+
const userApi = __importStar(require("./api/user.api"));
|
|
51
|
+
const userAdminApi = __importStar(require("./api/user.admin.api"));
|
|
52
|
+
const monitorApi = __importStar(require("./api/monitor.api"));
|
|
53
|
+
const reportAdminApi = __importStar(require("./api/report.admin.api"));
|
|
36
54
|
__exportStar(require("./types"), exports);
|
|
37
55
|
__exportStar(require("./utils"), exports);
|
|
38
56
|
__exportStar(require("./api"), exports);
|
|
@@ -49,6 +67,161 @@ const RETRY_CODES = [
|
|
|
49
67
|
503,
|
|
50
68
|
];
|
|
51
69
|
class AbyssFormCore {
|
|
70
|
+
static get sdk() {
|
|
71
|
+
if (!_a._sdk) {
|
|
72
|
+
_a._sdk = _a.buildSDK();
|
|
73
|
+
}
|
|
74
|
+
return _a._sdk;
|
|
75
|
+
}
|
|
76
|
+
static buildSDK() {
|
|
77
|
+
const formSDK = {
|
|
78
|
+
get: formApi.getForm,
|
|
79
|
+
getMetrics: formApi.getMetricsForm,
|
|
80
|
+
listByAbyssProjectId: formApi.listByAbyssProjectIdForm,
|
|
81
|
+
delete: formApi.deleteForm,
|
|
82
|
+
paginate: formApi.paginateForm,
|
|
83
|
+
update: formApi.updateForm,
|
|
84
|
+
linkToAbyssProject: formApi.linkToAbyssProjectForm,
|
|
85
|
+
linkToAbyssProjectApplication: formApi.linkToAbyssProjectApplicationForm,
|
|
86
|
+
create: formApi.createForm,
|
|
87
|
+
transfer: formApi.transferForm,
|
|
88
|
+
updateConfiguration: formApi.updateConfigurationForm,
|
|
89
|
+
getConfiguration: formApi.getConfigurationForm,
|
|
90
|
+
linkPresentation: formApi.linkPresentationForm,
|
|
91
|
+
getMainMetrics: formApi.getMainMetricsForm,
|
|
92
|
+
admin: {
|
|
93
|
+
get: formAdminApi.getFormAdmin,
|
|
94
|
+
listByAbyssProjectId: formAdminApi.listByAbyssProjectIdFormAdmin,
|
|
95
|
+
delete: formAdminApi.deleteFormAdmin,
|
|
96
|
+
paginate: formAdminApi.paginateFormAdmin,
|
|
97
|
+
update: formAdminApi.updateFormAdmin,
|
|
98
|
+
linkToAbyss: formAdminApi.linkToAbyssFormAdmin,
|
|
99
|
+
linkToAbyssApplication: formAdminApi.linkToAbyssApplicationFormAdmin,
|
|
100
|
+
create: formAdminApi.createFormAdmin,
|
|
101
|
+
transfer: formAdminApi.transferFormAdmin,
|
|
102
|
+
updateConfiguration: formAdminApi.updateConfigurationFormAdmin,
|
|
103
|
+
getConfiguration: formAdminApi.getConfigurationFormAdmin,
|
|
104
|
+
linkPresentation: formAdminApi.linkPresentationFormAdmin,
|
|
105
|
+
},
|
|
106
|
+
public: {
|
|
107
|
+
getPublished: formPublicApi.getPublishedFormPublic,
|
|
108
|
+
paginatePublished: formPublicApi.paginatePublishedFormPublic,
|
|
109
|
+
getPopular: formPublicApi.getPopularFormPublic,
|
|
110
|
+
checkCanStartSubmission: formPublicApi.checkCanStartSubmissionFormPublic,
|
|
111
|
+
startSubmission: formPublicApi.startSubmissionFormPublic,
|
|
112
|
+
checkPassword: formPublicApi.checkPasswordFormPublic,
|
|
113
|
+
sendSubmission: formPublicApi.sendSubmissionFormPublic,
|
|
114
|
+
getPreSignerUrl: formPublicApi.getPreSignerUrlFormPublic,
|
|
115
|
+
importFromCloud: formPublicApi.importFromCloudFormPublic,
|
|
116
|
+
findId: formPublicApi.findIdFormPublic,
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
const formDocumentSDK = {
|
|
120
|
+
get: formDocumentApi.getFormDocument,
|
|
121
|
+
getUploadUrl: formDocumentApi.getUploadUrlFormDocument,
|
|
122
|
+
importFromCloud: formDocumentApi.importFromCloudFormDocument,
|
|
123
|
+
importFromCollection: formDocumentApi.importFromCollectionFormDocument,
|
|
124
|
+
paginate: formDocumentApi.paginateFormDocument,
|
|
125
|
+
list: formDocumentApi.listFormDocument,
|
|
126
|
+
delete: formDocumentApi.deleteFormDocument,
|
|
127
|
+
admin: {
|
|
128
|
+
get: formDocumentAdminApi.getFormDocumentAdmin,
|
|
129
|
+
paginate: formDocumentAdminApi.paginateFormDocumentAdmin,
|
|
130
|
+
list: formDocumentAdminApi.listFormDocumentAdmin,
|
|
131
|
+
delete: formDocumentAdminApi.deleteFormDocumentAdmin,
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
const formWebhookSDK = {
|
|
135
|
+
get: formWebhookApi.getFormWebhook,
|
|
136
|
+
delete: formWebhookApi.deleteFormWebhook,
|
|
137
|
+
update: formWebhookApi.updateFormWebhook,
|
|
138
|
+
resetSecret: formWebhookApi.resetResetSecretFormWebhook,
|
|
139
|
+
create: formWebhookApi.createFormWebhook,
|
|
140
|
+
paginate: formWebhookApi.paginateFormWebhook,
|
|
141
|
+
admin: {
|
|
142
|
+
get: formWebhookAdminApi.getFormWebhookAdmin,
|
|
143
|
+
delete: formWebhookAdminApi.deleteFormWebhookAdmin,
|
|
144
|
+
update: formWebhookAdminApi.updateFormWebhookAdmin,
|
|
145
|
+
resetSecret: formWebhookAdminApi.resetResetSecretFormWebhookAdmin,
|
|
146
|
+
create: formWebhookAdminApi.createFormWebhookAdmin,
|
|
147
|
+
paginate: formWebhookAdminApi.paginateFormWebhookAdmin,
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
const formWebhookHistorySDK = {
|
|
151
|
+
get: formWebhookHistoryApi.getFormWebhookHistory,
|
|
152
|
+
paginate: formWebhookHistoryApi.paginateFormWebhookHistory,
|
|
153
|
+
admin: {
|
|
154
|
+
get: formWebhookHistoryAdminApi.getFormWebhookHistoryAdmin,
|
|
155
|
+
paginate: formWebhookHistoryAdminApi.paginateFormWebhookHistoryAdmin,
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
const formCodeBlockSDK = {
|
|
159
|
+
get: formCodeBlockApi.getFormCodeBlock,
|
|
160
|
+
delete: formCodeBlockApi.deleteFormCodeBlock,
|
|
161
|
+
update: formCodeBlockApi.updateFormCodeBlock,
|
|
162
|
+
create: formCodeBlockApi.createFormCodeBlock,
|
|
163
|
+
paginate: formCodeBlockApi.paginateFormCodeBlock,
|
|
164
|
+
list: formCodeBlockApi.listFormCodeBlock,
|
|
165
|
+
admin: {
|
|
166
|
+
get: formCodeBlockAdminApi.getFormCodeBlockAdmin,
|
|
167
|
+
delete: formCodeBlockAdminApi.deleteFormCodeBlockAdmin,
|
|
168
|
+
update: formCodeBlockAdminApi.updateFormCodeBlockAdmin,
|
|
169
|
+
create: formCodeBlockAdminApi.createFormCodeBlockAdmin,
|
|
170
|
+
paginate: formCodeBlockAdminApi.paginateFormCodeBlockAdmin,
|
|
171
|
+
list: formCodeBlockAdminApi.listFormCodeBlockAdmin,
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
const formSubmissionSDK = {
|
|
175
|
+
get: formSubmissionApi.getFormSubmission,
|
|
176
|
+
getNextToReview: formSubmissionApi.getNextToReviewFormSubmission,
|
|
177
|
+
update: formSubmissionApi.updateFormSubmission,
|
|
178
|
+
archive: formSubmissionApi.archiveFormSubmission,
|
|
179
|
+
paginate: formSubmissionApi.paginateFormSubmission,
|
|
180
|
+
admin: {
|
|
181
|
+
get: formSubmissionAdminApi.getFormSubmissionAdmin,
|
|
182
|
+
update: formSubmissionAdminApi.updateFormSubmissionAdmin,
|
|
183
|
+
archive: formSubmissionAdminApi.archiveFormSubmissionAdmin,
|
|
184
|
+
paginate: formSubmissionAdminApi.paginateFormSubmissionAdmin,
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
const userSDK = {
|
|
188
|
+
me: userApi.meUser,
|
|
189
|
+
update: userApi.updateUser,
|
|
190
|
+
resetApiKey: userApi.resetApiKeyUser,
|
|
191
|
+
getDetails: userApi.getDetailsUser,
|
|
192
|
+
admin: {
|
|
193
|
+
get: userAdminApi.getUserAdmin,
|
|
194
|
+
resetApiKey: userAdminApi.resetApiKeyUserAdmin,
|
|
195
|
+
paginate: userAdminApi.paginateUserAdmin,
|
|
196
|
+
update: userAdminApi.updateUserAdmin,
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
const reportSDK = {
|
|
200
|
+
admin: {
|
|
201
|
+
getReport: reportAdminApi.getReportAdmin,
|
|
202
|
+
getGlobalReport: reportAdminApi.getGlobalReportAdmin,
|
|
203
|
+
},
|
|
204
|
+
};
|
|
205
|
+
const baseSDK = {
|
|
206
|
+
abyss: {
|
|
207
|
+
admin: {
|
|
208
|
+
activateUserService: abyssAdminApi.activateUserServiceAbyssAdmin,
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
form: formSDK,
|
|
212
|
+
formDocument: formDocumentSDK,
|
|
213
|
+
formWebhook: formWebhookSDK,
|
|
214
|
+
formWebhookHistory: formWebhookHistorySDK,
|
|
215
|
+
formCodeBlock: formCodeBlockSDK,
|
|
216
|
+
formSubmission: formSubmissionSDK,
|
|
217
|
+
user: userSDK,
|
|
218
|
+
monitor: {
|
|
219
|
+
up: monitorApi.upMonitor,
|
|
220
|
+
},
|
|
221
|
+
report: reportSDK,
|
|
222
|
+
};
|
|
223
|
+
return baseSDK;
|
|
224
|
+
}
|
|
52
225
|
static enableAxiosRetry(axiosRetryConfig) {
|
|
53
226
|
(0, axios_retry_1.default)(_a.axios, {
|
|
54
227
|
retries: NUMBER_RETRY_API,
|
|
@@ -62,6 +235,7 @@ class AbyssFormCore {
|
|
|
62
235
|
});
|
|
63
236
|
}
|
|
64
237
|
static setConfig(config) {
|
|
238
|
+
_a._sdk = null;
|
|
65
239
|
_a.config = { ..._a.config, ...config };
|
|
66
240
|
if (config.baseURL) {
|
|
67
241
|
_a.axios.defaults.baseURL = config.baseURL;
|
|
@@ -94,3 +268,4 @@ AbyssFormCore.axios = axios_1.default.create({
|
|
|
94
268
|
baseURL: _a.config.baseURL,
|
|
95
269
|
withCredentials: true,
|
|
96
270
|
});
|
|
271
|
+
AbyssFormCore._sdk = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/form",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Core package to interact with AbyssForm",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,13 +37,15 @@
|
|
|
37
37
|
"eslint-plugin-promise": "^5.1.0",
|
|
38
38
|
"prettier": "2.3.1",
|
|
39
39
|
"sequelize-cli": "^6.2.0",
|
|
40
|
-
"typescript": "5.4.2"
|
|
40
|
+
"typescript": "5.4.2",
|
|
41
|
+
"tsc-watch": "^4.6.2"
|
|
41
42
|
},
|
|
42
43
|
"scripts": {
|
|
43
44
|
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
44
45
|
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
45
46
|
"tsc": "tsc",
|
|
46
47
|
"build": "tsc",
|
|
47
|
-
"prepublish": "tsc"
|
|
48
|
+
"prepublish": "tsc",
|
|
49
|
+
"dev": "tsc-watch --onSuccess 'yalc push'"
|
|
48
50
|
}
|
|
49
51
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
4
|
-
|
|
5
|
-
/* Projects */
|
|
6
|
-
"incremental": false /* Enable incremental compilation */,
|
|
7
|
-
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
8
|
-
// "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */
|
|
9
|
-
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */
|
|
10
|
-
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
11
|
-
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
12
|
-
|
|
13
|
-
/* Language and Environment */
|
|
14
|
-
"target": "es2019" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
15
|
-
"lib": [
|
|
16
|
-
"dom",
|
|
17
|
-
"ES2019"
|
|
18
|
-
] /* Specify a set of bundled library declaration files that describe the target runtime environment. */,
|
|
19
|
-
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
20
|
-
"experimentalDecorators": true /* Enable experimental support for TC39 stage 2 draft decorators. */,
|
|
21
|
-
"emitDecoratorMetadata": true /* Emit design-type metadata for decorated declarations in source files. */,
|
|
22
|
-
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */
|
|
23
|
-
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
24
|
-
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */
|
|
25
|
-
// "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */
|
|
26
|
-
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
27
|
-
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
28
|
-
|
|
29
|
-
/* Modules */
|
|
30
|
-
"module": "commonjs" /* Specify what module code is generated. */,
|
|
31
|
-
"rootDir": "./src" /* Specify the root folder within your source files. */,
|
|
32
|
-
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
|
33
|
-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
34
|
-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
35
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
36
|
-
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
|
|
37
|
-
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
38
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
39
|
-
"resolveJsonModule": true /* Enable importing .json files */,
|
|
40
|
-
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
|
|
41
|
-
|
|
42
|
-
/* JavaScript Support */
|
|
43
|
-
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */,
|
|
44
|
-
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
45
|
-
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
|
|
46
|
-
|
|
47
|
-
/* Emit */
|
|
48
|
-
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
|
|
49
|
-
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
50
|
-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
51
|
-
// "sourceMap": true /* Create source map files for emitted JavaScript files. */,
|
|
52
|
-
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
|
|
53
|
-
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
|
|
54
|
-
"removeComments": true /* Disable emitting comments. */,
|
|
55
|
-
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
56
|
-
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
57
|
-
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */
|
|
58
|
-
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
59
|
-
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
60
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
61
|
-
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
62
|
-
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
63
|
-
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
64
|
-
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
65
|
-
// "smemoriesInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */
|
|
66
|
-
// "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */
|
|
67
|
-
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
68
|
-
// "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
|
|
69
|
-
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
70
|
-
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
71
|
-
|
|
72
|
-
/* Interop Constraints */
|
|
73
|
-
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
74
|
-
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
|
|
75
|
-
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
|
|
76
|
-
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
77
|
-
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
78
|
-
|
|
79
|
-
/* Type Checking */
|
|
80
|
-
"strict": true /* Enable all strict type-checking options. */,
|
|
81
|
-
// "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied `any` type.. */,
|
|
82
|
-
// "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
|
|
83
|
-
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
84
|
-
// "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
|
|
85
|
-
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
86
|
-
// "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
|
|
87
|
-
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
|
|
88
|
-
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
89
|
-
// "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
|
|
90
|
-
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
|
|
91
|
-
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
92
|
-
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
93
|
-
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
94
|
-
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
|
|
95
|
-
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
96
|
-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
|
|
97
|
-
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
98
|
-
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
99
|
-
|
|
100
|
-
/* Completeness */
|
|
101
|
-
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
102
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
103
|
-
},
|
|
104
|
-
"exclude": ["./dist/**/*"]
|
|
105
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
4
|
+
|
|
5
|
+
/* Projects */
|
|
6
|
+
"incremental": false /* Enable incremental compilation */,
|
|
7
|
+
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
8
|
+
// "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */
|
|
9
|
+
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */
|
|
10
|
+
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
11
|
+
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
12
|
+
|
|
13
|
+
/* Language and Environment */
|
|
14
|
+
"target": "es2019" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
15
|
+
"lib": [
|
|
16
|
+
"dom",
|
|
17
|
+
"ES2019"
|
|
18
|
+
] /* Specify a set of bundled library declaration files that describe the target runtime environment. */,
|
|
19
|
+
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
20
|
+
"experimentalDecorators": true /* Enable experimental support for TC39 stage 2 draft decorators. */,
|
|
21
|
+
"emitDecoratorMetadata": true /* Emit design-type metadata for decorated declarations in source files. */,
|
|
22
|
+
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */
|
|
23
|
+
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
24
|
+
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */
|
|
25
|
+
// "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */
|
|
26
|
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
27
|
+
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
28
|
+
|
|
29
|
+
/* Modules */
|
|
30
|
+
"module": "commonjs" /* Specify what module code is generated. */,
|
|
31
|
+
"rootDir": "./src" /* Specify the root folder within your source files. */,
|
|
32
|
+
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
|
33
|
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
34
|
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
35
|
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
36
|
+
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
|
|
37
|
+
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
38
|
+
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
39
|
+
"resolveJsonModule": true /* Enable importing .json files */,
|
|
40
|
+
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
|
|
41
|
+
|
|
42
|
+
/* JavaScript Support */
|
|
43
|
+
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */,
|
|
44
|
+
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
45
|
+
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
|
|
46
|
+
|
|
47
|
+
/* Emit */
|
|
48
|
+
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
|
|
49
|
+
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
50
|
+
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
51
|
+
// "sourceMap": true /* Create source map files for emitted JavaScript files. */,
|
|
52
|
+
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
|
|
53
|
+
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
|
|
54
|
+
"removeComments": true /* Disable emitting comments. */,
|
|
55
|
+
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
56
|
+
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
57
|
+
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */
|
|
58
|
+
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
59
|
+
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
60
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
61
|
+
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
62
|
+
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
63
|
+
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
64
|
+
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
65
|
+
// "smemoriesInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */
|
|
66
|
+
// "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */
|
|
67
|
+
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
68
|
+
// "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
|
|
69
|
+
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
70
|
+
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
71
|
+
|
|
72
|
+
/* Interop Constraints */
|
|
73
|
+
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
74
|
+
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
|
|
75
|
+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
|
|
76
|
+
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
77
|
+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
78
|
+
|
|
79
|
+
/* Type Checking */
|
|
80
|
+
"strict": true /* Enable all strict type-checking options. */,
|
|
81
|
+
// "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied `any` type.. */,
|
|
82
|
+
// "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
|
|
83
|
+
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
84
|
+
// "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
|
|
85
|
+
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
86
|
+
// "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
|
|
87
|
+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
|
|
88
|
+
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
89
|
+
// "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
|
|
90
|
+
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
|
|
91
|
+
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
92
|
+
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
93
|
+
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
94
|
+
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
|
|
95
|
+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
96
|
+
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
|
|
97
|
+
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
98
|
+
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
99
|
+
|
|
100
|
+
/* Completeness */
|
|
101
|
+
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
102
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
103
|
+
},
|
|
104
|
+
"exclude": ["./dist/**/*"]
|
|
105
|
+
}
|