@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,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SurveyDocxGenerator = void 0;
|
|
4
|
+
const docx_1 = require("docx");
|
|
5
|
+
const surveyDocImages_1 = require("../docExport/surveyDocImages");
|
|
6
|
+
const printOrientation_1 = require("../docExport/printOrientation");
|
|
7
|
+
const SurveyDocWalker_1 = require("../docExport/SurveyDocWalker");
|
|
8
|
+
const DocxSurveyDocRenderer_1 = require("./DocxSurveyDocRenderer");
|
|
9
|
+
const docxReadOnlyConverter_1 = require("./docxReadOnlyConverter");
|
|
10
|
+
const PAGE_NUMBER_ROW_TWIPS = 240;
|
|
11
|
+
const QR_CODE_SIZE_PX = 96;
|
|
12
|
+
const buildDocxImageParagraph = (image, spacingAfter) => new docx_1.Paragraph({
|
|
13
|
+
alignment: docx_1.AlignmentType.CENTER,
|
|
14
|
+
...(spacingAfter === undefined ? {} : { spacing: { after: spacingAfter } }),
|
|
15
|
+
children: [
|
|
16
|
+
new docx_1.ImageRun({
|
|
17
|
+
data: image.buffer,
|
|
18
|
+
type: image.docxType,
|
|
19
|
+
transformation: {
|
|
20
|
+
width: image.width,
|
|
21
|
+
height: image.height,
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
],
|
|
25
|
+
});
|
|
26
|
+
const buildQrCodeParagraph = (qrCodeImage) => {
|
|
27
|
+
if (!qrCodeImage?.length) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return new docx_1.Paragraph({
|
|
31
|
+
alignment: docx_1.AlignmentType.RIGHT,
|
|
32
|
+
children: [
|
|
33
|
+
new docx_1.ImageRun({
|
|
34
|
+
data: qrCodeImage,
|
|
35
|
+
type: 'png',
|
|
36
|
+
transformation: {
|
|
37
|
+
width: QR_CODE_SIZE_PX,
|
|
38
|
+
height: QR_CODE_SIZE_PX,
|
|
39
|
+
},
|
|
40
|
+
}),
|
|
41
|
+
],
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
const buildPageNumberParagraph = () => new docx_1.Paragraph({
|
|
45
|
+
tabStops: [{ type: docx_1.TabStopType.RIGHT, position: docx_1.TabStopPosition.MAX }],
|
|
46
|
+
children: [new docx_1.TextRun({ children: [new docx_1.Tab(), docx_1.PageNumber.CURRENT, ' of ', docx_1.PageNumber.TOTAL_PAGES] })],
|
|
47
|
+
});
|
|
48
|
+
const buildDocxImageHeader = (image) => new docx_1.Header({ children: [buildDocxImageParagraph(image)] });
|
|
49
|
+
const buildDocxImageFooter = (image) => new docx_1.Footer({ children: [buildDocxImageParagraph(image)] });
|
|
50
|
+
const buildDocxPageNumberFooter = () => new docx_1.Footer({ children: [buildPageNumberParagraph()] });
|
|
51
|
+
const buildDocxImageAndPageNumberFooter = (image) => new docx_1.Footer({ children: [buildDocxImageParagraph(image), buildPageNumberParagraph()] });
|
|
52
|
+
const calcFooterMarginTwips = (footerImage, pageNumbering) => {
|
|
53
|
+
const imageHeight = footerImage ? (0, surveyDocImages_1.imageHeightToTwips)(footerImage.height) + surveyDocImages_1.DOCX_MARGIN_GAP_TWIPS : 0;
|
|
54
|
+
return imageHeight + (pageNumbering ? PAGE_NUMBER_ROW_TWIPS : 0);
|
|
55
|
+
};
|
|
56
|
+
const toDocxOrientation = (orientation) => orientation === 'landscape' ? docx_1.PageOrientation.LANDSCAPE : docx_1.PageOrientation.PORTRAIT;
|
|
57
|
+
const buildHeadersConfig = (headerImage, allPagesImageInHeader) => {
|
|
58
|
+
if (!allPagesImageInHeader || !headerImage)
|
|
59
|
+
return {};
|
|
60
|
+
return { default: buildDocxImageHeader(headerImage) };
|
|
61
|
+
};
|
|
62
|
+
const buildFootersConfig = (footerImage, pageNumbering, isFirstSection) => {
|
|
63
|
+
if (pageNumbering) {
|
|
64
|
+
if (footerImage) {
|
|
65
|
+
return {
|
|
66
|
+
...(isFirstSection ? { first: buildDocxImageFooter(footerImage) } : {}),
|
|
67
|
+
default: buildDocxImageAndPageNumberFooter(footerImage),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
return { default: buildDocxPageNumberFooter() };
|
|
71
|
+
}
|
|
72
|
+
if (footerImage) {
|
|
73
|
+
return { default: buildDocxImageFooter(footerImage) };
|
|
74
|
+
}
|
|
75
|
+
return {};
|
|
76
|
+
};
|
|
77
|
+
const generateSurveyDocx = async (options) => {
|
|
78
|
+
const { readOnly } = options;
|
|
79
|
+
const pageNumbering = (0, surveyDocImages_1.isPageNumberingEnabled)(options);
|
|
80
|
+
const renderer = new DocxSurveyDocRenderer_1.DocxSurveyDocRenderer();
|
|
81
|
+
const { sections, surveyName } = await (0, SurveyDocWalker_1.walkSurvey)(options, renderer);
|
|
82
|
+
const documentDefault = options.orientation ?? printOrientation_1.DEFAULT_PRINT_ORIENTATION;
|
|
83
|
+
const docSections = sections.length > 0 ? sections : [{ orientation: documentDefault, elements: [] }];
|
|
84
|
+
const { headerImage, footerImage } = await (0, surveyDocImages_1.fetchSurveyDocImages)(options);
|
|
85
|
+
const headerOnFirstPageOnly = (0, surveyDocImages_1.isHeaderOnFirstPageOnly)(options);
|
|
86
|
+
const allPagesImageInHeader = Boolean(headerImage && !headerOnFirstPageOnly);
|
|
87
|
+
const headerMarginTwips = allPagesImageInHeader ? (0, surveyDocImages_1.imageHeightToTwips)(headerImage.height) + surveyDocImages_1.DOCX_MARGIN_GAP_TWIPS : 0;
|
|
88
|
+
const footerMarginTwips = calcFooterMarginTwips(footerImage, pageNumbering);
|
|
89
|
+
const headersConfig = buildHeadersConfig(headerImage, allPagesImageInHeader);
|
|
90
|
+
const doc = new docx_1.Document({
|
|
91
|
+
styles: {
|
|
92
|
+
paragraphStyles: [
|
|
93
|
+
{
|
|
94
|
+
id: 'Normal',
|
|
95
|
+
name: 'Normal',
|
|
96
|
+
run: { font: 'Calibri', size: 22 },
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
sections: docSections.map((section, index) => {
|
|
101
|
+
const isFirstSection = index === 0;
|
|
102
|
+
const footersConfig = buildFootersConfig(footerImage, pageNumbering, isFirstSection);
|
|
103
|
+
const topMargin = surveyDocImages_1.DOCX_BASE_MARGIN_TWIPS + (isFirstSection || !headerOnFirstPageOnly ? headerMarginTwips : 0);
|
|
104
|
+
const firstSectionDecorations = [];
|
|
105
|
+
if (isFirstSection && headerImage && headerOnFirstPageOnly) {
|
|
106
|
+
firstSectionDecorations.push(buildDocxImageParagraph(headerImage, surveyDocImages_1.DOCX_MARGIN_GAP_TWIPS));
|
|
107
|
+
}
|
|
108
|
+
if (isFirstSection && options.qrCodeImage) {
|
|
109
|
+
const qrParagraph = buildQrCodeParagraph(options.qrCodeImage);
|
|
110
|
+
if (qrParagraph) {
|
|
111
|
+
firstSectionDecorations.push(qrParagraph);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const sectionChildren = [...firstSectionDecorations, ...section.elements];
|
|
115
|
+
return {
|
|
116
|
+
properties: {
|
|
117
|
+
page: {
|
|
118
|
+
size: {
|
|
119
|
+
orientation: toDocxOrientation(section.orientation),
|
|
120
|
+
},
|
|
121
|
+
margin: {
|
|
122
|
+
top: topMargin,
|
|
123
|
+
bottom: surveyDocImages_1.DOCX_BASE_MARGIN_TWIPS + footerMarginTwips,
|
|
124
|
+
left: 1080,
|
|
125
|
+
right: 1080,
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
...(pageNumbering && isFirstSection ? { titlePage: true } : {}),
|
|
129
|
+
},
|
|
130
|
+
...(Object.keys(headersConfig).length > 0 ? { headers: headersConfig } : {}),
|
|
131
|
+
...(Object.keys(footersConfig).length > 0 ? { footers: footersConfig } : {}),
|
|
132
|
+
children: sectionChildren,
|
|
133
|
+
};
|
|
134
|
+
}),
|
|
135
|
+
});
|
|
136
|
+
let buffer = await docx_1.Packer.toBuffer(doc);
|
|
137
|
+
if (readOnly) {
|
|
138
|
+
buffer = await (0, docxReadOnlyConverter_1.convertDocxToReadOnly)(buffer);
|
|
139
|
+
}
|
|
140
|
+
return { buffer, surveyName };
|
|
141
|
+
};
|
|
142
|
+
exports.SurveyDocxGenerator = {
|
|
143
|
+
generateSurveyDocx,
|
|
144
|
+
};
|
|
145
|
+
//# sourceMappingURL=SurveyDocxGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SurveyDocxGenerator.js","sourceRoot":"","sources":["../../../../src/service/survey/docxExport/SurveyDocxGenerator.ts"],"names":[],"mappings":";;;AAAA,+BAca;AAEb,kEAQqC;AACrC,oEAAyE;AAEzE,kEAAyD;AACzD,mEAA+D;AAE/D,mEAA+D;AAc/D,MAAM,qBAAqB,GAAG,GAAG,CAAA;AACjC,MAAM,eAAe,GAAG,EAAE,CAAA;AAE1B,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aAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,MAAM,GAAG,MAAM,IAAA,6CAAqB,EAAC,MAAM,CAAC,CAAA;IAC9C,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAA;AAC/B,CAAC,CAAA;AAEY,QAAA,mBAAmB,GAAG;IACjC,kBAAkB;CACnB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const convertDocxToReadOnly: (docBuffer: Buffer) => Promise<Buffer>;
|
|
@@ -0,0 +1,27 @@
|
|
|
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.convertDocxToReadOnly = void 0;
|
|
7
|
+
const jszip_1 = __importDefault(require("jszip"));
|
|
8
|
+
const settingsFilePath = 'word/settings.xml';
|
|
9
|
+
const settingsBlockCloseTag = '</w:settings>';
|
|
10
|
+
const documentProtectionTag = '<w:documentProtection w:edit="readOnly" w:enforcement="1"/>';
|
|
11
|
+
const convertDocxToReadOnly = async (docBuffer) => {
|
|
12
|
+
const zip = await jszip_1.default.loadAsync(docBuffer);
|
|
13
|
+
let settingsXml = await zip.file(settingsFilePath)?.async('string');
|
|
14
|
+
if (!settingsXml) {
|
|
15
|
+
throw new Error('settings.xml not found in the DOCX file');
|
|
16
|
+
}
|
|
17
|
+
if (settingsXml.includes(settingsBlockCloseTag)) {
|
|
18
|
+
settingsXml = settingsXml.replace(settingsBlockCloseTag, `${documentProtectionTag}${settingsBlockCloseTag}`);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
settingsXml = settingsXml.replace('>', `>${documentProtectionTag}`);
|
|
22
|
+
}
|
|
23
|
+
zip.file(settingsFilePath, settingsXml);
|
|
24
|
+
return zip.generateAsync({ type: 'nodebuffer' });
|
|
25
|
+
};
|
|
26
|
+
exports.convertDocxToReadOnly = convertDocxToReadOnly;
|
|
27
|
+
//# sourceMappingURL=docxReadOnlyConverter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docxReadOnlyConverter.js","sourceRoot":"","sources":["../../../../src/service/survey/docxExport/docxReadOnlyConverter.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,MAAM,gBAAgB,GAAG,mBAAmB,CAAA;AAC5C,MAAM,qBAAqB,GAAG,eAAe,CAAA;AAC7C,MAAM,qBAAqB,GAAG,6DAA6D,CAAA;AAEpF,MAAM,qBAAqB,GAAG,KAAK,EAAE,SAAiB,EAAmB,EAAE;IAChF,MAAM,GAAG,GAAG,MAAM,eAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;IAE5C,IAAI,WAAW,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;IAEnE,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAA;IAC5D,CAAC;IAED,IAAI,WAAW,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC;QAChD,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,qBAAqB,EAAE,GAAG,qBAAqB,GAAG,qBAAqB,EAAE,CAAC,CAAA;IAC9G,CAAC;SAAM,CAAC;QAEN,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,qBAAqB,EAAE,CAAC,CAAA;IACrE,CAAC;IAED,GAAG,CAAC,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAA;IAEvC,OAAO,GAAG,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAA;AAClD,CAAC,CAAA;AAnBY,QAAA,qBAAqB,yBAmBjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocxSurveyDocRenderer = exports.SurveyDocxGenerator = void 0;
|
|
4
|
+
var SurveyDocxGenerator_1 = require("./SurveyDocxGenerator");
|
|
5
|
+
Object.defineProperty(exports, "SurveyDocxGenerator", { enumerable: true, get: function () { return SurveyDocxGenerator_1.SurveyDocxGenerator; } });
|
|
6
|
+
var DocxSurveyDocRenderer_1 = require("./DocxSurveyDocRenderer");
|
|
7
|
+
Object.defineProperty(exports, "DocxSurveyDocRenderer", { enumerable: true, get: function () { return DocxSurveyDocRenderer_1.DocxSurveyDocRenderer; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/service/survey/docxExport/index.ts"],"names":[],"mappings":";;;AAAA,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA;AAE5B,iEAA+D;AAAtD,8HAAA,qBAAqB,OAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CheckBox, HeadingLevel, Paragraph, TextRun, type IParagraphOptions } from 'docx';
|
|
2
|
+
import type { NodeDef, NodeDefCoordinate, NodeDefEntity, NodeDefType } from '@openforis/arena-core';
|
|
3
|
+
import type { RenderContext } from './types';
|
|
4
|
+
export { EMPTY_FIELD, EMPTY_SHORT, label, getCategoryItemLabel, getCommonLabel, getBooleanValueLabel, formatNodeValue, getCoordinateLabelByField, getValueFields, getIsTableLayout, isNodeBlank, isNodeFilled, } from '../../../docExport/common';
|
|
5
|
+
export declare const SPACING_FIELD_ROW: {
|
|
6
|
+
before: number;
|
|
7
|
+
after: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const SPACING_COMPOSITE_LABEL_ROW: {
|
|
10
|
+
before: number;
|
|
11
|
+
after: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const headingForDepth: (depth: number) => (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
14
|
+
export declare const getFormHeaderLevelByDepth: (depth: number) => (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
15
|
+
export declare const formItemLabelRun: (labelText: string, trailingSpace?: boolean) => TextRun;
|
|
16
|
+
export declare const nodeDefFormItemLabelRun: (nodeDef: NodeDef<NodeDefType>, context: RenderContext) => TextRun;
|
|
17
|
+
export declare const inputLine: (text: string) => TextRun;
|
|
18
|
+
export declare const fieldRow: (fieldLabel: string, fieldPlaceholder?: string) => Paragraph;
|
|
19
|
+
export declare const valueRow: (fieldLabel: string, value: string) => Paragraph;
|
|
20
|
+
export declare const checkboxRun: (text: string, checked?: boolean) => [CheckBox, TextRun];
|
|
21
|
+
export declare const getTaxonFieldCommonProps: () => IParagraphOptions;
|
|
22
|
+
export declare const getHeadingText: (nodeDef: NodeDef<NodeDefType>, context: RenderContext) => string;
|
|
23
|
+
export declare const isEntityInDifferentPage: (cycle: string, currentPageUuid: string | undefined) => (def: NodeDefEntity) => boolean;
|
|
24
|
+
export declare const getCoordinateValueFieldLabel: (nodeDef: NodeDefCoordinate, context: RenderContext) => string;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCoordinateValueFieldLabel = exports.isEntityInDifferentPage = exports.getHeadingText = exports.getTaxonFieldCommonProps = exports.checkboxRun = exports.valueRow = exports.fieldRow = exports.inputLine = exports.nodeDefFormItemLabelRun = exports.formItemLabelRun = exports.getFormHeaderLevelByDepth = exports.headingForDepth = exports.SPACING_COMPOSITE_LABEL_ROW = exports.SPACING_FIELD_ROW = exports.isNodeFilled = exports.isNodeBlank = exports.getIsTableLayout = exports.getValueFields = exports.getCoordinateLabelByField = exports.formatNodeValue = exports.getBooleanValueLabel = exports.getCommonLabel = exports.getCategoryItemLabel = exports.label = exports.EMPTY_SHORT = exports.EMPTY_FIELD = void 0;
|
|
4
|
+
const docx_1 = require("docx");
|
|
5
|
+
const arena_core_1 = require("@openforis/arena-core");
|
|
6
|
+
const common_1 = require("../../../docExport/common");
|
|
7
|
+
var common_2 = require("../../../docExport/common");
|
|
8
|
+
Object.defineProperty(exports, "EMPTY_FIELD", { enumerable: true, get: function () { return common_2.EMPTY_FIELD; } });
|
|
9
|
+
Object.defineProperty(exports, "EMPTY_SHORT", { enumerable: true, get: function () { return common_2.EMPTY_SHORT; } });
|
|
10
|
+
Object.defineProperty(exports, "label", { enumerable: true, get: function () { return common_2.label; } });
|
|
11
|
+
Object.defineProperty(exports, "getCategoryItemLabel", { enumerable: true, get: function () { return common_2.getCategoryItemLabel; } });
|
|
12
|
+
Object.defineProperty(exports, "getCommonLabel", { enumerable: true, get: function () { return common_2.getCommonLabel; } });
|
|
13
|
+
Object.defineProperty(exports, "getBooleanValueLabel", { enumerable: true, get: function () { return common_2.getBooleanValueLabel; } });
|
|
14
|
+
Object.defineProperty(exports, "formatNodeValue", { enumerable: true, get: function () { return common_2.formatNodeValue; } });
|
|
15
|
+
Object.defineProperty(exports, "getCoordinateLabelByField", { enumerable: true, get: function () { return common_2.getCoordinateLabelByField; } });
|
|
16
|
+
Object.defineProperty(exports, "getValueFields", { enumerable: true, get: function () { return common_2.getValueFields; } });
|
|
17
|
+
Object.defineProperty(exports, "getIsTableLayout", { enumerable: true, get: function () { return common_2.getIsTableLayout; } });
|
|
18
|
+
Object.defineProperty(exports, "isNodeBlank", { enumerable: true, get: function () { return common_2.isNodeBlank; } });
|
|
19
|
+
Object.defineProperty(exports, "isNodeFilled", { enumerable: true, get: function () { return common_2.isNodeFilled; } });
|
|
20
|
+
exports.SPACING_FIELD_ROW = { before: 80, after: 80 };
|
|
21
|
+
exports.SPACING_COMPOSITE_LABEL_ROW = { before: 80, after: 40 };
|
|
22
|
+
const HEADING_LEVELS = [
|
|
23
|
+
docx_1.HeadingLevel.HEADING_1,
|
|
24
|
+
docx_1.HeadingLevel.HEADING_2,
|
|
25
|
+
docx_1.HeadingLevel.HEADING_3,
|
|
26
|
+
docx_1.HeadingLevel.HEADING_4,
|
|
27
|
+
docx_1.HeadingLevel.HEADING_5,
|
|
28
|
+
docx_1.HeadingLevel.HEADING_6,
|
|
29
|
+
];
|
|
30
|
+
const headingForDepth = (depth) => HEADING_LEVELS[Math.min(depth, HEADING_LEVELS.length - 1)];
|
|
31
|
+
exports.headingForDepth = headingForDepth;
|
|
32
|
+
const getFormHeaderLevelByDepth = (depth) => {
|
|
33
|
+
const headingMap = {
|
|
34
|
+
0: docx_1.HeadingLevel.HEADING_3,
|
|
35
|
+
1: docx_1.HeadingLevel.HEADING_4,
|
|
36
|
+
2: docx_1.HeadingLevel.HEADING_5,
|
|
37
|
+
};
|
|
38
|
+
return headingMap[Math.min(depth, 2)] ?? docx_1.HeadingLevel.HEADING_5;
|
|
39
|
+
};
|
|
40
|
+
exports.getFormHeaderLevelByDepth = getFormHeaderLevelByDepth;
|
|
41
|
+
const formItemLabelRun = (labelText, trailingSpace = true) => new docx_1.TextRun({ text: `${labelText}:${trailingSpace ? ' ' : ''}`, bold: true });
|
|
42
|
+
exports.formItemLabelRun = formItemLabelRun;
|
|
43
|
+
const nodeDefFormItemLabelRun = (nodeDef, context) => (0, exports.formItemLabelRun)(arena_core_1.NodeDefs.getLabelOrName(nodeDef, context.lang));
|
|
44
|
+
exports.nodeDefFormItemLabelRun = nodeDefFormItemLabelRun;
|
|
45
|
+
const inputLine = (text) => new docx_1.TextRun({ text, underline: {} });
|
|
46
|
+
exports.inputLine = inputLine;
|
|
47
|
+
const fieldRow = (fieldLabel, fieldPlaceholder = common_1.EMPTY_FIELD) => new docx_1.Paragraph({
|
|
48
|
+
spacing: exports.SPACING_FIELD_ROW,
|
|
49
|
+
keepLines: true,
|
|
50
|
+
children: [(0, exports.formItemLabelRun)(fieldLabel), (0, exports.inputLine)(fieldPlaceholder)],
|
|
51
|
+
});
|
|
52
|
+
exports.fieldRow = fieldRow;
|
|
53
|
+
const valueRow = (fieldLabel, value) => new docx_1.Paragraph({
|
|
54
|
+
spacing: exports.SPACING_FIELD_ROW,
|
|
55
|
+
keepLines: true,
|
|
56
|
+
children: [(0, exports.formItemLabelRun)(fieldLabel), new docx_1.TextRun({ text: value })],
|
|
57
|
+
});
|
|
58
|
+
exports.valueRow = valueRow;
|
|
59
|
+
const checkboxRun = (text, checked = false) => [
|
|
60
|
+
new docx_1.CheckBox({ checked }),
|
|
61
|
+
new docx_1.TextRun({ text: ` ${text} ` }),
|
|
62
|
+
];
|
|
63
|
+
exports.checkboxRun = checkboxRun;
|
|
64
|
+
const getTaxonFieldCommonProps = () => ({
|
|
65
|
+
spacing: { before: 0, after: 0 },
|
|
66
|
+
indent: { left: 360 },
|
|
67
|
+
keepLines: true,
|
|
68
|
+
});
|
|
69
|
+
exports.getTaxonFieldCommonProps = getTaxonFieldCommonProps;
|
|
70
|
+
const getHeadingText = (nodeDef, context) => arena_core_1.NodeDefs.getLabelOrName(nodeDef, context.lang);
|
|
71
|
+
exports.getHeadingText = getHeadingText;
|
|
72
|
+
const isEntityInDifferentPage = (cycle, currentPageUuid) => (def) => arena_core_1.NodeDefs.getPageUuid(cycle)(def) !== currentPageUuid;
|
|
73
|
+
exports.isEntityInDifferentPage = isEntityInDifferentPage;
|
|
74
|
+
const getCoordinateValueFieldLabel = (nodeDef, context) => arena_core_1.NodeDefs.getLabelOrName(nodeDef, context.lang);
|
|
75
|
+
exports.getCoordinateValueFieldLabel = getCoordinateValueFieldLabel;
|
|
76
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../src/service/survey/docxExport/renderers/attribute/common.ts"],"names":[],"mappings":";;;AAAA,+BAAyF;AAGzF,sDAAgD;AAEhD,sDAAuD;AAIvD,oDAakC;AAZhC,qGAAA,WAAW,OAAA;AACX,qGAAA,WAAW,OAAA;AACX,+FAAA,KAAK,OAAA;AACL,8GAAA,o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AAC;IACzB,IAAI,cAAO,CAAC,EAAE,IAAI,EAAE,IAAI,IAAI,MAAM,EAAE,CAAC;CACtC,CAAA;AAHY,QAAA,WAAW,eAGvB;AAEM,MAAM,wBAAwB,GAAG,GAAsB,EAAE,CAAC,CAAC;IAChE,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;IAChC,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;IACrB,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA;AAJW,QAAA,wBAAwB,4BAInC;AAIK,MAAM,cAAc,GAAG,CAAC,OAA6B,EAAE,OAAsB,EAAU,EAAE,CAC9F,qBAAQ,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;AADnC,QAAA,cAAc,kBACqB;AAEzC,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAE,eAAmC,EAAE,EAAE,CAAC,CAAC,GAAkB,EAAE,EAAE,CACpH,qBAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,eAAe,CAAA;AADzC,QAAA,uBAAuB,2BACkB;AAE/C,MAAM,4BAA4B,GAAG,CAAC,OAA0B,EAAE,OAAsB,EAAU,EAAE,CACzG,qBAAQ,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;AADnC,QAAA,4BAA4B,gCACO"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderAttributeByType = void 0;
|
|
4
|
+
const arena_core_1 = require("@openforis/arena-core");
|
|
5
|
+
const renderBoolean_1 = require("./renderBoolean");
|
|
6
|
+
const renderCode_1 = require("./renderCode");
|
|
7
|
+
const renderCoordinate_1 = require("./renderCoordinate");
|
|
8
|
+
const renderDate_1 = require("./renderDate");
|
|
9
|
+
const renderFile_1 = require("./renderFile");
|
|
10
|
+
const renderFormHeader_1 = require("./renderFormHeader");
|
|
11
|
+
const renderGeo_1 = require("./renderGeo");
|
|
12
|
+
const renderNumber_1 = require("./renderNumber");
|
|
13
|
+
const renderTaxon_1 = require("./renderTaxon");
|
|
14
|
+
const renderText_1 = require("./renderText");
|
|
15
|
+
const renderTime_1 = require("./renderTime");
|
|
16
|
+
const rendererByNodeDefType = {
|
|
17
|
+
[arena_core_1.NodeDefType.boolean]: renderBoolean_1.renderBoolean,
|
|
18
|
+
[arena_core_1.NodeDefType.code]: renderCode_1.renderCode,
|
|
19
|
+
[arena_core_1.NodeDefType.coordinate]: renderCoordinate_1.renderCoordinate,
|
|
20
|
+
[arena_core_1.NodeDefType.date]: renderDate_1.renderDate,
|
|
21
|
+
[arena_core_1.NodeDefType.time]: renderTime_1.renderTime,
|
|
22
|
+
[arena_core_1.NodeDefType.taxon]: renderTaxon_1.renderTaxon,
|
|
23
|
+
[arena_core_1.NodeDefType.file]: renderFile_1.renderFile,
|
|
24
|
+
[arena_core_1.NodeDefType.geo]: renderGeo_1.renderGeo,
|
|
25
|
+
[arena_core_1.NodeDefType.formHeader]: renderFormHeader_1.renderFormHeader,
|
|
26
|
+
[arena_core_1.NodeDefType.integer]: renderNumber_1.renderNumber,
|
|
27
|
+
[arena_core_1.NodeDefType.decimal]: renderNumber_1.renderNumber,
|
|
28
|
+
[arena_core_1.NodeDefType.text]: renderText_1.renderText,
|
|
29
|
+
};
|
|
30
|
+
const renderAttributeByType = async (args) => {
|
|
31
|
+
const renderer = rendererByNodeDefType[args.nodeDef.type] ?? renderText_1.renderText;
|
|
32
|
+
return renderer(args);
|
|
33
|
+
};
|
|
34
|
+
exports.renderAttributeByType = renderAttributeByType;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/service/survey/docxExport/renderers/attribute/index.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AAEnD,mDAA+C;AAC/C,6CAAyC;AACzC,yDAAqD;AACrD,6CAAyC;AACzC,6CAAyC;AACzC,yDAAqD;AACrD,2CAAuC;AACvC,iDAA6C;AAC7C,+CAA2C;AAC3C,6CAAyC;AACzC,6CAAyC;AAGzC,MAAM,qBAAqB,GAAoD;IAC7E,CAAC,wBAAW,CAAC,OAAO,CAAC,EAAE,6BAAa;IACpC,CAAC,wBAAW,CAAC,IAAI,CAAC,EAAE,uBAAU;IAC9B,CAAC,wBAAW,CAAC,UAAU,CAAC,EAAE,mCAAgB;IAC1C,CAAC,wBAAW,CAAC,IAAI,CAAC,EAAE,uBAAU;IAC9B,CAAC,wBAAW,CAAC,IAAI,CAAC,EAAE,uBAAU;IAC9B,CAAC,wBAAW,CAAC,KAAK,CAAC,EAAE,yBAAW;IAChC,CAAC,wBAAW,CAAC,IAAI,CAAC,EAAE,uBAAU;IAC9B,CAAC,wBAAW,CAAC,GAAG,CAAC,EAAE,qBAAS;IAC5B,CAAC,wBAAW,CAAC,UAAU,CAAC,EAAE,mCAAgB;IAC1C,CAAC,wBAAW,CAAC,OAAO,CAAC,EAAE,2BAAY;IACnC,CAAC,wBAAW,CAAC,OAAO,CAAC,EAAE,2BAAY;IACnC,CAAC,wBAAW,CAAC,IAAI,CAAC,EAAE,uBAAU;CAC/B,CAAA;AAEM,MAAM,qBAAqB,GAAG,KAAK,EAAE,IAA2B,EAAE,EAAE;IACzE,MAAM,QAAQ,GAAG,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,uBAAU,CAAA;IACvE,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAA;AACvB,CAAC,CAAA;AAHY,QAAA,qBAAqB,yBAGjC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderBoolean = void 0;
|
|
4
|
+
const docx_1 = require("docx");
|
|
5
|
+
const common_1 = require("./common");
|
|
6
|
+
const renderBoolean = async ({ nodeDef, context, node }) => {
|
|
7
|
+
const boolDef = nodeDef;
|
|
8
|
+
const hasValue = (0, common_1.isNodeFilled)(node);
|
|
9
|
+
const isTrue = hasValue && (node.value === true || node.value === 'true');
|
|
10
|
+
const yesLabel = (0, common_1.getBooleanValueLabel)(context, boolDef, true);
|
|
11
|
+
const noLabel = (0, common_1.getBooleanValueLabel)(context, boolDef, false);
|
|
12
|
+
return [
|
|
13
|
+
new docx_1.Paragraph({
|
|
14
|
+
spacing: common_1.SPACING_FIELD_ROW,
|
|
15
|
+
keepLines: true,
|
|
16
|
+
children: [
|
|
17
|
+
(0, common_1.nodeDefFormItemLabelRun)(nodeDef, context),
|
|
18
|
+
...(0, common_1.checkboxRun)(yesLabel, hasValue ? isTrue : false),
|
|
19
|
+
...(0, common_1.checkboxRun)(noLabel, hasValue ? !isTrue : false),
|
|
20
|
+
],
|
|
21
|
+
}),
|
|
22
|
+
];
|
|
23
|
+
};
|
|
24
|
+
exports.renderBoolean = renderBoolean;
|
|
25
|
+
//# sourceMappingURL=renderBoolean.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderBoolean.js","sourceRoot":"","sources":["../../../../../../src/service/survey/docxExport/renderers/attribute/renderBoolean.ts"],"names":[],"mappings":";;;AAAA,+BAAgC;AAIhC,qCAAsH;AAG/G,MAAM,aAAa,GAAsB,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnF,MAAM,OAAO,GAAG,OAAyB,CAAA;IACzC,MAAM,QAAQ,GAAG,IAAA,qBAAY,EAAC,IAAI,CAAC,CAAA;IACnC,MAAM,MAAM,GAAG,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC,CAAA;IACzE,MAAM,QAAQ,GAAG,IAAA,6BAAoB,EAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;IAC7D,MAAM,OAAO,GAAG,IAAA,6BAAoB,EAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAA;IAE7D,OAAO;QACL,IAAI,gBAAS,CAAC;YACZ,OAAO,EAAE,0BAAiB;YAC1B,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE;gBACR,IAAA,gCAAuB,EAAC,OAAO,EAAE,OAAO,CAAC;gBACzC,GAAG,IAAA,oBAAW,EAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;gBACnD,GAAG,IAAA,oBAAW,EAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;aACpD;SACF,CAAC;KACH,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,aAAa,iBAkBzB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderCode = void 0;
|
|
4
|
+
const docx_1 = require("docx");
|
|
5
|
+
const arena_core_1 = require("@openforis/arena-core");
|
|
6
|
+
const common_1 = require("./common");
|
|
7
|
+
const renderCode = async ({ nodeDef, context, node }) => {
|
|
8
|
+
const codeDef = nodeDef;
|
|
9
|
+
const { survey, lang } = context;
|
|
10
|
+
const items = survey.refData ? arena_core_1.Surveys.getCategoryItemsByNodeDef({ survey, nodeDef: codeDef }) : [];
|
|
11
|
+
const lbl = (0, common_1.label)(codeDef, lang);
|
|
12
|
+
const isCheckboxLayout = codeDef.props?.layout && Object.values(codeDef.props.layout).some((l) => l?.renderType === 'checkbox');
|
|
13
|
+
const selectedItemUuid = node ? arena_core_1.NodeValues.getItemUuid(node) : undefined;
|
|
14
|
+
const showAsCheckboxes = (isCheckboxLayout || items.length <= 8) && items.length > 0;
|
|
15
|
+
if (showAsCheckboxes) {
|
|
16
|
+
const optionRuns = items.flatMap((item) => {
|
|
17
|
+
const checked = selectedItemUuid !== undefined && item.uuid === selectedItemUuid;
|
|
18
|
+
return (0, common_1.checkboxRun)((0, common_1.getCategoryItemLabel)(item, lang), checked);
|
|
19
|
+
});
|
|
20
|
+
return [
|
|
21
|
+
new docx_1.Paragraph({
|
|
22
|
+
spacing: common_1.SPACING_FIELD_ROW,
|
|
23
|
+
keepLines: true,
|
|
24
|
+
children: [(0, common_1.nodeDefFormItemLabelRun)(codeDef, context), ...optionRuns],
|
|
25
|
+
}),
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
if (selectedItemUuid !== undefined) {
|
|
29
|
+
const selectedItem = node?.refData?.categoryItem;
|
|
30
|
+
const displayValue = selectedItem
|
|
31
|
+
? (0, common_1.getCategoryItemLabel)(selectedItem, lang)
|
|
32
|
+
: (node?.value?.code ?? selectedItemUuid);
|
|
33
|
+
return [(0, common_1.valueRow)(lbl, String(displayValue))];
|
|
34
|
+
}
|
|
35
|
+
const sizeLabel = items.length > 0 ? ` (${items.length} options)` : '';
|
|
36
|
+
return [(0, common_1.fieldRow)(lbl, `[select${sizeLabel}]`)];
|
|
37
|
+
};
|
|
38
|
+
exports.renderCode = renderCode;
|
|
39
|
+
//# sourceMappingURL=renderCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderCode.js","sourceRoot":"","sources":["../../../../../../src/service/survey/docxExport/renderers/attribute/renderCode.ts"],"names":[],"mappings":";;;AAAA,+BAAgC;AAGhC,sDAA2D;AAE3D,qCAQiB;AAGV,MAAM,UAAU,GAAsB,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IAChF,MAAM,OAAO,GAAG,OAAsB,CAAA;IACtC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;IAChC,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAO,CAAC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I,EAAE,OAAO,EAAE,YAAY,CAAA;QAChD,MAAM,YAAY,GAAG,YAAY;YAC/B,CAAC,CAAC,IAAA,6BAAoB,EAAC,YAAY,EAAE,IAAI,CAAC;YAC1C,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,IAAI,gBAAgB,CAAC,CAAA;QAC3C,OAAO,CAAC,IAAA,iBAAQ,EAAC,GAAG,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;IAC9C,CAAC;IAED,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,MAAM,WAAW,CAAC,CAAC,CAAC,EAAE,CAAA;IACtE,OAAO,CAAC,IAAA,iBAAQ,EAAC,GAAG,EAAE,UAAU,SAAS,GAAG,CAAC,CAAC,CAAA;AAChD,CAAC,CAAA;AAnCY,QAAA,UAAU,cAmCtB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderCoordinate = void 0;
|
|
4
|
+
const docx_1 = require("docx");
|
|
5
|
+
const common_1 = require("./common");
|
|
6
|
+
const renderCoordinate = async ({ nodeDef, context, node }) => {
|
|
7
|
+
const coordinateDef = nodeDef;
|
|
8
|
+
const lbl = (0, common_1.label)(coordinateDef, context.lang);
|
|
9
|
+
const hasValue = (0, common_1.isNodeFilled)(node);
|
|
10
|
+
const val = hasValue ? (node.value ?? {}) : null;
|
|
11
|
+
const valueFields = (0, common_1.getValueFields)(coordinateDef);
|
|
12
|
+
const labelByField = (0, common_1.getCoordinateLabelByField)(coordinateDef, context);
|
|
13
|
+
return [
|
|
14
|
+
new docx_1.Paragraph({ spacing: common_1.SPACING_COMPOSITE_LABEL_ROW, keepNext: true, children: [(0, common_1.formItemLabelRun)(lbl, false)] }),
|
|
15
|
+
...valueFields.map((valueField) => {
|
|
16
|
+
const fieldLabel = labelByField[valueField];
|
|
17
|
+
const fieldValue = String(val?.[valueField] ?? common_1.EMPTY_SHORT);
|
|
18
|
+
return new docx_1.Paragraph({
|
|
19
|
+
spacing: { before: 0, after: 0 },
|
|
20
|
+
indent: { left: 360 },
|
|
21
|
+
keepLines: true,
|
|
22
|
+
children: [(0, common_1.formItemLabelRun)(fieldLabel), hasValue ? new docx_1.TextRun({ text: fieldValue }) : (0, common_1.inputLine)(fieldValue)],
|
|
23
|
+
});
|
|
24
|
+
}),
|
|
25
|
+
];
|
|
26
|
+
};
|
|
27
|
+
exports.renderCoordinate = renderCoordinate;
|
|
28
|
+
//# sourceMappingURL=renderCoordinate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderCoordinate.js","sourceRoot":"","sources":["../../../../../../src/service/survey/docxExport/renderers/attribute/renderCoordinate.ts"],"names":[],"mappings":";;;AAAA,+BAAyC;AAIzC,qCASiB;AAGV,MAAM,gBAAgB,GAAsB,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACtF,MAAM,aAAa,GAAG,OAA4B,CAAA;IAClD,MAAM,GAAG,GAAG,IAAA,cAAK,EAAC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IAC9C,MAAM,QAAQ,GAAG,IAAA,qBAAY,EAAC,IAAI,CAAC,CAAA;IACnC,MAAM,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAChD,MAAM,WAAW,GAAG,IAAA,uBAAc,EAAC,aAAa,CAAC,CAAA;IACjD,MAAM,YAAY,GAAG,IAAA,kCAAyB,EAAC,aAAa,EAAE,OAAO,CAAC,CAAA;IAEtE,OAAO;QACL,IAAI,gBAAS,CAAC,EAAE,OAAO,EAAE,oCAA2B,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,IAAA,yBAAgB,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC;QACjH,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;YAChC,MAAM,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC,CAAA;YAC3C,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,oBAAW,CAAC,CAAA;YAC3D,OAAO,IAAI,gBAAS,CAAC;gBACnB,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;gBAChC,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;gBACrB,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,CAAC,IAAA,yBAAgB,EAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,cAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAS,EAAC,UAAU,CAAC,CAAC;aAC/G,CAAC,CAAA;QACJ,CAAC,CAAC;KACH,CAAA;AACH,CAAC,CAAA;AArBY,QAAA,gBAAgB,oBAqB5B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderDate = void 0;
|
|
4
|
+
const docx_1 = require("docx");
|
|
5
|
+
const common_1 = require("./common");
|
|
6
|
+
const renderDate = async ({ nodeDef, context, node }) => {
|
|
7
|
+
const lbl = (0, common_1.label)(nodeDef, context.lang);
|
|
8
|
+
if ((0, common_1.isNodeFilled)(node)) {
|
|
9
|
+
return [(0, common_1.valueRow)(lbl, (0, common_1.formatNodeValue)(nodeDef, context, node))];
|
|
10
|
+
}
|
|
11
|
+
return [
|
|
12
|
+
new docx_1.Paragraph({
|
|
13
|
+
spacing: common_1.SPACING_FIELD_ROW,
|
|
14
|
+
keepLines: true,
|
|
15
|
+
children: [
|
|
16
|
+
(0, common_1.nodeDefFormItemLabelRun)(nodeDef, context),
|
|
17
|
+
new docx_1.TextRun({ text: 'DD', underline: {} }),
|
|
18
|
+
new docx_1.TextRun({ text: ' / ' }),
|
|
19
|
+
new docx_1.TextRun({ text: 'MM', underline: {} }),
|
|
20
|
+
new docx_1.TextRun({ text: ' / ' }),
|
|
21
|
+
new docx_1.TextRun({ text: 'YYYY', underline: {} }),
|
|
22
|
+
],
|
|
23
|
+
}),
|
|
24
|
+
];
|
|
25
|
+
};
|
|
26
|
+
exports.renderDate = renderDate;
|
|
27
|
+
//# sourceMappingURL=renderDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderDate.js","sourceRoot":"","sources":["../../../../../../src/service/survey/docxExport/renderers/attribute/renderDate.ts"],"names":[],"mappings":";;;AAAA,+BAAyC;AAEzC,qCAAqH;AAG9G,MAAM,UAAU,GAAsB,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IAChF,MAAM,GAAG,GAAG,IAAA,cAAK,EAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IACxC,IAAI,IAAA,qBAAY,EAAC,IAAI,CAAC,EAAE,CAAC;QACvB,OAAO,CAAC,IAAA,iBAAQ,EAAC,GAAG,EAAE,IAAA,wBAAe,EAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACjE,CAAC;IAED,OAAO;QACL,IAAI,gBAAS,CAAC;YACZ,OAAO,EAAE,0BAAiB;YAC1B,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE;gBACR,IAAA,gCAAuB,EAAC,OAAO,EAAE,OAAO,CAAC;gBACzC,IAAI,cAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;gBAC1C,IAAI,cAAO,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;gBAC5B,IAAI,cAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;gBAC1C,IAAI,cAAO,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;gBAC5B,IAAI,cAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;aAC7C;SACF,CAAC;KACH,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,UAAU,cAoBtB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderFile = void 0;
|
|
4
|
+
const docx_1 = require("docx");
|
|
5
|
+
const arena_core_1 = require("@openforis/arena-core");
|
|
6
|
+
const common_1 = require("./common");
|
|
7
|
+
const renderImage_1 = require("./renderImage");
|
|
8
|
+
const getFileNameToDisplay = (node) => node
|
|
9
|
+
? (arena_core_1.NodeValues.getFileNameCalculated(node) ?? arena_core_1.NodeValues.getFileName(node) ?? '[attached file]')
|
|
10
|
+
: '[attached file]';
|
|
11
|
+
const renderFilePlaceholder = (nodeDef, context) => [
|
|
12
|
+
new docx_1.Paragraph({
|
|
13
|
+
spacing: common_1.SPACING_FIELD_ROW,
|
|
14
|
+
keepLines: true,
|
|
15
|
+
children: [
|
|
16
|
+
(0, common_1.nodeDefFormItemLabelRun)(nodeDef, context),
|
|
17
|
+
new docx_1.TextRun({ text: '[file attachment]', italics: true, color: '888888' }),
|
|
18
|
+
],
|
|
19
|
+
}),
|
|
20
|
+
];
|
|
21
|
+
const tryRenderImageFile = async ({ context, nodeDef, node, limits, }) => {
|
|
22
|
+
const { fileProvider, lang } = context;
|
|
23
|
+
const lbl = (0, common_1.label)(nodeDef, lang);
|
|
24
|
+
const fileNameToDisplay = getFileNameToDisplay(node);
|
|
25
|
+
if (!fileProvider)
|
|
26
|
+
return null;
|
|
27
|
+
const fileUuid = arena_core_1.NodeValues.getFileUuid(node);
|
|
28
|
+
if (!fileUuid)
|
|
29
|
+
return null;
|
|
30
|
+
try {
|
|
31
|
+
const fileData = await fileProvider(fileUuid);
|
|
32
|
+
const fileName = arena_core_1.NodeValues.getFileName(node) ?? fileUuid;
|
|
33
|
+
const imageParagraphs = (0, renderImage_1.renderImage)(fileName, lbl, fileData, limits);
|
|
34
|
+
return imageParagraphs ?? [(0, common_1.valueRow)(lbl, fileNameToDisplay)];
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return [(0, common_1.valueRow)(lbl, fileNameToDisplay)];
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const renderFile = async ({ nodeDef, context, node, limits }) => {
|
|
41
|
+
const lbl = (0, common_1.label)(nodeDef, context.lang);
|
|
42
|
+
if ((0, common_1.isNodeBlank)(node)) {
|
|
43
|
+
if (context.record) {
|
|
44
|
+
return [(0, common_1.valueRow)(lbl, '')];
|
|
45
|
+
}
|
|
46
|
+
return renderFilePlaceholder(nodeDef, context);
|
|
47
|
+
}
|
|
48
|
+
const nodeDefFile = nodeDef;
|
|
49
|
+
if (nodeDefFile.props?.fileType === 'image') {
|
|
50
|
+
const imageParagraphs = await tryRenderImageFile({ nodeDef, context, node: node, limits });
|
|
51
|
+
if (imageParagraphs) {
|
|
52
|
+
return imageParagraphs;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return [(0, common_1.valueRow)(lbl, getFileNameToDisplay(node))];
|
|
56
|
+
};
|
|
57
|
+
exports.renderFile = renderFile;
|
|
58
|
+
//# sourceMappingURL=renderFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderFile.js","sourceRoot":"","sources":["../../../../../../src/service/survey/docxExport/renderers/attribute/renderFile.ts"],"names":[],"mappings":";;;AAAA,+BAAyC;AAEzC,sDAAkD;AAElD,qCAAmG;AACnG,+CAA2C;AAG3C,MAAM,oBAAoB,GAAG,CAAC,IAA+C,EAAU,EAAE,CACvF,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exports.renderFormHeader = void 0;
|
|
4
|
+
const docx_1 = require("docx");
|
|
5
|
+
const common_1 = require("./common");
|
|
6
|
+
const renderFormHeader = async ({ nodeDef, context, depth }) => [
|
|
7
|
+
new docx_1.Paragraph({
|
|
8
|
+
text: (0, common_1.getHeadingText)(nodeDef, context),
|
|
9
|
+
heading: (0, common_1.getFormHeaderLevelByDepth)(depth),
|
|
10
|
+
spacing: { before: 200, after: 100 },
|
|
11
|
+
}),
|
|
12
|
+
];
|
|
13
|
+
exports.renderFormHeader = renderFormHeader;
|
|
14
|
+
//# sourceMappingURL=renderFormHeader.js.map
|