@openforis/arena-server 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +74 -0
- package/dist/api/api.d.ts +2 -0
- package/dist/api/api.js +22 -0
- package/dist/api/api.js.map +1 -0
- package/dist/api/auth/authApiCommon.d.ts +11 -0
- package/dist/api/auth/authApiCommon.js +30 -0
- package/dist/api/auth/authApiCommon.js.map +1 -0
- package/dist/api/auth/authTempToken.d.ts +2 -0
- package/dist/api/auth/authTempToken.js +24 -0
- package/dist/api/auth/authTempToken.js.map +1 -0
- package/dist/api/auth/authTokenRefresh.d.ts +2 -0
- package/dist/api/auth/authTokenRefresh.js +32 -0
- package/dist/api/auth/authTokenRefresh.js.map +1 -0
- package/dist/api/auth/index.d.ts +2 -0
- package/dist/api/auth/index.js +14 -0
- package/dist/api/auth/index.js.map +1 -0
- package/dist/api/auth/login.d.ts +4 -0
- package/dist/api/auth/login.js +164 -0
- package/dist/api/auth/login.js.map +1 -0
- package/dist/api/chain/index.d.ts +2 -0
- package/dist/api/chain/index.js +10 -0
- package/dist/api/chain/index.js.map +1 -0
- package/dist/api/chain/read.d.ts +2 -0
- package/dist/api/chain/read.js +11 -0
- package/dist/api/chain/read.js.map +1 -0
- package/dist/api/dataQuery/create.d.ts +2 -0
- package/dist/api/dataQuery/create.js +25 -0
- package/dist/api/dataQuery/create.js.map +1 -0
- package/dist/api/dataQuery/delete.d.ts +2 -0
- package/dist/api/dataQuery/delete.js +24 -0
- package/dist/api/dataQuery/delete.js.map +1 -0
- package/dist/api/dataQuery/index.d.ts +2 -0
- package/dist/api/dataQuery/index.js +16 -0
- package/dist/api/dataQuery/index.js.map +1 -0
- package/dist/api/dataQuery/read.d.ts +2 -0
- package/dist/api/dataQuery/read.js +46 -0
- package/dist/api/dataQuery/read.js.map +1 -0
- package/dist/api/dataQuery/update.d.ts +2 -0
- package/dist/api/dataQuery/update.js +25 -0
- package/dist/api/dataQuery/update.js.map +1 -0
- package/dist/api/endpoint/auth.d.ts +8 -0
- package/dist/api/endpoint/auth.js +11 -0
- package/dist/api/endpoint/auth.js.map +1 -0
- package/dist/api/endpoint/chain.d.ts +5 -0
- package/dist/api/endpoint/chain.js +10 -0
- package/dist/api/endpoint/chain.js.map +1 -0
- package/dist/api/endpoint/common.d.ts +3 -0
- package/dist/api/endpoint/common.js +10 -0
- package/dist/api/endpoint/common.js.map +1 -0
- package/dist/api/endpoint/dataQuery.d.ts +5 -0
- package/dist/api/endpoint/dataQuery.js +11 -0
- package/dist/api/endpoint/dataQuery.js.map +1 -0
- package/dist/api/endpoint/index.d.ts +47 -0
- package/dist/api/endpoint/index.js +20 -0
- package/dist/api/endpoint/index.js.map +1 -0
- package/dist/api/endpoint/info.d.ts +3 -0
- package/dist/api/endpoint/info.js +8 -0
- package/dist/api/endpoint/info.js.map +1 -0
- package/dist/api/endpoint/message.d.ts +7 -0
- package/dist/api/endpoint/message.js +12 -0
- package/dist/api/endpoint/message.js.map +1 -0
- package/dist/api/endpoint/user2FA.d.ts +10 -0
- package/dist/api/endpoint/user2FA.js +15 -0
- package/dist/api/endpoint/user2FA.js.map +1 -0
- package/dist/api/endpoint/userGroup.d.ts +7 -0
- package/dist/api/endpoint/userGroup.js +13 -0
- package/dist/api/endpoint/userGroup.js.map +1 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +10 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/info/index.d.ts +2 -0
- package/dist/api/info/index.js +10 -0
- package/dist/api/info/index.js.map +1 -0
- package/dist/api/info/read.d.ts +2 -0
- package/dist/api/info/read.js +23 -0
- package/dist/api/info/read.js.map +1 -0
- package/dist/api/message/create.d.ts +2 -0
- package/dist/api/message/create.js +25 -0
- package/dist/api/message/create.js.map +1 -0
- package/dist/api/message/delete.d.ts +2 -0
- package/dist/api/message/delete.js +26 -0
- package/dist/api/message/delete.js.map +1 -0
- package/dist/api/message/index.d.ts +2 -0
- package/dist/api/message/index.js +16 -0
- package/dist/api/message/index.js.map +1 -0
- package/dist/api/message/read.d.ts +2 -0
- package/dist/api/message/read.js +68 -0
- package/dist/api/message/read.js.map +1 -0
- package/dist/api/message/update.d.ts +2 -0
- package/dist/api/message/update.js +31 -0
- package/dist/api/message/update.js.map +1 -0
- package/dist/api/middleware/auth.d.ts +34 -0
- package/dist/api/middleware/auth.js +169 -0
- package/dist/api/middleware/auth.js.map +1 -0
- package/dist/api/middleware/index.d.ts +1 -0
- package/dist/api/middleware/index.js +6 -0
- package/dist/api/middleware/index.js.map +1 -0
- package/dist/api/user2FAAuth/index.d.ts +2 -0
- package/dist/api/user2FAAuth/index.js +136 -0
- package/dist/api/user2FAAuth/index.js.map +1 -0
- package/dist/api/userGroup/common.d.ts +11 -0
- package/dist/api/userGroup/common.js +26 -0
- package/dist/api/userGroup/common.js.map +1 -0
- package/dist/api/userGroup/create.d.ts +2 -0
- package/dist/api/userGroup/create.js +39 -0
- package/dist/api/userGroup/create.js.map +1 -0
- package/dist/api/userGroup/delete.d.ts +2 -0
- package/dist/api/userGroup/delete.js +37 -0
- package/dist/api/userGroup/delete.js.map +1 -0
- package/dist/api/userGroup/index.d.ts +2 -0
- package/dist/api/userGroup/index.js +16 -0
- package/dist/api/userGroup/index.js.map +1 -0
- package/dist/api/userGroup/read.d.ts +2 -0
- package/dist/api/userGroup/read.js +59 -0
- package/dist/api/userGroup/read.js.map +1 -0
- package/dist/api/userGroup/update.d.ts +2 -0
- package/dist/api/userGroup/update.js +26 -0
- package/dist/api/userGroup/update.js.map +1 -0
- package/dist/clusterBus/clusterBus.d.ts +12 -0
- package/dist/clusterBus/clusterBus.js +82 -0
- package/dist/clusterBus/clusterBus.js.map +1 -0
- package/dist/clusterBus/clusterLock.d.ts +4 -0
- package/dist/clusterBus/clusterLock.js +29 -0
- package/dist/clusterBus/clusterLock.js.map +1 -0
- package/dist/clusterBus/index.d.ts +3 -0
- package/dist/clusterBus/index.js +8 -0
- package/dist/clusterBus/index.js.map +1 -0
- package/dist/clusterBus/types.d.ts +7 -0
- package/dist/clusterBus/types.js +3 -0
- package/dist/clusterBus/types.js.map +1 -0
- package/dist/db/column/column.d.ts +9 -0
- package/dist/db/column/column.js +18 -0
- package/dist/db/column/column.js.map +1 -0
- package/dist/db/column/index.d.ts +2 -0
- package/dist/db/column/index.js +8 -0
- package/dist/db/column/index.js.map +1 -0
- package/dist/db/column/type.d.ts +14 -0
- package/dist/db/column/type.js +19 -0
- package/dist/db/column/type.js.map +1 -0
- package/dist/db/db.d.ts +4 -0
- package/dist/db/db.js +47 -0
- package/dist/db/db.js.map +1 -0
- package/dist/db/dbMigrator/dbMigrate.d.ts +4 -0
- package/dist/db/dbMigrator/dbMigrate.js +50 -0
- package/dist/db/dbMigrator/dbMigrate.js.map +1 -0
- package/dist/db/dbMigrator/dbMigrator.d.ts +19 -0
- package/dist/db/dbMigrator/dbMigrator.js +66 -0
- package/dist/db/dbMigrator/dbMigrator.js.map +1 -0
- package/dist/db/dbMigrator/index.d.ts +2 -0
- package/dist/db/dbMigrator/index.js +6 -0
- package/dist/db/dbMigrator/index.js.map +1 -0
- package/dist/db/dbMigrator/migration/create.d.ts +1 -0
- package/dist/db/dbMigrator/migration/create.js +33 -0
- package/dist/db/dbMigrator/migration/create.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20180709092931-create-user-table.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20180709092931-create-user-table.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20180709092931-create-user-table.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20180726092435-create-survey-def-tables.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20180726092435-create-survey-def-tables.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20180726092435-create-survey-def-tables.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20181130124534-create-auth-tables.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20181130124534-create-auth-tables.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20181130124534-create-auth-tables.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20200820141045-custom-agg.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20200820141045-custom-agg.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20200820141045-custom-agg.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20210329113834-add-table-user-invitation.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20210329113834-add-table-user-invitation.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20210329113834-add-table-user-invitation.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20210618122453-add-table-user-access-request.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20210618122453-add-table-user-access-request.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20210618122453-add-table-user-access-request.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20221130214733-insert-auth-group-survey-manager.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20221130214733-insert-auth-group-survey-manager.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20221130214733-insert-auth-group-survey-manager.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20231026094839-add-column-survey-date-published.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20231026094839-add-column-survey-date-published.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20231026094839-add-column-survey-date-published.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20240927095011-add-column-survey-config.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20240927095011-add-column-survey-config.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20240927095011-add-column-survey-config.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20241009091444-add-column-auth-group-user-props.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20241009091444-add-column-auth-group-user-props.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20241009091444-add-column-auth-group-user-props.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20241223212935-add-user-tables-indexes.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20241223212935-add-user-tables-indexes.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20241223212935-add-user-tables-indexes.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20251030103141-add-table-user-refresh-token.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20251030103141-add-table-user-refresh-token.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20251030103141-add-table-user-refresh-token.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20251113085000-create-table-info.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20251113085000-create-table-info.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20251113085000-create-table-info.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20251222213811-create-table-message.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20251222213811-create-table-message.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20251222213811-create-table-message.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260118215307-add-table-user-temp-auth-token.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260118215307-add-table-user-temp-auth-token.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260118215307-add-table-user-temp-auth-token.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260123092621-add-column-user-temp-auth-token-hash.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260123092621-add-column-user-temp-auth-token-hash.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260123092621-add-column-user-temp-auth-token-hash.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260203121201-create-user-two-factor-table.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260203121201-create-user-two-factor-table.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260203121201-create-user-two-factor-table.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260713124754-create-user-group-tables.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260713124754-create-user-group-tables.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260713124754-create-user-group-tables.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260730150034-add-column-survey-app-version.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260730150034-add-column-survey-app-version.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260730150034-add-column-survey-app-version.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260806120000-add-tables-cluster-bus.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260806120000-add-tables-cluster-bus.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260806120000-add-tables-cluster-bus.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260819100000-create-table-job.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260819100000-create-table-job.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260819100000-create-table-job.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260819100100-create-table-record-socket-association.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260819100100-create-table-record-socket-association.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260819100100-create-table-record-socket-association.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260825120000-add-column-job-instance-id.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260825120000-add-column-job-instance-id.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260825120000-add-column-job-instance-id.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260915160000-create-table-record-printable-export-share.d.ts +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260915160000-create-table-record-printable-export-share.js +43 -0
- package/dist/db/dbMigrator/migration/public/migrations/20260915160000-create-table-record-printable-export-share.js.map +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20180709092931-create-user-table-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20180709092931-create-user-table-up.sql +45 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20180726092435-create-survey-def-tables-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20180726092435-create-survey-def-tables-up.sql +25 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20181130124534-create-auth-tables-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20181130124534-create-auth-tables-up.sql +21 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20200820141045-custom-agg-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20200820141045-custom-agg-up.sql +20 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20210329113834-add-table-user-invitation-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20210329113834-add-table-user-invitation-up.sql +20 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20210618122453-add-table-user-access-request-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20210618122453-add-table-user-access-request-up.sql +17 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20221130214733-insert-auth-group-survey-manager-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20221130214733-insert-auth-group-survey-manager-up.sql +11 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20231026094839-add-column-survey-date-published-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20231026094839-add-column-survey-date-published-up.sql +2 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20240927095011-add-column-survey-config-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20240927095011-add-column-survey-config-up.sql +2 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20241009091444-add-column-auth-group-user-props-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20241009091444-add-column-auth-group-user-props-up.sql +2 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20241223212935-add-user-tables-indexes-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20241223212935-add-user-tables-indexes-up.sql +10 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20251030103141-add-table-user-refresh-token-down.sql +2 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20251030103141-add-table-user-refresh-token-up.sql +15 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20251113085000-create-table-info-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20251113085000-create-table-info-up.sql +8 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20251222213811-create-table-message-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20251222213811-create-table-message-up.sql +12 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260118215307-add-table-user-temp-auth-token-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260118215307-add-table-user-temp-auth-token-up.sql +10 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260123092621-add-column-user-temp-auth-token-hash-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260123092621-add-column-user-temp-auth-token-hash-up.sql +18 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260203121201-create-user-two-factor-table-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260203121201-create-user-two-factor-table-up.sql +16 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260713124754-create-user-group-tables-down.sql +2 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260713124754-create-user-group-tables-up.sql +25 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260730150034-add-column-survey-app-version-down.sql +2 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260730150034-add-column-survey-app-version-up.sql +2 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260806120000-add-tables-cluster-bus-down.sql +6 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260806120000-add-tables-cluster-bus-up.sql +26 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260819100000-create-table-job-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260819100000-create-table-job-up.sql +21 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260819100100-create-table-record-socket-association-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260819100100-create-table-record-socket-association-up.sql +13 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260825120000-add-column-job-instance-id-down.sql +2 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260825120000-add-column-job-instance-id-up.sql +4 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260915160000-create-table-record-printable-export-share-down.sql +1 -0
- package/dist/db/dbMigrator/migration/public/migrations/sqls/20260915160000-create-table-record-printable-export-share-up.sql +22 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20180814141148-create-record-tables.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20180814141148-create-record-tables.js +45 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20180814141148-create-record-tables.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20180914073047-create-category-tables.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20180914073047-create-category-tables.js +45 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20180914073047-create-category-tables.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20181004072545-create-taxonomy-tables.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20181004072545-create-taxonomy-tables.js +45 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20181004072545-create-taxonomy-tables.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20181204101541-create-history-log-table.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20181204101541-create-history-log-table.js +45 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20181204101541-create-history-log-table.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20181204141100-create-file-table.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20181204141100-create-file-table.js +45 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20181204141100-create-file-table.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20190315100007-add-table-collect-import-report.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20190315100007-add-table-collect-import-report.js +45 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20190315100007-add-table-collect-import-report.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20191004132253-create-analysis-table.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20191004132253-create-analysis-table.js +45 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20191004132253-create-analysis-table.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20230329091753-alter-table-chain-add-column-scriptend.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20230329091753-alter-table-chain-add-column-scriptend.js +45 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20230329091753-alter-table-chain-add-column-scriptend.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20230619080858-alter-table-file-drop-content-null-costraint.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20230619080858-alter-table-file-drop-content-null-costraint.js +43 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20230619080858-alter-table-file-drop-content-null-costraint.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20230802195435-alter-table-record-add-column-date-modified.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20230802195435-alter-table-record-add-column-date-modified.js +43 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20230802195435-alter-table-record-add-column-date-modified.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20231123083354-alter-table-record-add-column-info.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20231123083354-alter-table-record-add-column-info.js +43 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20231123083354-alter-table-record-add-column-info.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20240403130324-add-table-data-query.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20240403130324-add-table-data-query.js +43 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20240403130324-add-table-data-query.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20240813121444-alter-table-record-add-column-merged-into.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20240813121444-alter-table-record-add-column-merged-into.js +43 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20240813121444-alter-table-record-add-column-merged-into.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20241223212900-activity-log-add-user-indexes.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20241223212900-activity-log-add-user-indexes.js +43 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20241223212900-activity-log-add-user-indexes.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260125223049-alter-table-node-create-value-indexes.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260125223049-alter-table-node-create-value-indexes.js +43 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260125223049-alter-table-node-create-value-indexes.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260319111424-alter-table-node-create-value-file-indexes.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260319111424-alter-table-node-create-value-file-indexes.js +43 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260319111424-alter-table-node-create-value-file-indexes.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260911194436-generalize-collect-import-report-to-import-report.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260911194436-generalize-collect-import-report-to-import-report.js +43 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260911194436-generalize-collect-import-report-to-import-report.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260916140657-alter-table-file-create-uuid-index.d.ts +6 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260916140657-alter-table-file-create-uuid-index.js +43 -0
- package/dist/db/dbMigrator/migration/survey/migrations/20260916140657-alter-table-file-create-uuid-index.js.map +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20180814141148-create-record-tables-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20180814141148-create-record-tables-up.sql +63 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20180914073047-create-category-tables-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20180914073047-create-category-tables-up.sql +52 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20181004072545-create-taxonomy-tables-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20181004072545-create-taxonomy-tables-up.sql +59 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20181204101541-create-history-log-table-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20181204101541-create-history-log-table-up.sql +70 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20181204141100-create-file-table-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20181204141100-create-file-table-up.sql +11 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20190315100007-add-table-collect-import-report-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20190315100007-add-table-collect-import-report-up.sql +16 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20191004132253-create-analysis-table-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20191004132253-create-analysis-table-up.sql +41 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20230329091753-alter-table-chain-add-column-scriptend-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20230329091753-alter-table-chain-add-column-scriptend-up.sql +2 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20230619080858-alter-table-file-drop-content-null-costraint-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20230619080858-alter-table-file-drop-content-null-costraint-up.sql +2 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20230802195435-alter-table-record-add-column-date-modified-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20230802195435-alter-table-record-add-column-date-modified-up.sql +24 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20231123083354-alter-table-record-add-column-info-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20231123083354-alter-table-record-add-column-info-up.sql +2 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20240403130324-add-table-data-query-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20240403130324-add-table-data-query-up.sql +14 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20240813121444-alter-table-record-add-column-merged-into-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20240813121444-alter-table-record-add-column-merged-into-up.sql +3 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20241223212900-activity-log-add-user-indexes-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20241223212900-activity-log-add-user-indexes-up.sql +2 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20260125223049-alter-table-node-create-value-indexes-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20260125223049-alter-table-node-create-value-indexes-up.sql +11 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20260319111424-alter-table-node-create-value-file-indexes-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20260319111424-alter-table-node-create-value-file-indexes-up.sql +3 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20260911194436-generalize-collect-import-report-to-import-report-down.sql +4 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20260911194436-generalize-collect-import-report-to-import-report-up.sql +8 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20260916140657-alter-table-file-create-uuid-index-down.sql +1 -0
- package/dist/db/dbMigrator/migration/survey/migrations/sqls/20260916140657-alter-table-file-create-uuid-index-up.sql +4 -0
- package/dist/db/dbs/getPropColCombined.d.ts +10 -0
- package/dist/db/dbs/getPropColCombined.js +20 -0
- package/dist/db/dbs/getPropColCombined.js.map +1 -0
- package/dist/db/dbs/index.d.ts +22 -0
- package/dist/db/dbs/index.js +16 -0
- package/dist/db/dbs/index.js.map +1 -0
- package/dist/db/dbs/selectDate.d.ts +1 -0
- package/dist/db/dbs/selectDate.js +6 -0
- package/dist/db/dbs/selectDate.js.map +1 -0
- package/dist/db/dbs/toChar.d.ts +2 -0
- package/dist/db/dbs/toChar.js +10 -0
- package/dist/db/dbs/toChar.js.map +1 -0
- package/dist/db/dbs/transformCallback.d.ts +8 -0
- package/dist/db/dbs/transformCallback.js +42 -0
- package/dist/db/dbs/transformCallback.js.map +1 -0
- package/dist/db/index.d.ts +8 -0
- package/dist/db/index.js +45 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/schemata/index.d.ts +5 -0
- package/dist/db/schemata/index.js +11 -0
- package/dist/db/schemata/index.js.map +1 -0
- package/dist/db/sql/index.d.ts +7 -0
- package/dist/db/sql/index.js +18 -0
- package/dist/db/sql/index.js.map +1 -0
- package/dist/db/sql/sqlBuilder.d.ts +6 -0
- package/dist/db/sql/sqlBuilder.js +8 -0
- package/dist/db/sql/sqlBuilder.js.map +1 -0
- package/dist/db/sql/sqlDeleteBuilder.d.ts +18 -0
- package/dist/db/sql/sqlDeleteBuilder.js +49 -0
- package/dist/db/sql/sqlDeleteBuilder.js.map +1 -0
- package/dist/db/sql/sqlInsertBuilder.d.ts +16 -0
- package/dist/db/sql/sqlInsertBuilder.js +39 -0
- package/dist/db/sql/sqlInsertBuilder.js.map +1 -0
- package/dist/db/sql/sqlJoinBuilder.d.ts +9 -0
- package/dist/db/sql/sqlJoinBuilder.js +24 -0
- package/dist/db/sql/sqlJoinBuilder.js.map +1 -0
- package/dist/db/sql/sqlSelectBuilder.d.ts +23 -0
- package/dist/db/sql/sqlSelectBuilder.js +73 -0
- package/dist/db/sql/sqlSelectBuilder.js.map +1 -0
- package/dist/db/sql/sqlSelectCountBuilder.d.ts +13 -0
- package/dist/db/sql/sqlSelectCountBuilder.js +28 -0
- package/dist/db/sql/sqlSelectCountBuilder.js.map +1 -0
- package/dist/db/sql/sqlUpdateBuilder.d.ts +15 -0
- package/dist/db/sql/sqlUpdateBuilder.js +52 -0
- package/dist/db/sql/sqlUpdateBuilder.js.map +1 -0
- package/dist/db/sql/sqls.d.ts +3 -0
- package/dist/db/sql/sqls.js +10 -0
- package/dist/db/sql/sqls.js.map +1 -0
- package/dist/db/table/index.d.ts +4 -0
- package/dist/db/table/index.js +34 -0
- package/dist/db/table/index.js.map +1 -0
- package/dist/db/table/schemaPublic/authGroup.d.ts +10 -0
- package/dist/db/table/schemaPublic/authGroup.js +17 -0
- package/dist/db/table/schemaPublic/authGroup.js.map +1 -0
- package/dist/db/table/schemaPublic/authGroupUser.d.ts +8 -0
- package/dist/db/table/schemaPublic/authGroupUser.js +15 -0
- package/dist/db/table/schemaPublic/authGroupUser.js.map +1 -0
- package/dist/db/table/schemaPublic/connectedSocket.d.ts +10 -0
- package/dist/db/table/schemaPublic/connectedSocket.js +19 -0
- package/dist/db/table/schemaPublic/connectedSocket.js.map +1 -0
- package/dist/db/table/schemaPublic/index.d.ts +17 -0
- package/dist/db/table/schemaPublic/index.js +38 -0
- package/dist/db/table/schemaPublic/index.js.map +1 -0
- package/dist/db/table/schemaPublic/info.d.ts +8 -0
- package/dist/db/table/schemaPublic/info.js +15 -0
- package/dist/db/table/schemaPublic/info.js.map +1 -0
- package/dist/db/table/schemaPublic/job.d.ts +17 -0
- package/dist/db/table/schemaPublic/job.js +38 -0
- package/dist/db/table/schemaPublic/job.js.map +1 -0
- package/dist/db/table/schemaPublic/message.d.ts +11 -0
- package/dist/db/table/schemaPublic/message.js +18 -0
- package/dist/db/table/schemaPublic/message.js.map +1 -0
- package/dist/db/table/schemaPublic/recordSocketAssociation.d.ts +9 -0
- package/dist/db/table/schemaPublic/recordSocketAssociation.js +18 -0
- package/dist/db/table/schemaPublic/recordSocketAssociation.js.map +1 -0
- package/dist/db/table/schemaPublic/survey.d.ts +16 -0
- package/dist/db/table/schemaPublic/survey.js +23 -0
- package/dist/db/table/schemaPublic/survey.js.map +1 -0
- package/dist/db/table/schemaPublic/tableSchemaPublic.d.ts +4 -0
- package/dist/db/table/schemaPublic/tableSchemaPublic.js +12 -0
- package/dist/db/table/schemaPublic/tableSchemaPublic.js.map +1 -0
- package/dist/db/table/schemaPublic/user.d.ts +13 -0
- package/dist/db/table/schemaPublic/user.js +20 -0
- package/dist/db/table/schemaPublic/user.js.map +1 -0
- package/dist/db/table/schemaPublic/user2FADevice.d.ts +14 -0
- package/dist/db/table/schemaPublic/user2FADevice.js +32 -0
- package/dist/db/table/schemaPublic/user2FADevice.js.map +1 -0
- package/dist/db/table/schemaPublic/userGroup.d.ts +11 -0
- package/dist/db/table/schemaPublic/userGroup.js +20 -0
- package/dist/db/table/schemaPublic/userGroup.js.map +1 -0
- package/dist/db/table/schemaPublic/userGroupUser.d.ts +11 -0
- package/dist/db/table/schemaPublic/userGroupUser.js +20 -0
- package/dist/db/table/schemaPublic/userGroupUser.js.map +1 -0
- package/dist/db/table/schemaPublic/userRefreshToken.d.ts +12 -0
- package/dist/db/table/schemaPublic/userRefreshToken.js +21 -0
- package/dist/db/table/schemaPublic/userRefreshToken.js.map +1 -0
- package/dist/db/table/schemaPublic/userResetPassword.d.ts +8 -0
- package/dist/db/table/schemaPublic/userResetPassword.js +15 -0
- package/dist/db/table/schemaPublic/userResetPassword.js.map +1 -0
- package/dist/db/table/schemaPublic/userTempAuthToken.d.ts +10 -0
- package/dist/db/table/schemaPublic/userTempAuthToken.js +19 -0
- package/dist/db/table/schemaPublic/userTempAuthToken.js.map +1 -0
- package/dist/db/table/schemaPublic/wsRelayMessage.d.ts +9 -0
- package/dist/db/table/schemaPublic/wsRelayMessage.js +18 -0
- package/dist/db/table/schemaPublic/wsRelayMessage.js.map +1 -0
- package/dist/db/table/schemaSurvey/chain.d.ts +14 -0
- package/dist/db/table/schemaSurvey/chain.js +21 -0
- package/dist/db/table/schemaSurvey/chain.js.map +1 -0
- package/dist/db/table/schemaSurvey/chainNodeDef.d.ts +11 -0
- package/dist/db/table/schemaSurvey/chainNodeDef.js +18 -0
- package/dist/db/table/schemaSurvey/chainNodeDef.js.map +1 -0
- package/dist/db/table/schemaSurvey/chainNodeDefAggregate.d.ts +10 -0
- package/dist/db/table/schemaSurvey/chainNodeDefAggregate.js +17 -0
- package/dist/db/table/schemaSurvey/chainNodeDefAggregate.js.map +1 -0
- package/dist/db/table/schemaSurvey/dataQuery.d.ts +12 -0
- package/dist/db/table/schemaSurvey/dataQuery.js +21 -0
- package/dist/db/table/schemaSurvey/dataQuery.js.map +1 -0
- package/dist/db/table/schemaSurvey/index.d.ts +7 -0
- package/dist/db/table/schemaSurvey/index.js +18 -0
- package/dist/db/table/schemaSurvey/index.js.map +1 -0
- package/dist/db/table/schemaSurvey/nodeDef.d.ts +19 -0
- package/dist/db/table/schemaSurvey/nodeDef.js +26 -0
- package/dist/db/table/schemaSurvey/nodeDef.js.map +1 -0
- package/dist/db/table/schemaSurvey/record.d.ts +13 -0
- package/dist/db/table/schemaSurvey/record.js +20 -0
- package/dist/db/table/schemaSurvey/record.js.map +1 -0
- package/dist/db/table/schemaSurvey/tableSchemaSurvey.d.ts +5 -0
- package/dist/db/table/schemaSurvey/tableSchemaSurvey.js +14 -0
- package/dist/db/table/schemaSurvey/tableSchemaSurvey.js.map +1 -0
- package/dist/db/table/schemaSurveyRdb/index.d.ts +2 -0
- package/dist/db/table/schemaSurveyRdb/index.js +8 -0
- package/dist/db/table/schemaSurveyRdb/index.js.map +1 -0
- package/dist/db/table/schemaSurveyRdb/tableResultSchemaSurveyRdb.d.ts +4 -0
- package/dist/db/table/schemaSurveyRdb/tableResultSchemaSurveyRdb.js +11 -0
- package/dist/db/table/schemaSurveyRdb/tableResultSchemaSurveyRdb.js.map +1 -0
- package/dist/db/table/schemaSurveyRdb/tableSchemaSurveyRdb.d.ts +5 -0
- package/dist/db/table/schemaSurveyRdb/tableSchemaSurveyRdb.js +14 -0
- package/dist/db/table/schemaSurveyRdb/tableSchemaSurveyRdb.js.map +1 -0
- package/dist/db/table/table.d.ts +9 -0
- package/dist/db/table/table.js +25 -0
- package/dist/db/table/table.js.map +1 -0
- package/dist/fileStorage/s3Storage.d.ts +22 -0
- package/dist/fileStorage/s3Storage.js +75 -0
- package/dist/fileStorage/s3Storage.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +71 -0
- package/dist/index.js.map +1 -0
- package/dist/job/index.d.ts +7 -0
- package/dist/job/index.js +13 -0
- package/dist/job/index.js.map +1 -0
- package/dist/job/job.d.ts +11 -0
- package/dist/job/job.js +12 -0
- package/dist/job/job.js.map +1 -0
- package/dist/job/jobContext.d.ts +7 -0
- package/dist/job/jobContext.js +3 -0
- package/dist/job/jobContext.js.map +1 -0
- package/dist/job/jobManager.d.ts +8 -0
- package/dist/job/jobManager.js +42 -0
- package/dist/job/jobManager.js.map +1 -0
- package/dist/job/jobMessage.d.ts +13 -0
- package/dist/job/jobMessage.js +13 -0
- package/dist/job/jobMessage.js.map +1 -0
- package/dist/job/jobRegistry.d.ts +5 -0
- package/dist/job/jobRegistry.js +20 -0
- package/dist/job/jobRegistry.js.map +1 -0
- package/dist/job/jobThread.d.ts +9 -0
- package/dist/job/jobThread.js +42 -0
- package/dist/job/jobThread.js.map +1 -0
- package/dist/job/tests/testJobs.d.ts +16 -0
- package/dist/job/tests/testJobs.js +28 -0
- package/dist/job/tests/testJobs.js.map +1 -0
- package/dist/log/index.d.ts +1 -0
- package/dist/log/index.js +6 -0
- package/dist/log/index.js.map +1 -0
- package/dist/log/log4js.d.ts +2 -0
- package/dist/log/log4js.js +37 -0
- package/dist/log/log4js.js.map +1 -0
- package/dist/log/logFileConstants.d.ts +1 -0
- package/dist/log/logFileConstants.js +5 -0
- package/dist/log/logFileConstants.js.map +1 -0
- package/dist/log/logFileS3Upload.d.ts +2 -0
- package/dist/log/logFileS3Upload.js +102 -0
- package/dist/log/logFileS3Upload.js.map +1 -0
- package/dist/log/logLevel.d.ts +6 -0
- package/dist/log/logLevel.js +11 -0
- package/dist/log/logLevel.js.map +1 -0
- package/dist/log/logger.d.ts +15 -0
- package/dist/log/logger.js +48 -0
- package/dist/log/logger.js.map +1 -0
- package/dist/model/ArenaServerConstants.d.ts +3 -0
- package/dist/model/ArenaServerConstants.js +7 -0
- package/dist/model/ArenaServerConstants.js.map +1 -0
- package/dist/model/index.d.ts +3 -0
- package/dist/model/index.js +6 -0
- package/dist/model/index.js.map +1 -0
- package/dist/model/user2FADevice/index.d.ts +1 -0
- package/dist/model/user2FADevice/index.js +3 -0
- package/dist/model/user2FADevice/index.js.map +1 -0
- package/dist/model/user2FADevice/user2FADevice.d.ts +16 -0
- package/dist/model/user2FADevice/user2FADevice.js +3 -0
- package/dist/model/user2FADevice/user2FADevice.js.map +1 -0
- package/dist/model/userTempAuthToken/index.d.ts +1 -0
- package/dist/model/userTempAuthToken/index.js +3 -0
- package/dist/model/userTempAuthToken/index.js.map +1 -0
- package/dist/model/userTempAuthToken/userTempAuthToken.d.ts +11 -0
- package/dist/model/userTempAuthToken/userTempAuthToken.js +3 -0
- package/dist/model/userTempAuthToken/userTempAuthToken.js.map +1 -0
- package/dist/processEnv/index.d.ts +153 -0
- package/dist/processEnv/index.js +159 -0
- package/dist/processEnv/index.js.map +1 -0
- package/dist/repository/authGroup/getMany.d.ts +5 -0
- package/dist/repository/authGroup/getMany.js +24 -0
- package/dist/repository/authGroup/getMany.js.map +1 -0
- package/dist/repository/authGroup/index.d.ts +5 -0
- package/dist/repository/authGroup/index.js +8 -0
- package/dist/repository/authGroup/index.js.map +1 -0
- package/dist/repository/chain/count.d.ts +3 -0
- package/dist/repository/chain/count.js +12 -0
- package/dist/repository/chain/count.js.map +1 -0
- package/dist/repository/chain/create.d.ts +1 -0
- package/dist/repository/chain/create.js +7 -0
- package/dist/repository/chain/create.js.map +1 -0
- package/dist/repository/chain/delete.d.ts +1 -0
- package/dist/repository/chain/delete.js +7 -0
- package/dist/repository/chain/delete.js.map +1 -0
- package/dist/repository/chain/get.d.ts +1 -0
- package/dist/repository/chain/get.js +7 -0
- package/dist/repository/chain/get.js.map +1 -0
- package/dist/repository/chain/getMany.d.ts +1 -0
- package/dist/repository/chain/getMany.js +7 -0
- package/dist/repository/chain/getMany.js.map +1 -0
- package/dist/repository/chain/index.d.ts +1 -0
- package/dist/repository/chain/index.js +5 -0
- package/dist/repository/chain/index.js.map +1 -0
- package/dist/repository/chain/update.d.ts +1 -0
- package/dist/repository/chain/update.js +7 -0
- package/dist/repository/chain/update.js.map +1 -0
- package/dist/repository/connectedSocket/deleteStale.d.ts +2 -0
- package/dist/repository/connectedSocket/deleteStale.js +15 -0
- package/dist/repository/connectedSocket/deleteStale.js.map +1 -0
- package/dist/repository/connectedSocket/exists.d.ts +2 -0
- package/dist/repository/connectedSocket/exists.js +12 -0
- package/dist/repository/connectedSocket/exists.js.map +1 -0
- package/dist/repository/connectedSocket/index.d.ts +11 -0
- package/dist/repository/connectedSocket/index.js +18 -0
- package/dist/repository/connectedSocket/index.js.map +1 -0
- package/dist/repository/connectedSocket/remove.d.ts +2 -0
- package/dist/repository/connectedSocket/remove.js +12 -0
- package/dist/repository/connectedSocket/remove.js.map +1 -0
- package/dist/repository/connectedSocket/removeMany.d.ts +2 -0
- package/dist/repository/connectedSocket/removeMany.js +13 -0
- package/dist/repository/connectedSocket/removeMany.js.map +1 -0
- package/dist/repository/connectedSocket/touchMany.d.ts +2 -0
- package/dist/repository/connectedSocket/touchMany.js +13 -0
- package/dist/repository/connectedSocket/touchMany.js.map +1 -0
- package/dist/repository/connectedSocket/upsert.d.ts +5 -0
- package/dist/repository/connectedSocket/upsert.js +21 -0
- package/dist/repository/connectedSocket/upsert.js.map +1 -0
- package/dist/repository/dataQuery/delete.d.ts +6 -0
- package/dist/repository/dataQuery/delete.js +21 -0
- package/dist/repository/dataQuery/delete.js.map +1 -0
- package/dist/repository/dataQuery/index.d.ts +24 -0
- package/dist/repository/dataQuery/index.js +16 -0
- package/dist/repository/dataQuery/index.js.map +1 -0
- package/dist/repository/dataQuery/insert.d.ts +6 -0
- package/dist/repository/dataQuery/insert.js +24 -0
- package/dist/repository/dataQuery/insert.js.map +1 -0
- package/dist/repository/dataQuery/read.d.ts +12 -0
- package/dist/repository/dataQuery/read.js +36 -0
- package/dist/repository/dataQuery/read.js.map +1 -0
- package/dist/repository/dataQuery/update.d.ts +6 -0
- package/dist/repository/dataQuery/update.js +19 -0
- package/dist/repository/dataQuery/update.js.map +1 -0
- package/dist/repository/index.d.ts +18 -0
- package/dist/repository/index.js +36 -0
- package/dist/repository/index.js.map +1 -0
- package/dist/repository/info/delete.d.ts +3 -0
- package/dist/repository/info/delete.js +19 -0
- package/dist/repository/info/delete.js.map +1 -0
- package/dist/repository/info/index.d.ts +7 -0
- package/dist/repository/info/index.js +13 -0
- package/dist/repository/info/index.js.map +1 -0
- package/dist/repository/info/read.d.ts +4 -0
- package/dist/repository/info/read.js +22 -0
- package/dist/repository/info/read.js.map +1 -0
- package/dist/repository/info/types.d.ts +8 -0
- package/dist/repository/info/types.js +8 -0
- package/dist/repository/info/types.js.map +1 -0
- package/dist/repository/info/upsert.d.ts +3 -0
- package/dist/repository/info/upsert.js +26 -0
- package/dist/repository/info/upsert.js.map +1 -0
- package/dist/repository/info/utils.d.ts +3 -0
- package/dist/repository/info/utils.js +16 -0
- package/dist/repository/info/utils.js.map +1 -0
- package/dist/repository/job/failOrphanedByInstanceId.d.ts +2 -0
- package/dist/repository/job/failOrphanedByInstanceId.js +28 -0
- package/dist/repository/job/failOrphanedByInstanceId.js.map +1 -0
- package/dist/repository/job/getActiveBySurveyId.d.ts +3 -0
- package/dist/repository/job/getActiveBySurveyId.js +21 -0
- package/dist/repository/job/getActiveBySurveyId.js.map +1 -0
- package/dist/repository/job/getActiveByUserUuid.d.ts +3 -0
- package/dist/repository/job/getActiveByUserUuid.js +21 -0
- package/dist/repository/job/getActiveByUserUuid.js.map +1 -0
- package/dist/repository/job/getByUuid.d.ts +3 -0
- package/dist/repository/job/getByUuid.js +17 -0
- package/dist/repository/job/getByUuid.js.map +1 -0
- package/dist/repository/job/index.d.ts +23 -0
- package/dist/repository/job/index.js +20 -0
- package/dist/repository/job/index.js.map +1 -0
- package/dist/repository/job/insert.d.ts +8 -0
- package/dist/repository/job/insert.js +27 -0
- package/dist/repository/job/insert.js.map +1 -0
- package/dist/repository/job/updateProgress.d.ts +6 -0
- package/dist/repository/job/updateProgress.js +18 -0
- package/dist/repository/job/updateProgress.js.map +1 -0
- package/dist/repository/job/updateStatus.d.ts +8 -0
- package/dist/repository/job/updateStatus.js +21 -0
- package/dist/repository/job/updateStatus.js.map +1 -0
- package/dist/repository/job/utils.d.ts +16 -0
- package/dist/repository/job/utils.js +24 -0
- package/dist/repository/job/utils.js.map +1 -0
- package/dist/repository/message/create.d.ts +3 -0
- package/dist/repository/message/create.js +25 -0
- package/dist/repository/message/create.js.map +1 -0
- package/dist/repository/message/delete.d.ts +3 -0
- package/dist/repository/message/delete.js +18 -0
- package/dist/repository/message/delete.js.map +1 -0
- package/dist/repository/message/index.d.ts +9 -0
- package/dist/repository/message/index.js +17 -0
- package/dist/repository/message/index.js.map +1 -0
- package/dist/repository/message/read.d.ts +6 -0
- package/dist/repository/message/read.js +43 -0
- package/dist/repository/message/read.js.map +1 -0
- package/dist/repository/message/update.d.ts +3 -0
- package/dist/repository/message/update.js +25 -0
- package/dist/repository/message/update.js.map +1 -0
- package/dist/repository/message/utils.d.ts +3 -0
- package/dist/repository/message/utils.js +19 -0
- package/dist/repository/message/utils.js.map +1 -0
- package/dist/repository/nodeDef/index.d.ts +5 -0
- package/dist/repository/nodeDef/index.js +9 -0
- package/dist/repository/nodeDef/index.js.map +1 -0
- package/dist/repository/nodeDef/read.d.ts +13 -0
- package/dist/repository/nodeDef/read.js +70 -0
- package/dist/repository/nodeDef/read.js.map +1 -0
- package/dist/repository/record/get.d.ts +10 -0
- package/dist/repository/record/get.js +41 -0
- package/dist/repository/record/get.js.map +1 -0
- package/dist/repository/record/index.d.ts +10 -0
- package/dist/repository/record/index.js +9 -0
- package/dist/repository/record/index.js.map +1 -0
- package/dist/repository/record/transformCallback.d.ts +6 -0
- package/dist/repository/record/transformCallback.js +21 -0
- package/dist/repository/record/transformCallback.js.map +1 -0
- package/dist/repository/recordSocketAssociation/assocSocket.d.ts +5 -0
- package/dist/repository/recordSocketAssociation/assocSocket.js +19 -0
- package/dist/repository/recordSocketAssociation/assocSocket.js.map +1 -0
- package/dist/repository/recordSocketAssociation/dissocSocket.d.ts +5 -0
- package/dist/repository/recordSocketAssociation/dissocSocket.js +16 -0
- package/dist/repository/recordSocketAssociation/dissocSocket.js.map +1 -0
- package/dist/repository/recordSocketAssociation/dissocSocketBySocketId.d.ts +2 -0
- package/dist/repository/recordSocketAssociation/dissocSocketBySocketId.js +11 -0
- package/dist/repository/recordSocketAssociation/dissocSocketBySocketId.js.map +1 -0
- package/dist/repository/recordSocketAssociation/dissocSocketsByRecordUuid.d.ts +2 -0
- package/dist/repository/recordSocketAssociation/dissocSocketsByRecordUuid.js +11 -0
- package/dist/repository/recordSocketAssociation/dissocSocketsByRecordUuid.js.map +1 -0
- package/dist/repository/recordSocketAssociation/getSocketIdsByRecordUuid.d.ts +2 -0
- package/dist/repository/recordSocketAssociation/getSocketIdsByRecordUuid.js +12 -0
- package/dist/repository/recordSocketAssociation/getSocketIdsByRecordUuid.js.map +1 -0
- package/dist/repository/recordSocketAssociation/index.d.ts +13 -0
- package/dist/repository/recordSocketAssociation/index.js +16 -0
- package/dist/repository/recordSocketAssociation/index.js.map +1 -0
- package/dist/repository/survey/get.d.ts +7 -0
- package/dist/repository/survey/get.js +16 -0
- package/dist/repository/survey/get.js.map +1 -0
- package/dist/repository/survey/getAllIds.d.ts +2 -0
- package/dist/repository/survey/getAllIds.js +11 -0
- package/dist/repository/survey/getAllIds.js.map +1 -0
- package/dist/repository/survey/getAllIdsAndAppVersions.d.ts +6 -0
- package/dist/repository/survey/getAllIdsAndAppVersions.js +11 -0
- package/dist/repository/survey/getAllIdsAndAppVersions.js.map +1 -0
- package/dist/repository/survey/index.d.ts +9 -0
- package/dist/repository/survey/index.js +12 -0
- package/dist/repository/survey/index.js.map +1 -0
- package/dist/repository/user/get.d.ts +12 -0
- package/dist/repository/user/get.js +50 -0
- package/dist/repository/user/get.js.map +1 -0
- package/dist/repository/user/index.d.ts +13 -0
- package/dist/repository/user/index.js +10 -0
- package/dist/repository/user/index.js.map +1 -0
- package/dist/repository/user/updateUserPrefs.d.ts +5 -0
- package/dist/repository/user/updateUserPrefs.js +20 -0
- package/dist/repository/user/updateUserPrefs.js.map +1 -0
- package/dist/repository/user2FADevice/countByUserUuid.d.ts +2 -0
- package/dist/repository/user2FADevice/countByUserUuid.js +16 -0
- package/dist/repository/user2FADevice/countByUserUuid.js.map +1 -0
- package/dist/repository/user2FADevice/delete.d.ts +6 -0
- package/dist/repository/user2FADevice/delete.js +22 -0
- package/dist/repository/user2FADevice/delete.js.map +1 -0
- package/dist/repository/user2FADevice/getByDeviceUuid.d.ts +6 -0
- package/dist/repository/user2FADevice/getByDeviceUuid.js +16 -0
- package/dist/repository/user2FADevice/getByDeviceUuid.js.map +1 -0
- package/dist/repository/user2FADevice/getByUserUuid.d.ts +4 -0
- package/dist/repository/user2FADevice/getByUserUuid.js +25 -0
- package/dist/repository/user2FADevice/getByUserUuid.js.map +1 -0
- package/dist/repository/user2FADevice/index.d.ts +20 -0
- package/dist/repository/user2FADevice/index.js +20 -0
- package/dist/repository/user2FADevice/index.js.map +1 -0
- package/dist/repository/user2FADevice/insert.d.ts +5 -0
- package/dist/repository/user2FADevice/insert.js +29 -0
- package/dist/repository/user2FADevice/insert.js.map +1 -0
- package/dist/repository/user2FADevice/update.d.ts +5 -0
- package/dist/repository/user2FADevice/update.js +34 -0
- package/dist/repository/user2FADevice/update.js.map +1 -0
- package/dist/repository/userGroup/delete.d.ts +5 -0
- package/dist/repository/userGroup/delete.js +17 -0
- package/dist/repository/userGroup/delete.js.map +1 -0
- package/dist/repository/userGroup/getUserGroupsByUser.d.ts +6 -0
- package/dist/repository/userGroup/getUserGroupsByUser.js +29 -0
- package/dist/repository/userGroup/getUserGroupsByUser.js.map +1 -0
- package/dist/repository/userGroup/index.d.ts +42 -0
- package/dist/repository/userGroup/index.js +23 -0
- package/dist/repository/userGroup/index.js.map +1 -0
- package/dist/repository/userGroup/insert.d.ts +6 -0
- package/dist/repository/userGroup/insert.js +22 -0
- package/dist/repository/userGroup/insert.js.map +1 -0
- package/dist/repository/userGroup/members.d.ts +17 -0
- package/dist/repository/userGroup/members.js +42 -0
- package/dist/repository/userGroup/members.js.map +1 -0
- package/dist/repository/userGroup/read.d.ts +11 -0
- package/dist/repository/userGroup/read.js +38 -0
- package/dist/repository/userGroup/read.js.map +1 -0
- package/dist/repository/userGroup/update.d.ts +10 -0
- package/dist/repository/userGroup/update.js +33 -0
- package/dist/repository/userGroup/update.js.map +1 -0
- package/dist/repository/userRefreshToken/deleteExpired.d.ts +2 -0
- package/dist/repository/userRefreshToken/deleteExpired.js +15 -0
- package/dist/repository/userRefreshToken/deleteExpired.js.map +1 -0
- package/dist/repository/userRefreshToken/getByUuid.d.ts +5 -0
- package/dist/repository/userRefreshToken/getByUuid.js +18 -0
- package/dist/repository/userRefreshToken/getByUuid.js.map +1 -0
- package/dist/repository/userRefreshToken/index.d.ts +11 -0
- package/dist/repository/userRefreshToken/index.js +16 -0
- package/dist/repository/userRefreshToken/index.js.map +1 -0
- package/dist/repository/userRefreshToken/insert.d.ts +3 -0
- package/dist/repository/userRefreshToken/insert.js +24 -0
- package/dist/repository/userRefreshToken/insert.js.map +1 -0
- package/dist/repository/userRefreshToken/revoke.d.ts +2 -0
- package/dist/repository/userRefreshToken/revoke.js +11 -0
- package/dist/repository/userRefreshToken/revoke.js.map +1 -0
- package/dist/repository/userRefreshToken/revokeAll.d.ts +4 -0
- package/dist/repository/userRefreshToken/revokeAll.js +12 -0
- package/dist/repository/userRefreshToken/revokeAll.js.map +1 -0
- package/dist/repository/userResetPassword/hasValidResetPassword.d.ts +4 -0
- package/dist/repository/userResetPassword/hasValidResetPassword.js +19 -0
- package/dist/repository/userResetPassword/hasValidResetPassword.js.map +1 -0
- package/dist/repository/userResetPassword/index.d.ts +5 -0
- package/dist/repository/userResetPassword/index.js +8 -0
- package/dist/repository/userResetPassword/index.js.map +1 -0
- package/dist/repository/userTempAuthToken/deleteByTokenHash.d.ts +3 -0
- package/dist/repository/userTempAuthToken/deleteByTokenHash.js +16 -0
- package/dist/repository/userTempAuthToken/deleteByTokenHash.js.map +1 -0
- package/dist/repository/userTempAuthToken/deleteExpired.d.ts +2 -0
- package/dist/repository/userTempAuthToken/deleteExpired.js +12 -0
- package/dist/repository/userTempAuthToken/deleteExpired.js.map +1 -0
- package/dist/repository/userTempAuthToken/getByTokenHash.d.ts +3 -0
- package/dist/repository/userTempAuthToken/getByTokenHash.js +15 -0
- package/dist/repository/userTempAuthToken/getByTokenHash.js.map +1 -0
- package/dist/repository/userTempAuthToken/getByUserUuid.d.ts +5 -0
- package/dist/repository/userTempAuthToken/getByUserUuid.js +20 -0
- package/dist/repository/userTempAuthToken/getByUserUuid.js.map +1 -0
- package/dist/repository/userTempAuthToken/index.d.ts +9 -0
- package/dist/repository/userTempAuthToken/index.js +16 -0
- package/dist/repository/userTempAuthToken/index.js.map +1 -0
- package/dist/repository/userTempAuthToken/insert.d.ts +3 -0
- package/dist/repository/userTempAuthToken/insert.js +22 -0
- package/dist/repository/userTempAuthToken/insert.js.map +1 -0
- package/dist/repository/wsRelayMessage/deleteExpired.d.ts +2 -0
- package/dist/repository/wsRelayMessage/deleteExpired.js +15 -0
- package/dist/repository/wsRelayMessage/deleteExpired.js.map +1 -0
- package/dist/repository/wsRelayMessage/getById.d.ts +2 -0
- package/dist/repository/wsRelayMessage/getById.js +12 -0
- package/dist/repository/wsRelayMessage/getById.js.map +1 -0
- package/dist/repository/wsRelayMessage/index.d.ts +5 -0
- package/dist/repository/wsRelayMessage/index.js +12 -0
- package/dist/repository/wsRelayMessage/index.js.map +1 -0
- package/dist/repository/wsRelayMessage/insert.d.ts +2 -0
- package/dist/repository/wsRelayMessage/insert.js +13 -0
- package/dist/repository/wsRelayMessage/insert.js.map +1 -0
- package/dist/server/arenaApp.d.ts +15 -0
- package/dist/server/arenaApp.js +3 -0
- package/dist/server/arenaApp.js.map +1 -0
- package/dist/server/arenaServer/index.d.ts +10 -0
- package/dist/server/arenaServer/index.js +53 -0
- package/dist/server/arenaServer/index.js.map +1 -0
- package/dist/server/arenaServer/initApp.d.ts +8 -0
- package/dist/server/arenaServer/initApp.js +42 -0
- package/dist/server/arenaServer/initApp.js.map +1 -0
- package/dist/server/arenaServer/registerServices.d.ts +2 -0
- package/dist/server/arenaServer/registerServices.js +19 -0
- package/dist/server/arenaServer/registerServices.js.map +1 -0
- package/dist/server/arenaServer/serverServiceType.d.ts +7 -0
- package/dist/server/arenaServer/serverServiceType.js +12 -0
- package/dist/server/arenaServer/serverServiceType.js.map +1 -0
- package/dist/server/arenaServer/start.d.ts +3 -0
- package/dist/server/arenaServer/start.js +45 -0
- package/dist/server/arenaServer/start.js.map +1 -0
- package/dist/server/arenaServer/stop.d.ts +3 -0
- package/dist/server/arenaServer/stop.js +27 -0
- package/dist/server/arenaServer/stop.js.map +1 -0
- package/dist/server/error.d.ts +26 -0
- package/dist/server/error.js +45 -0
- package/dist/server/error.js.map +1 -0
- package/dist/server/expressInitializer.d.ts +4 -0
- package/dist/server/expressInitializer.js +3 -0
- package/dist/server/expressInitializer.js.map +1 -0
- package/dist/server/index.d.ts +4 -0
- package/dist/server/index.js +11 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/middleware/authentication.d.ts +2 -0
- package/dist/server/middleware/authentication.js +111 -0
- package/dist/server/middleware/authentication.js.map +1 -0
- package/dist/server/middleware/error.d.ts +2 -0
- package/dist/server/middleware/error.js +16 -0
- package/dist/server/middleware/error.js.map +1 -0
- package/dist/server/middleware/header.d.ts +2 -0
- package/dist/server/middleware/header.js +27 -0
- package/dist/server/middleware/header.js.map +1 -0
- package/dist/server/middleware/https.d.ts +2 -0
- package/dist/server/middleware/https.js +21 -0
- package/dist/server/middleware/https.js.map +1 -0
- package/dist/server/middleware/index.d.ts +5 -0
- package/dist/server/middleware/index.js +14 -0
- package/dist/server/middleware/index.js.map +1 -0
- package/dist/server/middleware/rateLimit.d.ts +2 -0
- package/dist/server/middleware/rateLimit.js +43 -0
- package/dist/server/middleware/rateLimit.js.map +1 -0
- package/dist/service/SurveyItemService.d.ts +26 -0
- package/dist/service/SurveyItemService.js +3 -0
- package/dist/service/SurveyItemService.js.map +1 -0
- package/dist/service/chain/index.d.ts +1 -0
- package/dist/service/chain/index.js +5 -0
- package/dist/service/chain/index.js.map +1 -0
- package/dist/service/dataQuery/index.d.ts +5 -0
- package/dist/service/dataQuery/index.js +14 -0
- package/dist/service/dataQuery/index.js.map +1 -0
- package/dist/service/index.d.ts +19 -0
- package/dist/service/index.js +28 -0
- package/dist/service/index.js.map +1 -0
- package/dist/service/info/index.d.ts +9 -0
- package/dist/service/info/index.js +21 -0
- package/dist/service/info/index.js.map +1 -0
- package/dist/service/message/index.d.ts +13 -0
- package/dist/service/message/index.js +23 -0
- package/dist/service/message/index.js.map +1 -0
- package/dist/service/record/get.d.ts +3 -0
- package/dist/service/record/get.js +7 -0
- package/dist/service/record/get.js.map +1 -0
- package/dist/service/record/index.d.ts +2 -0
- package/dist/service/record/index.js +30 -0
- package/dist/service/record/index.js.map +1 -0
- package/dist/service/survey/docExport/SurveyDocRenderer.d.ts +17 -0
- package/dist/service/survey/docExport/SurveyDocRenderer.js +3 -0
- package/dist/service/survey/docExport/SurveyDocRenderer.js.map +1 -0
- package/dist/service/survey/docExport/SurveyDocWalker.d.ts +24 -0
- package/dist/service/survey/docExport/SurveyDocWalker.js +326 -0
- package/dist/service/survey/docExport/SurveyDocWalker.js.map +1 -0
- package/dist/service/survey/docExport/common.d.ts +14 -0
- package/dist/service/survey/docExport/common.js +98 -0
- package/dist/service/survey/docExport/common.js.map +1 -0
- package/dist/service/survey/docExport/index.d.ts +5 -0
- package/dist/service/survey/docExport/index.js +24 -0
- package/dist/service/survey/docExport/index.js.map +1 -0
- package/dist/service/survey/docExport/printOrientation.d.ts +4 -0
- package/dist/service/survey/docExport/printOrientation.js +10 -0
- package/dist/service/survey/docExport/printOrientation.js.map +1 -0
- package/dist/service/survey/docExport/surveyDocImages.d.ts +27 -0
- package/dist/service/survey/docExport/surveyDocImages.js +69 -0
- package/dist/service/survey/docExport/surveyDocImages.js.map +1 -0
- package/dist/service/survey/docExport/types.d.ts +43 -0
- package/dist/service/survey/docExport/types.js +3 -0
- package/dist/service/survey/docExport/types.js.map +1 -0
- package/dist/service/survey/docxExport/DocxSurveyDocRenderer.d.ts +13 -0
- package/dist/service/survey/docxExport/DocxSurveyDocRenderer.js +122 -0
- package/dist/service/survey/docxExport/DocxSurveyDocRenderer.js.map +1 -0
- package/dist/service/survey/docxExport/ImageUtils.d.ts +11 -0
- package/dist/service/survey/docxExport/ImageUtils.js +37 -0
- package/dist/service/survey/docxExport/ImageUtils.js.map +1 -0
- package/dist/service/survey/docxExport/SurveyDocxGenerator.d.ts +11 -0
- package/dist/service/survey/docxExport/SurveyDocxGenerator.js +145 -0
- package/dist/service/survey/docxExport/SurveyDocxGenerator.js.map +1 -0
- package/dist/service/survey/docxExport/docxReadOnlyConverter.d.ts +1 -0
- package/dist/service/survey/docxExport/docxReadOnlyConverter.js +27 -0
- package/dist/service/survey/docxExport/docxReadOnlyConverter.js.map +1 -0
- package/dist/service/survey/docxExport/index.d.ts +3 -0
- package/dist/service/survey/docxExport/index.js +8 -0
- package/dist/service/survey/docxExport/index.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/common.d.ts +24 -0
- package/dist/service/survey/docxExport/renderers/attribute/common.js +76 -0
- package/dist/service/survey/docxExport/renderers/attribute/common.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/index.d.ts +3 -0
- package/dist/service/survey/docxExport/renderers/attribute/index.js +35 -0
- package/dist/service/survey/docxExport/renderers/attribute/index.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderBoolean.d.ts +2 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderBoolean.js +25 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderBoolean.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderCode.d.ts +2 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderCode.js +39 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderCode.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderCoordinate.d.ts +2 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderCoordinate.js +28 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderCoordinate.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderDate.d.ts +2 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderDate.js +27 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderDate.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderFile.d.ts +2 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderFile.js +58 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderFile.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderFormHeader.d.ts +2 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderFormHeader.js +14 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderFormHeader.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderGeo.d.ts +2 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderGeo.js +23 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderGeo.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderImage.d.ts +3 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderImage.js +48 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderImage.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderNumber.d.ts +2 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderNumber.js +13 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderNumber.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderTaxon.d.ts +2 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderTaxon.js +46 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderTaxon.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderText.d.ts +2 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderText.js +13 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderText.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderTime.d.ts +2 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderTime.js +25 -0
- package/dist/service/survey/docxExport/renderers/attribute/renderTime.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/attribute/types.d.ts +4 -0
- package/dist/service/survey/docxExport/renderers/attribute/types.js +3 -0
- package/dist/service/survey/docxExport/renderers/attribute/types.js.map +1 -0
- package/dist/service/survey/docxExport/renderers/entity/index.d.ts +1 -0
- package/dist/service/survey/docxExport/renderers/entity/index.js +3 -0
- package/dist/service/survey/docxExport/renderers/entity/index.js.map +1 -0
- package/dist/service/survey/get.d.ts +10 -0
- package/dist/service/survey/get.js +38 -0
- package/dist/service/survey/get.js.map +1 -0
- package/dist/service/survey/getAllIds.d.ts +2 -0
- package/dist/service/survey/getAllIds.js +6 -0
- package/dist/service/survey/getAllIds.js.map +1 -0
- package/dist/service/survey/index.d.ts +8 -0
- package/dist/service/survey/index.js +41 -0
- package/dist/service/survey/index.js.map +1 -0
- package/dist/service/survey/pdfExport/PdfElement.d.ts +53 -0
- package/dist/service/survey/pdfExport/PdfElement.js +3 -0
- package/dist/service/survey/pdfExport/PdfElement.js.map +1 -0
- package/dist/service/survey/pdfExport/PdfSurveyDocRenderer.d.ts +19 -0
- package/dist/service/survey/pdfExport/PdfSurveyDocRenderer.js +197 -0
- package/dist/service/survey/pdfExport/PdfSurveyDocRenderer.js.map +1 -0
- package/dist/service/survey/pdfExport/SurveyPdfGenerator.d.ts +9 -0
- package/dist/service/survey/pdfExport/SurveyPdfGenerator.js +342 -0
- package/dist/service/survey/pdfExport/SurveyPdfGenerator.js.map +1 -0
- package/dist/service/survey/pdfExport/index.d.ts +4 -0
- package/dist/service/survey/pdfExport/index.js +8 -0
- package/dist/service/survey/pdfExport/index.js.map +1 -0
- package/dist/service/user/get.d.ts +2 -0
- package/dist/service/user/get.js +29 -0
- package/dist/service/user/get.js.map +1 -0
- package/dist/service/user/index.d.ts +2 -0
- package/dist/service/user/index.js +29 -0
- package/dist/service/user/index.js.map +1 -0
- package/dist/service/user/updateUserPrefs.d.ts +2 -0
- package/dist/service/user/updateUserPrefs.js +14 -0
- package/dist/service/user/updateUserPrefs.js.map +1 -0
- package/dist/service/user2FA/index.d.ts +3 -0
- package/dist/service/user2FA/index.js +8 -0
- package/dist/service/user2FA/index.js.map +1 -0
- package/dist/service/user2FA/user2FAService.d.ts +59 -0
- package/dist/service/user2FA/user2FAService.js +253 -0
- package/dist/service/user2FA/user2FAService.js.map +1 -0
- package/dist/service/userAuthToken/index.d.ts +3 -0
- package/dist/service/userAuthToken/index.js +104 -0
- package/dist/service/userAuthToken/index.js.map +1 -0
- package/dist/service/userAuthToken/userAuthTokenServiceConstants.d.ts +6 -0
- package/dist/service/userAuthToken/userAuthTokenServiceConstants.js +9 -0
- package/dist/service/userAuthToken/userAuthTokenServiceConstants.js.map +1 -0
- package/dist/service/userGroup/index.d.ts +45 -0
- package/dist/service/userGroup/index.js +19 -0
- package/dist/service/userGroup/index.js.map +1 -0
- package/dist/service/userTempAuthToken/cleanupExpired.d.ts +2 -0
- package/dist/service/userTempAuthToken/cleanupExpired.js +10 -0
- package/dist/service/userTempAuthToken/cleanupExpired.js.map +1 -0
- package/dist/service/userTempAuthToken/create.d.ts +6 -0
- package/dist/service/userTempAuthToken/create.js +57 -0
- package/dist/service/userTempAuthToken/create.js.map +1 -0
- package/dist/service/userTempAuthToken/getByTokenHash.d.ts +3 -0
- package/dist/service/userTempAuthToken/getByTokenHash.js +12 -0
- package/dist/service/userTempAuthToken/getByTokenHash.js.map +1 -0
- package/dist/service/userTempAuthToken/getByUserUuid.d.ts +6 -0
- package/dist/service/userTempAuthToken/getByUserUuid.js +11 -0
- package/dist/service/userTempAuthToken/getByUserUuid.js.map +1 -0
- package/dist/service/userTempAuthToken/index.d.ts +13 -0
- package/dist/service/userTempAuthToken/index.js +16 -0
- package/dist/service/userTempAuthToken/index.js.map +1 -0
- package/dist/service/userTempAuthToken/revoke.d.ts +3 -0
- package/dist/service/userTempAuthToken/revoke.js +12 -0
- package/dist/service/userTempAuthToken/revoke.js.map +1 -0
- package/dist/service/userTempAuthToken/utils.d.ts +3 -0
- package/dist/service/userTempAuthToken/utils.js +18 -0
- package/dist/service/userTempAuthToken/utils.js.map +1 -0
- package/dist/thread/index.d.ts +5 -0
- package/dist/thread/index.js +12 -0
- package/dist/thread/index.js.map +1 -0
- package/dist/thread/thread.d.ts +10 -0
- package/dist/thread/thread.js +34 -0
- package/dist/thread/thread.js.map +1 -0
- package/dist/thread/worker.d.ts +6 -0
- package/dist/thread/worker.js +19 -0
- package/dist/thread/worker.js.map +1 -0
- package/dist/thread/workerCache.d.ts +7 -0
- package/dist/thread/workerCache.js +18 -0
- package/dist/thread/workerCache.js.map +1 -0
- package/dist/thread/workerMessage.d.ts +9 -0
- package/dist/thread/workerMessage.js +8 -0
- package/dist/thread/workerMessage.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +8 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/requests.d.ts +15 -0
- package/dist/utils/requests.js +66 -0
- package/dist/utils/requests.js.map +1 -0
- package/dist/utils/responses.d.ts +5 -0
- package/dist/utils/responses.js +32 -0
- package/dist/utils/responses.js.map +1 -0
- package/dist/webSocket/event.d.ts +16 -0
- package/dist/webSocket/event.js +21 -0
- package/dist/webSocket/event.js.map +1 -0
- package/dist/webSocket/index.d.ts +2 -0
- package/dist/webSocket/index.js +8 -0
- package/dist/webSocket/index.js.map +1 -0
- package/dist/webSocket/server.d.ts +19 -0
- package/dist/webSocket/server.js +162 -0
- package/dist/webSocket/server.js.map +1 -0
- package/package.json +105 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PdfSurveyDocRenderer = void 0;
|
|
4
|
+
const arena_core_1 = require("@openforis/arena-core");
|
|
5
|
+
const common_1 = require("../docExport/common");
|
|
6
|
+
const ImageUtils_1 = require("../docxExport/ImageUtils");
|
|
7
|
+
const MAX_IMAGE_WIDTH = 500;
|
|
8
|
+
const MAX_IMAGE_HEIGHT = 500;
|
|
9
|
+
class PdfSurveyDocRenderer {
|
|
10
|
+
renderTitle(text, hasSubtitle) {
|
|
11
|
+
return hasSubtitle ? [{ kind: 'title', text, hasSubtitle: true }] : [{ kind: 'title', text }, { kind: 'spacer' }];
|
|
12
|
+
}
|
|
13
|
+
renderSubtitle(text) {
|
|
14
|
+
return [{ kind: 'subtitle', text }];
|
|
15
|
+
}
|
|
16
|
+
renderEntityHeading(text, level, pageBreak) {
|
|
17
|
+
return [{ kind: 'heading', text, level, pageBreak }];
|
|
18
|
+
}
|
|
19
|
+
renderEntityInstanceHeading(text, level) {
|
|
20
|
+
return [{ kind: 'heading', text, level: level + 1 }];
|
|
21
|
+
}
|
|
22
|
+
renderGridTable(rows, columnCount) {
|
|
23
|
+
const occupied = new Array(columnCount).fill(0);
|
|
24
|
+
const result = [];
|
|
25
|
+
for (const row of rows) {
|
|
26
|
+
let col = 0;
|
|
27
|
+
const cells = row.map((cell) => {
|
|
28
|
+
while (col < columnCount && occupied[col] > 0)
|
|
29
|
+
col++;
|
|
30
|
+
const colSpan = cell.colSpan ?? 1;
|
|
31
|
+
const rowSpan = cell.rowSpan ?? 1;
|
|
32
|
+
if (rowSpan > 1) {
|
|
33
|
+
for (let s = 0; s < colSpan; s++)
|
|
34
|
+
occupied[col + s] = rowSpan;
|
|
35
|
+
}
|
|
36
|
+
const columnIndex = col;
|
|
37
|
+
col += colSpan;
|
|
38
|
+
return { content: cell.content, colSpan, columnIndex };
|
|
39
|
+
});
|
|
40
|
+
result.push({ kind: 'gridRow', columnCount, cells });
|
|
41
|
+
for (let c = 0; c < columnCount; c++)
|
|
42
|
+
if (occupied[c] > 0)
|
|
43
|
+
occupied[c]--;
|
|
44
|
+
}
|
|
45
|
+
return result;
|
|
46
|
+
}
|
|
47
|
+
renderEntityTable(headers, rows) {
|
|
48
|
+
return [{ kind: 'table', headers, rows }];
|
|
49
|
+
}
|
|
50
|
+
getGridCellLimits(columnCount, columnSpan) {
|
|
51
|
+
const columns = Math.max(columnCount, 1);
|
|
52
|
+
const span = Math.max(columnSpan, 1);
|
|
53
|
+
const cellWidth = Math.floor((MAX_IMAGE_WIDTH / columns) * span);
|
|
54
|
+
return { maxImageWidth: Math.max(80, cellWidth), maxImageHeight: MAX_IMAGE_HEIGHT };
|
|
55
|
+
}
|
|
56
|
+
async renderAttribute({ nodeDef, context, depth, node, limits }) {
|
|
57
|
+
switch (nodeDef.type) {
|
|
58
|
+
case arena_core_1.NodeDefType.boolean:
|
|
59
|
+
return this.renderBoolean({ nodeDef: nodeDef, context, node });
|
|
60
|
+
case arena_core_1.NodeDefType.code:
|
|
61
|
+
return this.renderCode({ nodeDef: nodeDef, context, node });
|
|
62
|
+
case arena_core_1.NodeDefType.coordinate:
|
|
63
|
+
return this.renderCoordinate({ nodeDef: nodeDef, context, node });
|
|
64
|
+
case arena_core_1.NodeDefType.taxon:
|
|
65
|
+
return this.renderTaxon({ nodeDef: nodeDef, context, node });
|
|
66
|
+
case arena_core_1.NodeDefType.file:
|
|
67
|
+
return this.renderFile({ nodeDef, context, depth, node, limits });
|
|
68
|
+
case arena_core_1.NodeDefType.formHeader:
|
|
69
|
+
return [{ kind: 'heading', text: (0, common_1.label)(nodeDef, context.lang), level: Math.min(depth + 2, 6) }];
|
|
70
|
+
default:
|
|
71
|
+
return this.renderSimpleField({ nodeDef, context, node });
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
renderSimpleField({ nodeDef, context, node, }) {
|
|
75
|
+
const lbl = (0, common_1.label)(nodeDef, context.lang);
|
|
76
|
+
if ((0, common_1.isNodeFilled)(node)) {
|
|
77
|
+
return [{ kind: 'fieldRow', label: lbl, value: (0, common_1.formatNodeValue)(nodeDef, context, node) }];
|
|
78
|
+
}
|
|
79
|
+
return [{ kind: 'fieldRow', label: lbl, placeholder: common_1.EMPTY_FIELD }];
|
|
80
|
+
}
|
|
81
|
+
renderBoolean({ nodeDef, context, node, }) {
|
|
82
|
+
const hasValue = (0, common_1.isNodeFilled)(node);
|
|
83
|
+
const isTrue = hasValue && (node.value === true || node.value === 'true');
|
|
84
|
+
return [
|
|
85
|
+
{
|
|
86
|
+
kind: 'checkboxRow',
|
|
87
|
+
label: (0, common_1.label)(nodeDef, context.lang),
|
|
88
|
+
options: [
|
|
89
|
+
{ text: (0, common_1.getBooleanValueLabel)(context, nodeDef, true), checked: hasValue ? isTrue : false },
|
|
90
|
+
{ text: (0, common_1.getBooleanValueLabel)(context, nodeDef, false), checked: hasValue ? !isTrue : false },
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
renderCode({ nodeDef, context, node, }) {
|
|
96
|
+
const lbl = (0, common_1.label)(nodeDef, context.lang);
|
|
97
|
+
const { survey, lang } = context;
|
|
98
|
+
const items = survey.refData ? arena_core_1.Surveys.getCategoryItemsByNodeDef({ survey, nodeDef }) : [];
|
|
99
|
+
const selectedItemUuid = node ? arena_core_1.NodeValues.getItemUuid(node) : undefined;
|
|
100
|
+
const showAsCheckboxes = items.length > 0 && items.length <= 8;
|
|
101
|
+
if (showAsCheckboxes) {
|
|
102
|
+
return [
|
|
103
|
+
{
|
|
104
|
+
kind: 'checkboxRow',
|
|
105
|
+
label: lbl,
|
|
106
|
+
options: items.map((item) => ({
|
|
107
|
+
text: (0, common_1.getCategoryItemLabel)(item, lang),
|
|
108
|
+
checked: selectedItemUuid !== undefined && item.uuid === selectedItemUuid,
|
|
109
|
+
})),
|
|
110
|
+
},
|
|
111
|
+
];
|
|
112
|
+
}
|
|
113
|
+
if (selectedItemUuid !== undefined) {
|
|
114
|
+
const selectedItem = node?.refData?.categoryItem;
|
|
115
|
+
const displayValue = selectedItem
|
|
116
|
+
? (0, common_1.getCategoryItemLabel)(selectedItem, lang)
|
|
117
|
+
: (node?.value?.code ?? selectedItemUuid);
|
|
118
|
+
return [{ kind: 'fieldRow', label: lbl, value: String(displayValue) }];
|
|
119
|
+
}
|
|
120
|
+
const sizeLabel = items.length > 0 ? ` (${items.length} options)` : '';
|
|
121
|
+
return [{ kind: 'fieldRow', label: lbl, placeholder: `[select${sizeLabel}]` }];
|
|
122
|
+
}
|
|
123
|
+
renderCoordinate({ nodeDef, context, node, }) {
|
|
124
|
+
const lbl = (0, common_1.label)(nodeDef, context.lang);
|
|
125
|
+
const hasValue = (0, common_1.isNodeFilled)(node);
|
|
126
|
+
const val = hasValue ? (node.value ?? {}) : null;
|
|
127
|
+
const valueFields = (0, common_1.getValueFields)(nodeDef);
|
|
128
|
+
const labelByField = (0, common_1.getCoordinateLabelByField)(nodeDef, context);
|
|
129
|
+
return [
|
|
130
|
+
{
|
|
131
|
+
kind: 'compositeBlock',
|
|
132
|
+
label: lbl,
|
|
133
|
+
subFields: valueFields.map((field) => ({
|
|
134
|
+
label: labelByField[field],
|
|
135
|
+
value: hasValue ? String(val?.[field] ?? '') : undefined,
|
|
136
|
+
placeholder: hasValue ? undefined : common_1.EMPTY_SHORT,
|
|
137
|
+
})),
|
|
138
|
+
},
|
|
139
|
+
];
|
|
140
|
+
}
|
|
141
|
+
renderTaxon({ nodeDef, context, node, }) {
|
|
142
|
+
const lbl = (0, common_1.label)(nodeDef, context.lang);
|
|
143
|
+
const hasValue = (0, common_1.isNodeFilled)(node);
|
|
144
|
+
const taxon = hasValue ? node.refData?.taxon : undefined;
|
|
145
|
+
const vernacularNameVisible = arena_core_1.NodeDefs.isFieldVisible(arena_core_1.NodeValues.ValuePropsTaxon.vernacularName)(nodeDef);
|
|
146
|
+
const vernacularNameUuid = node ? arena_core_1.NodeValues.getVernacularNameUuid(node) : undefined;
|
|
147
|
+
const { vernacularName } = vernacularNameUuid && taxon ? arena_core_1.Taxa.getVernacularNameAndLang(vernacularNameUuid)(taxon) : {};
|
|
148
|
+
const subFields = [
|
|
149
|
+
{
|
|
150
|
+
label: context.i18n.t('surveyForm:nodeDefTaxon.code'),
|
|
151
|
+
value: taxon ? (arena_core_1.Taxa.getCode(taxon) ?? '') : undefined,
|
|
152
|
+
placeholder: hasValue ? undefined : common_1.EMPTY_SHORT,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: context.i18n.t('surveyForm:nodeDefTaxon.scientificName'),
|
|
156
|
+
value: taxon ? arena_core_1.Taxa.getScientificName(taxon) : undefined,
|
|
157
|
+
placeholder: hasValue ? undefined : common_1.EMPTY_FIELD,
|
|
158
|
+
},
|
|
159
|
+
];
|
|
160
|
+
if (vernacularNameVisible) {
|
|
161
|
+
subFields.push({
|
|
162
|
+
label: context.i18n.t('surveyForm:nodeDefTaxon.vernacularName'),
|
|
163
|
+
value: vernacularName,
|
|
164
|
+
placeholder: hasValue ? undefined : common_1.EMPTY_FIELD,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
return [{ kind: 'compositeBlock', label: lbl, subFields }];
|
|
168
|
+
}
|
|
169
|
+
async renderFile({ nodeDef, context, depth: _depth, node, limits, }) {
|
|
170
|
+
const lbl = (0, common_1.label)(nodeDef, context.lang);
|
|
171
|
+
if ((0, common_1.isNodeBlank)(node)) {
|
|
172
|
+
return [{ kind: 'fieldRow', label: lbl, placeholder: '[file attachment]' }];
|
|
173
|
+
}
|
|
174
|
+
const nodeDefFile = nodeDef;
|
|
175
|
+
if (nodeDefFile.props?.fileType === 'image' && context.fileProvider) {
|
|
176
|
+
const fileUuid = arena_core_1.NodeValues.getFileUuid(node);
|
|
177
|
+
if (fileUuid) {
|
|
178
|
+
try {
|
|
179
|
+
const buffer = await context.fileProvider(fileUuid);
|
|
180
|
+
const maxWidth = limits?.maxImageWidth ?? MAX_IMAGE_WIDTH;
|
|
181
|
+
const maxHeight = limits?.maxImageHeight ?? MAX_IMAGE_HEIGHT;
|
|
182
|
+
const dims = (0, ImageUtils_1.getImageDimensions)(buffer);
|
|
183
|
+
const { width, height } = dims
|
|
184
|
+
? (0, ImageUtils_1.calculateScaledDimensions)(dims.width, dims.height, maxWidth, maxHeight)
|
|
185
|
+
: { width: maxWidth, height: maxHeight };
|
|
186
|
+
return [{ kind: 'image', label: lbl, buffer, width, height }];
|
|
187
|
+
}
|
|
188
|
+
catch {
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
const attachedFileName = node ? (arena_core_1.NodeValues.getFileName(node) ?? '[attached file]') : '[attached file]';
|
|
193
|
+
return [{ kind: 'fieldRow', label: lbl, value: attachedFileName }];
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
exports.PdfSurveyDocRenderer = PdfSurveyDocRenderer;
|
|
197
|
+
//# sourceMappingURL=PdfSurveyDocRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfSurveyDocRenderer.js","sourceRoot":"","sources":["../../../../src/service/survey/pdfExport/PdfSurveyDocRenderer.ts"],"names":[],"mappings":";;;AACA,sDAAwF;AAGxF,gDAW4B;AAE5B,yDAAwF;AAGxF,MAAM,eAAe,GAAG,GAAG,CAAA;AAC3B,MAAM,gBAAgB,GAAG,GAAG,CAAA;AAE5B,MAAa,oBAAoB;IAG/B,WAAW,CAAC,IAAY,EAAE,WAAoB;QAC5C,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAA;IACnH,CAAC;IAED,cAAc,CAAC,IAAY;QACzB,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAA;IACrC,CAAC;IAED,mBAAmB,CAAC,IAAY,EAAE,KAAa,EAAE,SAAkB;QACjE,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAA;IACtD,CAAC;IAED,2BAA2B,CAAC,IAAY,EAAE,KAAa;QACrD,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC,CAAA;IACtD,CAAC;IAID,eAAe,CAAC,IAAgC,EAAE,WAAmB;QAEnE,MAAM,QAAQ,GA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AO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAA;IACpE,CAAC;CACF;AAnQD,oDAmQC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SurveyDocOptions } from '../docExport/types';
|
|
2
|
+
export type SurveyPdfOptions = SurveyDocOptions;
|
|
3
|
+
export interface SurveyPdfResult {
|
|
4
|
+
buffer: Buffer;
|
|
5
|
+
surveyName: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SurveyPdfGenerator: {
|
|
8
|
+
generateSurveyPdf: (options: SurveyPdfOptions) => Promise<SurveyPdfResult>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SurveyPdfGenerator = void 0;
|
|
7
|
+
const pdfkit_1 = __importDefault(require("pdfkit"));
|
|
8
|
+
const surveyDocImages_1 = require("../docExport/surveyDocImages");
|
|
9
|
+
const SurveyDocWalker_1 = require("../docExport/SurveyDocWalker");
|
|
10
|
+
const PdfSurveyDocRenderer_1 = require("./PdfSurveyDocRenderer");
|
|
11
|
+
const FONT_NORMAL = 'Helvetica';
|
|
12
|
+
const FONT_BOLD = 'Helvetica-Bold';
|
|
13
|
+
const MARGIN = 50;
|
|
14
|
+
const QR_SIZE_PT = 72;
|
|
15
|
+
const QR_MARGIN_FROM_EDGE_PT = 40;
|
|
16
|
+
const PAGE_NUMBER_BOTTOM_OFFSET = 20;
|
|
17
|
+
const A4_PORTRAIT = [595.28, 841.89];
|
|
18
|
+
const A4_LANDSCAPE = [841.89, 595.28];
|
|
19
|
+
const EMPTY_FIELD = '________________________________';
|
|
20
|
+
const pageSizeFor = (orientation) => orientation === 'landscape' ? A4_LANDSCAPE : A4_PORTRAIT;
|
|
21
|
+
const contentWidthFor = (orientation) => pageSizeFor(orientation)[0] - MARGIN * 2;
|
|
22
|
+
const contentWidthOf = (doc) => doc.page.width - doc.page.margins.left - doc.page.margins.right;
|
|
23
|
+
const addPageSameSize = (doc) => {
|
|
24
|
+
doc.continueOnNewPage();
|
|
25
|
+
};
|
|
26
|
+
const COLOR_DEFAULT = '#000000';
|
|
27
|
+
const COLOR_TITLE = '#1F3864';
|
|
28
|
+
const COLOR_SUBTITLE = '#2E74B5';
|
|
29
|
+
const HEADING_SIZES = { 1: 18, 2: 16, 3: 14, 4: 12, 5: 11, 6: 10 };
|
|
30
|
+
const TABLE_CELL_PAD = 4;
|
|
31
|
+
const TABLE_ROW_HEIGHT = 20;
|
|
32
|
+
const GRID_CELL_PAD = 8;
|
|
33
|
+
const getContentBottom = (doc) => doc.page.height - doc.page.margins.bottom;
|
|
34
|
+
const getContentTop = (doc) => doc.page.margins.top;
|
|
35
|
+
const estimateElementHeight = (el) => {
|
|
36
|
+
switch (el.kind) {
|
|
37
|
+
case 'image':
|
|
38
|
+
return el.height + 24;
|
|
39
|
+
case 'heading':
|
|
40
|
+
return 16;
|
|
41
|
+
case 'compositeBlock':
|
|
42
|
+
return 14 + el.subFields.length * 12;
|
|
43
|
+
case 'checkboxRow':
|
|
44
|
+
case 'fieldRow':
|
|
45
|
+
return 14;
|
|
46
|
+
case 'spacer':
|
|
47
|
+
return 8;
|
|
48
|
+
default:
|
|
49
|
+
return 14;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const renderTitle = (doc, el, cell) => {
|
|
53
|
+
const x = cell?.x ?? MARGIN;
|
|
54
|
+
const width = cell?.width ?? contentWidthOf(doc);
|
|
55
|
+
doc
|
|
56
|
+
.fillColor(COLOR_TITLE)
|
|
57
|
+
.font(FONT_BOLD)
|
|
58
|
+
.fontSize(24)
|
|
59
|
+
.text(el.text, x, doc.y, { align: cell ? 'left' : 'center', width })
|
|
60
|
+
.fillColor(COLOR_DEFAULT)
|
|
61
|
+
.moveDown(el.hasSubtitle ? 0.2 : 0.5);
|
|
62
|
+
};
|
|
63
|
+
const renderSubtitle = (doc, el, cell) => {
|
|
64
|
+
const x = cell?.x ?? MARGIN;
|
|
65
|
+
const width = cell?.width ?? contentWidthOf(doc);
|
|
66
|
+
doc
|
|
67
|
+
.fillColor(COLOR_SUBTITLE)
|
|
68
|
+
.font(FONT_BOLD)
|
|
69
|
+
.fontSize(14)
|
|
70
|
+
.text(el.text, x, doc.y, { align: cell ? 'left' : 'center', width })
|
|
71
|
+
.fillColor(COLOR_DEFAULT)
|
|
72
|
+
.moveDown(1);
|
|
73
|
+
};
|
|
74
|
+
const renderHeading = (doc, el, cell) => {
|
|
75
|
+
if (el.pageBreak && !cell)
|
|
76
|
+
addPageSameSize(doc);
|
|
77
|
+
const size = HEADING_SIZES[Math.min(el.level + 1, 6)] ?? 10;
|
|
78
|
+
const x = cell?.x ?? MARGIN;
|
|
79
|
+
const width = cell?.width ?? contentWidthOf(doc);
|
|
80
|
+
doc.font(FONT_BOLD).fontSize(size).text(el.text, x, doc.y, { width }).moveDown(0.2);
|
|
81
|
+
};
|
|
82
|
+
const renderFieldRow = (doc, el, cell) => {
|
|
83
|
+
const value = el.value ?? el.placeholder ?? EMPTY_FIELD;
|
|
84
|
+
const x = cell?.x ?? MARGIN;
|
|
85
|
+
const width = cell?.width ?? contentWidthOf(doc);
|
|
86
|
+
doc.font(FONT_BOLD).fontSize(10).text(`${el.label}: `, x, doc.y, { continued: true, width });
|
|
87
|
+
doc.font(FONT_NORMAL).text(value);
|
|
88
|
+
doc.moveDown(0.2);
|
|
89
|
+
};
|
|
90
|
+
const renderCheckboxRow = (doc, el, cell) => {
|
|
91
|
+
const x = cell?.x ?? MARGIN;
|
|
92
|
+
const width = cell?.width ?? contentWidthOf(doc);
|
|
93
|
+
const optionParts = el.options.map((opt) => `${opt.checked ? '[x]' : '[ ]'} ${opt.text}`);
|
|
94
|
+
doc.font(FONT_BOLD).fontSize(10).text(`${el.label}: `, x, doc.y, { continued: true, width });
|
|
95
|
+
doc.font(FONT_NORMAL).text(optionParts.join(' '));
|
|
96
|
+
doc.moveDown(0.2);
|
|
97
|
+
};
|
|
98
|
+
const renderCompositeBlock = (doc, el, cell) => {
|
|
99
|
+
const x = cell?.x ?? MARGIN;
|
|
100
|
+
const width = cell?.width ?? contentWidthOf(doc);
|
|
101
|
+
doc.font(FONT_BOLD).fontSize(10).text(`${el.label}:`, x, doc.y, { width });
|
|
102
|
+
for (const subField of el.subFields) {
|
|
103
|
+
const val = subField.value ?? subField.placeholder ?? EMPTY_FIELD;
|
|
104
|
+
doc.font(FONT_BOLD).text(` ${subField.label}: `, x, doc.y, { continued: true, width });
|
|
105
|
+
doc.font(FONT_NORMAL).text(val);
|
|
106
|
+
}
|
|
107
|
+
doc.moveDown(0.2);
|
|
108
|
+
};
|
|
109
|
+
const renderImage = (doc, el, cell) => {
|
|
110
|
+
const x = cell?.x ?? MARGIN;
|
|
111
|
+
const width = cell?.width ?? contentWidthOf(doc);
|
|
112
|
+
try {
|
|
113
|
+
const imgWidth = Math.min(el.width, width);
|
|
114
|
+
const ratio = el.width > 0 ? imgWidth / el.width : 1;
|
|
115
|
+
const contentBottom = getContentBottom(doc);
|
|
116
|
+
const maxImgHeight = doc.page.height - doc.page.margins.top - doc.page.margins.bottom;
|
|
117
|
+
const imgHeight = Math.min(Math.round(el.height * ratio), maxImgHeight);
|
|
118
|
+
doc.font(FONT_BOLD).fontSize(10);
|
|
119
|
+
const labelHeight = doc.currentLineHeight(true) * 1.1;
|
|
120
|
+
if (doc.y + labelHeight + imgHeight > contentBottom) {
|
|
121
|
+
addPageSameSize(doc);
|
|
122
|
+
}
|
|
123
|
+
doc.text(`${el.label}:`, x, doc.y, { width }).moveDown(0.1);
|
|
124
|
+
const imageY = doc.y;
|
|
125
|
+
doc.image(el.buffer, x, imageY, { width: imgWidth, height: imgHeight });
|
|
126
|
+
doc.y = imageY + imgHeight;
|
|
127
|
+
}
|
|
128
|
+
catch {
|
|
129
|
+
doc.font(FONT_BOLD).fontSize(10).text(`${el.label}:`, x, doc.y, { width });
|
|
130
|
+
doc.font(FONT_NORMAL).text('[image]', x, doc.y, { width });
|
|
131
|
+
}
|
|
132
|
+
doc.moveDown(0.3);
|
|
133
|
+
};
|
|
134
|
+
const drawTableRow = (doc, values, y, bold, colWidth) => {
|
|
135
|
+
doc.font(bold ? FONT_BOLD : FONT_NORMAL).fontSize(9);
|
|
136
|
+
values.forEach((val, i) => {
|
|
137
|
+
const x = MARGIN + i * colWidth;
|
|
138
|
+
doc.rect(x, y, colWidth, TABLE_ROW_HEIGHT).stroke();
|
|
139
|
+
doc.text(val, x + TABLE_CELL_PAD, y + TABLE_CELL_PAD, {
|
|
140
|
+
width: colWidth - TABLE_CELL_PAD * 2,
|
|
141
|
+
height: TABLE_ROW_HEIGHT - TABLE_CELL_PAD * 2,
|
|
142
|
+
ellipsis: true,
|
|
143
|
+
lineBreak: false,
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
const renderTable = (doc, el) => {
|
|
148
|
+
if (el.headers.length === 0)
|
|
149
|
+
return;
|
|
150
|
+
const colWidth = contentWidthOf(doc) / el.headers.length;
|
|
151
|
+
let y = doc.y;
|
|
152
|
+
drawTableRow(doc, el.headers, y, true, colWidth);
|
|
153
|
+
y += TABLE_ROW_HEIGHT;
|
|
154
|
+
const displayRows = el.rows.length > 0 ? el.rows : [el.headers.map(() => '')];
|
|
155
|
+
for (const row of displayRows) {
|
|
156
|
+
if (y + TABLE_ROW_HEIGHT > getContentBottom(doc)) {
|
|
157
|
+
addPageSameSize(doc);
|
|
158
|
+
y = getContentTop(doc);
|
|
159
|
+
}
|
|
160
|
+
drawTableRow(doc, row, y, false, colWidth);
|
|
161
|
+
y += TABLE_ROW_HEIGHT;
|
|
162
|
+
}
|
|
163
|
+
doc.y = y;
|
|
164
|
+
doc.moveDown(0.5);
|
|
165
|
+
};
|
|
166
|
+
let serializeElement;
|
|
167
|
+
const renderGridRow = (doc, el) => {
|
|
168
|
+
const { cells, columnCount } = el;
|
|
169
|
+
const baseColWidth = contentWidthOf(doc) / columnCount;
|
|
170
|
+
const estimatedRowHeight = Math.max(TABLE_ROW_HEIGHT, ...cells.map((cell) => cell.content.reduce((sum, elem) => sum + estimateElementHeight(elem), 0)));
|
|
171
|
+
if (doc.y + estimatedRowHeight > getContentBottom(doc)) {
|
|
172
|
+
addPageSameSize(doc);
|
|
173
|
+
}
|
|
174
|
+
let rowStartY = doc.y;
|
|
175
|
+
let maxEndY = rowStartY;
|
|
176
|
+
let pageBreakOccurred = false;
|
|
177
|
+
for (const cell of cells) {
|
|
178
|
+
const colX = MARGIN + baseColWidth * cell.columnIndex;
|
|
179
|
+
const cellContentWidth = Math.max(40, baseColWidth * cell.colSpan - GRID_CELL_PAD);
|
|
180
|
+
doc.y = pageBreakOccurred ? maxEndY : rowStartY;
|
|
181
|
+
for (const elem of cell.content) {
|
|
182
|
+
serializeElement(doc, elem, { x: colX, width: cellContentWidth });
|
|
183
|
+
}
|
|
184
|
+
if (!pageBreakOccurred && doc.y < rowStartY) {
|
|
185
|
+
pageBreakOccurred = true;
|
|
186
|
+
rowStartY = doc.y;
|
|
187
|
+
maxEndY = doc.y;
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
maxEndY = Math.max(maxEndY, doc.y);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
doc.y = maxEndY;
|
|
194
|
+
doc.moveDown(0.2);
|
|
195
|
+
};
|
|
196
|
+
serializeElement = (doc, el, cell) => {
|
|
197
|
+
switch (el.kind) {
|
|
198
|
+
case 'title':
|
|
199
|
+
return renderTitle(doc, el, cell);
|
|
200
|
+
case 'subtitle':
|
|
201
|
+
return renderSubtitle(doc, el, cell);
|
|
202
|
+
case 'heading':
|
|
203
|
+
return renderHeading(doc, el, cell);
|
|
204
|
+
case 'fieldRow':
|
|
205
|
+
return renderFieldRow(doc, el, cell);
|
|
206
|
+
case 'checkboxRow':
|
|
207
|
+
return renderCheckboxRow(doc, el, cell);
|
|
208
|
+
case 'compositeBlock':
|
|
209
|
+
return renderCompositeBlock(doc, el, cell);
|
|
210
|
+
case 'image':
|
|
211
|
+
return renderImage(doc, el, cell);
|
|
212
|
+
case 'table':
|
|
213
|
+
return renderTable(doc, el);
|
|
214
|
+
case 'gridRow':
|
|
215
|
+
return renderGridRow(doc, el);
|
|
216
|
+
case 'spacer':
|
|
217
|
+
doc.moveDown(0.5);
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
const serializeElements = (doc, elements) => {
|
|
221
|
+
for (const el of elements)
|
|
222
|
+
serializeElement(doc, el);
|
|
223
|
+
};
|
|
224
|
+
const scaledSurveyDocImageSize = (doc, image) => {
|
|
225
|
+
const width = Math.min(image.width, contentWidthOf(doc));
|
|
226
|
+
const height = image.height * (width / image.width);
|
|
227
|
+
return { width, height };
|
|
228
|
+
};
|
|
229
|
+
const drawSurveyDocImage = (doc, image, y) => {
|
|
230
|
+
try {
|
|
231
|
+
const { width, height } = scaledSurveyDocImageSize(doc, image);
|
|
232
|
+
const x = MARGIN + (contentWidthOf(doc) - width) / 2;
|
|
233
|
+
doc.image(image.buffer, x, y, { width, height });
|
|
234
|
+
}
|
|
235
|
+
catch {
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
const drawQrCodeOnFirstPage = (doc, qrCodeImage) => {
|
|
239
|
+
if (!qrCodeImage?.length) {
|
|
240
|
+
return doc.y;
|
|
241
|
+
}
|
|
242
|
+
try {
|
|
243
|
+
const x = doc.page.width - doc.page.margins.right - QR_SIZE_PT;
|
|
244
|
+
const y = Math.max(doc.y, doc.page.margins.top, QR_MARGIN_FROM_EDGE_PT);
|
|
245
|
+
doc.image(qrCodeImage, x, y, { width: QR_SIZE_PT, height: QR_SIZE_PT });
|
|
246
|
+
return y + QR_SIZE_PT;
|
|
247
|
+
}
|
|
248
|
+
catch {
|
|
249
|
+
return doc.y;
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
const drawPageDecorations = (doc, pageIndex, headerImage, footerImage, headerOnFirstPageOnly) => {
|
|
253
|
+
if (headerImage && (!headerOnFirstPageOnly || pageIndex === 0)) {
|
|
254
|
+
drawSurveyDocImage(doc, headerImage, surveyDocImages_1.DOC_PAGE_EDGE_MARGIN_PT);
|
|
255
|
+
}
|
|
256
|
+
if (footerImage) {
|
|
257
|
+
const { height } = scaledSurveyDocImageSize(doc, footerImage);
|
|
258
|
+
const footerY = doc.page.height - surveyDocImages_1.DOC_PAGE_EDGE_MARGIN_PT - height;
|
|
259
|
+
drawSurveyDocImage(doc, footerImage, footerY);
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
const generateSurveyPdf = async (options) => {
|
|
263
|
+
const pageNumbering = (0, surveyDocImages_1.isPageNumberingEnabled)(options);
|
|
264
|
+
const renderer = new PdfSurveyDocRenderer_1.PdfSurveyDocRenderer();
|
|
265
|
+
const { sections, surveyName } = await (0, SurveyDocWalker_1.walkSurvey)(options, renderer);
|
|
266
|
+
const firstOrientation = sections[0]?.orientation ?? options.orientation ?? 'portrait';
|
|
267
|
+
const orientations = sections.length > 0 ? sections.map((s) => s.orientation) : [firstOrientation];
|
|
268
|
+
const maxContentWidth = Math.max(...orientations.map((o) => contentWidthFor(o)));
|
|
269
|
+
const { headerImage, footerImage } = await (0, surveyDocImages_1.fetchSurveyDocImages)(options, { maxWidth: maxContentWidth });
|
|
270
|
+
const headerOnFirstPageOnly = (0, surveyDocImages_1.isHeaderOnFirstPageOnly)(options);
|
|
271
|
+
const headerHeight = headerImage?.height ?? 0;
|
|
272
|
+
const footerHeight = footerImage?.height ?? 0;
|
|
273
|
+
const topMargin = headerImage && !headerOnFirstPageOnly
|
|
274
|
+
? surveyDocImages_1.DOC_PAGE_EDGE_MARGIN_PT + headerHeight + surveyDocImages_1.DOC_HEADER_FOOTER_GAP_PT
|
|
275
|
+
: surveyDocImages_1.DOC_PAGE_EDGE_MARGIN_PT;
|
|
276
|
+
const bottomMargin = surveyDocImages_1.DOC_PAGE_EDGE_MARGIN_PT + footerHeight + (footerHeight > 0 ? surveyDocImages_1.DOC_HEADER_FOOTER_GAP_PT : 0);
|
|
277
|
+
const pageMargins = {
|
|
278
|
+
top: topMargin,
|
|
279
|
+
bottom: bottomMargin,
|
|
280
|
+
left: MARGIN,
|
|
281
|
+
right: MARGIN,
|
|
282
|
+
};
|
|
283
|
+
return new Promise((resolve, reject) => {
|
|
284
|
+
const doc = new pdfkit_1.default({
|
|
285
|
+
size: pageSizeFor(firstOrientation),
|
|
286
|
+
margins: pageMargins,
|
|
287
|
+
bufferPages: pageNumbering,
|
|
288
|
+
autoFirstPage: true,
|
|
289
|
+
});
|
|
290
|
+
const chunks = [];
|
|
291
|
+
let pageIndex = 0;
|
|
292
|
+
doc.on('data', (chunk) => chunks.push(chunk));
|
|
293
|
+
doc.on('end', () => resolve({ buffer: Buffer.concat(chunks), surveyName }));
|
|
294
|
+
doc.on('error', reject);
|
|
295
|
+
doc.on('pageAdded', () => {
|
|
296
|
+
pageIndex++;
|
|
297
|
+
drawPageDecorations(doc, pageIndex, headerImage, footerImage, headerOnFirstPageOnly);
|
|
298
|
+
});
|
|
299
|
+
drawPageDecorations(doc, 0, headerImage, footerImage, headerOnFirstPageOnly);
|
|
300
|
+
if (headerImage && headerOnFirstPageOnly) {
|
|
301
|
+
doc.y = surveyDocImages_1.DOC_PAGE_EDGE_MARGIN_PT + headerImage.height + surveyDocImages_1.DOC_HEADER_FOOTER_GAP_PT;
|
|
302
|
+
}
|
|
303
|
+
if (options.qrCodeImage) {
|
|
304
|
+
const yBeforeQr = doc.y;
|
|
305
|
+
const qrBottom = drawQrCodeOnFirstPage(doc, options.qrCodeImage);
|
|
306
|
+
if (qrBottom > yBeforeQr) {
|
|
307
|
+
doc.y = Math.max(doc.y, qrBottom + surveyDocImages_1.DOC_HEADER_FOOTER_GAP_PT);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
for (let i = 0; i < sections.length; i++) {
|
|
311
|
+
const section = sections[i];
|
|
312
|
+
if (i > 0) {
|
|
313
|
+
doc.addPage({ size: pageSizeFor(section.orientation), margins: pageMargins });
|
|
314
|
+
}
|
|
315
|
+
serializeElements(doc, section.elements);
|
|
316
|
+
}
|
|
317
|
+
if (pageNumbering) {
|
|
318
|
+
const range = doc.bufferedPageRange();
|
|
319
|
+
const totalPages = range.count;
|
|
320
|
+
for (let i = 1; i < totalPages; i++) {
|
|
321
|
+
doc.switchToPage(range.start + i);
|
|
322
|
+
const savedBottomMargin = doc.page.margins.bottom;
|
|
323
|
+
doc.page.margins.bottom = 0;
|
|
324
|
+
doc
|
|
325
|
+
.font(FONT_NORMAL)
|
|
326
|
+
.fontSize(9)
|
|
327
|
+
.fillColor(COLOR_DEFAULT)
|
|
328
|
+
.text(`${i + 1} of ${totalPages}`, MARGIN, doc.page.height - PAGE_NUMBER_BOTTOM_OFFSET, {
|
|
329
|
+
width: contentWidthOf(doc),
|
|
330
|
+
align: 'right',
|
|
331
|
+
});
|
|
332
|
+
doc.page.margins.bottom = savedBottomMargin;
|
|
333
|
+
}
|
|
334
|
+
doc.flushPages();
|
|
335
|
+
}
|
|
336
|
+
doc.end();
|
|
337
|
+
});
|
|
338
|
+
};
|
|
339
|
+
exports.SurveyPdfGenerator = {
|
|
340
|
+
generateSurveyPdf,
|
|
341
|
+
};
|
|
342
|
+
//# sourceMappingURL=SurveyPdfGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SurveyPdfGenerator.js","sourceRoot":"","sources":["../../../../src/service/survey/pdfExport/SurveyPdfGenerator.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAgC;AAEhC,kEAOqC;AAErC,kEAAyD;AAEzD,iEAA6D;AAa7D,MAAM,WAAW,GAAG,WAAW,CAAA;AAC/B,MAAM,SAAS,GAAG,gBAAgB,CAAA;AAClC,MA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AAM,iBAAiB,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAA;gBACjD,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAA;gBAC3B,GAAG;qBACA,IAAI,CAAC,WAAW,CAAC;qBACjB,QAAQ,CAAC,CAAC,CAAC;qBACX,SAAS,CAAC,aAAa,CAAC;qBACxB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,UAAU,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,yBAAyB,EAAE;oBACtF,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC;oBAC1B,KAAK,EAAE,OAAO;iBACf,CAAC,CAAA;gBACJ,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,iBAAiB,CAAA;YAC7C,CAAC;YACD,GAAG,CAAC,UAAU,EAAE,CAAA;QAClB,CAAC;QAED,GAAG,CAAC,GAAG,EAAE,CAAA;IACX,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAEY,QAAA,kBAAkB,GAAG;IAChC,iBAAiB;CAClB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PdfSurveyDocRenderer = exports.SurveyPdfGenerator = void 0;
|
|
4
|
+
var SurveyPdfGenerator_1 = require("./SurveyPdfGenerator");
|
|
5
|
+
Object.defineProperty(exports, "SurveyPdfGenerator", { enumerable: true, get: function () { return SurveyPdfGenerator_1.SurveyPdfGenerator; } });
|
|
6
|
+
var PdfSurveyDocRenderer_1 = require("./PdfSurveyDocRenderer");
|
|
7
|
+
Object.defineProperty(exports, "PdfSurveyDocRenderer", { enumerable: true, get: function () { return PdfSurveyDocRenderer_1.PdfSurveyDocRenderer; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/service/survey/pdfExport/index.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAE3B,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.get = void 0;
|
|
4
|
+
const arena_core_1 = require("@openforis/arena-core");
|
|
5
|
+
const repository_1 = require("../../repository");
|
|
6
|
+
const _initializeUser = async (user) => {
|
|
7
|
+
let userUpdated = {
|
|
8
|
+
...user,
|
|
9
|
+
authGroups: await repository_1.AuthGroupRepository.getMany({ userUuid: user.uuid }),
|
|
10
|
+
};
|
|
11
|
+
if (user.status === arena_core_1.UserStatus.INVITED) {
|
|
12
|
+
const expired = !(await repository_1.UserResetPasswordRepository.hasValidResetPassword({ userUuid: user.uuid }));
|
|
13
|
+
userUpdated = {
|
|
14
|
+
...userUpdated,
|
|
15
|
+
invitation: {
|
|
16
|
+
expired,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
return userUpdated;
|
|
21
|
+
};
|
|
22
|
+
const get = async (options) => {
|
|
23
|
+
const user = await repository_1.UserRepository.get(options);
|
|
24
|
+
if (user)
|
|
25
|
+
return _initializeUser(user);
|
|
26
|
+
return null;
|
|
27
|
+
};
|
|
28
|
+
exports.get = get;
|
|
29
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/service/user/get.ts"],"names":[],"mappings":";;;AAAA,sDAAqE;AACrE,iDAAmG;AAEnG,MAAM,eAAe,GAAG,KAAK,EAAE,IAAU,EAAiB,EAAE;IAE1D,IAAI,WAAW,GAAG;QAChB,GAAG,IAAI;QACP,UAAU,EAAE,MAAM,gCAAmB,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;KACvE,CAAA;IACD,IAAI,IAAI,CAAC,MAAM,KAAK,uBAAU,CAAC,OAAO,EAAE,CAAC;QACvC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,wCAA2B,CAAC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;QACnG,WAAW,GAAG;YACZ,GAAG,WAAW;YACd,UAAU,EAAE;gBACV,OAAO;aACR;SACF,CAAA;IACH,CAAC;IAED,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA;AAEM,MAAM,GAAG,GAAuB,KAAK,EAAE,OAAO,EAAE,EAAE;IACvD,MAAM,IAAI,GAAG,MAAM,2BAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAC9C,IAAI,IAAI;QAAE,OAAO,eAAe,CAAC,IAAI,CAAC,CAAA;IACtC,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAJY,QAAA,GAAG,OAIf"}
|