@kaspernj/api-maker 1.0.2159 → 1.0.2161
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/build/api.d.ts +46 -34
- package/build/api.d.ts.map +1 -1
- package/build/api.js +32 -25
- package/build/attribute-not-loaded-error.d.ts.map +1 -1
- package/build/attribute-not-loaded-error.js +2 -1
- package/build/base-error.d.ts +49 -60
- package/build/base-error.d.ts.map +1 -1
- package/build/base-error.js +3 -2
- package/build/base-model/column.d.ts +2 -2
- package/build/base-model/column.d.ts.map +1 -1
- package/build/base-model/column.js +3 -2
- package/build/base-model/reflection.d.ts +8 -3
- package/build/base-model/reflection.d.ts.map +1 -1
- package/build/base-model/reflection.js +8 -3
- package/build/base-model/scope.d.ts +1 -1
- package/build/base-model/scope.d.ts.map +1 -1
- package/build/base-model/scope.js +3 -2
- package/build/base-model.d.ts +3801 -117
- package/build/base-model.d.ts.map +1 -1
- package/build/base-model.js +271 -143
- package/build/bootstrap/attribute-row.d.ts +14 -1
- package/build/bootstrap/attribute-row.d.ts.map +1 -1
- package/build/bootstrap/attribute-row.js +23 -5
- package/build/bootstrap/attribute-rows.d.ts +10 -1
- package/build/bootstrap/attribute-rows.d.ts.map +1 -1
- package/build/bootstrap/attribute-rows.js +14 -5
- package/build/bootstrap/card.d.ts +19 -1
- package/build/bootstrap/card.d.ts.map +1 -1
- package/build/bootstrap/card.js +33 -13
- package/build/bootstrap/checkbox.d.ts +18 -1
- package/build/bootstrap/checkbox.d.ts.map +1 -1
- package/build/bootstrap/checkbox.js +23 -3
- package/build/bootstrap/checkboxes.d.ts +33 -1
- package/build/bootstrap/checkboxes.d.ts.map +1 -1
- package/build/bootstrap/checkboxes.js +50 -17
- package/build/bootstrap/index.js +2 -1
- package/build/bootstrap/input.d.ts +24 -0
- package/build/bootstrap/input.d.ts.map +1 -1
- package/build/bootstrap/input.js +27 -2
- package/build/bootstrap/invalid-feedback.d.ts.map +1 -1
- package/build/bootstrap/invalid-feedback.js +2 -1
- package/build/bootstrap/paginate.d.ts +7 -1
- package/build/bootstrap/paginate.d.ts.map +1 -1
- package/build/bootstrap/paginate.js +9 -4
- package/build/bootstrap/radio-buttons.js +2 -1
- package/build/bootstrap/select.js +2 -1
- package/build/bootstrap/sort-link.d.ts +12 -1
- package/build/bootstrap/sort-link.d.ts.map +1 -1
- package/build/bootstrap/sort-link.js +19 -10
- package/build/cable-connection-pool.d.ts +201 -24
- package/build/cable-connection-pool.d.ts.map +1 -1
- package/build/cable-connection-pool.js +76 -16
- package/build/cable-subscription-pool.d.ts +186 -20
- package/build/cable-subscription-pool.d.ts.map +1 -1
- package/build/cable-subscription-pool.js +61 -22
- package/build/cable-subscription.d.ts.map +1 -1
- package/build/cable-subscription.js +3 -2
- package/build/cache-key-generator.d.ts +194 -20
- package/build/cache-key-generator.d.ts.map +1 -1
- package/build/cache-key-generator.js +63 -12
- package/build/can-can.d.ts +146 -29
- package/build/can-can.d.ts.map +1 -1
- package/build/can-can.js +105 -19
- package/build/channels-consumer.d.ts +23 -1
- package/build/channels-consumer.d.ts.map +1 -1
- package/build/channels-consumer.js +26 -8
- package/build/collection-loader.d.ts +4 -1
- package/build/collection-loader.js +2 -1
- package/build/collection.d.ts +361 -370
- package/build/collection.d.ts.map +1 -1
- package/build/collection.js +59 -19
- package/build/command-execution.d.ts +50 -26
- package/build/command-execution.d.ts.map +1 -1
- package/build/command-execution.js +31 -13
- package/build/command-submit-data.d.ts +50 -37
- package/build/command-submit-data.d.ts.map +1 -1
- package/build/command-submit-data.js +35 -22
- package/build/commands-pool.d.ts +65 -27
- package/build/commands-pool.d.ts.map +1 -1
- package/build/commands-pool.js +67 -20
- package/build/compose.d.ts +8 -2
- package/build/compose.d.ts.map +1 -1
- package/build/compose.js +9 -2
- package/build/config.d.ts +31 -15
- package/build/config.d.ts.map +1 -1
- package/build/config.js +60 -23
- package/build/custom-error.d.ts.map +1 -1
- package/build/custom-error.js +2 -1
- package/build/data-set-to-attributes.d.ts +14 -2
- package/build/data-set-to-attributes.d.ts.map +1 -1
- package/build/data-set-to-attributes.js +12 -3
- package/build/deserializer.d.ts +116 -2
- package/build/deserializer.d.ts.map +1 -1
- package/build/deserializer.js +13 -2
- package/build/destroy-error.d.ts.map +1 -1
- package/build/destroy-error.js +2 -1
- package/build/devise.d.ts +638 -39
- package/build/devise.d.ts.map +1 -1
- package/build/devise.js +97 -28
- package/build/draggable-sort/controller.d.ts +126 -35
- package/build/draggable-sort/controller.d.ts.map +1 -1
- package/build/draggable-sort/controller.js +100 -28
- package/build/draggable-sort/index.d.ts +57 -1
- package/build/draggable-sort/index.d.ts.map +1 -1
- package/build/draggable-sort/index.js +71 -3
- package/build/draggable-sort/item.d.ts +56 -1
- package/build/draggable-sort/item.d.ts.map +1 -1
- package/build/draggable-sort/item.js +98 -10
- package/build/error-logger.d.ts +30 -14
- package/build/error-logger.d.ts.map +1 -1
- package/build/error-logger.js +22 -11
- package/build/event-connection.d.ts.map +1 -1
- package/build/event-connection.js +3 -2
- package/build/event-emitter-listener.d.ts.map +1 -1
- package/build/event-emitter-listener.js +2 -1
- package/build/event-model-class.d.ts.map +1 -1
- package/build/event-model-class.js +2 -1
- package/build/events.d.ts.map +1 -1
- package/build/events.js +2 -1
- package/build/form.d.ts +24 -1
- package/build/form.d.ts.map +1 -1
- package/build/form.js +16 -4
- package/build/history-expo.d.ts +6 -2
- package/build/history-expo.d.ts.map +1 -1
- package/build/history-expo.js +5 -2
- package/build/history-react-native.d.ts +6 -2
- package/build/history-react-native.d.ts.map +1 -1
- package/build/history-react-native.js +5 -2
- package/build/history.js +2 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -1
- package/build/inputs/attachment.d.ts +13 -1
- package/build/inputs/attachment.d.ts.map +1 -1
- package/build/inputs/attachment.js +22 -8
- package/build/inputs/auto-submit.d.ts +41 -13
- package/build/inputs/auto-submit.d.ts.map +1 -1
- package/build/inputs/auto-submit.js +16 -4
- package/build/inputs/checkbox.d.ts +17 -1
- package/build/inputs/checkbox.d.ts.map +1 -1
- package/build/inputs/checkbox.js +25 -11
- package/build/inputs/checkboxes.d.ts +16 -0
- package/build/inputs/checkboxes.d.ts.map +1 -1
- package/build/inputs/checkboxes.js +20 -4
- package/build/inputs/id-for-component.d.ts +21 -2
- package/build/inputs/id-for-component.d.ts.map +1 -1
- package/build/inputs/id-for-component.js +9 -2
- package/build/inputs/input-wrapper.d.ts.map +1 -1
- package/build/inputs/input-wrapper.js +2 -1
- package/build/inputs/input.d.ts +38 -1
- package/build/inputs/input.d.ts.map +1 -1
- package/build/inputs/input.js +29 -10
- package/build/inputs/money.d.ts +4 -1
- package/build/inputs/money.d.ts.map +1 -1
- package/build/inputs/money.js +6 -3
- package/build/inputs/name-for-component.d.ts +21 -2
- package/build/inputs/name-for-component.d.ts.map +1 -1
- package/build/inputs/name-for-component.js +9 -2
- package/build/inputs/select.d.ts +35 -1
- package/build/inputs/select.d.ts.map +1 -1
- package/build/inputs/select.js +21 -4
- package/build/instance-of-class-name.d.ts +7 -2
- package/build/instance-of-class-name.d.ts.map +1 -1
- package/build/instance-of-class-name.js +8 -4
- package/build/is-expo.d.ts.map +1 -1
- package/build/is-expo.js +2 -1
- package/build/key-value-store.d.ts +24 -14
- package/build/key-value-store.d.ts.map +1 -1
- package/build/key-value-store.js +22 -12
- package/build/link.d.ts +32 -1
- package/build/link.d.ts.map +1 -1
- package/build/link.js +76 -30
- package/build/logger.d.ts +10 -6
- package/build/logger.d.ts.map +1 -1
- package/build/logger.js +7 -4
- package/build/merge-styles.d.ts +10 -2
- package/build/merge-styles.d.ts.map +1 -1
- package/build/merge-styles.js +10 -3
- package/build/modal.d.ts +4 -1
- package/build/modal.d.ts.map +1 -1
- package/build/modal.js +6 -4
- package/build/model-class-require.d.ts +4 -2
- package/build/model-class-require.d.ts.map +1 -1
- package/build/model-class-require.js +4 -2
- package/build/model-events.d.ts +139 -346
- package/build/model-events.d.ts.map +1 -1
- package/build/model-events.js +21 -9
- package/build/model-name.d.ts +21 -7
- package/build/model-name.d.ts.map +1 -1
- package/build/model-name.js +12 -2
- package/build/model-prop-type.d.ts +533 -26
- package/build/model-prop-type.d.ts.map +1 -1
- package/build/model-prop-type.js +69 -11
- package/build/model-recipes-loader.d.ts +7 -3
- package/build/model-recipes-loader.d.ts.map +1 -1
- package/build/model-recipes-loader.js +4 -2
- package/build/model-recipes-model-loader.d.ts +189 -1493
- package/build/model-recipes-model-loader.d.ts.map +1 -1
- package/build/model-recipes-model-loader.js +119 -17
- package/build/models-response-reader.d.ts +600 -195
- package/build/models-response-reader.d.ts.map +1 -1
- package/build/models-response-reader.js +12 -4
- package/build/models.d.ts +438 -1
- package/build/models.d.ts.map +1 -1
- package/build/models.js +2 -1
- package/build/money-formatter.d.ts +25 -31
- package/build/money-formatter.d.ts.map +1 -1
- package/build/money-formatter.js +11 -8
- package/build/not-loaded-error.d.ts.map +1 -1
- package/build/not-loaded-error.js +2 -1
- package/build/params.d.ts +25 -17
- package/build/params.d.ts.map +1 -1
- package/build/params.js +19 -15
- package/build/preloaded.d.ts +61 -64
- package/build/preloaded.d.ts.map +1 -1
- package/build/preloaded.js +10 -4
- package/build/reset-realtime-runtime-state.d.ts.map +1 -1
- package/build/reset-realtime-runtime-state.js +2 -1
- package/build/resize-observer.d.ts +1 -1
- package/build/resize-observer.d.ts.map +1 -1
- package/build/resize-observer.js +2 -1
- package/build/rest-props-validator.d.ts +2 -2
- package/build/rest-props-validator.d.ts.map +1 -1
- package/build/rest-props-validator.js +3 -2
- package/build/result.d.ts +142 -175
- package/build/result.d.ts.map +1 -1
- package/build/result.js +3 -2
- package/build/router/route.d.ts +51 -1
- package/build/router/route.d.ts.map +1 -1
- package/build/router/route.js +48 -12
- package/build/router/switch.d.ts +38 -2
- package/build/router/switch.d.ts.map +1 -1
- package/build/router/switch.js +34 -13
- package/build/router.d.ts +21 -1
- package/build/router.d.ts.map +1 -1
- package/build/router.js +15 -4
- package/build/routes-native.d.ts +13 -13
- package/build/routes-native.d.ts.map +1 -1
- package/build/routes-native.js +23 -11
- package/build/routes.d.ts +17 -9
- package/build/routes.d.ts.map +1 -1
- package/build/routes.js +7 -2
- package/build/run-last.d.ts.map +1 -1
- package/build/run-last.js +2 -1
- package/build/serializer.d.ts +44 -12
- package/build/serializer.d.ts.map +1 -1
- package/build/serializer.js +36 -7
- package/build/services.d.ts +29 -4
- package/build/services.d.ts.map +1 -1
- package/build/services.js +16 -4
- package/build/session-status-updater.d.ts +73 -25
- package/build/session-status-updater.d.ts.map +1 -1
- package/build/session-status-updater.js +52 -14
- package/build/source-maps-loader.d.ts +88 -33
- package/build/source-maps-loader.d.ts.map +1 -1
- package/build/source-maps-loader.js +74 -18
- package/build/super-admin/config-reader.d.ts.map +1 -1
- package/build/super-admin/config-reader.js +11 -16
- package/build/super-admin/edit-page/edit-attribute-checkbox.d.ts +12 -1
- package/build/super-admin/edit-page/edit-attribute-checkbox.d.ts.map +1 -1
- package/build/super-admin/edit-page/edit-attribute-checkbox.js +22 -8
- package/build/super-admin/edit-page/edit-attribute-content.d.ts +10 -1
- package/build/super-admin/edit-page/edit-attribute-content.d.ts.map +1 -1
- package/build/super-admin/edit-page/edit-attribute-content.js +20 -9
- package/build/super-admin/edit-page/edit-attribute-input.d.ts +10 -1
- package/build/super-admin/edit-page/edit-attribute-input.d.ts.map +1 -1
- package/build/super-admin/edit-page/edit-attribute-input.js +13 -4
- package/build/super-admin/edit-page/edit-attribute.d.ts +8 -1
- package/build/super-admin/edit-page/edit-attribute.d.ts.map +1 -1
- package/build/super-admin/edit-page/edit-attribute.js +11 -4
- package/build/super-admin/edit-page.d.ts +7 -1
- package/build/super-admin/edit-page.d.ts.map +1 -1
- package/build/super-admin/edit-page.js +11 -5
- package/build/super-admin/has-edit-config.d.ts.map +1 -1
- package/build/super-admin/has-edit-config.js +2 -1
- package/build/super-admin/index-page.d.ts +6 -1
- package/build/super-admin/index-page.d.ts.map +1 -1
- package/build/super-admin/index-page.js +9 -4
- package/build/super-admin/index.d.ts +6 -1
- package/build/super-admin/index.d.ts.map +1 -1
- package/build/super-admin/index.js +16 -10
- package/build/super-admin/layout/header/index.d.ts +6 -1
- package/build/super-admin/layout/header/index.d.ts.map +1 -1
- package/build/super-admin/layout/header/index.js +18 -12
- package/build/super-admin/layout/index.d.ts +26 -1
- package/build/super-admin/layout/index.d.ts.map +1 -1
- package/build/super-admin/layout/index.js +41 -7
- package/build/super-admin/layout/menu/index.d.ts +4 -1
- package/build/super-admin/layout/menu/index.d.ts.map +1 -1
- package/build/super-admin/layout/menu/index.js +13 -7
- package/build/super-admin/layout/menu/menu-content.d.ts +4 -1
- package/build/super-admin/layout/menu/menu-content.d.ts.map +1 -1
- package/build/super-admin/layout/menu/menu-content.js +6 -4
- package/build/super-admin/layout/menu/menu-item.d.ts +11 -1
- package/build/super-admin/layout/menu/menu-item.d.ts.map +1 -1
- package/build/super-admin/layout/menu/menu-item.js +19 -9
- package/build/super-admin/layout/no-access.d.ts +4 -1
- package/build/super-admin/layout/no-access.d.ts.map +1 -1
- package/build/super-admin/layout/no-access.js +7 -5
- package/build/super-admin/model-class-table.d.ts +6 -1
- package/build/super-admin/model-class-table.d.ts.map +1 -1
- package/build/super-admin/model-class-table.js +9 -4
- package/build/super-admin/models.d.ts.map +1 -1
- package/build/super-admin/models.js +2 -1
- package/build/super-admin/show-nav.d.ts +4 -1
- package/build/super-admin/show-nav.d.ts.map +1 -1
- package/build/super-admin/show-nav.js +6 -4
- package/build/super-admin/show-page/belongs-to-attribute-row.d.ts +18 -1
- package/build/super-admin/show-page/belongs-to-attribute-row.d.ts.map +1 -1
- package/build/super-admin/show-page/belongs-to-attribute-row.js +14 -5
- package/build/super-admin/show-page/index.d.ts +6 -1
- package/build/super-admin/show-page/index.d.ts.map +1 -1
- package/build/super-admin/show-page/index.js +11 -5
- package/build/super-admin/show-reflection-actions.d.ts +8 -1
- package/build/super-admin/show-reflection-actions.d.ts.map +1 -1
- package/build/super-admin/show-reflection-actions.js +11 -4
- package/build/super-admin/show-reflection-link.d.ts +6 -1
- package/build/super-admin/show-reflection-link.d.ts.map +1 -1
- package/build/super-admin/show-reflection-link.js +12 -5
- package/build/super-admin/show-reflection-page.d.ts +7 -1
- package/build/super-admin/show-reflection-page.d.ts.map +1 -1
- package/build/super-admin/show-reflection-page.js +10 -4
- package/build/table/column-content.d.ts +155 -19
- package/build/table/column-content.d.ts.map +1 -1
- package/build/table/column-content.js +55 -12
- package/build/table/column-identifier.d.ts +11 -2
- package/build/table/column-identifier.d.ts.map +1 -1
- package/build/table/column-identifier.js +7 -2
- package/build/table/column-visible.d.ts +11 -2
- package/build/table/column-visible.d.ts.map +1 -1
- package/build/table/column-visible.js +8 -2
- package/build/table/components/column.d.ts +4 -1
- package/build/table/components/column.d.ts.map +1 -1
- package/build/table/components/column.js +6 -4
- package/build/table/components/flat-list.d.ts +4 -1
- package/build/table/components/flat-list.d.ts.map +1 -1
- package/build/table/components/flat-list.js +6 -4
- package/build/table/components/header.d.ts +4 -1
- package/build/table/components/header.d.ts.map +1 -1
- package/build/table/components/header.js +6 -4
- package/build/table/components/row.d.ts +4 -1
- package/build/table/components/row.d.ts.map +1 -1
- package/build/table/components/row.js +6 -4
- package/build/table/filters/attribute-element.d.ts +4 -1
- package/build/table/filters/attribute-element.d.ts.map +1 -1
- package/build/table/filters/attribute-element.js +7 -7
- package/build/table/filters/filter-form.d.ts +60 -1
- package/build/table/filters/filter-form.d.ts.map +1 -1
- package/build/table/filters/filter-form.js +89 -28
- package/build/table/filters/filter.d.ts +4 -1
- package/build/table/filters/filter.d.ts.map +1 -1
- package/build/table/filters/filter.js +6 -4
- package/build/table/filters/index.d.ts +129 -1
- package/build/table/filters/index.d.ts.map +1 -1
- package/build/table/filters/index.js +26 -9
- package/build/table/filters/load-search-modal.d.ts +132 -1
- package/build/table/filters/load-search-modal.d.ts.map +1 -1
- package/build/table/filters/load-search-modal.js +32 -10
- package/build/table/filters/reflection-element.d.ts +4 -1
- package/build/table/filters/reflection-element.d.ts.map +1 -1
- package/build/table/filters/reflection-element.js +6 -4
- package/build/table/filters/save-search-modal.d.ts +136 -1
- package/build/table/filters/save-search-modal.d.ts.map +1 -1
- package/build/table/filters/save-search-modal.js +39 -6
- package/build/table/filters/scope-element.d.ts +8 -1
- package/build/table/filters/scope-element.d.ts.map +1 -1
- package/build/table/filters/scope-element.js +13 -8
- package/build/table/header-column-content.d.ts +9 -1
- package/build/table/header-column-content.d.ts.map +1 -1
- package/build/table/header-column-content.js +12 -4
- package/build/table/header-column.d.ts +52 -1
- package/build/table/header-column.d.ts.map +1 -1
- package/build/table/header-column.js +39 -10
- package/build/table/header-select.d.ts +20 -1
- package/build/table/header-select.d.ts.map +1 -1
- package/build/table/header-select.js +27 -8
- package/build/table/model-callback-args.d.ts +116 -3
- package/build/table/model-callback-args.d.ts.map +1 -1
- package/build/table/model-callback-args.js +10 -3
- package/build/table/model-column.d.ts +138 -1
- package/build/table/model-column.d.ts.map +1 -1
- package/build/table/model-column.js +27 -4
- package/build/table/model-row.d.ts +21 -1
- package/build/table/model-row.d.ts.map +1 -1
- package/build/table/model-row.js +24 -4
- package/build/table/select-calculator.d.ts +37 -2
- package/build/table/select-calculator.d.ts.map +1 -1
- package/build/table/select-calculator.js +29 -6
- package/build/table/settings/column-row.d.ts +8 -1
- package/build/table/settings/column-row.d.ts.map +1 -1
- package/build/table/settings/column-row.js +13 -12
- package/build/table/settings/download-action.d.ts +7 -1
- package/build/table/settings/download-action.d.ts.map +1 -1
- package/build/table/settings/download-action.js +10 -4
- package/build/table/settings/index.d.ts +7 -1
- package/build/table/settings/index.d.ts.map +1 -1
- package/build/table/settings/index.js +10 -4
- package/build/table/should-render-loading-content.d.ts +2 -2
- package/build/table/should-render-loading-content.d.ts.map +1 -1
- package/build/table/should-render-loading-content.js +3 -2
- package/build/table/table-settings.d.ts +236 -43
- package/build/table/table-settings.d.ts.map +1 -1
- package/build/table/table-settings.js +105 -21
- package/build/table/table.d.ts +273 -1
- package/build/table/table.d.ts.map +1 -1
- package/build/table/table.js +210 -53
- package/build/table/use-sorting.d.ts +10 -8
- package/build/table/use-sorting.d.ts.map +1 -1
- package/build/table/use-sorting.js +16 -8
- package/build/table/widths.d.ts +55 -8
- package/build/table/widths.d.ts.map +1 -1
- package/build/table/widths.js +25 -2
- package/build/table/worker-plugins-check-all-checkbox.d.ts +20 -1
- package/build/table/worker-plugins-check-all-checkbox.d.ts.map +1 -1
- package/build/table/worker-plugins-check-all-checkbox.js +29 -9
- package/build/table/worker-plugins-checkbox.d.ts +7 -1
- package/build/table/worker-plugins-checkbox.d.ts.map +1 -1
- package/build/table/worker-plugins-checkbox.js +14 -8
- package/build/translated-attributes.d.ts +7 -2
- package/build/translated-attributes.d.ts.map +1 -1
- package/build/translated-attributes.js +8 -2
- package/build/translated-collections.d.ts +11 -2
- package/build/translated-collections.d.ts.map +1 -1
- package/build/translated-collections.js +9 -3
- package/build/updated-attribute.d.ts.map +1 -1
- package/build/updated-attribute.js +2 -1
- package/build/url-encode.d.ts.map +1 -1
- package/build/url-encode.js +2 -1
- package/build/use-can-can.d.ts +8 -0
- package/build/use-can-can.d.ts.map +1 -1
- package/build/use-can-can.js +39 -13
- package/build/use-collection.d.ts +174 -117
- package/build/use-collection.d.ts.map +1 -1
- package/build/use-collection.js +133 -51
- package/build/use-created-event.d.ts +120 -11
- package/build/use-created-event.d.ts.map +1 -1
- package/build/use-created-event.js +10 -7
- package/build/use-current-user-context.d.ts +2 -2
- package/build/use-current-user-context.d.ts.map +1 -1
- package/build/use-current-user-context.js +3 -2
- package/build/use-current-user.d.ts +86 -70
- package/build/use-current-user.d.ts.map +1 -1
- package/build/use-current-user.js +36 -8
- package/build/use-destroyed-event.d.ts +117 -8
- package/build/use-destroyed-event.d.ts.map +1 -1
- package/build/use-destroyed-event.js +29 -22
- package/build/use-input.d.ts +74 -12
- package/build/use-input.d.ts.map +1 -1
- package/build/use-input.js +33 -5
- package/build/use-model-class-event.d.ts +124 -10
- package/build/use-model-class-event.d.ts.map +1 -1
- package/build/use-model-class-event.js +26 -16
- package/build/use-model-event.d.ts +121 -8
- package/build/use-model-event.d.ts.map +1 -1
- package/build/use-model-event.js +24 -19
- package/build/use-model.d.ts +165 -243
- package/build/use-model.d.ts.map +1 -1
- package/build/use-model.js +94 -35
- package/build/use-resize-observer.d.ts.map +1 -1
- package/build/use-resize-observer.js +2 -1
- package/build/use-router.d.ts.map +1 -1
- package/build/use-router.js +2 -1
- package/build/use-screen-layout.d.ts +7 -2
- package/build/use-screen-layout.d.ts.map +1 -1
- package/build/use-screen-layout.js +8 -5
- package/build/use-shape.js +2 -1
- package/build/use-styles.d.ts +11 -5
- package/build/use-styles.d.ts.map +1 -1
- package/build/use-styles.js +16 -9
- package/build/use-updated-event.d.ts +66 -182
- package/build/use-updated-event.d.ts.map +1 -1
- package/build/use-updated-event.js +22 -18
- package/build/use-validation-errors.d.ts.map +1 -1
- package/build/use-validation-errors.js +2 -1
- package/build/utils/button.d.ts +16 -1
- package/build/utils/button.d.ts.map +1 -1
- package/build/utils/button.js +27 -8
- package/build/utils/card.d.ts +11 -1
- package/build/utils/card.d.ts.map +1 -1
- package/build/utils/card.js +13 -2
- package/build/utils/checkbox.d.ts +14 -1
- package/build/utils/checkbox.d.ts.map +1 -1
- package/build/utils/checkbox.js +22 -9
- package/build/utils/checkboxes.d.ts +27 -1
- package/build/utils/checkboxes.d.ts.map +1 -1
- package/build/utils/checkboxes.js +44 -17
- package/build/utils/default-style.d.ts +11 -4
- package/build/utils/default-style.d.ts.map +1 -1
- package/build/utils/default-style.js +12 -4
- package/build/utils/header.d.ts +6 -1
- package/build/utils/header.d.ts.map +1 -1
- package/build/utils/header.js +4 -2
- package/build/utils/icon.d.ts +9 -7
- package/build/utils/icon.d.ts.map +1 -1
- package/build/utils/icon.js +12 -11
- package/build/utils/invalid-feedback.d.ts +6 -1
- package/build/utils/invalid-feedback.d.ts.map +1 -1
- package/build/utils/invalid-feedback.js +8 -2
- package/build/utils/modal.d.ts +4 -1
- package/build/utils/modal.d.ts.map +1 -1
- package/build/utils/modal.js +11 -9
- package/build/utils/text.d.ts +9 -1
- package/build/utils/text.d.ts.map +1 -1
- package/build/utils/text.js +9 -2
- package/build/validation-error.d.ts +5 -2
- package/build/validation-error.d.ts.map +1 -1
- package/build/validation-error.js +5 -2
- package/build/validation-errors.d.ts +57 -15
- package/build/validation-errors.d.ts.map +1 -1
- package/build/validation-errors.js +37 -8
- package/build/websocket-request-client.d.ts +61 -15
- package/build/websocket-request-client.d.ts.map +1 -1
- package/build/websocket-request-client.js +35 -9
- package/build/with-api-maker.d.ts +2 -1
- package/build/with-api-maker.d.ts.map +1 -1
- package/build/with-api-maker.js +2 -1
- package/build/with-collection.d.ts +2 -1
- package/build/with-collection.d.ts.map +1 -1
- package/build/with-collection.js +2 -1
- package/build/with-current-user.d.ts.map +1 -1
- package/build/with-current-user.js +2 -1
- package/build/with-model.d.ts +2 -1
- package/build/with-model.d.ts.map +1 -1
- package/build/with-model.js +2 -1
- package/build/with-router.d.ts.map +1 -1
- package/build/with-router.js +2 -1
- package/package.json +6 -5
- package/build/base-component.d.ts +0 -4
- package/build/base-component.d.ts.map +0 -1
- package/build/base-component.js +0 -4
package/build/collection.d.ts
CHANGED
|
@@ -2,8 +2,46 @@
|
|
|
2
2
|
* @template {typeof import("./base-model.js").default} MC
|
|
3
3
|
* @typedef {InstanceType<MC>} ModelOf
|
|
4
4
|
*/
|
|
5
|
-
/** @typedef {Record<string,
|
|
6
|
-
/** @typedef {string |
|
|
5
|
+
/** @typedef {Record<string, string | string[] | Record<string, string | string[]>>} PreloadMap */
|
|
6
|
+
/** @typedef {string | string[] | PreloadMap} PreloadValue */
|
|
7
|
+
/** @typedef {Record<string, string | number | boolean | null | Array<string | number | boolean | null>>} CollectionSearchParamMap */
|
|
8
|
+
/** @typedef {CollectionSearchParamMap | string[]} CollectionSearchParams */
|
|
9
|
+
/** @typedef {Record<string, string | number | boolean | null>} CollectionRansackParams */
|
|
10
|
+
/**
|
|
11
|
+
* @typedef {(
|
|
12
|
+
* string |
|
|
13
|
+
* number |
|
|
14
|
+
* boolean |
|
|
15
|
+
* null |
|
|
16
|
+
* Array<string | [string, string]> |
|
|
17
|
+
* PreloadValue |
|
|
18
|
+
* CollectionRansackParams |
|
|
19
|
+
* CollectionSearchParams |
|
|
20
|
+
* Record<string, string[]>
|
|
21
|
+
* )} QueryParamValue
|
|
22
|
+
*/
|
|
23
|
+
/** @typedef {Record<string, QueryParamValue>} QueryParamValueMap */
|
|
24
|
+
/**
|
|
25
|
+
* @typedef {object} CollectionResponseMeta
|
|
26
|
+
* @property {number} count
|
|
27
|
+
* @property {number} currentPage
|
|
28
|
+
* @property {number} perPage
|
|
29
|
+
* @property {number} totalCount
|
|
30
|
+
* @property {number} totalPages
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* @template {typeof import("./base-model.js").default} MC
|
|
34
|
+
* @typedef {object} CollectionResponse
|
|
35
|
+
* @property {Array<ModelOf<MC>>} collection
|
|
36
|
+
* @property {CollectionResponseMeta} meta
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* @template {typeof import("./base-model.js").default} MC
|
|
40
|
+
* @typedef {object} ResultArgs
|
|
41
|
+
* @property {ApiMakerCollection<MC>} collection
|
|
42
|
+
* @property {Array<ModelOf<MC>>} models
|
|
43
|
+
* @property {CollectionResponse<MC>} response
|
|
44
|
+
*/
|
|
7
45
|
/**
|
|
8
46
|
* @template {typeof import("./base-model.js").default} MC
|
|
9
47
|
* @typedef {object} CollectionArgsType
|
|
@@ -21,12 +59,12 @@
|
|
|
21
59
|
* @property {number} [limit]
|
|
22
60
|
* @property {number} [page]
|
|
23
61
|
* @property {string} [pageKey]
|
|
24
|
-
* @property {
|
|
62
|
+
* @property {QueryParamValueMap} [params]
|
|
25
63
|
* @property {number} [per]
|
|
26
64
|
* @property {string} [perKey]
|
|
27
65
|
* @property {PreloadValue} [preload]
|
|
28
|
-
* @property {
|
|
29
|
-
* @property {
|
|
66
|
+
* @property {CollectionRansackParams} [ransack]
|
|
67
|
+
* @property {CollectionSearchParams} [search]
|
|
30
68
|
* @property {string} [searchKey]
|
|
31
69
|
* @property {Record<string, string[]>} [select]
|
|
32
70
|
* @property {Record<string, string[]>} [selectColumns]
|
|
@@ -60,41 +98,46 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
60
98
|
* @returns {Promise<void>}
|
|
61
99
|
*/
|
|
62
100
|
each(callback: (arg0: {
|
|
63
|
-
|
|
101
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
102
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
103
|
+
collection: ApiMakerCollection<any>;
|
|
104
|
+
_identifierKey: string | number;
|
|
105
|
+
_markedForDestruction: boolean;
|
|
106
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
64
107
|
newRecord: boolean;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
108
|
+
previousModelData: any;
|
|
109
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
110
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
111
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
112
|
+
uniqueKeyValue: number;
|
|
113
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
114
|
+
attributes(): ModelDataMap;
|
|
71
115
|
can(givenAbilityName: string): boolean;
|
|
72
116
|
clone(): /*elided*/ any;
|
|
73
117
|
cacheKey(): number | string;
|
|
74
118
|
localCacheKey(): string;
|
|
75
119
|
fullCacheKey(): string;
|
|
76
|
-
create(attributes?:
|
|
120
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
77
121
|
model: /*elided*/ any;
|
|
78
|
-
response:
|
|
122
|
+
response: ModelCommandResponse;
|
|
79
123
|
}>;
|
|
80
|
-
createRaw(rawData:
|
|
124
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
81
125
|
model: /*elided*/ any;
|
|
82
|
-
response:
|
|
126
|
+
response: ModelCommandResponse;
|
|
83
127
|
}>;
|
|
84
128
|
destroy(): Promise<{
|
|
85
129
|
model: /*elided*/ any;
|
|
86
|
-
response:
|
|
130
|
+
response: ModelCommandResponse;
|
|
87
131
|
}>;
|
|
88
132
|
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
89
|
-
getAttributes():
|
|
90
|
-
handleResponseError(response:
|
|
133
|
+
getAttributes(): ModelDataMap;
|
|
134
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
91
135
|
identifierKey(): number | string;
|
|
92
|
-
_identifierKey: string | number;
|
|
93
136
|
isAssociationLoaded(associationName: string): boolean;
|
|
94
137
|
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
95
138
|
isAssociationPresent(associationName: string): boolean;
|
|
96
|
-
ensureAssociationLoaded(associationName: string): Promise<
|
|
97
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<
|
|
139
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
140
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
98
141
|
isAttributeChanged(attributeName: string): boolean;
|
|
99
142
|
isChanged(): boolean;
|
|
100
143
|
isNewRecord(): boolean;
|
|
@@ -102,70 +145,54 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
102
145
|
savedChangeToAttribute(attributeName: string): boolean;
|
|
103
146
|
setNewModel(model: /*elided*/ any): void;
|
|
104
147
|
setNewModelData(model: /*elided*/ any): void;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
148
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
149
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
150
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
109
151
|
modelClassData(): ModelClassDataType;
|
|
110
152
|
reload(): Promise<void>;
|
|
111
153
|
save(): Promise<{
|
|
112
154
|
model: /*elided*/ any;
|
|
113
155
|
response?: object;
|
|
114
156
|
}>;
|
|
115
|
-
saveRaw(rawData:
|
|
157
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
158
|
+
simpleModelErrors?: boolean;
|
|
159
|
+
}): Promise<{
|
|
116
160
|
model: /*elided*/ any;
|
|
117
|
-
response:
|
|
161
|
+
response: ModelCommandResponse;
|
|
118
162
|
}>;
|
|
119
|
-
update(newAttributes?:
|
|
163
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
120
164
|
model: /*elided*/ any;
|
|
121
165
|
response?: object;
|
|
122
166
|
}>;
|
|
123
|
-
_refreshModelFromResponse(response:
|
|
124
|
-
_refreshModelDataFromResponse(response:
|
|
125
|
-
updateRaw(rawData:
|
|
167
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
168
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
169
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
126
170
|
simpleModelErrors?: boolean;
|
|
127
171
|
}): Promise<{
|
|
128
|
-
response:
|
|
172
|
+
response: ModelCommandResponse;
|
|
129
173
|
model: /*elided*/ any;
|
|
130
174
|
}>;
|
|
131
175
|
isValid(): never;
|
|
132
176
|
isValidOnServer(): Promise<{
|
|
133
177
|
valid: boolean;
|
|
134
|
-
errors:
|
|
178
|
+
errors: ValidationResponseErrors;
|
|
135
179
|
}>;
|
|
136
|
-
modelClass():
|
|
180
|
+
modelClass(): BaseModelClassType;
|
|
137
181
|
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
138
182
|
markForDestruction(): void;
|
|
139
|
-
_markedForDestruction: boolean;
|
|
140
183
|
markedForDestruction(): boolean;
|
|
141
184
|
uniqueKey(): number;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
154
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
155
|
-
_readHasOneReflection({ reflectionName }: {
|
|
156
|
-
modelClass: any;
|
|
157
|
-
reflectionName: string;
|
|
158
|
-
}): any | null;
|
|
159
|
-
_readModelDataFromArgs(args?: {
|
|
160
|
-
data?: {
|
|
161
|
-
b?: Record<string, any>;
|
|
162
|
-
a?: Record<string, any>;
|
|
163
|
-
r?: any;
|
|
164
|
-
};
|
|
165
|
-
collection?: ApiMakerCollection<any>;
|
|
166
|
-
}): void;
|
|
167
|
-
collection: ApiMakerCollection<any>;
|
|
168
|
-
preloadedRelationships: any;
|
|
185
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
186
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
187
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
188
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
189
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
190
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
191
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
192
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
193
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
194
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
195
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
169
196
|
_readPreloadedRelationships(preloaded: {
|
|
170
197
|
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
171
198
|
}): void;
|
|
@@ -213,41 +240,46 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
213
240
|
* @returns {import("./base-model.js").default}
|
|
214
241
|
*/
|
|
215
242
|
find(callback: (arg0: {
|
|
216
|
-
|
|
243
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
244
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
245
|
+
collection: ApiMakerCollection<any>;
|
|
246
|
+
_identifierKey: string | number;
|
|
247
|
+
_markedForDestruction: boolean;
|
|
248
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
217
249
|
newRecord: boolean;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
250
|
+
previousModelData: any;
|
|
251
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
252
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
253
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
254
|
+
uniqueKeyValue: number;
|
|
255
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
256
|
+
attributes(): ModelDataMap;
|
|
224
257
|
can(givenAbilityName: string): boolean;
|
|
225
258
|
clone(): /*elided*/ any;
|
|
226
259
|
cacheKey(): number | string;
|
|
227
260
|
localCacheKey(): string;
|
|
228
261
|
fullCacheKey(): string;
|
|
229
|
-
create(attributes?:
|
|
262
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
230
263
|
model: /*elided*/ any;
|
|
231
|
-
response:
|
|
264
|
+
response: ModelCommandResponse;
|
|
232
265
|
}>;
|
|
233
|
-
createRaw(rawData:
|
|
266
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
234
267
|
model: /*elided*/ any;
|
|
235
|
-
response:
|
|
268
|
+
response: ModelCommandResponse;
|
|
236
269
|
}>;
|
|
237
270
|
destroy(): Promise<{
|
|
238
271
|
model: /*elided*/ any;
|
|
239
|
-
response:
|
|
272
|
+
response: ModelCommandResponse;
|
|
240
273
|
}>;
|
|
241
274
|
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
242
|
-
getAttributes():
|
|
243
|
-
handleResponseError(response:
|
|
275
|
+
getAttributes(): ModelDataMap;
|
|
276
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
244
277
|
identifierKey(): number | string;
|
|
245
|
-
_identifierKey: string | number;
|
|
246
278
|
isAssociationLoaded(associationName: string): boolean;
|
|
247
279
|
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
248
280
|
isAssociationPresent(associationName: string): boolean;
|
|
249
|
-
ensureAssociationLoaded(associationName: string): Promise<
|
|
250
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<
|
|
281
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
282
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
251
283
|
isAttributeChanged(attributeName: string): boolean;
|
|
252
284
|
isChanged(): boolean;
|
|
253
285
|
isNewRecord(): boolean;
|
|
@@ -255,110 +287,99 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
255
287
|
savedChangeToAttribute(attributeName: string): boolean;
|
|
256
288
|
setNewModel(model: /*elided*/ any): void;
|
|
257
289
|
setNewModelData(model: /*elided*/ any): void;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
290
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
291
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
292
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
262
293
|
modelClassData(): ModelClassDataType;
|
|
263
294
|
reload(): Promise<void>;
|
|
264
295
|
save(): Promise<{
|
|
265
296
|
model: /*elided*/ any;
|
|
266
297
|
response?: object;
|
|
267
298
|
}>;
|
|
268
|
-
saveRaw(rawData:
|
|
299
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
300
|
+
simpleModelErrors?: boolean;
|
|
301
|
+
}): Promise<{
|
|
269
302
|
model: /*elided*/ any;
|
|
270
|
-
response:
|
|
303
|
+
response: ModelCommandResponse;
|
|
271
304
|
}>;
|
|
272
|
-
update(newAttributes?:
|
|
305
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
273
306
|
model: /*elided*/ any;
|
|
274
307
|
response?: object;
|
|
275
308
|
}>;
|
|
276
|
-
_refreshModelFromResponse(response:
|
|
277
|
-
_refreshModelDataFromResponse(response:
|
|
278
|
-
updateRaw(rawData:
|
|
309
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
310
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
311
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
279
312
|
simpleModelErrors?: boolean;
|
|
280
313
|
}): Promise<{
|
|
281
|
-
response:
|
|
314
|
+
response: ModelCommandResponse;
|
|
282
315
|
model: /*elided*/ any;
|
|
283
316
|
}>;
|
|
284
317
|
isValid(): never;
|
|
285
318
|
isValidOnServer(): Promise<{
|
|
286
319
|
valid: boolean;
|
|
287
|
-
errors:
|
|
320
|
+
errors: ValidationResponseErrors;
|
|
288
321
|
}>;
|
|
289
|
-
modelClass():
|
|
322
|
+
modelClass(): BaseModelClassType;
|
|
290
323
|
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
291
324
|
markForDestruction(): void;
|
|
292
|
-
_markedForDestruction: boolean;
|
|
293
325
|
markedForDestruction(): boolean;
|
|
294
326
|
uniqueKey(): number;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
307
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
308
|
-
_readHasOneReflection({ reflectionName }: {
|
|
309
|
-
modelClass: any;
|
|
310
|
-
reflectionName: string;
|
|
311
|
-
}): any | null;
|
|
312
|
-
_readModelDataFromArgs(args?: {
|
|
313
|
-
data?: {
|
|
314
|
-
b?: Record<string, any>;
|
|
315
|
-
a?: Record<string, any>;
|
|
316
|
-
r?: any;
|
|
317
|
-
};
|
|
318
|
-
collection?: ApiMakerCollection<any>;
|
|
319
|
-
}): void;
|
|
320
|
-
collection: ApiMakerCollection<any>;
|
|
321
|
-
preloadedRelationships: any;
|
|
327
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
328
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
329
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
330
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
331
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
332
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
333
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
334
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
335
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
336
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
337
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
322
338
|
_readPreloadedRelationships(preloaded: {
|
|
323
339
|
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
324
340
|
}): void;
|
|
325
341
|
primaryKey(): number | string;
|
|
326
342
|
}) => boolean): {
|
|
327
|
-
|
|
343
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
344
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
345
|
+
collection: ApiMakerCollection<any>;
|
|
346
|
+
_identifierKey: string | number;
|
|
347
|
+
_markedForDestruction: boolean;
|
|
348
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
328
349
|
newRecord: boolean;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
350
|
+
previousModelData: any;
|
|
351
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
352
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
353
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
354
|
+
uniqueKeyValue: number;
|
|
355
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
356
|
+
attributes(): ModelDataMap;
|
|
335
357
|
can(givenAbilityName: string): boolean;
|
|
336
358
|
clone(): /*elided*/ any;
|
|
337
359
|
cacheKey(): number | string;
|
|
338
360
|
localCacheKey(): string;
|
|
339
361
|
fullCacheKey(): string;
|
|
340
|
-
create(attributes?:
|
|
362
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
341
363
|
model: /*elided*/ any;
|
|
342
|
-
response:
|
|
364
|
+
response: ModelCommandResponse;
|
|
343
365
|
}>;
|
|
344
|
-
createRaw(rawData:
|
|
366
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
345
367
|
model: /*elided*/ any;
|
|
346
|
-
response:
|
|
368
|
+
response: ModelCommandResponse;
|
|
347
369
|
}>;
|
|
348
370
|
destroy(): Promise<{
|
|
349
371
|
model: /*elided*/ any;
|
|
350
|
-
response:
|
|
372
|
+
response: ModelCommandResponse;
|
|
351
373
|
}>;
|
|
352
374
|
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
353
|
-
getAttributes():
|
|
354
|
-
handleResponseError(response:
|
|
375
|
+
getAttributes(): ModelDataMap;
|
|
376
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
355
377
|
identifierKey(): number | string;
|
|
356
|
-
_identifierKey: string | number;
|
|
357
378
|
isAssociationLoaded(associationName: string): boolean;
|
|
358
379
|
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
359
380
|
isAssociationPresent(associationName: string): boolean;
|
|
360
|
-
ensureAssociationLoaded(associationName: string): Promise<
|
|
361
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<
|
|
381
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
382
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
362
383
|
isAttributeChanged(attributeName: string): boolean;
|
|
363
384
|
isChanged(): boolean;
|
|
364
385
|
isNewRecord(): boolean;
|
|
@@ -366,70 +387,54 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
366
387
|
savedChangeToAttribute(attributeName: string): boolean;
|
|
367
388
|
setNewModel(model: /*elided*/ any): void;
|
|
368
389
|
setNewModelData(model: /*elided*/ any): void;
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
390
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
391
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
392
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
373
393
|
modelClassData(): ModelClassDataType;
|
|
374
394
|
reload(): Promise<void>;
|
|
375
395
|
save(): Promise<{
|
|
376
396
|
model: /*elided*/ any;
|
|
377
397
|
response?: object;
|
|
378
398
|
}>;
|
|
379
|
-
saveRaw(rawData:
|
|
399
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
400
|
+
simpleModelErrors?: boolean;
|
|
401
|
+
}): Promise<{
|
|
380
402
|
model: /*elided*/ any;
|
|
381
|
-
response:
|
|
403
|
+
response: ModelCommandResponse;
|
|
382
404
|
}>;
|
|
383
|
-
update(newAttributes?:
|
|
405
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
384
406
|
model: /*elided*/ any;
|
|
385
407
|
response?: object;
|
|
386
408
|
}>;
|
|
387
|
-
_refreshModelFromResponse(response:
|
|
388
|
-
_refreshModelDataFromResponse(response:
|
|
389
|
-
updateRaw(rawData:
|
|
409
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
410
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
411
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
390
412
|
simpleModelErrors?: boolean;
|
|
391
413
|
}): Promise<{
|
|
392
|
-
response:
|
|
414
|
+
response: ModelCommandResponse;
|
|
393
415
|
model: /*elided*/ any;
|
|
394
416
|
}>;
|
|
395
417
|
isValid(): never;
|
|
396
418
|
isValidOnServer(): Promise<{
|
|
397
419
|
valid: boolean;
|
|
398
|
-
errors:
|
|
420
|
+
errors: ValidationResponseErrors;
|
|
399
421
|
}>;
|
|
400
|
-
modelClass():
|
|
422
|
+
modelClass(): BaseModelClassType;
|
|
401
423
|
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
402
424
|
markForDestruction(): void;
|
|
403
|
-
_markedForDestruction: boolean;
|
|
404
425
|
markedForDestruction(): boolean;
|
|
405
426
|
uniqueKey(): number;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
418
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
419
|
-
_readHasOneReflection({ reflectionName }: {
|
|
420
|
-
modelClass: any;
|
|
421
|
-
reflectionName: string;
|
|
422
|
-
}): any | null;
|
|
423
|
-
_readModelDataFromArgs(args?: {
|
|
424
|
-
data?: {
|
|
425
|
-
b?: Record<string, any>;
|
|
426
|
-
a?: Record<string, any>;
|
|
427
|
-
r?: any;
|
|
428
|
-
};
|
|
429
|
-
collection?: ApiMakerCollection<any>;
|
|
430
|
-
}): void;
|
|
431
|
-
collection: ApiMakerCollection<any>;
|
|
432
|
-
preloadedRelationships: any;
|
|
427
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
428
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
429
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
430
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
431
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
432
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
433
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
434
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
435
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
436
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
437
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
433
438
|
_readPreloadedRelationships(preloaded: {
|
|
434
439
|
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
435
440
|
}): void;
|
|
@@ -440,41 +445,46 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
440
445
|
* @returns {void}
|
|
441
446
|
*/
|
|
442
447
|
forEach(callback: (arg0: {
|
|
443
|
-
|
|
448
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
449
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
450
|
+
collection: ApiMakerCollection<any>;
|
|
451
|
+
_identifierKey: string | number;
|
|
452
|
+
_markedForDestruction: boolean;
|
|
453
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
444
454
|
newRecord: boolean;
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
455
|
+
previousModelData: any;
|
|
456
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
457
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
458
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
459
|
+
uniqueKeyValue: number;
|
|
460
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
461
|
+
attributes(): ModelDataMap;
|
|
451
462
|
can(givenAbilityName: string): boolean;
|
|
452
463
|
clone(): /*elided*/ any;
|
|
453
464
|
cacheKey(): number | string;
|
|
454
465
|
localCacheKey(): string;
|
|
455
466
|
fullCacheKey(): string;
|
|
456
|
-
create(attributes?:
|
|
467
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
457
468
|
model: /*elided*/ any;
|
|
458
|
-
response:
|
|
469
|
+
response: ModelCommandResponse;
|
|
459
470
|
}>;
|
|
460
|
-
createRaw(rawData:
|
|
471
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
461
472
|
model: /*elided*/ any;
|
|
462
|
-
response:
|
|
473
|
+
response: ModelCommandResponse;
|
|
463
474
|
}>;
|
|
464
475
|
destroy(): Promise<{
|
|
465
476
|
model: /*elided*/ any;
|
|
466
|
-
response:
|
|
477
|
+
response: ModelCommandResponse;
|
|
467
478
|
}>;
|
|
468
479
|
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
469
|
-
getAttributes():
|
|
470
|
-
handleResponseError(response:
|
|
480
|
+
getAttributes(): ModelDataMap;
|
|
481
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
471
482
|
identifierKey(): number | string;
|
|
472
|
-
_identifierKey: string | number;
|
|
473
483
|
isAssociationLoaded(associationName: string): boolean;
|
|
474
484
|
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
475
485
|
isAssociationPresent(associationName: string): boolean;
|
|
476
|
-
ensureAssociationLoaded(associationName: string): Promise<
|
|
477
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<
|
|
486
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
487
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
478
488
|
isAttributeChanged(attributeName: string): boolean;
|
|
479
489
|
isChanged(): boolean;
|
|
480
490
|
isNewRecord(): boolean;
|
|
@@ -482,70 +492,54 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
482
492
|
savedChangeToAttribute(attributeName: string): boolean;
|
|
483
493
|
setNewModel(model: /*elided*/ any): void;
|
|
484
494
|
setNewModelData(model: /*elided*/ any): void;
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
495
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
496
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
497
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
489
498
|
modelClassData(): ModelClassDataType;
|
|
490
499
|
reload(): Promise<void>;
|
|
491
500
|
save(): Promise<{
|
|
492
501
|
model: /*elided*/ any;
|
|
493
502
|
response?: object;
|
|
494
503
|
}>;
|
|
495
|
-
saveRaw(rawData:
|
|
504
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
505
|
+
simpleModelErrors?: boolean;
|
|
506
|
+
}): Promise<{
|
|
496
507
|
model: /*elided*/ any;
|
|
497
|
-
response:
|
|
508
|
+
response: ModelCommandResponse;
|
|
498
509
|
}>;
|
|
499
|
-
update(newAttributes?:
|
|
510
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
500
511
|
model: /*elided*/ any;
|
|
501
512
|
response?: object;
|
|
502
513
|
}>;
|
|
503
|
-
_refreshModelFromResponse(response:
|
|
504
|
-
_refreshModelDataFromResponse(response:
|
|
505
|
-
updateRaw(rawData:
|
|
514
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
515
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
516
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
506
517
|
simpleModelErrors?: boolean;
|
|
507
518
|
}): Promise<{
|
|
508
|
-
response:
|
|
519
|
+
response: ModelCommandResponse;
|
|
509
520
|
model: /*elided*/ any;
|
|
510
521
|
}>;
|
|
511
522
|
isValid(): never;
|
|
512
523
|
isValidOnServer(): Promise<{
|
|
513
524
|
valid: boolean;
|
|
514
|
-
errors:
|
|
525
|
+
errors: ValidationResponseErrors;
|
|
515
526
|
}>;
|
|
516
|
-
modelClass():
|
|
527
|
+
modelClass(): BaseModelClassType;
|
|
517
528
|
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
518
529
|
markForDestruction(): void;
|
|
519
|
-
_markedForDestruction: boolean;
|
|
520
530
|
markedForDestruction(): boolean;
|
|
521
531
|
uniqueKey(): number;
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
534
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
535
|
-
_readHasOneReflection({ reflectionName }: {
|
|
536
|
-
modelClass: any;
|
|
537
|
-
reflectionName: string;
|
|
538
|
-
}): any | null;
|
|
539
|
-
_readModelDataFromArgs(args?: {
|
|
540
|
-
data?: {
|
|
541
|
-
b?: Record<string, any>;
|
|
542
|
-
a?: Record<string, any>;
|
|
543
|
-
r?: any;
|
|
544
|
-
};
|
|
545
|
-
collection?: ApiMakerCollection<any>;
|
|
546
|
-
}): void;
|
|
547
|
-
collection: ApiMakerCollection<any>;
|
|
548
|
-
preloadedRelationships: any;
|
|
532
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
533
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
534
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
535
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
536
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
537
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
538
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
539
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
540
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
541
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
542
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
549
543
|
_readPreloadedRelationships(preloaded: {
|
|
550
544
|
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
551
545
|
}): void;
|
|
@@ -553,44 +547,49 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
553
547
|
}) => void): void;
|
|
554
548
|
/**
|
|
555
549
|
* @param {function(import("./base-model.js").default): void} callback
|
|
556
|
-
* @returns {
|
|
550
|
+
* @returns {Array<unknown>}
|
|
557
551
|
*/
|
|
558
552
|
map(callback: (arg0: {
|
|
559
|
-
|
|
553
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
554
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
555
|
+
collection: ApiMakerCollection<any>;
|
|
556
|
+
_identifierKey: string | number;
|
|
557
|
+
_markedForDestruction: boolean;
|
|
558
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
560
559
|
newRecord: boolean;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
560
|
+
previousModelData: any;
|
|
561
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
562
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
563
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
564
|
+
uniqueKeyValue: number;
|
|
565
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
566
|
+
attributes(): ModelDataMap;
|
|
567
567
|
can(givenAbilityName: string): boolean;
|
|
568
568
|
clone(): /*elided*/ any;
|
|
569
569
|
cacheKey(): number | string;
|
|
570
570
|
localCacheKey(): string;
|
|
571
571
|
fullCacheKey(): string;
|
|
572
|
-
create(attributes?:
|
|
572
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
573
573
|
model: /*elided*/ any;
|
|
574
|
-
response:
|
|
574
|
+
response: ModelCommandResponse;
|
|
575
575
|
}>;
|
|
576
|
-
createRaw(rawData:
|
|
576
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
577
577
|
model: /*elided*/ any;
|
|
578
|
-
response:
|
|
578
|
+
response: ModelCommandResponse;
|
|
579
579
|
}>;
|
|
580
580
|
destroy(): Promise<{
|
|
581
581
|
model: /*elided*/ any;
|
|
582
|
-
response:
|
|
582
|
+
response: ModelCommandResponse;
|
|
583
583
|
}>;
|
|
584
584
|
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
585
|
-
getAttributes():
|
|
586
|
-
handleResponseError(response:
|
|
585
|
+
getAttributes(): ModelDataMap;
|
|
586
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
587
587
|
identifierKey(): number | string;
|
|
588
|
-
_identifierKey: string | number;
|
|
589
588
|
isAssociationLoaded(associationName: string): boolean;
|
|
590
589
|
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
591
590
|
isAssociationPresent(associationName: string): boolean;
|
|
592
|
-
ensureAssociationLoaded(associationName: string): Promise<
|
|
593
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<
|
|
591
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
592
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
594
593
|
isAttributeChanged(attributeName: string): boolean;
|
|
595
594
|
isChanged(): boolean;
|
|
596
595
|
isNewRecord(): boolean;
|
|
@@ -598,75 +597,59 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
598
597
|
savedChangeToAttribute(attributeName: string): boolean;
|
|
599
598
|
setNewModel(model: /*elided*/ any): void;
|
|
600
599
|
setNewModelData(model: /*elided*/ any): void;
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
600
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
601
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
602
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
605
603
|
modelClassData(): ModelClassDataType;
|
|
606
604
|
reload(): Promise<void>;
|
|
607
605
|
save(): Promise<{
|
|
608
606
|
model: /*elided*/ any;
|
|
609
607
|
response?: object;
|
|
610
608
|
}>;
|
|
611
|
-
saveRaw(rawData:
|
|
609
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
610
|
+
simpleModelErrors?: boolean;
|
|
611
|
+
}): Promise<{
|
|
612
612
|
model: /*elided*/ any;
|
|
613
|
-
response:
|
|
613
|
+
response: ModelCommandResponse;
|
|
614
614
|
}>;
|
|
615
|
-
update(newAttributes?:
|
|
615
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
616
616
|
model: /*elided*/ any;
|
|
617
617
|
response?: object;
|
|
618
618
|
}>;
|
|
619
|
-
_refreshModelFromResponse(response:
|
|
620
|
-
_refreshModelDataFromResponse(response:
|
|
621
|
-
updateRaw(rawData:
|
|
619
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
620
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
621
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
622
622
|
simpleModelErrors?: boolean;
|
|
623
623
|
}): Promise<{
|
|
624
|
-
response:
|
|
624
|
+
response: ModelCommandResponse;
|
|
625
625
|
model: /*elided*/ any;
|
|
626
626
|
}>;
|
|
627
627
|
isValid(): never;
|
|
628
628
|
isValidOnServer(): Promise<{
|
|
629
629
|
valid: boolean;
|
|
630
|
-
errors:
|
|
630
|
+
errors: ValidationResponseErrors;
|
|
631
631
|
}>;
|
|
632
|
-
modelClass():
|
|
632
|
+
modelClass(): BaseModelClassType;
|
|
633
633
|
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
634
634
|
markForDestruction(): void;
|
|
635
|
-
_markedForDestruction: boolean;
|
|
636
635
|
markedForDestruction(): boolean;
|
|
637
636
|
uniqueKey(): number;
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
650
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
651
|
-
_readHasOneReflection({ reflectionName }: {
|
|
652
|
-
modelClass: any;
|
|
653
|
-
reflectionName: string;
|
|
654
|
-
}): any | null;
|
|
655
|
-
_readModelDataFromArgs(args?: {
|
|
656
|
-
data?: {
|
|
657
|
-
b?: Record<string, any>;
|
|
658
|
-
a?: Record<string, any>;
|
|
659
|
-
r?: any;
|
|
660
|
-
};
|
|
661
|
-
collection?: ApiMakerCollection<any>;
|
|
662
|
-
}): void;
|
|
663
|
-
collection: ApiMakerCollection<any>;
|
|
664
|
-
preloadedRelationships: any;
|
|
637
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
638
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
639
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
640
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
641
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
642
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
643
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
644
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
645
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
646
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
647
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
665
648
|
_readPreloadedRelationships(preloaded: {
|
|
666
649
|
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
667
650
|
}): void;
|
|
668
651
|
primaryKey(): number | string;
|
|
669
|
-
}) => void):
|
|
652
|
+
}) => void): Array<unknown>;
|
|
670
653
|
/**
|
|
671
654
|
* @param {PreloadValue} preloadValue
|
|
672
655
|
* @returns {this}
|
|
@@ -684,8 +667,8 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
684
667
|
pageKey(pageKey: string): this;
|
|
685
668
|
/** @returns {boolean} */
|
|
686
669
|
isFiltered(): boolean;
|
|
687
|
-
/** @returns {
|
|
688
|
-
params():
|
|
670
|
+
/** @returns {QueryParamValueMap} */
|
|
671
|
+
params(): QueryParamValueMap;
|
|
689
672
|
/**
|
|
690
673
|
* @param {number} per
|
|
691
674
|
* @returns {this}
|
|
@@ -697,17 +680,17 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
697
680
|
*/
|
|
698
681
|
perKey(perKey: string): this;
|
|
699
682
|
/**
|
|
700
|
-
* @param {
|
|
683
|
+
* @param {CollectionRansackParams} params
|
|
701
684
|
* @returns {this}
|
|
702
685
|
*/
|
|
703
|
-
ransack(params:
|
|
686
|
+
ransack(params: CollectionRansackParams): this;
|
|
704
687
|
/** @returns {Promise<Result>} */
|
|
705
688
|
result(): Promise<Result>;
|
|
706
689
|
/**
|
|
707
|
-
* @param {
|
|
690
|
+
* @param {CollectionSearchParams} params
|
|
708
691
|
* @returns {this}
|
|
709
692
|
*/
|
|
710
|
-
search(params:
|
|
693
|
+
search(params: CollectionSearchParams): this;
|
|
711
694
|
/**
|
|
712
695
|
* @param {string} searchKey
|
|
713
696
|
* @returns {this}
|
|
@@ -744,51 +727,75 @@ export default class ApiMakerCollection<MC extends typeof import("./base-model.j
|
|
|
744
727
|
* @returns {this}
|
|
745
728
|
*/
|
|
746
729
|
_merge(newQueryArgs: QueryArgsType): this;
|
|
747
|
-
/** @returns {
|
|
748
|
-
_response():
|
|
749
|
-
collection: Array<ModelOf<MC>>;
|
|
750
|
-
}>;
|
|
730
|
+
/** @returns {import("./command-execution.js").default} */
|
|
731
|
+
_response(): import("./command-execution.js").default;
|
|
751
732
|
}
|
|
752
733
|
export type ModelOf<MC extends typeof import("./base-model.js").default> = InstanceType<MC>;
|
|
753
|
-
export type PreloadMap = Record<string,
|
|
754
|
-
export type PreloadValue = string |
|
|
734
|
+
export type PreloadMap = Record<string, string | string[] | Record<string, string | string[]>>;
|
|
735
|
+
export type PreloadValue = string | string[] | PreloadMap;
|
|
736
|
+
export type CollectionSearchParamMap = Record<string, string | number | boolean | null | Array<string | number | boolean | null>>;
|
|
737
|
+
export type CollectionSearchParams = CollectionSearchParamMap | string[];
|
|
738
|
+
export type CollectionRansackParams = Record<string, string | number | boolean | null>;
|
|
739
|
+
export type QueryParamValue = (string | number | boolean | null | Array<string | [string, string]> | PreloadValue | CollectionRansackParams | CollectionSearchParams | Record<string, string[]>);
|
|
740
|
+
export type QueryParamValueMap = Record<string, QueryParamValue>;
|
|
741
|
+
export type CollectionResponseMeta = {
|
|
742
|
+
count: number;
|
|
743
|
+
currentPage: number;
|
|
744
|
+
perPage: number;
|
|
745
|
+
totalCount: number;
|
|
746
|
+
totalPages: number;
|
|
747
|
+
};
|
|
748
|
+
export type CollectionResponse<MC extends typeof import("./base-model.js").default> = {
|
|
749
|
+
collection: Array<ModelOf<MC>>;
|
|
750
|
+
meta: CollectionResponseMeta;
|
|
751
|
+
};
|
|
752
|
+
export type ResultArgs<MC extends typeof import("./base-model.js").default> = {
|
|
753
|
+
collection: ApiMakerCollection<MC>;
|
|
754
|
+
models: Array<ModelOf<MC>>;
|
|
755
|
+
response: CollectionResponse<MC>;
|
|
756
|
+
};
|
|
755
757
|
export type CollectionArgsType<MC extends typeof import("./base-model.js").default> = {
|
|
756
758
|
model?: {
|
|
757
|
-
|
|
759
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
760
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
761
|
+
collection: ApiMakerCollection<any>;
|
|
762
|
+
_identifierKey: string | number;
|
|
763
|
+
_markedForDestruction: boolean;
|
|
764
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
758
765
|
newRecord: boolean;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
766
|
+
previousModelData: any;
|
|
767
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
768
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
769
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
770
|
+
uniqueKeyValue: number;
|
|
771
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
772
|
+
attributes(): ModelDataMap;
|
|
765
773
|
can(givenAbilityName: string): boolean;
|
|
766
774
|
clone(): /*elided*/ any;
|
|
767
775
|
cacheKey(): number | string;
|
|
768
776
|
localCacheKey(): string;
|
|
769
777
|
fullCacheKey(): string;
|
|
770
|
-
create(attributes?:
|
|
778
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
771
779
|
model: /*elided*/ any;
|
|
772
|
-
response:
|
|
780
|
+
response: ModelCommandResponse;
|
|
773
781
|
}>;
|
|
774
|
-
createRaw(rawData:
|
|
782
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
775
783
|
model: /*elided*/ any;
|
|
776
|
-
response:
|
|
784
|
+
response: ModelCommandResponse;
|
|
777
785
|
}>;
|
|
778
786
|
destroy(): Promise<{
|
|
779
787
|
model: /*elided*/ any;
|
|
780
|
-
response:
|
|
788
|
+
response: ModelCommandResponse;
|
|
781
789
|
}>;
|
|
782
790
|
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
783
|
-
getAttributes():
|
|
784
|
-
handleResponseError(response:
|
|
791
|
+
getAttributes(): ModelDataMap;
|
|
792
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
785
793
|
identifierKey(): number | string;
|
|
786
|
-
_identifierKey: string | number;
|
|
787
794
|
isAssociationLoaded(associationName: string): boolean;
|
|
788
795
|
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
789
796
|
isAssociationPresent(associationName: string): boolean;
|
|
790
|
-
ensureAssociationLoaded(associationName: string): Promise<
|
|
791
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<
|
|
797
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
798
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
792
799
|
isAttributeChanged(attributeName: string): boolean;
|
|
793
800
|
isChanged(): boolean;
|
|
794
801
|
isNewRecord(): boolean;
|
|
@@ -796,70 +803,54 @@ export type CollectionArgsType<MC extends typeof import("./base-model.js").defau
|
|
|
796
803
|
savedChangeToAttribute(attributeName: string): boolean;
|
|
797
804
|
setNewModel(model: /*elided*/ any): void;
|
|
798
805
|
setNewModelData(model: /*elided*/ any): void;
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
806
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
807
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
808
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
803
809
|
modelClassData(): ModelClassDataType;
|
|
804
810
|
reload(): Promise<void>;
|
|
805
811
|
save(): Promise<{
|
|
806
812
|
model: /*elided*/ any;
|
|
807
813
|
response?: object;
|
|
808
814
|
}>;
|
|
809
|
-
saveRaw(rawData:
|
|
815
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
816
|
+
simpleModelErrors?: boolean;
|
|
817
|
+
}): Promise<{
|
|
810
818
|
model: /*elided*/ any;
|
|
811
|
-
response:
|
|
819
|
+
response: ModelCommandResponse;
|
|
812
820
|
}>;
|
|
813
|
-
update(newAttributes?:
|
|
821
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
814
822
|
model: /*elided*/ any;
|
|
815
823
|
response?: object;
|
|
816
824
|
}>;
|
|
817
|
-
_refreshModelFromResponse(response:
|
|
818
|
-
_refreshModelDataFromResponse(response:
|
|
819
|
-
updateRaw(rawData:
|
|
825
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
826
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
827
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
820
828
|
simpleModelErrors?: boolean;
|
|
821
829
|
}): Promise<{
|
|
822
|
-
response:
|
|
830
|
+
response: ModelCommandResponse;
|
|
823
831
|
model: /*elided*/ any;
|
|
824
832
|
}>;
|
|
825
833
|
isValid(): never;
|
|
826
834
|
isValidOnServer(): Promise<{
|
|
827
835
|
valid: boolean;
|
|
828
|
-
errors:
|
|
836
|
+
errors: ValidationResponseErrors;
|
|
829
837
|
}>;
|
|
830
|
-
modelClass():
|
|
838
|
+
modelClass(): BaseModelClassType;
|
|
831
839
|
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
832
840
|
markForDestruction(): void;
|
|
833
|
-
_markedForDestruction: boolean;
|
|
834
841
|
markedForDestruction(): boolean;
|
|
835
842
|
uniqueKey(): number;
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
848
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
849
|
-
_readHasOneReflection({ reflectionName }: {
|
|
850
|
-
modelClass: any;
|
|
851
|
-
reflectionName: string;
|
|
852
|
-
}): any | null;
|
|
853
|
-
_readModelDataFromArgs(args?: {
|
|
854
|
-
data?: {
|
|
855
|
-
b?: Record<string, any>;
|
|
856
|
-
a?: Record<string, any>;
|
|
857
|
-
r?: any;
|
|
858
|
-
};
|
|
859
|
-
collection?: ApiMakerCollection<any>;
|
|
860
|
-
}): void;
|
|
861
|
-
collection: ApiMakerCollection<any>;
|
|
862
|
-
preloadedRelationships: any;
|
|
843
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
844
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
845
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
846
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
847
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
848
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
849
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
850
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
851
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
852
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
853
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
863
854
|
_readPreloadedRelationships(preloaded: {
|
|
864
855
|
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
865
856
|
}): void;
|
|
@@ -877,12 +868,12 @@ export type QueryArgsType = {
|
|
|
877
868
|
limit?: number;
|
|
878
869
|
page?: number;
|
|
879
870
|
pageKey?: string;
|
|
880
|
-
params?:
|
|
871
|
+
params?: QueryParamValueMap;
|
|
881
872
|
per?: number;
|
|
882
873
|
perKey?: string;
|
|
883
874
|
preload?: PreloadValue;
|
|
884
|
-
ransack?:
|
|
885
|
-
search?:
|
|
875
|
+
ransack?: CollectionRansackParams;
|
|
876
|
+
search?: CollectionSearchParams;
|
|
886
877
|
searchKey?: string;
|
|
887
878
|
select?: Record<string, string[]>;
|
|
888
879
|
selectColumns?: Record<string, string[]>;
|