@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/devise.d.ts
CHANGED
|
@@ -1,68 +1,667 @@
|
|
|
1
1
|
/** ApiMakerDevise. */
|
|
2
2
|
export default class ApiMakerDevise {
|
|
3
|
-
/**
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Emits the shared sign-out event payload for one scope.
|
|
5
|
+
* @param {DeviseScopeArgs} args
|
|
6
|
+
* @returns {void}
|
|
7
|
+
*/
|
|
8
|
+
static callSignOutEvent(args: DeviseScopeArgs): void;
|
|
5
9
|
/** @returns {ApiMakerDevise} */
|
|
6
10
|
static current(): ApiMakerDevise;
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Returns the shared event emitter used for Devise lifecycle events.
|
|
13
|
+
* @returns {typeof events}
|
|
14
|
+
*/
|
|
15
|
+
static events(): typeof events;
|
|
16
|
+
/**
|
|
17
|
+
* Registers one Devise scope and its helper accessors.
|
|
18
|
+
* @param {string} scope
|
|
19
|
+
* @param {DeviseScopeArgs} args
|
|
20
|
+
*/
|
|
21
|
+
static addUserScope(scope: string, args?: DeviseScopeArgs): void;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the registered scope helper for one scope name.
|
|
24
|
+
* @param {string} scope
|
|
25
|
+
* @returns {DeviseScope}
|
|
26
|
+
*/
|
|
27
|
+
static getScope(scope: string): DeviseScope;
|
|
13
28
|
/** @returns {string[]} */
|
|
14
29
|
static registeredScopes(): string[];
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Signs in one scope over HTTP and refreshes websocket auth state.
|
|
32
|
+
* @param {string} username
|
|
33
|
+
* @param {string} password
|
|
34
|
+
* @param {DeviseScopeArgs} args
|
|
35
|
+
* @returns {Promise<{model: import("./base-model.js").default | undefined, response: DeviseSignInResponse}>}
|
|
36
|
+
*/
|
|
37
|
+
static signIn(username: string, password: string, args?: DeviseScopeArgs): Promise<{
|
|
38
|
+
model: {
|
|
39
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
40
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
41
|
+
collection: import("./collection.js").default<any>;
|
|
42
|
+
_identifierKey: string | number;
|
|
43
|
+
_markedForDestruction: boolean;
|
|
44
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
45
|
+
newRecord: boolean;
|
|
46
|
+
previousModelData: any;
|
|
47
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
48
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
49
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
50
|
+
uniqueKeyValue: number;
|
|
51
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
52
|
+
attributes(): ModelDataMap;
|
|
53
|
+
can(givenAbilityName: string): boolean;
|
|
54
|
+
clone(): /*elided*/ any;
|
|
55
|
+
cacheKey(): number | string;
|
|
56
|
+
localCacheKey(): string;
|
|
57
|
+
fullCacheKey(): string;
|
|
58
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
59
|
+
model: /*elided*/ any;
|
|
60
|
+
response: ModelCommandResponse;
|
|
61
|
+
}>;
|
|
62
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
63
|
+
model: /*elided*/ any;
|
|
64
|
+
response: ModelCommandResponse;
|
|
65
|
+
}>;
|
|
66
|
+
destroy(): Promise<{
|
|
67
|
+
model: /*elided*/ any;
|
|
68
|
+
response: ModelCommandResponse;
|
|
69
|
+
}>;
|
|
70
|
+
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
71
|
+
getAttributes(): ModelDataMap;
|
|
72
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
73
|
+
identifierKey(): number | string;
|
|
74
|
+
isAssociationLoaded(associationName: string): boolean;
|
|
75
|
+
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
76
|
+
isAssociationPresent(associationName: string): boolean;
|
|
77
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
78
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
79
|
+
isAttributeChanged(attributeName: string): boolean;
|
|
80
|
+
isChanged(): boolean;
|
|
81
|
+
isNewRecord(): boolean;
|
|
82
|
+
isPersisted(): boolean;
|
|
83
|
+
savedChangeToAttribute(attributeName: string): boolean;
|
|
84
|
+
setNewModel(model: /*elided*/ any): void;
|
|
85
|
+
setNewModelData(model: /*elided*/ any): void;
|
|
86
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
87
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
88
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
89
|
+
modelClassData(): ModelClassDataType;
|
|
90
|
+
reload(): Promise<void>;
|
|
91
|
+
save(): Promise<{
|
|
92
|
+
model: /*elided*/ any;
|
|
93
|
+
response?: object;
|
|
94
|
+
}>;
|
|
95
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
96
|
+
simpleModelErrors?: boolean;
|
|
97
|
+
}): Promise<{
|
|
98
|
+
model: /*elided*/ any;
|
|
99
|
+
response: ModelCommandResponse;
|
|
100
|
+
}>;
|
|
101
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
102
|
+
model: /*elided*/ any;
|
|
103
|
+
response?: object;
|
|
104
|
+
}>;
|
|
105
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
106
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
107
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
108
|
+
simpleModelErrors?: boolean;
|
|
109
|
+
}): Promise<{
|
|
110
|
+
response: ModelCommandResponse;
|
|
111
|
+
model: /*elided*/ any;
|
|
112
|
+
}>;
|
|
113
|
+
isValid(): never;
|
|
114
|
+
isValidOnServer(): Promise<{
|
|
115
|
+
valid: boolean;
|
|
116
|
+
errors: ValidationResponseErrors;
|
|
117
|
+
}>;
|
|
118
|
+
modelClass(): BaseModelClassType;
|
|
119
|
+
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
120
|
+
markForDestruction(): void;
|
|
121
|
+
markedForDestruction(): boolean;
|
|
122
|
+
uniqueKey(): number;
|
|
123
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
124
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
125
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
126
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
127
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
128
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
129
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
130
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
131
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
132
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
133
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
134
|
+
_readPreloadedRelationships(preloaded: {
|
|
135
|
+
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
136
|
+
}): void;
|
|
137
|
+
primaryKey(): number | string;
|
|
138
|
+
} | undefined;
|
|
139
|
+
response: DeviseSignInResponse;
|
|
18
140
|
}>;
|
|
19
141
|
/**
|
|
20
142
|
* Synchronizes the current backend auth state into real HTTP response cookies.
|
|
21
143
|
*
|
|
22
|
-
* @param {
|
|
23
|
-
* @returns {Promise<
|
|
144
|
+
* @param {DeviseScopeArgs} [args]
|
|
145
|
+
* @returns {Promise<DeviseSessionStatusResult>}
|
|
146
|
+
*/
|
|
147
|
+
static persistSession(args?: DeviseScopeArgs): Promise<DeviseSessionStatusResult>;
|
|
148
|
+
/**
|
|
149
|
+
* Updates the locally cached current model for one scope.
|
|
150
|
+
* @param {DeviseCurrentScope} model
|
|
151
|
+
* @param {DeviseScopeArgs} args
|
|
152
|
+
*/
|
|
153
|
+
static updateSession(model: DeviseCurrentScope, args?: DeviseScopeArgs): void;
|
|
154
|
+
/**
|
|
155
|
+
* Marks one scope as signed out in the local current-model cache.
|
|
156
|
+
* @param {DeviseScopeArgs} args
|
|
24
157
|
*/
|
|
25
|
-
static
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
158
|
+
static setSignedOut(args: DeviseScopeArgs): void;
|
|
159
|
+
/**
|
|
160
|
+
* Signs out one scope over HTTP and refreshes websocket auth state.
|
|
161
|
+
* @param {DeviseScopeArgs} args
|
|
162
|
+
* @returns {Promise<DeviseSessionStatusResult>}
|
|
163
|
+
*/
|
|
164
|
+
static signOut(args?: DeviseScopeArgs): Promise<DeviseSessionStatusResult>;
|
|
31
165
|
/**
|
|
32
166
|
* Applies the latest HTTP session status locally, then refreshes the
|
|
33
167
|
* existing websocket connection so ApiMaker commands use the same auth.
|
|
34
168
|
*
|
|
35
|
-
* @param {
|
|
36
|
-
* @returns {Promise<
|
|
169
|
+
* @param {SyncSessionArgs} args
|
|
170
|
+
* @returns {Promise<DeviseSessionStatusResult>}
|
|
37
171
|
*/
|
|
38
|
-
static syncSessionStatusAndRefreshWebsocket(args:
|
|
172
|
+
static syncSessionStatusAndRefreshWebsocket(args: SyncSessionArgs): Promise<DeviseSessionStatusResult>;
|
|
39
173
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @
|
|
174
|
+
* Updates local session status from one HTTP response payload.
|
|
175
|
+
* @param {DeviseSessionStatusResult} httpResponse
|
|
176
|
+
* @returns {Promise<DeviseSessionStatusResult>}
|
|
42
177
|
*/
|
|
43
|
-
static syncSessionStatusFromHttpResponse(httpResponse:
|
|
178
|
+
static syncSessionStatusFromHttpResponse(httpResponse: DeviseSessionStatusResult): Promise<DeviseSessionStatusResult>;
|
|
44
179
|
/**
|
|
45
180
|
* Refreshes ApiMaker auth inside the existing websocket connection.
|
|
46
181
|
*
|
|
47
|
-
* @param {
|
|
48
|
-
* @returns {Promise<
|
|
182
|
+
* @param {DeviseScopeArgs & {shadowSessionToken?: string}} args
|
|
183
|
+
* @returns {Promise<DeviseSessionStatusResult>}
|
|
49
184
|
*/
|
|
50
|
-
static refreshWebsocketSession(args:
|
|
185
|
+
static refreshWebsocketSession(args: DeviseScopeArgs & {
|
|
186
|
+
shadowSessionToken?: string;
|
|
187
|
+
}): Promise<DeviseSessionStatusResult>;
|
|
51
188
|
/**
|
|
52
189
|
* Refreshes auth on the existing subscriptions channel pools.
|
|
53
190
|
*
|
|
54
|
-
* @param {
|
|
191
|
+
* @param {DeviseScopeArgs & {shadowSessionToken?: string}} args
|
|
55
192
|
* @returns {Promise<void>}
|
|
56
193
|
*/
|
|
57
|
-
static refreshSubscriptionAuthentication(args:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
194
|
+
static refreshSubscriptionAuthentication(args: DeviseScopeArgs & {
|
|
195
|
+
shadowSessionToken?: string;
|
|
196
|
+
}): Promise<void>;
|
|
197
|
+
/**
|
|
198
|
+
* Returns whether the current scope cache has been initialized locally.
|
|
199
|
+
* @param {string} scope
|
|
200
|
+
* @returns {boolean}
|
|
201
|
+
*/
|
|
202
|
+
hasCurrentScope(scope: string): boolean;
|
|
203
|
+
currents: Record<string, {
|
|
204
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
205
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
206
|
+
collection: import("./collection.js").default<any>;
|
|
207
|
+
_identifierKey: string | number;
|
|
208
|
+
_markedForDestruction: boolean;
|
|
209
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
210
|
+
newRecord: boolean;
|
|
211
|
+
previousModelData: any;
|
|
212
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
213
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
214
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
215
|
+
uniqueKeyValue: number;
|
|
216
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
217
|
+
attributes(): ModelDataMap;
|
|
218
|
+
can(givenAbilityName: string): boolean;
|
|
219
|
+
clone(): /*elided*/ any;
|
|
220
|
+
cacheKey(): number | string;
|
|
221
|
+
localCacheKey(): string;
|
|
222
|
+
fullCacheKey(): string;
|
|
223
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
224
|
+
model: /*elided*/ any;
|
|
225
|
+
response: ModelCommandResponse;
|
|
226
|
+
}>;
|
|
227
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
228
|
+
model: /*elided*/ any;
|
|
229
|
+
response: ModelCommandResponse;
|
|
230
|
+
}>;
|
|
231
|
+
destroy(): Promise<{
|
|
232
|
+
model: /*elided*/ any;
|
|
233
|
+
response: ModelCommandResponse;
|
|
234
|
+
}>;
|
|
235
|
+
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
236
|
+
getAttributes(): ModelDataMap;
|
|
237
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
238
|
+
identifierKey(): number | string;
|
|
239
|
+
isAssociationLoaded(associationName: string): boolean;
|
|
240
|
+
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
241
|
+
isAssociationPresent(associationName: string): boolean;
|
|
242
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
243
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
244
|
+
isAttributeChanged(attributeName: string): boolean;
|
|
245
|
+
isChanged(): boolean;
|
|
246
|
+
isNewRecord(): boolean;
|
|
247
|
+
isPersisted(): boolean;
|
|
248
|
+
savedChangeToAttribute(attributeName: string): boolean;
|
|
249
|
+
setNewModel(model: /*elided*/ any): void;
|
|
250
|
+
setNewModelData(model: /*elided*/ any): void;
|
|
251
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
252
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
253
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
254
|
+
modelClassData(): ModelClassDataType;
|
|
255
|
+
reload(): Promise<void>;
|
|
256
|
+
save(): Promise<{
|
|
257
|
+
model: /*elided*/ any;
|
|
258
|
+
response?: object;
|
|
259
|
+
}>;
|
|
260
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
261
|
+
simpleModelErrors?: boolean;
|
|
262
|
+
}): Promise<{
|
|
263
|
+
model: /*elided*/ any;
|
|
264
|
+
response: ModelCommandResponse;
|
|
265
|
+
}>;
|
|
266
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
267
|
+
model: /*elided*/ any;
|
|
268
|
+
response?: object;
|
|
269
|
+
}>;
|
|
270
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
271
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
272
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
273
|
+
simpleModelErrors?: boolean;
|
|
274
|
+
}): Promise<{
|
|
275
|
+
response: ModelCommandResponse;
|
|
276
|
+
model: /*elided*/ any;
|
|
277
|
+
}>;
|
|
278
|
+
isValid(): never;
|
|
279
|
+
isValidOnServer(): Promise<{
|
|
280
|
+
valid: boolean;
|
|
281
|
+
errors: ValidationResponseErrors;
|
|
282
|
+
}>;
|
|
283
|
+
modelClass(): BaseModelClassType;
|
|
284
|
+
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
285
|
+
markForDestruction(): void;
|
|
286
|
+
markedForDestruction(): boolean;
|
|
287
|
+
uniqueKey(): number;
|
|
288
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
289
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
290
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
291
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
292
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
293
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
294
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
295
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
296
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
297
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
298
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
299
|
+
_readPreloadedRelationships(preloaded: {
|
|
300
|
+
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
301
|
+
}): void;
|
|
302
|
+
primaryKey(): number | string;
|
|
303
|
+
}>;
|
|
304
|
+
/**
|
|
305
|
+
* Returns the current model cached for one scope.
|
|
306
|
+
* @param {string} scope
|
|
307
|
+
* @returns {DeviseCurrentScope}
|
|
308
|
+
*/
|
|
309
|
+
getCurrentScope(scope: string): DeviseCurrentScope;
|
|
310
|
+
/**
|
|
311
|
+
* Returns whether the server rendered current-scope payload for one scope.
|
|
312
|
+
* @param {string} scope
|
|
313
|
+
* @returns {boolean}
|
|
314
|
+
*/
|
|
315
|
+
hasGlobalCurrentScope(scope: string): boolean;
|
|
316
|
+
/**
|
|
317
|
+
* Hydrates the current scope model from the server rendered payload.
|
|
318
|
+
* @param {string} scope
|
|
319
|
+
* @returns {DeviseCurrentScope}
|
|
320
|
+
*/
|
|
321
|
+
loadCurrentScope(scope: string): DeviseCurrentScope;
|
|
322
|
+
}
|
|
323
|
+
export type ApiMakerDeviseShared = {
|
|
324
|
+
scopes?: Record<string, boolean>;
|
|
325
|
+
currentApiMakerDevise?: ApiMakerDevise;
|
|
326
|
+
};
|
|
327
|
+
export type DeviseSessionStatusScope = {
|
|
328
|
+
signed_in: boolean;
|
|
329
|
+
};
|
|
330
|
+
export type DeviseSessionStatusResult = {
|
|
331
|
+
csrf_token?: string;
|
|
332
|
+
scopes: Record<string, DeviseSessionStatusScope>;
|
|
333
|
+
shadow_session_token?: string;
|
|
334
|
+
session_status?: DeviseSessionStatusResult;
|
|
335
|
+
};
|
|
336
|
+
export type DeviseScopeArgs = {
|
|
337
|
+
rememberMe?: boolean;
|
|
338
|
+
scope?: string;
|
|
339
|
+
signedIn?: boolean;
|
|
340
|
+
skipSignInEvent?: boolean;
|
|
341
|
+
};
|
|
342
|
+
export type DeviseSignInResponse = DeviseSessionStatusResult & {
|
|
343
|
+
model?: {
|
|
344
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
345
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
346
|
+
collection: import("./collection.js").default<any>;
|
|
347
|
+
_identifierKey: string | number;
|
|
348
|
+
_markedForDestruction: boolean;
|
|
349
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
350
|
+
newRecord: boolean;
|
|
351
|
+
previousModelData: any;
|
|
352
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
353
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
354
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
355
|
+
uniqueKeyValue: number;
|
|
356
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
357
|
+
attributes(): ModelDataMap;
|
|
358
|
+
can(givenAbilityName: string): boolean;
|
|
359
|
+
clone(): /*elided*/ any;
|
|
360
|
+
cacheKey(): number | string;
|
|
361
|
+
localCacheKey(): string;
|
|
362
|
+
fullCacheKey(): string;
|
|
363
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
364
|
+
model: /*elided*/ any;
|
|
365
|
+
response: ModelCommandResponse;
|
|
366
|
+
}>;
|
|
367
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
368
|
+
model: /*elided*/ any;
|
|
369
|
+
response: ModelCommandResponse;
|
|
370
|
+
}>;
|
|
371
|
+
destroy(): Promise<{
|
|
372
|
+
model: /*elided*/ any;
|
|
373
|
+
response: ModelCommandResponse;
|
|
374
|
+
}>;
|
|
375
|
+
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
376
|
+
getAttributes(): ModelDataMap;
|
|
377
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
378
|
+
identifierKey(): number | string;
|
|
379
|
+
isAssociationLoaded(associationName: string): boolean;
|
|
380
|
+
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
381
|
+
isAssociationPresent(associationName: string): boolean;
|
|
382
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
383
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
384
|
+
isAttributeChanged(attributeName: string): boolean;
|
|
385
|
+
isChanged(): boolean;
|
|
386
|
+
isNewRecord(): boolean;
|
|
387
|
+
isPersisted(): boolean;
|
|
388
|
+
savedChangeToAttribute(attributeName: string): boolean;
|
|
389
|
+
setNewModel(model: /*elided*/ any): void;
|
|
390
|
+
setNewModelData(model: /*elided*/ any): void;
|
|
391
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
392
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
393
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
394
|
+
modelClassData(): ModelClassDataType;
|
|
395
|
+
reload(): Promise<void>;
|
|
396
|
+
save(): Promise<{
|
|
397
|
+
model: /*elided*/ any;
|
|
398
|
+
response?: object;
|
|
399
|
+
}>;
|
|
400
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
401
|
+
simpleModelErrors?: boolean;
|
|
402
|
+
}): Promise<{
|
|
403
|
+
model: /*elided*/ any;
|
|
404
|
+
response: ModelCommandResponse;
|
|
405
|
+
}>;
|
|
406
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
407
|
+
model: /*elided*/ any;
|
|
408
|
+
response?: object;
|
|
409
|
+
}>;
|
|
410
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
411
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
412
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
413
|
+
simpleModelErrors?: boolean;
|
|
414
|
+
}): Promise<{
|
|
415
|
+
response: ModelCommandResponse;
|
|
416
|
+
model: /*elided*/ any;
|
|
417
|
+
}>;
|
|
418
|
+
isValid(): never;
|
|
419
|
+
isValidOnServer(): Promise<{
|
|
420
|
+
valid: boolean;
|
|
421
|
+
errors: ValidationResponseErrors;
|
|
422
|
+
}>;
|
|
423
|
+
modelClass(): BaseModelClassType;
|
|
424
|
+
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
425
|
+
markForDestruction(): void;
|
|
426
|
+
markedForDestruction(): boolean;
|
|
427
|
+
uniqueKey(): number;
|
|
428
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
429
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
430
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
431
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
432
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
433
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
434
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
435
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
436
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
437
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
438
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
439
|
+
_readPreloadedRelationships(preloaded: {
|
|
440
|
+
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
441
|
+
}): void;
|
|
442
|
+
primaryKey(): number | string;
|
|
443
|
+
} | {
|
|
444
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
445
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
446
|
+
collection: import("./collection.js").default<any>;
|
|
447
|
+
_identifierKey: string | number;
|
|
448
|
+
_markedForDestruction: boolean;
|
|
449
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
450
|
+
newRecord: boolean;
|
|
451
|
+
previousModelData: any;
|
|
452
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
453
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
454
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
455
|
+
uniqueKeyValue: number;
|
|
456
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
457
|
+
attributes(): ModelDataMap;
|
|
458
|
+
can(givenAbilityName: string): boolean;
|
|
459
|
+
clone(): /*elided*/ any;
|
|
460
|
+
cacheKey(): number | string;
|
|
461
|
+
localCacheKey(): string;
|
|
462
|
+
fullCacheKey(): string;
|
|
463
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
464
|
+
model: /*elided*/ any;
|
|
465
|
+
response: ModelCommandResponse;
|
|
466
|
+
}>;
|
|
467
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
468
|
+
model: /*elided*/ any;
|
|
469
|
+
response: ModelCommandResponse;
|
|
470
|
+
}>;
|
|
471
|
+
destroy(): Promise<{
|
|
472
|
+
model: /*elided*/ any;
|
|
473
|
+
response: ModelCommandResponse;
|
|
474
|
+
}>;
|
|
475
|
+
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
476
|
+
getAttributes(): ModelDataMap;
|
|
477
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
478
|
+
identifierKey(): number | string;
|
|
479
|
+
isAssociationLoaded(associationName: string): boolean;
|
|
480
|
+
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
481
|
+
isAssociationPresent(associationName: string): boolean;
|
|
482
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
483
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
484
|
+
isAttributeChanged(attributeName: string): boolean;
|
|
485
|
+
isChanged(): boolean;
|
|
486
|
+
isNewRecord(): boolean;
|
|
487
|
+
isPersisted(): boolean;
|
|
488
|
+
savedChangeToAttribute(attributeName: string): boolean;
|
|
489
|
+
setNewModel(model: /*elided*/ any): void;
|
|
490
|
+
setNewModelData(model: /*elided*/ any): void;
|
|
491
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
492
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
493
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
494
|
+
modelClassData(): ModelClassDataType;
|
|
495
|
+
reload(): Promise<void>;
|
|
496
|
+
save(): Promise<{
|
|
497
|
+
model: /*elided*/ any;
|
|
498
|
+
response?: object;
|
|
499
|
+
}>;
|
|
500
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
501
|
+
simpleModelErrors?: boolean;
|
|
502
|
+
}): Promise<{
|
|
503
|
+
model: /*elided*/ any;
|
|
504
|
+
response: ModelCommandResponse;
|
|
505
|
+
}>;
|
|
506
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
507
|
+
model: /*elided*/ any;
|
|
508
|
+
response?: object;
|
|
509
|
+
}>;
|
|
510
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
511
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
512
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
513
|
+
simpleModelErrors?: boolean;
|
|
514
|
+
}): Promise<{
|
|
515
|
+
response: ModelCommandResponse;
|
|
516
|
+
model: /*elided*/ any;
|
|
517
|
+
}>;
|
|
518
|
+
isValid(): never;
|
|
519
|
+
isValidOnServer(): Promise<{
|
|
520
|
+
valid: boolean;
|
|
521
|
+
errors: ValidationResponseErrors;
|
|
522
|
+
}>;
|
|
523
|
+
modelClass(): BaseModelClassType;
|
|
524
|
+
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
525
|
+
markForDestruction(): void;
|
|
526
|
+
markedForDestruction(): boolean;
|
|
527
|
+
uniqueKey(): number;
|
|
528
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
529
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
530
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
531
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
532
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
533
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
534
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
535
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
536
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
537
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
538
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
539
|
+
_readPreloadedRelationships(preloaded: {
|
|
540
|
+
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
541
|
+
}): void;
|
|
542
|
+
primaryKey(): number | string;
|
|
543
|
+
}[];
|
|
544
|
+
};
|
|
545
|
+
export type SyncSessionArgs = {
|
|
546
|
+
httpResponse: DeviseSessionStatusResult;
|
|
547
|
+
scope: string;
|
|
548
|
+
websocketArgs: DeviseScopeArgs;
|
|
549
|
+
};
|
|
550
|
+
export type DeviseCurrentScope = {
|
|
551
|
+
abilities: import("./base-model.js").ModelAbilityMap;
|
|
552
|
+
changes: import("./base-model.js").ModelDataMap;
|
|
553
|
+
collection: import("./collection.js").default<any>;
|
|
554
|
+
_identifierKey: string | number;
|
|
555
|
+
_markedForDestruction: boolean;
|
|
556
|
+
modelData: import("./base-model.js").ModelDataMap;
|
|
557
|
+
newRecord: boolean;
|
|
558
|
+
previousModelData: any;
|
|
559
|
+
preloadedRelationships: import("./base-model.js").PreloadedRelationshipMap;
|
|
560
|
+
relationshipsCache: import("./base-model.js").LoadedRelationshipMap;
|
|
561
|
+
relationships: import("./base-model.js").LoadedRelationshipMap;
|
|
562
|
+
uniqueKeyValue: number;
|
|
563
|
+
assignAttributes(newAttributes: ModelDataMap): void;
|
|
564
|
+
attributes(): ModelDataMap;
|
|
565
|
+
can(givenAbilityName: string): boolean;
|
|
566
|
+
clone(): /*elided*/ any;
|
|
567
|
+
cacheKey(): number | string;
|
|
568
|
+
localCacheKey(): string;
|
|
569
|
+
fullCacheKey(): string;
|
|
570
|
+
create(attributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
571
|
+
model: /*elided*/ any;
|
|
572
|
+
response: ModelCommandResponse;
|
|
573
|
+
}>;
|
|
574
|
+
createRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions): Promise<{
|
|
575
|
+
model: /*elided*/ any;
|
|
576
|
+
response: ModelCommandResponse;
|
|
577
|
+
}>;
|
|
578
|
+
destroy(): Promise<{
|
|
579
|
+
model: /*elided*/ any;
|
|
580
|
+
response: ModelCommandResponse;
|
|
581
|
+
}>;
|
|
582
|
+
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
583
|
+
getAttributes(): ModelDataMap;
|
|
584
|
+
handleResponseError(response: ModelCommandResponse): never;
|
|
585
|
+
identifierKey(): number | string;
|
|
586
|
+
isAssociationLoaded(associationName: string): boolean;
|
|
587
|
+
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
588
|
+
isAssociationPresent(associationName: string): boolean;
|
|
589
|
+
ensureAssociationLoaded(associationName: string): Promise<LoadedRelationshipValue>;
|
|
590
|
+
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<LoadedRelationshipValue>;
|
|
591
|
+
isAttributeChanged(attributeName: string): boolean;
|
|
592
|
+
isChanged(): boolean;
|
|
593
|
+
isNewRecord(): boolean;
|
|
594
|
+
isPersisted(): boolean;
|
|
595
|
+
savedChangeToAttribute(attributeName: string): boolean;
|
|
596
|
+
setNewModel(model: /*elided*/ any): void;
|
|
597
|
+
setNewModelData(model: /*elided*/ any): void;
|
|
598
|
+
_isDateChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
599
|
+
_isIntegerChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
600
|
+
_isStringChanged(oldValue: ModelValue | null | undefined, newValue: ModelValue | null | undefined): boolean | void;
|
|
601
|
+
modelClassData(): ModelClassDataType;
|
|
602
|
+
reload(): Promise<void>;
|
|
603
|
+
save(): Promise<{
|
|
604
|
+
model: /*elided*/ any;
|
|
605
|
+
response?: object;
|
|
606
|
+
}>;
|
|
607
|
+
saveRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
608
|
+
simpleModelErrors?: boolean;
|
|
609
|
+
}): Promise<{
|
|
610
|
+
model: /*elided*/ any;
|
|
611
|
+
response: ModelCommandResponse;
|
|
612
|
+
}>;
|
|
613
|
+
update(newAttributes?: ModelDataMap, options?: ParseValidationErrorsOptions): Promise<{
|
|
614
|
+
model: /*elided*/ any;
|
|
615
|
+
response?: object;
|
|
616
|
+
}>;
|
|
617
|
+
_refreshModelFromResponse(response: ModelCommandResponse): void;
|
|
618
|
+
_refreshModelDataFromResponse(response: ModelCommandResponse): void;
|
|
619
|
+
updateRaw(rawData: RawDataInput, options?: ParseValidationErrorsOptions & {
|
|
620
|
+
simpleModelErrors?: boolean;
|
|
621
|
+
}): Promise<{
|
|
622
|
+
response: ModelCommandResponse;
|
|
623
|
+
model: /*elided*/ any;
|
|
624
|
+
}>;
|
|
625
|
+
isValid(): never;
|
|
626
|
+
isValidOnServer(): Promise<{
|
|
627
|
+
valid: boolean;
|
|
628
|
+
errors: ValidationResponseErrors;
|
|
629
|
+
}>;
|
|
630
|
+
modelClass(): BaseModelClassType;
|
|
631
|
+
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
632
|
+
markForDestruction(): void;
|
|
633
|
+
markedForDestruction(): boolean;
|
|
634
|
+
uniqueKey(): number;
|
|
635
|
+
_callMemberCommand(args: ModelCommandDescriptor, commandArgs: ModelCommandOptions): import("./command-execution.js").default;
|
|
636
|
+
readAttribute(attributeName: string): ModelValue | null | undefined;
|
|
637
|
+
readAttributeUnderscore(attributeName: string): ModelValue | null | undefined;
|
|
638
|
+
isAttributeLoaded(attributeName: string): boolean;
|
|
639
|
+
_isPresent(value: ModelValue | null | undefined): boolean;
|
|
640
|
+
_loadBelongsToReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
641
|
+
_readBelongsToReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
642
|
+
_loadHasManyReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any[]>;
|
|
643
|
+
_loadHasOneReflection(args: RelationshipLoadArgs, queryArgs?: import("./collection.js").QueryArgsType): Promise</*elided*/ any | null>;
|
|
644
|
+
_readHasOneReflection({ reflectionName }: RelationshipLoadArgs): /*elided*/ any | null;
|
|
645
|
+
_readModelDataFromArgs(args?: BaseModelArgsObject): void;
|
|
646
|
+
_readPreloadedRelationships(preloaded: {
|
|
647
|
+
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
648
|
+
}): void;
|
|
649
|
+
primaryKey(): number | string;
|
|
650
|
+
} | null;
|
|
651
|
+
import events from "./events.js";
|
|
652
|
+
/** DeviseScope. */
|
|
653
|
+
declare class DeviseScope {
|
|
654
|
+
/**
|
|
655
|
+
* Constructor.
|
|
656
|
+
* @param {string} scope
|
|
657
|
+
* @param {DeviseScopeArgs} args
|
|
658
|
+
*/
|
|
659
|
+
constructor(scope: string, args: DeviseScopeArgs);
|
|
660
|
+
args: DeviseScopeArgs;
|
|
661
|
+
context: import("react").Context<any>;
|
|
662
|
+
scope: string;
|
|
663
|
+
/** @returns {import("react").Context<DeviseCurrentScope | undefined>} */
|
|
664
|
+
getContext: () => import("react").Context<DeviseCurrentScope | undefined>;
|
|
67
665
|
}
|
|
666
|
+
export {};
|
|
68
667
|
//# sourceMappingURL=devise.d.ts.map
|