@abyss-project/form 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/form-document.api.d.ts +2 -1
- package/dist/api/form-document.api.js +5 -1
- package/dist/api/form-document.api.js.map +1 -1
- package/dist/api/form-submission.api.d.ts +2 -1
- package/dist/api/form-submission.api.js +5 -1
- package/dist/api/form-submission.api.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/types/interface/api/requests/form-document.request.d.ts +4 -0
- package/dist/types/interface/api/requests/form-submission.request.d.ts +5 -0
- package/dist/types/interface/api/requests/form.admin.request.d.ts +1 -0
- package/dist/types/interface/api/requests/form.request.d.ts +1 -0
- package/dist/types/interface/api/responses/form-document.response.d.ts +5 -0
- package/dist/types/interface/api/responses/form-submission.response.d.ts +5 -0
- package/dist/types/interface/api/responses/user.response.d.ts +3 -3
- package/dist/types/interface/dto/form.dto.d.ts +1 -0
- package/dist/types/interface/models/form-configuration.model.d.ts +5 -0
- package/dist/types/interface/models/user.model.d.ts +1 -0
- package/package.json +14 -10
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IGetFormDocumentParams, IGetFormDocumentResponse, IDeleteFormDocumentResponse, IDeleteFormDocumentParams, IPaginateFormDocumentParams, IPaginateFormDocumentQuery, IPaginateFormDocumentResponse, IGetUploadPreSignedUrlFormDocumentParams, IGetUploadPreSignedUrlFormDocumentBody, IGetUploadPreSignedUrlFormDocumentResponse, IImportFromCloudFormDocumentBody, IImportFromCloudFormDocumentParams, IImportFromCloudFormDocumentResponse, IListFormDocumentParams, IListFormDocumentResponse } from '..';
|
|
1
|
+
import { IGetFormDocumentParams, IGetFormDocumentResponse, IDeleteFormDocumentResponse, IDeleteFormDocumentParams, IPaginateFormDocumentParams, IPaginateFormDocumentQuery, IPaginateFormDocumentResponse, IGetUploadPreSignedUrlFormDocumentParams, IGetUploadPreSignedUrlFormDocumentBody, IGetUploadPreSignedUrlFormDocumentResponse, IImportFromCloudFormDocumentBody, IImportFromCloudFormDocumentParams, IImportFromCloudFormDocumentResponse, IListFormDocumentParams, IListFormDocumentResponse, IGetDownloadUrlFormDocumentParams, IGetDownloadUrlFormDocumentResponse } from '..';
|
|
2
2
|
export declare const getFormDocument: (params: IGetFormDocumentParams) => Promise<IGetFormDocumentResponse>;
|
|
3
3
|
export declare const getUploadUrlFormDocument: (params: IGetUploadPreSignedUrlFormDocumentParams, body: IGetUploadPreSignedUrlFormDocumentBody) => Promise<IGetUploadPreSignedUrlFormDocumentResponse>;
|
|
4
4
|
export declare const importFromCloudFormDocument: (params: IImportFromCloudFormDocumentParams, body: IImportFromCloudFormDocumentBody) => Promise<IImportFromCloudFormDocumentResponse>;
|
|
5
5
|
export declare const paginateFormDocument: (params: IPaginateFormDocumentParams, query: IPaginateFormDocumentQuery) => Promise<IPaginateFormDocumentResponse>;
|
|
6
6
|
export declare const listFormDocument: (params: IListFormDocumentParams) => Promise<IListFormDocumentResponse>;
|
|
7
7
|
export declare const deleteFormDocument: (params: IDeleteFormDocumentParams) => Promise<IDeleteFormDocumentResponse>;
|
|
8
|
+
export declare const getDownloadUrlFormDocument: (params: IGetDownloadUrlFormDocumentParams) => Promise<IGetDownloadUrlFormDocumentResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteFormDocument = exports.listFormDocument = exports.paginateFormDocument = exports.importFromCloudFormDocument = exports.getUploadUrlFormDocument = exports.getFormDocument = void 0;
|
|
3
|
+
exports.getDownloadUrlFormDocument = exports.deleteFormDocument = exports.listFormDocument = exports.paginateFormDocument = exports.importFromCloudFormDocument = exports.getUploadUrlFormDocument = exports.getFormDocument = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const getFormDocument = async (params) => {
|
|
6
6
|
return (await __1.AbyssFormCore.axios.get(`form-document/${params.formId}/document/${params.formDocumentId}`)).data;
|
|
@@ -28,4 +28,8 @@ const deleteFormDocument = async (params) => {
|
|
|
28
28
|
return (await __1.AbyssFormCore.axios.delete(`form-document/${params.formId}/document/${params.formDocumentId}`)).data;
|
|
29
29
|
};
|
|
30
30
|
exports.deleteFormDocument = deleteFormDocument;
|
|
31
|
+
const getDownloadUrlFormDocument = async (params) => {
|
|
32
|
+
return (await __1.AbyssFormCore.axios.get(`form-document/${params.formId}/document/${params.formDocumentId}/download-url`)).data;
|
|
33
|
+
};
|
|
34
|
+
exports.getDownloadUrlFormDocument = getDownloadUrlFormDocument;
|
|
31
35
|
//# sourceMappingURL=form-document.api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-document.api.js","sourceRoot":"","sources":["../../src/api/form-document.api.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"form-document.api.js","sourceRoot":"","sources":["../../src/api/form-document.api.ts"],"names":[],"mappings":";;;AAAA,0BAmBY;AAEL,MAAM,eAAe,GAAG,KAAK,EAClC,MAA8B,EACK,EAAE;IACrC,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAC3B,iBAAiB,MAAM,CAAC,MAAM,aAAa,MAAM,CAAC,cAAc,EAAE,CACnE,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,eAAe,mBAQ1B;AAEK,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAgD,EAChD,IAA4C,EACS,EAAE;IACvD,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,IAAI,CAC5B,iBAAiB,MAAM,CAAC,MAAM,WAAW,EACzC,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,wBAAwB,4BAUnC;AAEK,MAAM,2BAA2B,GAAG,KAAK,EAC9C,MAA0C,EAC1C,IAAsC,EACS,EAAE;IACjD,OAAO,CACL,MAA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ormSubmissionResponse, IDeleteFormSubmissionParams, IDeleteFormSubmissionResponse, IGetFormSubmissionParams, IGetFormSubmissionResponse, IGetNextToReviewFormSubmissionParams, IGetNextToReviewFormSubmissionQuery, IGetNextToReviewFormSubmissionResponse, IPaginateFormSubmissionParams, IPaginateFormSubmissionQuery, IPaginateFormSubmissionResponse, IUpdateFormSubmissionBody, IUpdateFormSubmissionParams, IUpdateFormSubmissionResponse } from '..';
|
|
1
|
+
import { IArchiveFormSubmissionParams, IArchiveFormSubmissionResponse, IDeleteFormSubmissionParams, IDeleteFormSubmissionResponse, IGetFormSubmissionParams, IGetFormSubmissionResponse, IGetNextToReviewFormSubmissionParams, IGetNextToReviewFormSubmissionQuery, IGetNextToReviewFormSubmissionResponse, IPaginateFormSubmissionParams, IPaginateFormSubmissionQuery, IPaginateFormSubmissionResponse, IUpdateFormSubmissionBody, IUpdateFormSubmissionParams, IUpdateFormSubmissionResponse, IGetFileDownloadUrlFormSubmissionParams, IGetFileDownloadUrlFormSubmissionResponse } from '..';
|
|
2
2
|
export declare const getFormSubmission: (params: IGetFormSubmissionParams) => Promise<IGetFormSubmissionResponse>;
|
|
3
3
|
export declare const getNextToReviewFormSubmission: (params: IGetNextToReviewFormSubmissionParams, query: IGetNextToReviewFormSubmissionQuery) => Promise<IGetNextToReviewFormSubmissionResponse>;
|
|
4
4
|
export declare const updateFormSubmission: (params: IUpdateFormSubmissionParams, body: IUpdateFormSubmissionBody) => Promise<IUpdateFormSubmissionResponse>;
|
|
5
5
|
export declare const archiveFormSubmission: (params: IArchiveFormSubmissionParams) => Promise<IArchiveFormSubmissionResponse>;
|
|
6
6
|
export declare const deleteFormSubmission: (params: IDeleteFormSubmissionParams) => Promise<IDeleteFormSubmissionResponse>;
|
|
7
7
|
export declare const paginateFormSubmission: (params: IPaginateFormSubmissionParams, query: IPaginateFormSubmissionQuery) => Promise<IPaginateFormSubmissionResponse>;
|
|
8
|
+
export declare const getFileDownloadUrlFormSubmission: (params: IGetFileDownloadUrlFormSubmissionParams) => Promise<IGetFileDownloadUrlFormSubmissionResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateFormSubmission = exports.deleteFormSubmission = exports.archiveFormSubmission = exports.updateFormSubmission = exports.getNextToReviewFormSubmission = exports.getFormSubmission = void 0;
|
|
3
|
+
exports.getFileDownloadUrlFormSubmission = exports.paginateFormSubmission = exports.deleteFormSubmission = exports.archiveFormSubmission = exports.updateFormSubmission = exports.getNextToReviewFormSubmission = exports.getFormSubmission = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const getFormSubmission = async (params) => {
|
|
6
6
|
return (await __1.AbyssFormCore.axios.get(`form-submission/${params.formId}/submission/${params.formSubmissionId}`)).data;
|
|
@@ -28,4 +28,8 @@ const paginateFormSubmission = async (params, query) => {
|
|
|
28
28
|
return (await __1.AbyssFormCore.axios.get(`form-submission/${params.formId}/submission/paginate`, { params: query })).data;
|
|
29
29
|
};
|
|
30
30
|
exports.paginateFormSubmission = paginateFormSubmission;
|
|
31
|
+
const getFileDownloadUrlFormSubmission = async (params) => {
|
|
32
|
+
return (await __1.AbyssFormCore.axios.get(`form-submission/${params.formId}/submission/${params.formSubmissionId}/file/${params.fileId}/download-url`)).data;
|
|
33
|
+
};
|
|
34
|
+
exports.getFileDownloadUrlFormSubmission = getFileDownloadUrlFormSubmission;
|
|
31
35
|
//# sourceMappingURL=form-submission.api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-submission.api.js","sourceRoot":"","sources":["../../src/api/form-submission.api.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"form-submission.api.js","sourceRoot":"","sources":["../../src/api/form-submission.api.ts"],"names":[],"mappings":";;;AAAA,0BAmBY;AAEL,MAAM,iBAAiB,GAAG,KAAK,EACpC,MAAgC,EACK,EAAE;IACvC,OAAO,CACL,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B;AAEK,MAAM,sBAAsB,GAAG,KAAK,EACzC,MAAqC,EACrC,KAAmC,EACO,EAAE;IAC5C,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAC3B,mBAAmB,MAAM,CAAC,MAAM,sBAAsB,EACtD,EAAE,MAAM,EAAE,KAAK,EAAE,CAClB,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,sBAAsB,0BAUjC;AAEK,MAAM,gCAAgC,GAAG,KAAK,EACnD,MAA+C,EACK,EAAE;IACtD,OAAO,CACL,MAAM,iBAAa,CAAC,KAAK,CAAC,GAAG,CAC3B,mBAAmB,MAAM,CAAC,MAAM,eAAe,MAAM,CAAC,gBAAgB,SAAS,MAAM,CAAC,MAAM,eAAe,CAC5G,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,gCAAgC,oCAQ3C"}
|
package/dist/index.d.ts
CHANGED
|
@@ -102,6 +102,7 @@ type AbyssFormCoreSDK = {
|
|
|
102
102
|
};
|
|
103
103
|
formDocument: {
|
|
104
104
|
get: typeof formDocumentApi.getFormDocument;
|
|
105
|
+
getDownloadUrl: typeof formDocumentApi.getDownloadUrlFormDocument;
|
|
105
106
|
getUploadUrl: typeof formDocumentApi.getUploadUrlFormDocument;
|
|
106
107
|
importFromCloud: typeof formDocumentApi.importFromCloudFormDocument;
|
|
107
108
|
paginate: typeof formDocumentApi.paginateFormDocument;
|
|
@@ -132,6 +133,7 @@ type AbyssFormCoreSDK = {
|
|
|
132
133
|
};
|
|
133
134
|
formSubmission: {
|
|
134
135
|
get: typeof formSubmissionApi.getFormSubmission;
|
|
136
|
+
getFileDownloadUrl: typeof formSubmissionApi.getFileDownloadUrlFormSubmission;
|
|
135
137
|
getNextToReview: typeof formSubmissionApi.getNextToReviewFormSubmission;
|
|
136
138
|
update: typeof formSubmissionApi.updateFormSubmission;
|
|
137
139
|
archive: typeof formSubmissionApi.archiveFormSubmission;
|
package/dist/index.js
CHANGED
|
@@ -149,6 +149,7 @@ class AbyssFormCore {
|
|
|
149
149
|
};
|
|
150
150
|
const formDocumentSDK = {
|
|
151
151
|
get: formDocumentApi.getFormDocument,
|
|
152
|
+
getDownloadUrl: formDocumentApi.getDownloadUrlFormDocument,
|
|
152
153
|
getUploadUrl: formDocumentApi.getUploadUrlFormDocument,
|
|
153
154
|
importFromCloud: formDocumentApi.importFromCloudFormDocument,
|
|
154
155
|
paginate: formDocumentApi.paginateFormDocument,
|
|
@@ -179,6 +180,7 @@ class AbyssFormCore {
|
|
|
179
180
|
};
|
|
180
181
|
const formSubmissionSDK = {
|
|
181
182
|
get: formSubmissionApi.getFormSubmission,
|
|
183
|
+
getFileDownloadUrl: formSubmissionApi.getFileDownloadUrlFormSubmission,
|
|
182
184
|
getNextToReview: formSubmissionApi.getNextToReviewFormSubmission,
|
|
183
185
|
update: formSubmissionApi.updateFormSubmission,
|
|
184
186
|
archive: formSubmissionApi.archiveFormSubmission,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,2DAA+F;AAC/F,qEAAuD;AACvD,wDAA0C;AAC1C,mEAAqD;AACrD,qEAAuD;AACvD,yEAA2D;AAC3D,oFAAsE;AACtE,kGAAoF;AACpF,4EAA8D;AAC9D,uFAAyE;AACzE,6EAA+D;AAC/D,wFAA0E;AAC1E,wDAA0C;AAC1C,mEAAqD;AACrD,8DAAgD;AAChD,uEAAyD;AACzD,gFAAkE;AAElE,0CAAwB;AACxB,0CAAwB;AACxB,wCAAsB;AACtB,8CAA4B;AAE5B,MAAM,gBAAgB,GAAG,wCAAwC,CAAC;AAErD,QAAA,cAAc,GAAG,eAAe,CAAC;AACjC,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;AAEtD,MAAM,gBAAgB,G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AK,GAAG,eAAK,CAAC,MAAM,CAAC;IAC1B,OAAO,EAAE,EAAI,CAAC,MAAM,CAAC,OAAO;IAC5B,eAAe,EAAE,IAAI;CACtB,CAAC,AAHU,CAGT;AAEY,kBAAI,GAA4B,IAAI,AAAhC,CAAiC"}
|
|
@@ -29,3 +29,8 @@ export interface IGetNextToReviewFormSubmissionParams {
|
|
|
29
29
|
export interface IGetNextToReviewFormSubmissionQuery {
|
|
30
30
|
excludeFormSubmissionId?: string;
|
|
31
31
|
}
|
|
32
|
+
export interface IGetFileDownloadUrlFormSubmissionParams {
|
|
33
|
+
formId: string;
|
|
34
|
+
formSubmissionId: string;
|
|
35
|
+
fileId: string;
|
|
36
|
+
}
|
|
@@ -65,6 +65,7 @@ export interface IUpdateConfigurationFormAdminBody {
|
|
|
65
65
|
delayBetweenSubmissionInMinutes?: number | null;
|
|
66
66
|
maxFilesPerSubmissionMo?: number;
|
|
67
67
|
maxSubmissionFilesTotalMo?: number | null;
|
|
68
|
+
fileStorageAlertsEnabled?: boolean;
|
|
68
69
|
maskFormContent?: boolean;
|
|
69
70
|
}
|
|
70
71
|
export interface IGetConfigurationFormAdminParams {
|
|
@@ -65,6 +65,7 @@ export interface IUpdateConfigurationFormBody {
|
|
|
65
65
|
delayBetweenSubmissionInMinutes?: number | null;
|
|
66
66
|
maxFilesPerSubmissionMo?: number;
|
|
67
67
|
maxSubmissionFilesTotalMo?: number | null;
|
|
68
|
+
fileStorageAlertsEnabled?: boolean;
|
|
68
69
|
maskFormContent?: boolean;
|
|
69
70
|
}
|
|
70
71
|
export interface IGetConfigurationFormParams {
|
|
@@ -15,3 +15,8 @@ export interface IListFormDocumentData {
|
|
|
15
15
|
formDocument: IFormDocument[];
|
|
16
16
|
}
|
|
17
17
|
export type IListFormDocumentResponse = IResponse<IListFormDocumentData>;
|
|
18
|
+
export interface IGetDownloadUrlFormDocumentData {
|
|
19
|
+
preSignedUrl: string;
|
|
20
|
+
expireAt: number;
|
|
21
|
+
}
|
|
22
|
+
export type IGetDownloadUrlFormDocumentResponse = IResponse<IGetDownloadUrlFormDocumentData>;
|
|
@@ -20,3 +20,8 @@ export interface IGetNextToReviewFormSubmissionData {
|
|
|
20
20
|
remainingCount: number;
|
|
21
21
|
}
|
|
22
22
|
export type IGetNextToReviewFormSubmissionResponse = IResponse<IGetNextToReviewFormSubmissionData>;
|
|
23
|
+
export interface IGetFileDownloadUrlFormSubmissionData {
|
|
24
|
+
preSignedUrl: string;
|
|
25
|
+
expireAt: number;
|
|
26
|
+
}
|
|
27
|
+
export type IGetFileDownloadUrlFormSubmissionResponse = IResponse<IGetFileDownloadUrlFormSubmissionData>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IResponse,
|
|
1
|
+
import { IResponse, IUserView } from '../..';
|
|
2
2
|
export interface IMeUserData {
|
|
3
|
-
user:
|
|
3
|
+
user: IUserView;
|
|
4
4
|
}
|
|
5
5
|
export type IMeUserResponse = IResponse<IMeUserData>;
|
|
6
6
|
export interface IUpdateUserData {
|
|
7
|
-
user:
|
|
7
|
+
user: IUserView;
|
|
8
8
|
}
|
|
9
9
|
export type IUpdateUserResponse = IResponse<IUpdateUserData>;
|
|
@@ -7,11 +7,16 @@ export interface IFormConfiguration {
|
|
|
7
7
|
maxSubmissionPerDay: number | null;
|
|
8
8
|
maxSubmissionPerForm: number | null;
|
|
9
9
|
password: string | null;
|
|
10
|
+
passwordProtection?: boolean;
|
|
10
11
|
emailNotificationOnSubmission: boolean;
|
|
11
12
|
delayBetweenSubmissionInMinutes: number | null;
|
|
12
13
|
maskFormContent: boolean;
|
|
13
14
|
maxFilesPerSubmissionMo: number;
|
|
14
15
|
maxSubmissionFilesTotalMo: number | null;
|
|
16
|
+
fileStorageAlertsEnabled: boolean;
|
|
17
|
+
announcedFileStorageThreshold: number | null;
|
|
18
|
+
uploadRefusalsSinceNotification: number;
|
|
19
|
+
lastUploadRefusalNotificationDate: Date | null;
|
|
15
20
|
formId: string;
|
|
16
21
|
updatedAt?: Date;
|
|
17
22
|
createdAt?: Date;
|
package/package.json
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/form",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Core package to interact with AbyssForm",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
13
|
+
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
14
|
+
"tsc": "tsc",
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"prepublish": "tsc",
|
|
17
|
+
"dev": "tsc --watch"
|
|
18
|
+
},
|
|
7
19
|
"keywords": [],
|
|
8
20
|
"author": "scylla",
|
|
9
21
|
"license": "ISC",
|
|
@@ -48,13 +60,5 @@
|
|
|
48
60
|
"sequelize-cli": "^6.2.0",
|
|
49
61
|
"typescript": "5.9.3",
|
|
50
62
|
"tsc-watch": "^4.6.2"
|
|
51
|
-
},
|
|
52
|
-
"scripts": {
|
|
53
|
-
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
54
|
-
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
55
|
-
"tsc": "tsc",
|
|
56
|
-
"build": "tsc",
|
|
57
|
-
"prepublish": "tsc",
|
|
58
|
-
"dev": "tsc --watch"
|
|
59
63
|
}
|
|
60
|
-
}
|
|
64
|
+
}
|