@smartdcc/duis-templates 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/load.js +4 -5
- package/dist/load.js.map +1 -1
- package/dist/search.js +2 -3
- package/dist/search.js.map +1 -1
- package/dist/tariff.dto.js +1 -2
- package/dist/tariff.dto.js.map +1 -1
- package/dist/tariff.is.d.ts +5 -5
- package/dist/tariff.is.d.ts.map +1 -1
- package/dist/tariff.is.js +11 -11
- package/dist/tariff.is.js.map +1 -1
- package/dist/tariff.js +3 -4
- package/dist/tariff.js.map +1 -1
- package/package.json +13 -13
- package/templates/11.1_UPDATE_FIRMWARE_REQUEST_DUIS.XML +39 -0
- package/templates/11.4_UPDATE_PPMID_FIRMWARE_REQUEST_DUIS.XML +39 -0
- package/templates/12.1_REQUEST_WAN_MATRIX_ADDRESS_REQUEST_DUIS.XML +40 -0
- package/templates/12.2_DEVICE_PRE_NOTIFICATION_REQUEST_DUIS.XML +1 -1
- package/templates/{ECS42_7.1_REQUEST_DUIS.XML → 5.2_READ_SCHEDULE_REQUEST_DUIS.XML} +8 -8
- package/templates/5.3_DELETE_SCHEDULE_REQUEST_DUIS.XML +37 -0
- package/templates/8.13_RETURN_LOCAL_COMMAND_RESPONSE_CS06_REQUEST_DUIS.XML +1 -1
- package/templates/8.14.1_COMMUNICATIONS_HUB_STATUS_UPDATE_INSTALL_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/8.14.2_COMMUNICATIONS_HUB_STATUS_UPDATE_INSTALL_NO_SM_WAN_REQUEST_DUIS.XML +1 -1
- package/templates/8.14.3_COMMUNICATIONS_HUB_STATUS_UPDATE_FAULT_RETURN_REQUEST_DUIS.XML +1 -1
- package/templates/8.14.4_COMMUNICATIONS_HUB_STATUS_UPDATE_NO_FAULT_RETURN_REQUEST_DUIS.XML +1 -1
- package/templates/8.2_READ_INVENTORY_REQUEST_DUIS.XML +1 -1
- package/templates/8.3_DECOMMISSION_DEVICE_REQUEST_DUIS.XML +1 -1
- package/templates/8.4_UPDATE_INVENTORY_REQUEST_DUIS.XML +1 -1
- package/templates/8.6_SERVICE_OPTIN_REQUEST_DUIS.XML +1 -1
- package/templates/CCS01_8.11_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CCS02_8.11_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CCS03_8.12.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CCS05CCS04_8.9_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CCS06_8.9_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CCS07_8.9_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS01a_2.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS01b_2.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS02aMAC_6.24.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS02bACBByACB_8.5_SUCCESS_REQUEST_DUIS.XML +2 -2
- package/templates/CS02bNOByNOHandover_6.21_SUCCESS_REQUEST_DUIS.XML +3 -3
- package/templates/CS02bNOByNO_6.15.1_SUCCESS_REQUEST_DUIS.XML +3 -3
- package/templates/CS02bSupplierBySupplierHandover_6.21_SUCCESS_REQUEST_DUIS.XML +4 -4
- package/templates/CS02bSupplierBySupplier_6.15.1_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +4 -4
- package/templates/CS02bSupplierBySupplier_6.15.1_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +4 -4
- package/templates/CS02bSupplierBySupplier_6.15.1_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +4 -4
- package/templates/CS02bSupplierByTransCoS_6.23_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +4 -4
- package/templates/CS02bSupplierByTransCoS_6.23_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +4 -4
- package/templates/CS02bSupplierByTransCoS_6.23_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +4 -4
- package/templates/CS02c_6.17_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS02d_6.15.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS02e_6.24.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS02fMAC_6.24.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS02gLoadControllerBySupplier_6.15.1_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +3 -3
- package/templates/CS02gLoadControllerBySupplier_6.15.1_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +3 -3
- package/templates/CS02gLoadControllerBySupplier_6.15.1_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +3 -3
- package/templates/CS03A1_8.7.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS03A2Critical_8.7.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS03A2NonCritical_8.7.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS03B_8.7.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS03CCritical_8.7.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS03CNonCritical_8.7.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS04ACCritical_8.8.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS04ACNonCritical_8.8.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS04B_8.8.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS06_11.3_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS06_11.3_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS06_11.3_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS07_8.9_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS08_11.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS10a_6.13_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS10b_6.13_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/CS11_3.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/DBCH01_6.31_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/DBCH02_6.32_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/DBCH03_6.30_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/DBCH04_6.28_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/DBCH05_6.29_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01a_1.1.1_CANCELLATION_TOU_BLOCK_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01a_1.1.1_FUTURE_DATED_TOU_BLOCK_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01a_1.1.1_IMMEDIATE_BLOCK_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01a_1.1.1_IMMEDIATE_TOU_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01b_1.2.1_CANCELLATION_TOU_BLOCK_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01b_1.2.1_FUTURE_DATED_TOU_BLOCK_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01b_1.2.1_IMMEDIATE_BLOCK_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01b_1.2.1_IMMEDIATE_TOU_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01c_1.1.2_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01c_1.1.2_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01c_1.1.2_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01d_1.2.2_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01d_1.2.2_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS01d_1.2.2_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS02_1.6_CANCELLATION_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS02_1.6_FUTURE_DATED_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS02_1.6_IMMEDIATE_SINGLE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS03_1.6_CANCELLATION_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS03_1.6_FUTURE_DATED_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS03_1.6_IMMEDIATE_SINGLE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS04a_1.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS04b_1.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS05_1.7_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS07_2.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS08_2.1_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS08_2.1_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS08_2.1_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS08a_2.1_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS08a_2.1_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS08a_2.1_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS09_2.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS10_3.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS12_3.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS14_3.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS15a_3.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS15c_3.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS16_3.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS17a_4.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS17b_4.1.1_DSP_FUTURE_DATED_REQUEST_DUIS.XML +1 -1
- package/templates/ECS17b_4.1.1_REQUEST_DUIS.XML +1 -1
- package/templates/ECS17b_4.1.1_SINGLE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS17b_4.1.1_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS17c_4.16_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS17d_4.1.2_SINGLE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS17d_4.1.2_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS17e_4.1.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS18a_4.12.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS18b_4.12.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS19_4.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS20a_4.4.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS20b_4.4.2_SINGLE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS20b_4.4.2_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS20c_4.4.3_SINGLE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS20c_4.4.3_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS20d_4.4.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS21a_4.6.1_SINGLE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS21a_4.6.1_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS21a_5.1._DCC_SCHEDULED_REQUEST_DUIS.XML +1 -1
- package/templates/ECS21b_4.14_KRP_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS21b_4.14_URP_SUCCESS_REQUEST_DUIS.XML +2 -2
- package/templates/ECS21c_4.6.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS22a_4.8.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS22b_4.8.1_SINGLE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS22b_4.8.1_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS22c_4.8.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS23_4.10_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS23b_4.10_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS24_4.11.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS24b_4.11.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS25a1_6.22_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS25a2_6.22_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS25a3_6.22_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS25a_6.22_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS25b3_6.22_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS25b_6.22_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS25r1_6.2.10_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS25r2_6.2.10_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26a_4.13_SINGLE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26a_4.13_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26b_6.2.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26c_6.2.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26d_6.2.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26e_6.2.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26f_6.2.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26i_6.2.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26j_6.2.9_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26k_6.2.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26l_6.2.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26m_6.2.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS26n_6.2.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS27_4.15_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS28a_6.4.1_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS28a_6.4.1_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS28a_6.4.1_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS28b_6.4.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS29a_6.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS29b_6.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS29c_6.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS29d_6.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS29e_6.27_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS29f_6.27_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS30_6.8_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS30a_6.8_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS34_6.12_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS35a_6.13_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS35b_6.13_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS35c_6.13_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS35d_6.13_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS35e_6.13_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS35f_6.13_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS35g_6.13_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS37_6.18.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS38_7.12_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS39a_6.20.1_SINGLE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS39a_6.20.1_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS39b_6.20.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS40_6.2.7_SINGLE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS40_6.2.7_TWIN_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS42_7.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS43_7.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS44_7.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS45_7.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS46a_6.14.1_ALL_OPTIONALS_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS46a_6.14.1_SOME_OPTIONALS_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS46c_6.14.2_CANCELLATION_ALL_OPTIONALS_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS46c_6.14.2_FUTURE_DATED_ALL_OPTIONALS_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS46c_6.14.2_IMMEDIATE_SOME_OPTIONALS_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS46d_6.14.3_CANCELLATION_APC_OUTPUT_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS46d_6.14.3_FUTURE_DATED_APC_OUTPUT_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS46d_6.14.3_IMMEDIATE_ALCS_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS46d_6.14.3_IMMEDIATE_APC_INPUT_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS46d_6.14.3_IMMEDIATE_APC_OUTPUT_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS47Activate_7.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS47Deactivate_7.6_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS47Reset_7.8_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS47a_7.13_ALCS_ACTIVATE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS47a_7.13_ALCS_DEACTIVATE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS47a_7.13_APC_INPUT_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS47a_7.13_APC_OUTPUT_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS47e_7.16_APC_INPUT_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS47e_7.16_APC_OUTPUT_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS48_6.26_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS50_9.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS52_11.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS57_6.18.2_ALL_OPTIONALS_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS57_6.18.2_SOME_OPTIONALS_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS61a_7.7_ALL_OPTIONALS_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS61c_7.11_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS61d_7.14_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS61e_7.15_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS62Add_7.9_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS62Remove_7.10_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS66_4.17_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS70Commission_8.1.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS70_6.11_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS81_6.25_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/ECS82_4.18_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS01a_1.1.1_CANCELLATION_BLOCK_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS01a_1.1.1_FUTURE_DATED_BLOCK_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS01a_1.1.1_IMMEDIATE_TOU_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS01b_1.2.1_CANCELLATION_BLOCK_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS01b_1.2.1_FUTURE_DATED_BLOCK_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS01b_1.2.1_IMMEDIATE_TOU_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS02_1.6_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS02_1.6_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS02_1.6_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS03_1.6_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS03_1.6_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS03_1.6_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS04_2.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS05_2.1_CANCELLATION_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS05_2.1_FUTURE_DATED_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS05_2.1_IMMEDIATE_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS06_2.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS07_3.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS09_3.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS11_3.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS13a_4.1.1_SUCCESS_RELIABLE_GPF_REQUEST_DUIS.XML +1 -1
- package/templates/GCS13a_4.1.1_SUCCESS_RELIABLE_GSME_REQUEST_DUIS.XML +1 -1
- package/templates/GCS13a_4.1.1_SUCCESS_UNRELIABLE_REQUEST_DUIS.XML +1 -1
- package/templates/GCS13b_4.1.4_SUCCESS_RELIABLE_GPF_REQUEST_DUIS.XML +1 -1
- package/templates/GCS13b_4.1.4_SUCCESS_RELIABLE_GSME_REQUEST_DUIS.XML +1 -1
- package/templates/GCS13b_4.1.4_SUCCESS_UNRELIABLE_REQUEST_DUIS.XML +1 -1
- package/templates/GCS13c_4.1.2_SUCCESS_RELIABLE_GPF_REQUEST_DUIS.XML +1 -1
- package/templates/GCS13c_4.1.2_SUCCESS_RELIABLE_GSME_REQUEST_DUIS.XML +1 -1
- package/templates/GCS13c_4.1.2_SUCCESS_UNRELIABLE_REQUEST_DUIS.XML +1 -1
- package/templates/GCS14_4.3_SUCCESS_RELIABLE_GPF_REQUEST_DUIS.XML +1 -1
- package/templates/GCS14_4.3_SUCCESS_RELIABLE_GSME_REQUEST_DUIS.XML +1 -1
- package/templates/GCS14_4.3_SUCCESS_UNRELIABLE_REQUEST_DUIS.XML +1 -1
- package/templates/GCS15b_4.4.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS15c_4.4.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS15d_4.4.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS15e_4.4.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS16a_4.6.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS16b_4.14_KRP_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS16b_4.14_URP_SUCCESS_REQUEST_DUIS.XML +2 -2
- package/templates/GCS17_4.8.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS18_4.10_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS20_6.22_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS20r_6.2.10_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS21a_6.2.8_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS21b_4.13_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS21d_6.2.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS21e_6.2.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS21f_4.11.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS21j_6.2.9_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS21k_6.2.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS21m_6.2.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS23_6.6_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS24_6.7_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS24a_6.7_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS25_6.8_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS25a_6.8_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS28Commission_8.1.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS28_6.11_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS31_14.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS32_7.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS33_7.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS36_9.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS38_11.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS39_7.3_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS40a_1.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS40b_1.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS40c_1.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS40d_1.5_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS41_6.20.1_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS44_3.4_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS46_6.2.7_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS59_8.12.2_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS60_4.18_SUCCESS_REQUEST_DUIS.XML +1 -1
- package/templates/GCS60a_4.18_SUCCESS_RELIABLE_GPF_REQUEST_DUIS.XML +1 -1
- package/templates/GCS60a_4.18_SUCCESS_RELIABLE_GSME_REQUEST_DUIS.XML +1 -1
- package/templates/GCS60a_4.18_SUCCESS_UNRELIABLE_GSME_REQUEST_DUIS.XML +1 -1
- package/templates/GCS61_4.17_SUCCESS_REQUEST_DUIS.XML +2 -2
package/dist/load.js
CHANGED
|
@@ -21,7 +21,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
21
21
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.
|
|
24
|
+
exports.parseFileTag = parseFileTag;
|
|
25
|
+
exports.lookupGBCS = lookupGBCS;
|
|
26
|
+
exports.loadTemplate = loadTemplate;
|
|
27
|
+
exports.loadTemplates = loadTemplates;
|
|
25
28
|
const duis_parser_1 = require("@smartdcc/duis-parser");
|
|
26
29
|
const glob_1 = require("glob");
|
|
27
30
|
const node_path_1 = require("node:path");
|
|
@@ -32,11 +35,9 @@ const node_util_1 = require("node:util");
|
|
|
32
35
|
function parseFileTag(tag) {
|
|
33
36
|
return tag.match(/(?:(?<gbcs>[A-Z]+\d+(?:(?:[a-z]|[A-Z]{1,2})\d?)?|CCS05CCS04)(?<gbcsvariant>(?:[A-Z][a-z]+|NO|ACB|MAC|S)+)?_)?(?<srv>\d+(?:\.\d+)+)(?:_(?<variant>[A-Za-z_]*))?/);
|
|
34
37
|
}
|
|
35
|
-
exports.parseFileTag = parseFileTag;
|
|
36
38
|
function lookupGBCS(code) {
|
|
37
39
|
return gbcs_mapping_table_json_1.default.find((e) => e.Code === code);
|
|
38
40
|
}
|
|
39
|
-
exports.lookupGBCS = lookupGBCS;
|
|
40
41
|
async function loadTemplate(logger, fileName) {
|
|
41
42
|
let tag = (0, node_path_1.basename)(fileName, '_REQUEST_DUIS.XML');
|
|
42
43
|
if (tag.search(/_(ERROR|NOT_FOUND)/) >= 0) {
|
|
@@ -85,7 +86,6 @@ async function loadTemplate(logger, fileName) {
|
|
|
85
86
|
},
|
|
86
87
|
];
|
|
87
88
|
}
|
|
88
|
-
exports.loadTemplate = loadTemplate;
|
|
89
89
|
async function loadTemplates(options) {
|
|
90
90
|
const logger = options.logger ??
|
|
91
91
|
(() => {
|
|
@@ -97,5 +97,4 @@ async function loadTemplates(options) {
|
|
|
97
97
|
const zz = (await Promise.all(templates.map((t) => loadTemplate(logger, t)))).filter((x) => Array.isArray(x));
|
|
98
98
|
return Object.fromEntries(zz);
|
|
99
99
|
}
|
|
100
|
-
exports.loadTemplates = loadTemplates;
|
|
101
100
|
//# sourceMappingURL=load.js.map
|
package/dist/load.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.js","sourceRoot":"","sources":["../src/load.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG
|
|
1
|
+
{"version":3,"file":"load.js","sourceRoot":"","sources":["../src/load.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;AA4BH,oCAIC;AAWD,gCAEC;AAED,oCAqDC;AAiBD,sCAuBC;AA1ID,uDAO8B;AAC9B,+BAA2B;AAC3B,yCAA6C;AAC7C,+CAA2C;AAC3C,wFAAoD;AACpD,yCAAgC;AAChC,yCAAmC;AAanC,SAAgB,YAAY,CAAC,GAAW;IACtC,OAAO,GAAG,CAAC,KAAK,CACd,gKAAgK,CACjK,CAAA;AACH,CAAC;AAWD,SAAgB,UAAU,CAAC,IAAY;IACrC,OAAO,iCAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAA;AAClD,CAAC;AAEM,KAAK,UAAU,YAAY,CAChC,MAA6B,EAC7B,QAAgB;IAEhB,IAAI,GAAG,GAAG,IAAA,oBAAQ,EAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAA;IACjD,IAAI,GAAG,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE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,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAyB,CAAA;IAEzD,OAAO,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAA;AAC/B,CAAC"}
|
package/dist/search.js
CHANGED
|
@@ -21,7 +21,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
21
21
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.
|
|
24
|
+
exports.search = search;
|
|
25
|
+
exports.searchGBCS = searchGBCS;
|
|
25
26
|
const fuse_js_1 = __importDefault(require("fuse.js"));
|
|
26
27
|
const gbcs_mapping_table_json_1 = __importDefault(require("./gbcs-mapping-table.json"));
|
|
27
28
|
/**
|
|
@@ -49,7 +50,6 @@ function search(td, options) {
|
|
|
49
50
|
...options,
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
|
-
exports.search = search;
|
|
53
53
|
let mapping;
|
|
54
54
|
/**
|
|
55
55
|
* Builds a Fuse searcher instance with some default parameters set for gbcs/use
|
|
@@ -77,5 +77,4 @@ function searchGBCS(options) {
|
|
|
77
77
|
...options,
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
exports.searchGBCS = searchGBCS;
|
|
81
80
|
//# sourceMappingURL=search.js.map
|
package/dist/search.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;AAcH,wBAmBC;AAWD,gCAoBC;AA9DD,sDAA4C;AAE5C,wFAAoD;AAEpD;;;;;;;GAOG;AACH,SAAgB,MAAM,CACpB,EAAqB,EACrB,OAA0C;IAE1C,OAAO,IAAI,iBAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;QAClC,IAAI,EAAE;YACJ,GAAG;YACH,gDAAgD;YAChD,qDAAqD;YACrD,QAAQ;YACR,eAAe;YACf,aAAa;YACb,QAAQ;SACT;QACD,QAAQ,EAAE,GAAG;QACb,SAAS,EAAE,GAAG;QACd,cAAc,EAAE,IAAI;QACpB,GAAG,OAAO;KACX,CAAC,CAAA;AACJ,CAAC;AAED,IAAI,OAA+B,CAAA;AAEnC;;;;;;GAMG;AACH,SAAgB,UAAU,CACxB,OAA4C;IAE5C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,GAAG,iCAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;IAChD,CAAC;IACD,OAAO,IAAI,iBAAI,CAAC,OAAO,EAAE;QACvB,IAAI,EAAE;YACJ,GAAG;YACH,iBAAiB;YACjB,kBAAkB;YAClB,gBAAgB;YAChB,wBAAwB;YACxB,qBAAqB;SACtB;QACD,QAAQ,EAAE,GAAG;QACb,SAAS,EAAE,GAAG;QACd,cAAc,EAAE,IAAI;QACpB,GAAG,OAAO;KACX,CAAC,CAAA;AACJ,CAAC"}
|
package/dist/tariff.dto.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.scheduleSize =
|
|
21
|
+
exports.scheduleSize = scheduleSize;
|
|
22
22
|
function scheduleSize(dp, ps) {
|
|
23
23
|
const start = Math.floor(ps.startTime / 1800);
|
|
24
24
|
let end = 48;
|
|
@@ -31,5 +31,4 @@ function scheduleSize(dp, ps) {
|
|
|
31
31
|
}
|
|
32
32
|
return end - start;
|
|
33
33
|
}
|
|
34
|
-
exports.scheduleSize = scheduleSize;
|
|
35
34
|
//# sourceMappingURL=tariff.dto.js.map
|
package/dist/tariff.dto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tariff.dto.js","sourceRoot":"","sources":["../src/tariff.dto.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG
|
|
1
|
+
{"version":3,"file":"tariff.dto.js","sourceRoot":"","sources":["../src/tariff.dto.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAuGH,oCAaC;AAbD,SAAgB,YAAY,CAAC,EAAc,EAAE,EAAmB;IAC9D,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,GAAG,IAAI,CAAC,CAAA;IAC7C,IAAI,GAAG,GAAG,EAAE,CAAA;IAEZ,MAAM,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IACxB,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACV,OAAO,CAAC,CAAA;IACV,CAAC;IAED,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QACtB,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC,CAAA;IAC9C,CAAC;IACD,OAAO,GAAG,GAAG,KAAK,CAAA;AACpB,CAAC"}
|
package/dist/tariff.is.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { BlockAction, DayProfiles, NumberRange, Pricing, ProfileSchedule, Season, SpecialDay, SpecialDays, TOUs, Tariff, Tuple, TupleMinMax, WeekProfile, WeekProfiles } from './tariff.dto';
|
|
1
|
+
import type { BlockAction, Blocks, DayProfile, DayProfileName, DayProfiles, NumberRange, Pricing, ProfileSchedule, Season, Seasons, SpecialDay, SpecialDays, TOUs, Tariff, Tuple, TupleMinMax, WeekProfile, WeekProfiles } from './tariff.dto';
|
|
2
2
|
export declare function isTuple<T, N extends number, Q extends T[] = []>(x: unknown, n: N, isT: (x: unknown) => x is T): x is Tuple<T, N, Q>;
|
|
3
3
|
export declare function isTupleMinMax<T, Min extends number, Max extends number, Q extends T[] = Tuple<T, Min>>(x: unknown, min: Min, max: Max, isT: (x: unknown) => x is T): x is TupleMinMax<T, Min, Max, Q>;
|
|
4
4
|
export declare function isSeason(x: unknown): x is Season;
|
|
5
|
-
export declare const isSeasons: (x: unknown) => x is
|
|
5
|
+
export declare const isSeasons: (x: unknown) => x is Seasons;
|
|
6
6
|
export declare function isNumberRange<N extends number>(x: unknown, n: N): x is NumberRange<N>;
|
|
7
7
|
export declare function isProfileSchedule(x: unknown): x is ProfileSchedule;
|
|
8
|
-
export declare const isDayProfile: (x: unknown) => x is [ProfileSchedule] | [ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule] | [ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule, ProfileSchedule];
|
|
8
|
+
export declare const isDayProfile: (x: unknown) => x is DayProfile;
|
|
9
9
|
export declare const isDayProfiles: (x: unknown) => x is DayProfiles;
|
|
10
|
-
export declare const isDayProfileName: (x: unknown) => x is
|
|
10
|
+
export declare const isDayProfileName: (x: unknown) => x is DayProfileName;
|
|
11
11
|
export declare const isWeekProfile: (x: unknown) => x is WeekProfile;
|
|
12
12
|
export declare const isWeekProfiles: (x: unknown) => x is WeekProfiles;
|
|
13
13
|
export declare function isBlockAction(x: unknown): x is BlockAction;
|
|
14
|
-
export declare const isBlocks: (x: unknown) => x is
|
|
14
|
+
export declare const isBlocks: (x: unknown) => x is Blocks;
|
|
15
15
|
export declare const isTOUs: (x: unknown) => x is TOUs;
|
|
16
16
|
export declare function isPricing(x: unknown): x is Pricing;
|
|
17
17
|
export declare function isSpecialDay(x: unknown): x is SpecialDay;
|
package/dist/tariff.is.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tariff.is.d.ts","sourceRoot":"","sources":["../src/tariff.is.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EACV,WAAW,
|
|
1
|
+
{"version":3,"file":"tariff.is.d.ts","sourceRoot":"","sources":["../src/tariff.is.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,UAAU,EACV,cAAc,EACd,WAAW,EACX,WAAW,EACX,OAAO,EACP,eAAe,EACf,MAAM,EACN,OAAO,EACP,UAAU,EACV,WAAW,EACX,IAAI,EACJ,MAAM,EACN,KAAK,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACb,MAAM,cAAc,CAAA;AAErB,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,EAC7D,CAAC,EAAE,OAAO,EACV,CAAC,EAAE,CAAC,EACJ,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,CAAC,GAC1B,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAMrB;AAID,wBAAgB,aAAa,CAC3B,CAAC,EACD,GAAG,SAAS,MAAM,EAClB,GAAG,SAAS,MAAM,EAClB,CAAC,SAAS,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,EAA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AAgB,SAAS,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,OAAO,CAUlD;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,UAAU,CAYxD;AAED,eAAO,MAAM,aAAa,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,WACL,CAAA;AAE3C,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAchD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAwGrD"}
|
package/dist/tariff.is.js
CHANGED
|
@@ -18,7 +18,17 @@
|
|
|
18
18
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
21
|
+
exports.isSpecialDays = exports.isTOUs = exports.isBlocks = exports.isWeekProfiles = exports.isWeekProfile = exports.isDayProfileName = exports.isDayProfiles = exports.isDayProfile = exports.isSeasons = void 0;
|
|
22
|
+
exports.isTuple = isTuple;
|
|
23
|
+
exports.isTupleMinMax = isTupleMinMax;
|
|
24
|
+
exports.isSeason = isSeason;
|
|
25
|
+
exports.isNumberRange = isNumberRange;
|
|
26
|
+
exports.isProfileSchedule = isProfileSchedule;
|
|
27
|
+
exports.isBlockAction = isBlockAction;
|
|
28
|
+
exports.isPricing = isPricing;
|
|
29
|
+
exports.isSpecialDay = isSpecialDay;
|
|
30
|
+
exports.isTariff = isTariff;
|
|
31
|
+
exports.isValidTariff = isValidTariff;
|
|
22
32
|
function isTuple(x, n, isT) {
|
|
23
33
|
const y = x;
|
|
24
34
|
if (y === null || y === undefined || !Array.isArray(y) || y.length !== n) {
|
|
@@ -26,7 +36,6 @@ function isTuple(x, n, isT) {
|
|
|
26
36
|
}
|
|
27
37
|
return y.every(isT);
|
|
28
38
|
}
|
|
29
|
-
exports.isTuple = isTuple;
|
|
30
39
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
31
40
|
// @ts-ignore
|
|
32
41
|
function isTupleMinMax(x, min, max, isT) {
|
|
@@ -40,7 +49,6 @@ function isTupleMinMax(x, min, max, isT) {
|
|
|
40
49
|
}
|
|
41
50
|
return y.every(isT);
|
|
42
51
|
}
|
|
43
|
-
exports.isTupleMinMax = isTupleMinMax;
|
|
44
52
|
function isSeason(x) {
|
|
45
53
|
const y = x;
|
|
46
54
|
return (y !== null &&
|
|
@@ -53,13 +61,11 @@ function isSeason(x) {
|
|
|
53
61
|
['undefined', 'number'].includes(typeof y.dayOfMonth) &&
|
|
54
62
|
['undefined', 'number'].includes(typeof y.dayOfWeek));
|
|
55
63
|
}
|
|
56
|
-
exports.isSeason = isSeason;
|
|
57
64
|
const isSeasons = (x) => isTupleMinMax(x, 1, 4, isSeason);
|
|
58
65
|
exports.isSeasons = isSeasons;
|
|
59
66
|
function isNumberRange(x, n) {
|
|
60
67
|
return typeof x === 'number' && Number.isInteger(x) && x > 0 && x <= n;
|
|
61
68
|
}
|
|
62
|
-
exports.isNumberRange = isNumberRange;
|
|
63
69
|
function isProfileSchedule(x) {
|
|
64
70
|
const y = x;
|
|
65
71
|
if (y === null ||
|
|
@@ -72,7 +78,6 @@ function isProfileSchedule(x) {
|
|
|
72
78
|
return ((y.mode === 'tou' && isNumberRange(y.action, 48)) ||
|
|
73
79
|
(y.mode === 'block' && isNumberRange(y.action, 8)));
|
|
74
80
|
}
|
|
75
|
-
exports.isProfileSchedule = isProfileSchedule;
|
|
76
81
|
const isDayProfile = (x) => isTupleMinMax(x, 1, 48, isProfileSchedule);
|
|
77
82
|
exports.isDayProfile = isDayProfile;
|
|
78
83
|
const isDayProfiles = (x) => isTupleMinMax(x, 1, 16, exports.isDayProfile);
|
|
@@ -96,7 +101,6 @@ function isBlockAction(x) {
|
|
|
96
101
|
(y.thresholds.length === 2 && y.prices.length === 3) ||
|
|
97
102
|
(y.thresholds.length === 3 && y.prices.length === 4)));
|
|
98
103
|
}
|
|
99
|
-
exports.isBlockAction = isBlockAction;
|
|
100
104
|
const isBlocks = (x) => isTuple(x, 8, isBlockAction);
|
|
101
105
|
exports.isBlocks = isBlocks;
|
|
102
106
|
const isTOUs = (x) => isTupleMinMax(x, 0, 48, (n) => typeof n === 'number');
|
|
@@ -110,7 +114,6 @@ function isPricing(x) {
|
|
|
110
114
|
typeof y.standingCharge === 'number' &&
|
|
111
115
|
typeof y.standingChargeScale === 'number');
|
|
112
116
|
}
|
|
113
|
-
exports.isPricing = isPricing;
|
|
114
117
|
function isSpecialDay(x) {
|
|
115
118
|
const y = x;
|
|
116
119
|
return (y !== null &&
|
|
@@ -122,7 +125,6 @@ function isSpecialDay(x) {
|
|
|
122
125
|
['undefined', 'number'].includes(typeof y.dayOfMonth) &&
|
|
123
126
|
['undefined', 'number'].includes(typeof y.dayOfWeek));
|
|
124
127
|
}
|
|
125
|
-
exports.isSpecialDay = isSpecialDay;
|
|
126
128
|
const isSpecialDays = (x) => Array.isArray(x) && x.every(isSpecialDay);
|
|
127
129
|
exports.isSpecialDays = isSpecialDays;
|
|
128
130
|
function isTariff(x) {
|
|
@@ -138,7 +140,6 @@ function isTariff(x) {
|
|
|
138
140
|
(0, exports.isTOUs)(y.tous) &&
|
|
139
141
|
isPricing(y.pricing));
|
|
140
142
|
}
|
|
141
|
-
exports.isTariff = isTariff;
|
|
142
143
|
/**
|
|
143
144
|
* Determine if parameter is a valid tariff. This is a restriction on isTariff
|
|
144
145
|
* by also checking items which are not enforced by the type system.
|
|
@@ -224,5 +225,4 @@ function isValidTariff(x) {
|
|
|
224
225
|
}
|
|
225
226
|
return false;
|
|
226
227
|
}
|
|
227
|
-
exports.isValidTariff = isValidTariff;
|
|
228
228
|
//# sourceMappingURL=tariff.is.js.map
|
package/dist/tariff.is.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tariff.is.js","sourceRoot":"","sources":["../src/tariff.is.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;YACjC,CAAC,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI;YACzB,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC,CAAC;YAC/B,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,CAAC;YACpB,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,EAAE;YACrB,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,UAAU,IAAI,CAAC,CAAC;YACpC,CAAC,EAAE,CAAC,UAAU,IAAI,CAAC,CAAC,IAAI,CAAC;YACzB,CAAC,EAAE,CAAC,UAAU,IAAI,CAAC,CAAC,IAAI,EAAE;YAC1B,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,CAAC;YACnC,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,CAAC,IAAI,CAAC;YACxB,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,CAAC,IAAI,CAAC;YACxB,CAAC,EAAE,CAAC,IAAI,KAAK,SAAS;gBACpB,EAAE,CAAC,KAAK,KAAK,SAAS;gBACtB,EAAE,CAAC,UAAU,KAAK,SAAS;gBAC3B,EAAE,CAAC,SAAS,KAAK,SAAS,CAAC,CAChC,EACD,CAAC;YACD,OAAO,KAAK,CAAA;QACd,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC"}
|
package/dist/tariff.js
CHANGED
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
21
|
+
exports.singlify = singlify;
|
|
22
|
+
exports.buildDate = buildDate;
|
|
23
|
+
exports.buildUpdateImportTariff_PrimaryElement = buildUpdateImportTariff_PrimaryElement;
|
|
22
24
|
const duis_parser_1 = require("@smartdcc/duis-parser");
|
|
23
25
|
function singlify(d) {
|
|
24
26
|
if (d.length === 1) {
|
|
@@ -26,7 +28,6 @@ function singlify(d) {
|
|
|
26
28
|
}
|
|
27
29
|
return d;
|
|
28
30
|
}
|
|
29
|
-
exports.singlify = singlify;
|
|
30
31
|
function buildDate(d) {
|
|
31
32
|
return {
|
|
32
33
|
Year: d.year === undefined
|
|
@@ -47,7 +48,6 @@ function buildDate(d) {
|
|
|
47
48
|
: { SpecifiedDayOfWeek: `${d.dayOfWeek}` },
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
exports.buildDate = buildDate;
|
|
51
51
|
/**
|
|
52
52
|
* Builds SRV 1.1.1 from a Tariff object
|
|
53
53
|
*
|
|
@@ -174,5 +174,4 @@ function buildUpdateImportTariff_PrimaryElement(t, requestId) {
|
|
|
174
174
|
},
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
exports.buildUpdateImportTariff_PrimaryElement = buildUpdateImportTariff_PrimaryElement;
|
|
178
177
|
//# sourceMappingURL=tariff.js.map
|
package/dist/tariff.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tariff.js","sourceRoot":"","sources":["../src/tariff.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG
|
|
1
|
+
{"version":3,"file":"tariff.js","sourceRoot":"","sources":["../src/tariff.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAWH,4BAKC;AAED,8BA4BC;AASD,wFAyLC;AA9OD,uDAM8B;AAG9B,SAAgB,QAAQ,CAAC,CAAY;IACnC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnB,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;IACb,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AAED,SAAgB,SAAS,CAAC,CAKzB;IACC,OAAO;QACL,IAAI,EACF,CAAC,CAAC,IAAI,KAAK,SAAS;YAClB,CAAC,C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"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Collection of DUIS templates from RTDS along with utility functions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -39,27 +39,27 @@
|
|
|
39
39
|
},
|
|
40
40
|
"license": "GPL-3.0-or-later",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@smartdcc/duis-sign-wrap": "^0.
|
|
43
|
-
"@tsconfig/
|
|
44
|
-
"@types/
|
|
45
|
-
"@types/
|
|
46
|
-
"@types/node": "^20.1.0",
|
|
42
|
+
"@smartdcc/duis-sign-wrap": "^0.2.0",
|
|
43
|
+
"@tsconfig/node20": "^20.1.4",
|
|
44
|
+
"@types/jest": "^30.0.0",
|
|
45
|
+
"@types/node": "^24.0.10",
|
|
47
46
|
"@types/ungap__structured-clone": "^1.2.0",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
|
49
|
-
"@typescript-eslint/parser": "^6.1.0",
|
|
50
47
|
"@ungap/structured-clone": "^1.2.0",
|
|
51
|
-
"del-cli": "^
|
|
52
|
-
"eslint": "^
|
|
53
|
-
"eslint-config-prettier": "^
|
|
48
|
+
"del-cli": "^7.0.0",
|
|
49
|
+
"eslint": "^9.9.0",
|
|
50
|
+
"eslint-config-prettier": "^10.0.1",
|
|
51
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
52
|
+
"globals": "^16.0.0",
|
|
54
53
|
"prettier": "^3.0.0",
|
|
55
54
|
"ts-jest": "^29.0.0",
|
|
56
55
|
"ts-node": "^10.9.2",
|
|
57
|
-
"typescript": "^5.0.2"
|
|
56
|
+
"typescript": "^5.0.2",
|
|
57
|
+
"typescript-eslint": "^8.2.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@smartdcc/duis-parser": "^0.6.0",
|
|
61
61
|
"fuse.js": "^7.0.0",
|
|
62
|
-
"glob": "^
|
|
62
|
+
"glob": "^11.0.0"
|
|
63
63
|
},
|
|
64
64
|
"keywords": [
|
|
65
65
|
"duis",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<sr:Request xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:sr="http://www.dccinterface.co.uk/ServiceUserGateway" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="5.4">
|
|
3
|
+
<sr:Header>
|
|
4
|
+
<sr:RequestID>90-B3-D5-1F-30-01-00-00:90-B3-D5-1F-30-00-00-02:1000</sr:RequestID>
|
|
5
|
+
<sr:CommandVariant>8</sr:CommandVariant>
|
|
6
|
+
<sr:ServiceReference>11.1</sr:ServiceReference>
|
|
7
|
+
<sr:ServiceReferenceVariant>11.1</sr:ServiceReferenceVariant>
|
|
8
|
+
</sr:Header>
|
|
9
|
+
<sr:Body>
|
|
10
|
+
<sr:UpdateFirmware>
|
|
11
|
+
<sr:FirmwareImage>HvHuCwABPAAEAB0SAADcrNysAgBJIGFtIGEgR0ZJIEVTTUVbXSBmaXJtd2FyZSBpbWFnZWkBAAARERESQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfCgBADrSpxyECeQ1Wkuw1K/y0l99SBhP+Ha5IQWXZIHG1KhzJtGn1HDyUkxr/S6yNQC+JwUE5DNH70LlBqk4Tsl++Ig==</sr:FirmwareImage>
|
|
12
|
+
<sr:FirmwareVersion>00000000</sr:FirmwareVersion>
|
|
13
|
+
<sr:DeviceIDList>00-DB-12-34-56-78-90-A0</sr:DeviceIDList>
|
|
14
|
+
</sr:UpdateFirmware>
|
|
15
|
+
</sr:Body>
|
|
16
|
+
<ds:Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
|
|
17
|
+
<!-- NOTE: The digest, signature and serial number values below are placeholders and should not be used for actual authentication purposes. -->
|
|
18
|
+
<ds:SignedInfo>
|
|
19
|
+
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
|
|
20
|
+
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256"/>
|
|
21
|
+
<ds:Reference URI="">
|
|
22
|
+
<ds:Transforms>
|
|
23
|
+
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
|
|
24
|
+
</ds:Transforms>
|
|
25
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
|
|
26
|
+
<ds:DigestValue>ZGVmYXVsdA==</ds:DigestValue>
|
|
27
|
+
</ds:Reference>
|
|
28
|
+
</ds:SignedInfo>
|
|
29
|
+
<ds:SignatureValue>ZGVmYXVsdA==</ds:SignatureValue>
|
|
30
|
+
<ds:KeyInfo>
|
|
31
|
+
<ds:X509Data>
|
|
32
|
+
<ds:X509IssuerSerial>
|
|
33
|
+
<ds:X509IssuerName>CN=U1, OU=07</ds:X509IssuerName>
|
|
34
|
+
<ds:X509SerialNumber>1234567890</ds:X509SerialNumber>
|
|
35
|
+
</ds:X509IssuerSerial>
|
|
36
|
+
</ds:X509Data>
|
|
37
|
+
</ds:KeyInfo>
|
|
38
|
+
</ds:Signature>
|
|
39
|
+
</sr:Request>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<sr:Request xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:sr="http://www.dccinterface.co.uk/ServiceUserGateway" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="5.4">
|
|
3
|
+
<sr:Header>
|
|
4
|
+
<sr:RequestID>90-B3-D5-1F-30-01-00-00:90-B3-D5-1F-30-00-00-02:1000</sr:RequestID>
|
|
5
|
+
<sr:CommandVariant>8</sr:CommandVariant>
|
|
6
|
+
<sr:ServiceReference>11.4</sr:ServiceReference>
|
|
7
|
+
<sr:ServiceReferenceVariant>11.4</sr:ServiceReferenceVariant>
|
|
8
|
+
</sr:Header>
|
|
9
|
+
<sr:Body>
|
|
10
|
+
<sr:UpdatePPMIDFirmware>
|
|
11
|
+
<sr:FirmwareImage>HvHuCwABPAAEAB0ShADcrNysAgBJIGFtIGEgR0ZJIFBQTUlEIGZpcm13YXJlIGltYWdlICcBAAARERESQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfQ3JpdGljYWxTb2Z0d2FyZSBzYW1wbGUgZmlybXdhcmUgaW1hZ2VfCg==</sr:FirmwareImage>
|
|
12
|
+
<sr:FirmwareVersion>00000000</sr:FirmwareVersion>
|
|
13
|
+
<sr:DeviceIDList>00-DB-12-34-56-78-90-A4</sr:DeviceIDList>
|
|
14
|
+
</sr:UpdatePPMIDFirmware>
|
|
15
|
+
</sr:Body>
|
|
16
|
+
<ds:Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
|
|
17
|
+
<!-- NOTE: The digest, signature and serial number values below are placeholders and should not be used for actual authentication purposes. -->
|
|
18
|
+
<ds:SignedInfo>
|
|
19
|
+
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
|
|
20
|
+
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256"/>
|
|
21
|
+
<ds:Reference URI="">
|
|
22
|
+
<ds:Transforms>
|
|
23
|
+
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
|
|
24
|
+
</ds:Transforms>
|
|
25
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
|
|
26
|
+
<ds:DigestValue>ZGVmYXVsdA==</ds:DigestValue>
|
|
27
|
+
</ds:Reference>
|
|
28
|
+
</ds:SignedInfo>
|
|
29
|
+
<ds:SignatureValue>ZGVmYXVsdA==</ds:SignatureValue>
|
|
30
|
+
<ds:KeyInfo>
|
|
31
|
+
<ds:X509Data>
|
|
32
|
+
<ds:X509IssuerSerial>
|
|
33
|
+
<ds:X509IssuerName>CN=U1, OU=07</ds:X509IssuerName>
|
|
34
|
+
<ds:X509SerialNumber>1234567890</ds:X509SerialNumber>
|
|
35
|
+
</ds:X509IssuerSerial>
|
|
36
|
+
</ds:X509Data>
|
|
37
|
+
</ds:KeyInfo>
|
|
38
|
+
</ds:Signature>
|
|
39
|
+
</sr:Request>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<sr:Request xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:sr="http://www.dccinterface.co.uk/ServiceUserGateway" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="5.4">
|
|
3
|
+
<sr:Header>
|
|
4
|
+
<sr:RequestID>90-B3-D5-1F-30-01-00-00:90-B3-D5-1F-30-00-00-02:1000</sr:RequestID>
|
|
5
|
+
<sr:CommandVariant>8</sr:CommandVariant>
|
|
6
|
+
<sr:ServiceReference>12.1</sr:ServiceReference>
|
|
7
|
+
<sr:ServiceReferenceVariant>12.1</sr:ServiceReferenceVariant>
|
|
8
|
+
</sr:Header>
|
|
9
|
+
<sr:Body>
|
|
10
|
+
<sr:RequestWANMatrix>
|
|
11
|
+
<sr:PartialAddress>
|
|
12
|
+
<sr:PostCode>M22 0RR</sr:PostCode>
|
|
13
|
+
<sr:AddressIdentifier>Threapwood Road</sr:AddressIdentifier>
|
|
14
|
+
</sr:PartialAddress>
|
|
15
|
+
</sr:RequestWANMatrix>
|
|
16
|
+
</sr:Body>
|
|
17
|
+
<ds:Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
|
|
18
|
+
<!-- NOTE: The digest, signature and serial number values below are placeholders and should not be used for actual authentication purposes. -->
|
|
19
|
+
<ds:SignedInfo>
|
|
20
|
+
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
|
|
21
|
+
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256"/>
|
|
22
|
+
<ds:Reference URI="">
|
|
23
|
+
<ds:Transforms>
|
|
24
|
+
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
|
|
25
|
+
</ds:Transforms>
|
|
26
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
|
|
27
|
+
<ds:DigestValue>ZGVmYXVsdA==</ds:DigestValue>
|
|
28
|
+
</ds:Reference>
|
|
29
|
+
</ds:SignedInfo>
|
|
30
|
+
<ds:SignatureValue>ZGVmYXVsdA==</ds:SignatureValue>
|
|
31
|
+
<ds:KeyInfo>
|
|
32
|
+
<ds:X509Data>
|
|
33
|
+
<ds:X509IssuerSerial>
|
|
34
|
+
<ds:X509IssuerName>CN=U1, OU=07</ds:X509IssuerName>
|
|
35
|
+
<ds:X509SerialNumber>1234567890</ds:X509SerialNumber>
|
|
36
|
+
</ds:X509IssuerSerial>
|
|
37
|
+
</ds:X509Data>
|
|
38
|
+
</ds:KeyInfo>
|
|
39
|
+
</ds:Signature>
|
|
40
|
+
</sr:Request>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<sr:Request xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:sr="http://www.dccinterface.co.uk/ServiceUserGateway" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="5.
|
|
2
|
+
<sr:Request xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:sr="http://www.dccinterface.co.uk/ServiceUserGateway" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="5.4">
|
|
3
3
|
<sr:Header>
|
|
4
4
|
<sr:RequestID>90-B3-D5-1F-30-01-00-00:90-B3-D5-1F-30-00-00-02:1000</sr:RequestID>
|
|
5
5
|
<sr:CommandVariant>8</sr:CommandVariant>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<sr:Request xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:sr="http://www.dccinterface.co.uk/ServiceUserGateway" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="5.
|
|
2
|
+
<sr:Request xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:sr="http://www.dccinterface.co.uk/ServiceUserGateway" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="5.4">
|
|
3
3
|
<sr:Header>
|
|
4
|
-
<sr:RequestID>90-B3-D5-1F-30-01-00-00:
|
|
5
|
-
<sr:CommandVariant>
|
|
6
|
-
<sr:ServiceReference>
|
|
7
|
-
<sr:ServiceReferenceVariant>
|
|
4
|
+
<sr:RequestID>90-B3-D5-1F-30-01-00-00:90-B3-D5-1F-30-00-00-02:1000</sr:RequestID>
|
|
5
|
+
<sr:CommandVariant>8</sr:CommandVariant>
|
|
6
|
+
<sr:ServiceReference>5.2</sr:ServiceReference>
|
|
7
|
+
<sr:ServiceReferenceVariant>5.2</sr:ServiceReferenceVariant>
|
|
8
8
|
</sr:Header>
|
|
9
9
|
<sr:Body>
|
|
10
|
-
<sr:
|
|
11
|
-
<sr:
|
|
12
|
-
</sr:
|
|
10
|
+
<sr:ReadSchedule>
|
|
11
|
+
<sr:DSPScheduleID>123</sr:DSPScheduleID>
|
|
12
|
+
</sr:ReadSchedule>
|
|
13
13
|
</sr:Body>
|
|
14
14
|
<ds:Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
|
|
15
15
|
<!-- NOTE: The digest, signature and serial number values below are placeholders and should not be used for actual authentication purposes. -->
|