@kaspernj/api-maker 1.0.2160 → 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 +12 -0
- 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 +8 -0
- package/build/bootstrap/attribute-rows.d.ts.map +1 -1
- package/build/bootstrap/attribute-rows.js +14 -5
- package/build/bootstrap/card.d.ts +17 -0
- package/build/bootstrap/card.d.ts.map +1 -1
- package/build/bootstrap/card.js +30 -10
- package/build/bootstrap/checkbox.d.ts +16 -0
- package/build/bootstrap/checkbox.d.ts.map +1 -1
- package/build/bootstrap/checkbox.js +20 -2
- package/build/bootstrap/checkboxes.d.ts +31 -0
- package/build/bootstrap/checkboxes.d.ts.map +1 -1
- package/build/bootstrap/checkboxes.js +35 -3
- 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 +5 -0
- 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 +10 -0
- package/build/bootstrap/sort-link.d.ts.map +1 -1
- package/build/bootstrap/sort-link.js +15 -4
- 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.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 +55 -0
- 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 +54 -0
- package/build/draggable-sort/item.d.ts.map +1 -1
- package/build/draggable-sort/item.js +94 -6
- 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 +23 -0
- 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 +11 -0
- package/build/inputs/attachment.d.ts.map +1 -1
- package/build/inputs/attachment.js +17 -4
- 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 +15 -0
- package/build/inputs/checkbox.d.ts.map +1 -1
- package/build/inputs/checkbox.js +22 -6
- 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 +36 -0
- package/build/inputs/input.d.ts.map +1 -1
- package/build/inputs/input.js +26 -7
- package/build/inputs/money.d.ts +2 -0
- 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 +33 -0
- 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 +30 -0
- 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 +2 -0
- 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.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 +50 -0
- package/build/router/route.d.ts.map +1 -1
- package/build/router/route.js +39 -10
- package/build/router/switch.d.ts +37 -1
- package/build/router/switch.d.ts.map +1 -1
- package/build/router/switch.js +29 -7
- package/build/router.d.ts +20 -0
- 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 +10 -0
- package/build/super-admin/edit-page/edit-attribute-checkbox.d.ts.map +1 -1
- package/build/super-admin/edit-page/edit-attribute-checkbox.js +16 -4
- package/build/super-admin/edit-page/edit-attribute-content.d.ts +9 -0
- package/build/super-admin/edit-page/edit-attribute-content.d.ts.map +1 -1
- package/build/super-admin/edit-page/edit-attribute-content.js +15 -4
- package/build/super-admin/edit-page/edit-attribute-input.d.ts +8 -0
- 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 +6 -0
- 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 +5 -0
- 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 +4 -0
- 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 +4 -0
- package/build/super-admin/index.d.ts.map +1 -1
- package/build/super-admin/index.js +12 -6
- package/build/super-admin/layout/header/index.d.ts +4 -0
- package/build/super-admin/layout/header/index.d.ts.map +1 -1
- package/build/super-admin/layout/header/index.js +13 -8
- package/build/super-admin/layout/index.d.ts +24 -0
- package/build/super-admin/layout/index.d.ts.map +1 -1
- package/build/super-admin/layout/index.js +33 -5
- package/build/super-admin/layout/menu/index.d.ts +2 -0
- package/build/super-admin/layout/menu/index.d.ts.map +1 -1
- package/build/super-admin/layout/menu/index.js +8 -6
- package/build/super-admin/layout/menu/menu-content.d.ts +2 -0
- 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 +9 -0
- package/build/super-admin/layout/menu/menu-item.d.ts.map +1 -1
- package/build/super-admin/layout/menu/menu-item.js +15 -4
- package/build/super-admin/layout/no-access.d.ts +2 -0
- 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 +4 -0
- 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 +2 -0
- 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 +17 -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 +4 -0
- package/build/super-admin/show-page/index.d.ts.map +1 -1
- package/build/super-admin/show-page/index.js +9 -4
- package/build/super-admin/show-reflection-actions.d.ts +6 -0
- 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 +4 -0
- package/build/super-admin/show-reflection-link.d.ts.map +1 -1
- package/build/super-admin/show-reflection-link.js +9 -4
- package/build/super-admin/show-reflection-page.d.ts +5 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +58 -0
- package/build/table/filters/filter-form.d.ts.map +1 -1
- package/build/table/filters/filter-form.js +72 -9
- package/build/table/filters/filter.d.ts +2 -0
- 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 +127 -0
- package/build/table/filters/index.d.ts.map +1 -1
- package/build/table/filters/index.js +21 -4
- package/build/table/filters/load-search-modal.d.ts +130 -0
- package/build/table/filters/load-search-modal.d.ts.map +1 -1
- package/build/table/filters/load-search-modal.js +28 -6
- package/build/table/filters/reflection-element.d.ts +2 -0
- 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 +134 -0
- package/build/table/filters/save-search-modal.d.ts.map +1 -1
- package/build/table/filters/save-search-modal.js +36 -5
- package/build/table/filters/scope-element.d.ts +6 -0
- 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 +7 -0
- 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 +50 -0
- package/build/table/header-column.d.ts.map +1 -1
- package/build/table/header-column.js +32 -5
- package/build/table/header-select.d.ts +18 -0
- package/build/table/header-select.d.ts.map +1 -1
- package/build/table/header-select.js +19 -4
- 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 +136 -0
- 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 +19 -0
- 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 +6 -0
- 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 +5 -0
- 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 +5 -0
- 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 +104 -20
- package/build/table/table.d.ts +271 -0
- package/build/table/table.d.ts.map +1 -1
- package/build/table/table.js +167 -16
- 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 +18 -0
- package/build/table/worker-plugins-check-all-checkbox.d.ts.map +1 -1
- package/build/table/worker-plugins-check-all-checkbox.js +25 -5
- package/build/table/worker-plugins-checkbox.d.ts +5 -0
- package/build/table/worker-plugins-checkbox.d.ts.map +1 -1
- package/build/table/worker-plugins-checkbox.js +10 -4
- 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 +2 -2
- package/build/use-can-can.d.ts.map +1 -1
- package/build/use-can-can.js +27 -12
- package/build/use-collection.d.ts +167 -121
- package/build/use-collection.d.ts.map +1 -1
- package/build/use-collection.js +113 -44
- 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 +162 -244
- package/build/use-model.d.ts.map +1 -1
- package/build/use-model.js +85 -32
- 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 +14 -0
- package/build/utils/button.d.ts.map +1 -1
- package/build/utils/button.js +24 -7
- package/build/utils/card.d.ts +9 -0
- package/build/utils/card.d.ts.map +1 -1
- package/build/utils/card.js +13 -2
- package/build/utils/checkbox.d.ts +12 -0
- package/build/utils/checkbox.d.ts.map +1 -1
- package/build/utils/checkbox.js +18 -4
- package/build/utils/checkboxes.d.ts +25 -0
- package/build/utils/checkboxes.d.ts.map +1 -1
- package/build/utils/checkboxes.js +29 -3
- package/build/utils/default-style.d.ts +10 -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 +7 -6
- package/build/utils/icon.d.ts.map +1 -1
- package/build/utils/icon.js +12 -11
- package/build/utils/invalid-feedback.d.ts +4 -0
- package/build/utils/invalid-feedback.d.ts.map +1 -1
- package/build/utils/invalid-feedback.js +8 -2
- package/build/utils/modal.d.ts +2 -0
- package/build/utils/modal.d.ts.map +1 -1
- package/build/utils/modal.js +9 -7
- package/build/utils/text.d.ts +8 -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.map +1 -1
- package/build/with-api-maker.js +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.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 +4 -3
- package/build/base-component.d.ts +0 -5
- package/build/base-component.d.ts.map +0 -1
- package/build/base-component.js +0 -4
|
@@ -1,1491 +1,128 @@
|
|
|
1
|
+
/** @typedef {import("./model-recipes-loader.js").default} ModelRecipesLoaderLike */
|
|
2
|
+
/** @typedef {typeof import("./base-model.js").default} ModelClassLike */
|
|
3
|
+
/** @typedef {ModelClassLike & {modelClassData: () => ModelRecipeClassData}} ModelClassWithData */
|
|
4
|
+
/** @typedef {Record<string, {name: string}>} ModelRecipeAttributes */
|
|
5
|
+
/** @typedef {Record<string, {args?: Record<string, object | string | number | boolean | null | undefined>}>} ModelRecipeCommands */
|
|
6
|
+
/**
|
|
7
|
+
* @typedef {object} ModelRecipeClassData
|
|
8
|
+
* @property {string} className
|
|
9
|
+
* @property {string} collectionName
|
|
10
|
+
* @property {string} name
|
|
11
|
+
* @property {string} primaryKey
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @typedef {object} RelationshipOptions
|
|
15
|
+
* @property {string} [as]
|
|
16
|
+
* @property {string} [primary_key]
|
|
17
|
+
* @property {string} [through]
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @typedef {object} RelationshipDefinition
|
|
21
|
+
* @property {{name: string, primary_key: string}} active_record
|
|
22
|
+
* @property {string} class_name
|
|
23
|
+
* @property {string} foreign_key
|
|
24
|
+
* @property {{primary_key: string}} klass
|
|
25
|
+
* @property {RelationshipOptions} options
|
|
26
|
+
* @property {string} resource_name
|
|
27
|
+
* @property {"belongs_to" | "has_many" | "has_one"} type
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* @typedef {object} ModelRecipe
|
|
31
|
+
* @property {ModelRecipeAttributes} attributes
|
|
32
|
+
* @property {ModelRecipeCommands} collection_commands
|
|
33
|
+
* @property {ModelRecipeCommands} member_commands
|
|
34
|
+
* @property {ModelRecipeClassData} model_class_data
|
|
35
|
+
* @property {Record<string, RelationshipDefinition>} relationships
|
|
36
|
+
*/
|
|
1
37
|
/** Builds runtime model classes from recipe definitions. */
|
|
2
38
|
export default class ApiMakerModelRecipesModelLoader {
|
|
3
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Constructor.
|
|
41
|
+
* @param {object} root0
|
|
42
|
+
* @param {ModelRecipe} root0.modelRecipe
|
|
43
|
+
* @param {ModelRecipesLoaderLike} root0.modelRecipesLoader
|
|
44
|
+
*/
|
|
4
45
|
constructor({ modelRecipe, modelRecipesLoader }: {
|
|
5
|
-
modelRecipe:
|
|
6
|
-
modelRecipesLoader:
|
|
46
|
+
modelRecipe: ModelRecipe;
|
|
47
|
+
modelRecipesLoader: ModelRecipesLoaderLike;
|
|
7
48
|
});
|
|
8
|
-
modelRecipesLoader:
|
|
9
|
-
modelRecipe:
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}>;
|
|
48
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
49
|
-
getAttributes(): Record<string, any>;
|
|
50
|
-
handleResponseError(response: object): never;
|
|
51
|
-
identifierKey(): number | string;
|
|
52
|
-
_identifierKey: string | number;
|
|
53
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
54
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
55
|
-
isAssociationPresent(associationName: string): boolean;
|
|
56
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
57
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
58
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
59
|
-
isChanged(): boolean;
|
|
60
|
-
isNewRecord(): boolean;
|
|
61
|
-
isPersisted(): boolean;
|
|
62
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
63
|
-
setNewModel(model: /*elided*/ any): void;
|
|
64
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
65
|
-
previousModelData: any;
|
|
66
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
67
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
68
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
69
|
-
modelClassData(): ModelClassDataType;
|
|
70
|
-
reload(): Promise<void>;
|
|
71
|
-
save(): Promise<{
|
|
72
|
-
model: /*elided*/ any;
|
|
73
|
-
response?: object;
|
|
74
|
-
}>;
|
|
75
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
76
|
-
model: /*elided*/ any;
|
|
77
|
-
response: object;
|
|
78
|
-
}>;
|
|
79
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
80
|
-
model: /*elided*/ any;
|
|
81
|
-
response?: object;
|
|
82
|
-
}>;
|
|
83
|
-
_refreshModelFromResponse(response: object): void;
|
|
84
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
85
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
86
|
-
simpleModelErrors?: boolean;
|
|
87
|
-
}): Promise<{
|
|
88
|
-
response: object;
|
|
89
|
-
model: /*elided*/ any;
|
|
90
|
-
}>;
|
|
91
|
-
isValid(): never;
|
|
92
|
-
isValidOnServer(): Promise<{
|
|
93
|
-
valid: boolean;
|
|
94
|
-
errors: Record<string, any>;
|
|
95
|
-
}>;
|
|
96
|
-
modelClass(): Record<string, any>;
|
|
97
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
98
|
-
markForDestruction(): void;
|
|
99
|
-
_markedForDestruction: boolean;
|
|
100
|
-
markedForDestruction(): boolean;
|
|
101
|
-
uniqueKey(): number;
|
|
102
|
-
uniqueKeyValue: number;
|
|
103
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
104
|
-
readAttribute(attributeName: string): any;
|
|
105
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
106
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
107
|
-
_isPresent(value: any): boolean;
|
|
108
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
109
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
110
|
-
modelClass: any;
|
|
111
|
-
reflectionName: string;
|
|
112
|
-
}): any | null;
|
|
113
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
114
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
115
|
-
_readHasOneReflection({ reflectionName }: {
|
|
116
|
-
modelClass: any;
|
|
117
|
-
reflectionName: string;
|
|
118
|
-
}): any | null;
|
|
119
|
-
_readModelDataFromArgs(args?: {
|
|
120
|
-
data?: {
|
|
121
|
-
b?: Record<string, any>;
|
|
122
|
-
a?: Record<string, any>;
|
|
123
|
-
r?: any;
|
|
124
|
-
};
|
|
125
|
-
collection?: Collection<any>;
|
|
126
|
-
}): void;
|
|
127
|
-
collection: Collection<any>;
|
|
128
|
-
preloadedRelationships: any;
|
|
129
|
-
_readPreloadedRelationships(preloaded: {
|
|
130
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
131
|
-
}): void;
|
|
132
|
-
primaryKey(): number | string;
|
|
133
|
-
};
|
|
134
|
-
cacheKey(): number | string;
|
|
135
|
-
localCacheKey(): string;
|
|
136
|
-
fullCacheKey(): string;
|
|
137
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
138
|
-
model: {
|
|
139
|
-
changes: {};
|
|
140
|
-
newRecord: boolean;
|
|
141
|
-
relationshipsCache: {};
|
|
142
|
-
relationships: {};
|
|
143
|
-
abilities: Record<string, any>;
|
|
144
|
-
modelData: {};
|
|
145
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
146
|
-
attributes(): Record<string, any>;
|
|
147
|
-
can(givenAbilityName: string): boolean;
|
|
148
|
-
clone(): /*elided*/ any;
|
|
149
|
-
cacheKey(): number | string;
|
|
150
|
-
localCacheKey(): string;
|
|
151
|
-
fullCacheKey(): string;
|
|
152
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
153
|
-
model: /*elided*/ any;
|
|
154
|
-
response: object;
|
|
155
|
-
}>;
|
|
156
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
157
|
-
model: /*elided*/ any;
|
|
158
|
-
response: any;
|
|
159
|
-
}>;
|
|
160
|
-
destroy(): Promise<{
|
|
161
|
-
model: /*elided*/ any;
|
|
162
|
-
response: object;
|
|
163
|
-
}>;
|
|
164
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
165
|
-
getAttributes(): Record<string, any>;
|
|
166
|
-
handleResponseError(response: object): never;
|
|
167
|
-
identifierKey(): number | string;
|
|
168
|
-
_identifierKey: string | number;
|
|
169
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
170
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
171
|
-
isAssociationPresent(associationName: string): boolean;
|
|
172
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
173
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
174
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
175
|
-
isChanged(): boolean;
|
|
176
|
-
isNewRecord(): boolean;
|
|
177
|
-
isPersisted(): boolean;
|
|
178
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
179
|
-
setNewModel(model: /*elided*/ any): void;
|
|
180
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
181
|
-
previousModelData: any;
|
|
182
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
183
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
184
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
185
|
-
modelClassData(): ModelClassDataType;
|
|
186
|
-
reload(): Promise<void>;
|
|
187
|
-
save(): Promise<{
|
|
188
|
-
model: /*elided*/ any;
|
|
189
|
-
response?: object;
|
|
190
|
-
}>;
|
|
191
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
192
|
-
model: /*elided*/ any;
|
|
193
|
-
response: object;
|
|
194
|
-
}>;
|
|
195
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
196
|
-
model: /*elided*/ any;
|
|
197
|
-
response?: object;
|
|
198
|
-
}>;
|
|
199
|
-
_refreshModelFromResponse(response: object): void;
|
|
200
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
201
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
202
|
-
simpleModelErrors?: boolean;
|
|
203
|
-
}): Promise<{
|
|
204
|
-
response: object;
|
|
205
|
-
model: /*elided*/ any;
|
|
206
|
-
}>;
|
|
207
|
-
isValid(): never;
|
|
208
|
-
isValidOnServer(): Promise<{
|
|
209
|
-
valid: boolean;
|
|
210
|
-
errors: Record<string, any>;
|
|
211
|
-
}>;
|
|
212
|
-
modelClass(): Record<string, any>;
|
|
213
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
214
|
-
markForDestruction(): void;
|
|
215
|
-
_markedForDestruction: boolean;
|
|
216
|
-
markedForDestruction(): boolean;
|
|
217
|
-
uniqueKey(): number;
|
|
218
|
-
uniqueKeyValue: number;
|
|
219
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
220
|
-
readAttribute(attributeName: string): any;
|
|
221
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
222
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
223
|
-
_isPresent(value: any): boolean;
|
|
224
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
225
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
226
|
-
modelClass: any;
|
|
227
|
-
reflectionName: string;
|
|
228
|
-
}): any | null;
|
|
229
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
230
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
231
|
-
_readHasOneReflection({ reflectionName }: {
|
|
232
|
-
modelClass: any;
|
|
233
|
-
reflectionName: string;
|
|
234
|
-
}): any | null;
|
|
235
|
-
_readModelDataFromArgs(args?: {
|
|
236
|
-
data?: {
|
|
237
|
-
b?: Record<string, any>;
|
|
238
|
-
a?: Record<string, any>;
|
|
239
|
-
r?: any;
|
|
240
|
-
};
|
|
241
|
-
collection?: Collection<any>;
|
|
242
|
-
}): void;
|
|
243
|
-
collection: Collection<any>;
|
|
244
|
-
preloadedRelationships: any;
|
|
245
|
-
_readPreloadedRelationships(preloaded: {
|
|
246
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
247
|
-
}): void;
|
|
248
|
-
primaryKey(): number | string;
|
|
249
|
-
};
|
|
250
|
-
response: object;
|
|
251
|
-
}>;
|
|
252
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
253
|
-
model: /*elided*/ any;
|
|
254
|
-
response: any;
|
|
255
|
-
}>;
|
|
256
|
-
destroy(): Promise<{
|
|
257
|
-
model: {
|
|
258
|
-
changes: {};
|
|
259
|
-
newRecord: boolean;
|
|
260
|
-
relationshipsCache: {};
|
|
261
|
-
relationships: {};
|
|
262
|
-
abilities: Record<string, any>;
|
|
263
|
-
modelData: {};
|
|
264
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
265
|
-
attributes(): Record<string, any>;
|
|
266
|
-
can(givenAbilityName: string): boolean;
|
|
267
|
-
clone(): /*elided*/ any;
|
|
268
|
-
cacheKey(): number | string;
|
|
269
|
-
localCacheKey(): string;
|
|
270
|
-
fullCacheKey(): string;
|
|
271
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
272
|
-
model: /*elided*/ any;
|
|
273
|
-
response: object;
|
|
274
|
-
}>;
|
|
275
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
276
|
-
model: /*elided*/ any;
|
|
277
|
-
response: any;
|
|
278
|
-
}>;
|
|
279
|
-
destroy(): Promise<{
|
|
280
|
-
model: /*elided*/ any;
|
|
281
|
-
response: object;
|
|
282
|
-
}>;
|
|
283
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
284
|
-
getAttributes(): Record<string, any>;
|
|
285
|
-
handleResponseError(response: object): never;
|
|
286
|
-
identifierKey(): number | string;
|
|
287
|
-
_identifierKey: string | number;
|
|
288
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
289
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
290
|
-
isAssociationPresent(associationName: string): boolean;
|
|
291
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
292
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
293
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
294
|
-
isChanged(): boolean;
|
|
295
|
-
isNewRecord(): boolean;
|
|
296
|
-
isPersisted(): boolean;
|
|
297
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
298
|
-
setNewModel(model: /*elided*/ any): void;
|
|
299
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
300
|
-
previousModelData: any;
|
|
301
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
302
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
303
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
304
|
-
modelClassData(): ModelClassDataType;
|
|
305
|
-
reload(): Promise<void>;
|
|
306
|
-
save(): Promise<{
|
|
307
|
-
model: /*elided*/ any;
|
|
308
|
-
response?: object;
|
|
309
|
-
}>;
|
|
310
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
311
|
-
model: /*elided*/ any;
|
|
312
|
-
response: object;
|
|
313
|
-
}>;
|
|
314
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
315
|
-
model: /*elided*/ any;
|
|
316
|
-
response?: object;
|
|
317
|
-
}>;
|
|
318
|
-
_refreshModelFromResponse(response: object): void;
|
|
319
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
320
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
321
|
-
simpleModelErrors?: boolean;
|
|
322
|
-
}): Promise<{
|
|
323
|
-
response: object;
|
|
324
|
-
model: /*elided*/ any;
|
|
325
|
-
}>;
|
|
326
|
-
isValid(): never;
|
|
327
|
-
isValidOnServer(): Promise<{
|
|
328
|
-
valid: boolean;
|
|
329
|
-
errors: Record<string, any>;
|
|
330
|
-
}>;
|
|
331
|
-
modelClass(): Record<string, any>;
|
|
332
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
333
|
-
markForDestruction(): void;
|
|
334
|
-
_markedForDestruction: boolean;
|
|
335
|
-
markedForDestruction(): boolean;
|
|
336
|
-
uniqueKey(): number;
|
|
337
|
-
uniqueKeyValue: number;
|
|
338
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
339
|
-
readAttribute(attributeName: string): any;
|
|
340
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
341
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
342
|
-
_isPresent(value: any): boolean;
|
|
343
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
344
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
345
|
-
modelClass: any;
|
|
346
|
-
reflectionName: string;
|
|
347
|
-
}): any | null;
|
|
348
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
349
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
350
|
-
_readHasOneReflection({ reflectionName }: {
|
|
351
|
-
modelClass: any;
|
|
352
|
-
reflectionName: string;
|
|
353
|
-
}): any | null;
|
|
354
|
-
_readModelDataFromArgs(args?: {
|
|
355
|
-
data?: {
|
|
356
|
-
b?: Record<string, any>;
|
|
357
|
-
a?: Record<string, any>;
|
|
358
|
-
r?: any;
|
|
359
|
-
};
|
|
360
|
-
collection?: Collection<any>;
|
|
361
|
-
}): void;
|
|
362
|
-
collection: Collection<any>;
|
|
363
|
-
preloadedRelationships: any;
|
|
364
|
-
_readPreloadedRelationships(preloaded: {
|
|
365
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
366
|
-
}): void;
|
|
367
|
-
primaryKey(): number | string;
|
|
368
|
-
};
|
|
369
|
-
response: object;
|
|
370
|
-
}>;
|
|
371
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
372
|
-
getAttributes(): Record<string, any>;
|
|
373
|
-
handleResponseError(response: object): never;
|
|
374
|
-
identifierKey(): number | string;
|
|
375
|
-
_identifierKey: string | number;
|
|
376
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
377
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
378
|
-
isAssociationPresent(associationName: string): boolean;
|
|
379
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
380
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
381
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
382
|
-
isChanged(): boolean;
|
|
383
|
-
isNewRecord(): boolean;
|
|
384
|
-
isPersisted(): boolean;
|
|
385
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
386
|
-
setNewModel(model: {
|
|
387
|
-
changes: {};
|
|
388
|
-
newRecord: boolean;
|
|
389
|
-
relationshipsCache: {};
|
|
390
|
-
relationships: {};
|
|
391
|
-
abilities: Record<string, any>;
|
|
392
|
-
modelData: {};
|
|
393
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
394
|
-
attributes(): Record<string, any>;
|
|
395
|
-
can(givenAbilityName: string): boolean;
|
|
396
|
-
clone(): /*elided*/ any;
|
|
397
|
-
cacheKey(): number | string;
|
|
398
|
-
localCacheKey(): string;
|
|
399
|
-
fullCacheKey(): string;
|
|
400
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
401
|
-
model: /*elided*/ any;
|
|
402
|
-
response: object;
|
|
403
|
-
}>;
|
|
404
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
405
|
-
model: /*elided*/ any;
|
|
406
|
-
response: any;
|
|
407
|
-
}>;
|
|
408
|
-
destroy(): Promise<{
|
|
409
|
-
model: /*elided*/ any;
|
|
410
|
-
response: object;
|
|
411
|
-
}>;
|
|
412
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
413
|
-
getAttributes(): Record<string, any>;
|
|
414
|
-
handleResponseError(response: object): never;
|
|
415
|
-
identifierKey(): number | string;
|
|
416
|
-
_identifierKey: string | number;
|
|
417
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
418
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
419
|
-
isAssociationPresent(associationName: string): boolean;
|
|
420
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
421
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
422
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
423
|
-
isChanged(): boolean;
|
|
424
|
-
isNewRecord(): boolean;
|
|
425
|
-
isPersisted(): boolean;
|
|
426
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
427
|
-
setNewModel(model: /*elided*/ any): void;
|
|
428
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
429
|
-
previousModelData: any;
|
|
430
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
431
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
432
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
433
|
-
modelClassData(): ModelClassDataType;
|
|
434
|
-
reload(): Promise<void>;
|
|
435
|
-
save(): Promise<{
|
|
436
|
-
model: /*elided*/ any;
|
|
437
|
-
response?: object;
|
|
438
|
-
}>;
|
|
439
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
440
|
-
model: /*elided*/ any;
|
|
441
|
-
response: object;
|
|
442
|
-
}>;
|
|
443
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
444
|
-
model: /*elided*/ any;
|
|
445
|
-
response?: object;
|
|
446
|
-
}>;
|
|
447
|
-
_refreshModelFromResponse(response: object): void;
|
|
448
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
449
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
450
|
-
simpleModelErrors?: boolean;
|
|
451
|
-
}): Promise<{
|
|
452
|
-
response: object;
|
|
453
|
-
model: /*elided*/ any;
|
|
454
|
-
}>;
|
|
455
|
-
isValid(): never;
|
|
456
|
-
isValidOnServer(): Promise<{
|
|
457
|
-
valid: boolean;
|
|
458
|
-
errors: Record<string, any>;
|
|
459
|
-
}>;
|
|
460
|
-
modelClass(): Record<string, any>;
|
|
461
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
462
|
-
markForDestruction(): void;
|
|
463
|
-
_markedForDestruction: boolean;
|
|
464
|
-
markedForDestruction(): boolean;
|
|
465
|
-
uniqueKey(): number;
|
|
466
|
-
uniqueKeyValue: number;
|
|
467
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
468
|
-
readAttribute(attributeName: string): any;
|
|
469
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
470
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
471
|
-
_isPresent(value: any): boolean;
|
|
472
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
473
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
474
|
-
modelClass: any;
|
|
475
|
-
reflectionName: string;
|
|
476
|
-
}): any | null;
|
|
477
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
478
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
479
|
-
_readHasOneReflection({ reflectionName }: {
|
|
480
|
-
modelClass: any;
|
|
481
|
-
reflectionName: string;
|
|
482
|
-
}): any | null;
|
|
483
|
-
_readModelDataFromArgs(args?: {
|
|
484
|
-
data?: {
|
|
485
|
-
b?: Record<string, any>;
|
|
486
|
-
a?: Record<string, any>;
|
|
487
|
-
r?: any;
|
|
488
|
-
};
|
|
489
|
-
collection?: Collection<any>;
|
|
490
|
-
}): void;
|
|
491
|
-
collection: Collection<any>;
|
|
492
|
-
preloadedRelationships: any;
|
|
493
|
-
_readPreloadedRelationships(preloaded: {
|
|
494
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
495
|
-
}): void;
|
|
496
|
-
primaryKey(): number | string;
|
|
497
|
-
}): void;
|
|
498
|
-
setNewModelData(model: {
|
|
499
|
-
changes: {};
|
|
500
|
-
newRecord: boolean;
|
|
501
|
-
relationshipsCache: {};
|
|
502
|
-
relationships: {};
|
|
503
|
-
abilities: Record<string, any>;
|
|
504
|
-
modelData: {};
|
|
505
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
506
|
-
attributes(): Record<string, any>;
|
|
507
|
-
can(givenAbilityName: string): boolean;
|
|
508
|
-
clone(): /*elided*/ any;
|
|
509
|
-
cacheKey(): number | string;
|
|
510
|
-
localCacheKey(): string;
|
|
511
|
-
fullCacheKey(): string;
|
|
512
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
513
|
-
model: /*elided*/ any;
|
|
514
|
-
response: object;
|
|
515
|
-
}>;
|
|
516
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
517
|
-
model: /*elided*/ any;
|
|
518
|
-
response: any;
|
|
519
|
-
}>;
|
|
520
|
-
destroy(): Promise<{
|
|
521
|
-
model: /*elided*/ any;
|
|
522
|
-
response: object;
|
|
523
|
-
}>;
|
|
524
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
525
|
-
getAttributes(): Record<string, any>;
|
|
526
|
-
handleResponseError(response: object): never;
|
|
527
|
-
identifierKey(): number | string;
|
|
528
|
-
_identifierKey: string | number;
|
|
529
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
530
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
531
|
-
isAssociationPresent(associationName: string): boolean;
|
|
532
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
533
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
534
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
535
|
-
isChanged(): boolean;
|
|
536
|
-
isNewRecord(): boolean;
|
|
537
|
-
isPersisted(): boolean;
|
|
538
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
539
|
-
setNewModel(model: /*elided*/ any): void;
|
|
540
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
541
|
-
previousModelData: any;
|
|
542
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
543
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
544
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
545
|
-
modelClassData(): ModelClassDataType;
|
|
546
|
-
reload(): Promise<void>;
|
|
547
|
-
save(): Promise<{
|
|
548
|
-
model: /*elided*/ any;
|
|
549
|
-
response?: object;
|
|
550
|
-
}>;
|
|
551
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
552
|
-
model: /*elided*/ any;
|
|
553
|
-
response: object;
|
|
554
|
-
}>;
|
|
555
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
556
|
-
model: /*elided*/ any;
|
|
557
|
-
response?: object;
|
|
558
|
-
}>;
|
|
559
|
-
_refreshModelFromResponse(response: object): void;
|
|
560
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
561
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
562
|
-
simpleModelErrors?: boolean;
|
|
563
|
-
}): Promise<{
|
|
564
|
-
response: object;
|
|
565
|
-
model: /*elided*/ any;
|
|
566
|
-
}>;
|
|
567
|
-
isValid(): never;
|
|
568
|
-
isValidOnServer(): Promise<{
|
|
569
|
-
valid: boolean;
|
|
570
|
-
errors: Record<string, any>;
|
|
571
|
-
}>;
|
|
572
|
-
modelClass(): Record<string, any>;
|
|
573
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
574
|
-
markForDestruction(): void;
|
|
575
|
-
_markedForDestruction: boolean;
|
|
576
|
-
markedForDestruction(): boolean;
|
|
577
|
-
uniqueKey(): number;
|
|
578
|
-
uniqueKeyValue: number;
|
|
579
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
580
|
-
readAttribute(attributeName: string): any;
|
|
581
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
582
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
583
|
-
_isPresent(value: any): boolean;
|
|
584
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
585
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
586
|
-
modelClass: any;
|
|
587
|
-
reflectionName: string;
|
|
588
|
-
}): any | null;
|
|
589
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
590
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
591
|
-
_readHasOneReflection({ reflectionName }: {
|
|
592
|
-
modelClass: any;
|
|
593
|
-
reflectionName: string;
|
|
594
|
-
}): any | null;
|
|
595
|
-
_readModelDataFromArgs(args?: {
|
|
596
|
-
data?: {
|
|
597
|
-
b?: Record<string, any>;
|
|
598
|
-
a?: Record<string, any>;
|
|
599
|
-
r?: any;
|
|
600
|
-
};
|
|
601
|
-
collection?: Collection<any>;
|
|
602
|
-
}): void;
|
|
603
|
-
collection: Collection<any>;
|
|
604
|
-
preloadedRelationships: any;
|
|
605
|
-
_readPreloadedRelationships(preloaded: {
|
|
606
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
607
|
-
}): void;
|
|
608
|
-
primaryKey(): number | string;
|
|
609
|
-
}): void;
|
|
610
|
-
previousModelData: any;
|
|
611
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
612
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
613
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
614
|
-
modelClassData(): ModelClassDataType;
|
|
615
|
-
reload(): Promise<void>;
|
|
616
|
-
save(): Promise<{
|
|
617
|
-
model: {
|
|
618
|
-
changes: {};
|
|
619
|
-
newRecord: boolean;
|
|
620
|
-
relationshipsCache: {};
|
|
621
|
-
relationships: {};
|
|
622
|
-
abilities: Record<string, any>;
|
|
623
|
-
modelData: {};
|
|
624
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
625
|
-
attributes(): Record<string, any>;
|
|
626
|
-
can(givenAbilityName: string): boolean;
|
|
627
|
-
clone(): /*elided*/ any;
|
|
628
|
-
cacheKey(): number | string;
|
|
629
|
-
localCacheKey(): string;
|
|
630
|
-
fullCacheKey(): string;
|
|
631
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
632
|
-
model: /*elided*/ any;
|
|
633
|
-
response: object;
|
|
634
|
-
}>;
|
|
635
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
636
|
-
model: /*elided*/ any;
|
|
637
|
-
response: any;
|
|
638
|
-
}>;
|
|
639
|
-
destroy(): Promise<{
|
|
640
|
-
model: /*elided*/ any;
|
|
641
|
-
response: object;
|
|
642
|
-
}>;
|
|
643
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
644
|
-
getAttributes(): Record<string, any>;
|
|
645
|
-
handleResponseError(response: object): never;
|
|
646
|
-
identifierKey(): number | string;
|
|
647
|
-
_identifierKey: string | number;
|
|
648
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
649
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
650
|
-
isAssociationPresent(associationName: string): boolean;
|
|
651
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
652
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
653
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
654
|
-
isChanged(): boolean;
|
|
655
|
-
isNewRecord(): boolean;
|
|
656
|
-
isPersisted(): boolean;
|
|
657
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
658
|
-
setNewModel(model: /*elided*/ any): void;
|
|
659
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
660
|
-
previousModelData: any;
|
|
661
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
662
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
663
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
664
|
-
modelClassData(): ModelClassDataType;
|
|
665
|
-
reload(): Promise<void>;
|
|
666
|
-
save(): Promise<{
|
|
667
|
-
model: /*elided*/ any;
|
|
668
|
-
response?: object;
|
|
669
|
-
}>;
|
|
670
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
671
|
-
model: /*elided*/ any;
|
|
672
|
-
response: object;
|
|
673
|
-
}>;
|
|
674
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
675
|
-
model: /*elided*/ any;
|
|
676
|
-
response?: object;
|
|
677
|
-
}>;
|
|
678
|
-
_refreshModelFromResponse(response: object): void;
|
|
679
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
680
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
681
|
-
simpleModelErrors?: boolean;
|
|
682
|
-
}): Promise<{
|
|
683
|
-
response: object;
|
|
684
|
-
model: /*elided*/ any;
|
|
685
|
-
}>;
|
|
686
|
-
isValid(): never;
|
|
687
|
-
isValidOnServer(): Promise<{
|
|
688
|
-
valid: boolean;
|
|
689
|
-
errors: Record<string, any>;
|
|
690
|
-
}>;
|
|
691
|
-
modelClass(): Record<string, any>;
|
|
692
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
693
|
-
markForDestruction(): void;
|
|
694
|
-
_markedForDestruction: boolean;
|
|
695
|
-
markedForDestruction(): boolean;
|
|
696
|
-
uniqueKey(): number;
|
|
697
|
-
uniqueKeyValue: number;
|
|
698
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
699
|
-
readAttribute(attributeName: string): any;
|
|
700
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
701
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
702
|
-
_isPresent(value: any): boolean;
|
|
703
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
704
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
705
|
-
modelClass: any;
|
|
706
|
-
reflectionName: string;
|
|
707
|
-
}): any | null;
|
|
708
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
709
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
710
|
-
_readHasOneReflection({ reflectionName }: {
|
|
711
|
-
modelClass: any;
|
|
712
|
-
reflectionName: string;
|
|
713
|
-
}): any | null;
|
|
714
|
-
_readModelDataFromArgs(args?: {
|
|
715
|
-
data?: {
|
|
716
|
-
b?: Record<string, any>;
|
|
717
|
-
a?: Record<string, any>;
|
|
718
|
-
r?: any;
|
|
719
|
-
};
|
|
720
|
-
collection?: Collection<any>;
|
|
721
|
-
}): void;
|
|
722
|
-
collection: Collection<any>;
|
|
723
|
-
preloadedRelationships: any;
|
|
724
|
-
_readPreloadedRelationships(preloaded: {
|
|
725
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
726
|
-
}): void;
|
|
727
|
-
primaryKey(): number | string;
|
|
728
|
-
};
|
|
729
|
-
response?: object;
|
|
730
|
-
}>;
|
|
731
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
732
|
-
model: {
|
|
733
|
-
changes: {};
|
|
734
|
-
newRecord: boolean;
|
|
735
|
-
relationshipsCache: {};
|
|
736
|
-
relationships: {};
|
|
737
|
-
abilities: Record<string, any>;
|
|
738
|
-
modelData: {};
|
|
739
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
740
|
-
attributes(): Record<string, any>;
|
|
741
|
-
can(givenAbilityName: string): boolean;
|
|
742
|
-
clone(): /*elided*/ any;
|
|
743
|
-
cacheKey(): number | string;
|
|
744
|
-
localCacheKey(): string;
|
|
745
|
-
fullCacheKey(): string;
|
|
746
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
747
|
-
model: /*elided*/ any;
|
|
748
|
-
response: object;
|
|
749
|
-
}>;
|
|
750
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
751
|
-
model: /*elided*/ any;
|
|
752
|
-
response: any;
|
|
753
|
-
}>;
|
|
754
|
-
destroy(): Promise<{
|
|
755
|
-
model: /*elided*/ any;
|
|
756
|
-
response: object;
|
|
757
|
-
}>;
|
|
758
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
759
|
-
getAttributes(): Record<string, any>;
|
|
760
|
-
handleResponseError(response: object): never;
|
|
761
|
-
identifierKey(): number | string;
|
|
762
|
-
_identifierKey: string | number;
|
|
763
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
764
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
765
|
-
isAssociationPresent(associationName: string): boolean;
|
|
766
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
767
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
768
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
769
|
-
isChanged(): boolean;
|
|
770
|
-
isNewRecord(): boolean;
|
|
771
|
-
isPersisted(): boolean;
|
|
772
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
773
|
-
setNewModel(model: /*elided*/ any): void;
|
|
774
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
775
|
-
previousModelData: any;
|
|
776
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
777
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
778
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
779
|
-
modelClassData(): ModelClassDataType;
|
|
780
|
-
reload(): Promise<void>;
|
|
781
|
-
save(): Promise<{
|
|
782
|
-
model: /*elided*/ any;
|
|
783
|
-
response?: object;
|
|
784
|
-
}>;
|
|
785
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
786
|
-
model: /*elided*/ any;
|
|
787
|
-
response: object;
|
|
788
|
-
}>;
|
|
789
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
790
|
-
model: /*elided*/ any;
|
|
791
|
-
response?: object;
|
|
792
|
-
}>;
|
|
793
|
-
_refreshModelFromResponse(response: object): void;
|
|
794
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
795
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
796
|
-
simpleModelErrors?: boolean;
|
|
797
|
-
}): Promise<{
|
|
798
|
-
response: object;
|
|
799
|
-
model: /*elided*/ any;
|
|
800
|
-
}>;
|
|
801
|
-
isValid(): never;
|
|
802
|
-
isValidOnServer(): Promise<{
|
|
803
|
-
valid: boolean;
|
|
804
|
-
errors: Record<string, any>;
|
|
805
|
-
}>;
|
|
806
|
-
modelClass(): Record<string, any>;
|
|
807
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
808
|
-
markForDestruction(): void;
|
|
809
|
-
_markedForDestruction: boolean;
|
|
810
|
-
markedForDestruction(): boolean;
|
|
811
|
-
uniqueKey(): number;
|
|
812
|
-
uniqueKeyValue: number;
|
|
813
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
814
|
-
readAttribute(attributeName: string): any;
|
|
815
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
816
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
817
|
-
_isPresent(value: any): boolean;
|
|
818
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
819
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
820
|
-
modelClass: any;
|
|
821
|
-
reflectionName: string;
|
|
822
|
-
}): any | null;
|
|
823
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
824
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
825
|
-
_readHasOneReflection({ reflectionName }: {
|
|
826
|
-
modelClass: any;
|
|
827
|
-
reflectionName: string;
|
|
828
|
-
}): any | null;
|
|
829
|
-
_readModelDataFromArgs(args?: {
|
|
830
|
-
data?: {
|
|
831
|
-
b?: Record<string, any>;
|
|
832
|
-
a?: Record<string, any>;
|
|
833
|
-
r?: any;
|
|
834
|
-
};
|
|
835
|
-
collection?: Collection<any>;
|
|
836
|
-
}): void;
|
|
837
|
-
collection: Collection<any>;
|
|
838
|
-
preloadedRelationships: any;
|
|
839
|
-
_readPreloadedRelationships(preloaded: {
|
|
840
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
841
|
-
}): void;
|
|
842
|
-
primaryKey(): number | string;
|
|
843
|
-
};
|
|
844
|
-
response: object;
|
|
845
|
-
}>;
|
|
846
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
847
|
-
model: {
|
|
848
|
-
changes: {};
|
|
849
|
-
newRecord: boolean;
|
|
850
|
-
relationshipsCache: {};
|
|
851
|
-
relationships: {};
|
|
852
|
-
abilities: Record<string, any>;
|
|
853
|
-
modelData: {};
|
|
854
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
855
|
-
attributes(): Record<string, any>;
|
|
856
|
-
can(givenAbilityName: string): boolean;
|
|
857
|
-
clone(): /*elided*/ any;
|
|
858
|
-
cacheKey(): number | string;
|
|
859
|
-
localCacheKey(): string;
|
|
860
|
-
fullCacheKey(): string;
|
|
861
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
862
|
-
model: /*elided*/ any;
|
|
863
|
-
response: object;
|
|
864
|
-
}>;
|
|
865
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
866
|
-
model: /*elided*/ any;
|
|
867
|
-
response: any;
|
|
868
|
-
}>;
|
|
869
|
-
destroy(): Promise<{
|
|
870
|
-
model: /*elided*/ any;
|
|
871
|
-
response: object;
|
|
872
|
-
}>;
|
|
873
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
874
|
-
getAttributes(): Record<string, any>;
|
|
875
|
-
handleResponseError(response: object): never;
|
|
876
|
-
identifierKey(): number | string;
|
|
877
|
-
_identifierKey: string | number;
|
|
878
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
879
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
880
|
-
isAssociationPresent(associationName: string): boolean;
|
|
881
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
882
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
883
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
884
|
-
isChanged(): boolean;
|
|
885
|
-
isNewRecord(): boolean;
|
|
886
|
-
isPersisted(): boolean;
|
|
887
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
888
|
-
setNewModel(model: /*elided*/ any): void;
|
|
889
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
890
|
-
previousModelData: any;
|
|
891
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
892
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
893
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
894
|
-
modelClassData(): ModelClassDataType;
|
|
895
|
-
reload(): Promise<void>;
|
|
896
|
-
save(): Promise<{
|
|
897
|
-
model: /*elided*/ any;
|
|
898
|
-
response?: object;
|
|
899
|
-
}>;
|
|
900
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
901
|
-
model: /*elided*/ any;
|
|
902
|
-
response: object;
|
|
903
|
-
}>;
|
|
904
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
905
|
-
model: /*elided*/ any;
|
|
906
|
-
response?: object;
|
|
907
|
-
}>;
|
|
908
|
-
_refreshModelFromResponse(response: object): void;
|
|
909
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
910
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
911
|
-
simpleModelErrors?: boolean;
|
|
912
|
-
}): Promise<{
|
|
913
|
-
response: object;
|
|
914
|
-
model: /*elided*/ any;
|
|
915
|
-
}>;
|
|
916
|
-
isValid(): never;
|
|
917
|
-
isValidOnServer(): Promise<{
|
|
918
|
-
valid: boolean;
|
|
919
|
-
errors: Record<string, any>;
|
|
920
|
-
}>;
|
|
921
|
-
modelClass(): Record<string, any>;
|
|
922
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
923
|
-
markForDestruction(): void;
|
|
924
|
-
_markedForDestruction: boolean;
|
|
925
|
-
markedForDestruction(): boolean;
|
|
926
|
-
uniqueKey(): number;
|
|
927
|
-
uniqueKeyValue: number;
|
|
928
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
929
|
-
readAttribute(attributeName: string): any;
|
|
930
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
931
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
932
|
-
_isPresent(value: any): boolean;
|
|
933
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
934
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
935
|
-
modelClass: any;
|
|
936
|
-
reflectionName: string;
|
|
937
|
-
}): any | null;
|
|
938
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
939
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
940
|
-
_readHasOneReflection({ reflectionName }: {
|
|
941
|
-
modelClass: any;
|
|
942
|
-
reflectionName: string;
|
|
943
|
-
}): any | null;
|
|
944
|
-
_readModelDataFromArgs(args?: {
|
|
945
|
-
data?: {
|
|
946
|
-
b?: Record<string, any>;
|
|
947
|
-
a?: Record<string, any>;
|
|
948
|
-
r?: any;
|
|
949
|
-
};
|
|
950
|
-
collection?: Collection<any>;
|
|
951
|
-
}): void;
|
|
952
|
-
collection: Collection<any>;
|
|
953
|
-
preloadedRelationships: any;
|
|
954
|
-
_readPreloadedRelationships(preloaded: {
|
|
955
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
956
|
-
}): void;
|
|
957
|
-
primaryKey(): number | string;
|
|
958
|
-
};
|
|
959
|
-
response?: object;
|
|
960
|
-
}>;
|
|
961
|
-
_refreshModelFromResponse(response: object): void;
|
|
962
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
963
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
964
|
-
simpleModelErrors?: boolean;
|
|
965
|
-
}): Promise<{
|
|
966
|
-
response: object;
|
|
967
|
-
model: {
|
|
968
|
-
changes: {};
|
|
969
|
-
newRecord: boolean;
|
|
970
|
-
relationshipsCache: {};
|
|
971
|
-
relationships: {};
|
|
972
|
-
abilities: Record<string, any>;
|
|
973
|
-
modelData: {};
|
|
974
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
975
|
-
attributes(): Record<string, any>;
|
|
976
|
-
can(givenAbilityName: string): boolean;
|
|
977
|
-
clone(): /*elided*/ any;
|
|
978
|
-
cacheKey(): number | string;
|
|
979
|
-
localCacheKey(): string;
|
|
980
|
-
fullCacheKey(): string;
|
|
981
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
982
|
-
model: /*elided*/ any;
|
|
983
|
-
response: object;
|
|
984
|
-
}>;
|
|
985
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
986
|
-
model: /*elided*/ any;
|
|
987
|
-
response: any;
|
|
988
|
-
}>;
|
|
989
|
-
destroy(): Promise<{
|
|
990
|
-
model: /*elided*/ any;
|
|
991
|
-
response: object;
|
|
992
|
-
}>;
|
|
993
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
994
|
-
getAttributes(): Record<string, any>;
|
|
995
|
-
handleResponseError(response: object): never;
|
|
996
|
-
identifierKey(): number | string;
|
|
997
|
-
_identifierKey: string | number;
|
|
998
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
999
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
1000
|
-
isAssociationPresent(associationName: string): boolean;
|
|
1001
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
1002
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
1003
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
1004
|
-
isChanged(): boolean;
|
|
1005
|
-
isNewRecord(): boolean;
|
|
1006
|
-
isPersisted(): boolean;
|
|
1007
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
1008
|
-
setNewModel(model: /*elided*/ any): void;
|
|
1009
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
1010
|
-
previousModelData: any;
|
|
1011
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
1012
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
1013
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
1014
|
-
modelClassData(): ModelClassDataType;
|
|
1015
|
-
reload(): Promise<void>;
|
|
1016
|
-
save(): Promise<{
|
|
1017
|
-
model: /*elided*/ any;
|
|
1018
|
-
response?: object;
|
|
1019
|
-
}>;
|
|
1020
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
1021
|
-
model: /*elided*/ any;
|
|
1022
|
-
response: object;
|
|
1023
|
-
}>;
|
|
1024
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
1025
|
-
model: /*elided*/ any;
|
|
1026
|
-
response?: object;
|
|
1027
|
-
}>;
|
|
1028
|
-
_refreshModelFromResponse(response: object): void;
|
|
1029
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
1030
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
1031
|
-
simpleModelErrors?: boolean;
|
|
1032
|
-
}): Promise<{
|
|
1033
|
-
response: object;
|
|
1034
|
-
model: /*elided*/ any;
|
|
1035
|
-
}>;
|
|
1036
|
-
isValid(): never;
|
|
1037
|
-
isValidOnServer(): Promise<{
|
|
1038
|
-
valid: boolean;
|
|
1039
|
-
errors: Record<string, any>;
|
|
1040
|
-
}>;
|
|
1041
|
-
modelClass(): Record<string, any>;
|
|
1042
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
1043
|
-
markForDestruction(): void;
|
|
1044
|
-
_markedForDestruction: boolean;
|
|
1045
|
-
markedForDestruction(): boolean;
|
|
1046
|
-
uniqueKey(): number;
|
|
1047
|
-
uniqueKeyValue: number;
|
|
1048
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
1049
|
-
readAttribute(attributeName: string): any;
|
|
1050
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
1051
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
1052
|
-
_isPresent(value: any): boolean;
|
|
1053
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
1054
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
1055
|
-
modelClass: any;
|
|
1056
|
-
reflectionName: string;
|
|
1057
|
-
}): any | null;
|
|
1058
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
1059
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
1060
|
-
_readHasOneReflection({ reflectionName }: {
|
|
1061
|
-
modelClass: any;
|
|
1062
|
-
reflectionName: string;
|
|
1063
|
-
}): any | null;
|
|
1064
|
-
_readModelDataFromArgs(args?: {
|
|
1065
|
-
data?: {
|
|
1066
|
-
b?: Record<string, any>;
|
|
1067
|
-
a?: Record<string, any>;
|
|
1068
|
-
r?: any;
|
|
1069
|
-
};
|
|
1070
|
-
collection?: Collection<any>;
|
|
1071
|
-
}): void;
|
|
1072
|
-
collection: Collection<any>;
|
|
1073
|
-
preloadedRelationships: any;
|
|
1074
|
-
_readPreloadedRelationships(preloaded: {
|
|
1075
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
1076
|
-
}): void;
|
|
1077
|
-
primaryKey(): number | string;
|
|
1078
|
-
};
|
|
1079
|
-
}>;
|
|
1080
|
-
isValid(): never;
|
|
1081
|
-
isValidOnServer(): Promise<{
|
|
1082
|
-
valid: boolean;
|
|
1083
|
-
errors: Record<string, any>;
|
|
1084
|
-
}>;
|
|
1085
|
-
modelClass(): Record<string, any>;
|
|
1086
|
-
preloadRelationship(relationshipName: string, model: {
|
|
1087
|
-
changes: {};
|
|
1088
|
-
newRecord: boolean;
|
|
1089
|
-
relationshipsCache: {};
|
|
1090
|
-
relationships: {};
|
|
1091
|
-
abilities: Record<string, any>;
|
|
1092
|
-
modelData: {};
|
|
1093
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
1094
|
-
attributes(): Record<string, any>;
|
|
1095
|
-
can(givenAbilityName: string): boolean;
|
|
1096
|
-
clone(): /*elided*/ any;
|
|
1097
|
-
cacheKey(): number | string;
|
|
1098
|
-
localCacheKey(): string;
|
|
1099
|
-
fullCacheKey(): string;
|
|
1100
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
1101
|
-
model: /*elided*/ any;
|
|
1102
|
-
response: object;
|
|
1103
|
-
}>;
|
|
1104
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
1105
|
-
model: /*elided*/ any;
|
|
1106
|
-
response: any;
|
|
1107
|
-
}>;
|
|
1108
|
-
destroy(): Promise<{
|
|
1109
|
-
model: /*elided*/ any;
|
|
1110
|
-
response: object;
|
|
1111
|
-
}>;
|
|
1112
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
1113
|
-
getAttributes(): Record<string, any>;
|
|
1114
|
-
handleResponseError(response: object): never;
|
|
1115
|
-
identifierKey(): number | string;
|
|
1116
|
-
_identifierKey: string | number;
|
|
1117
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
1118
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
1119
|
-
isAssociationPresent(associationName: string): boolean;
|
|
1120
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
1121
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
1122
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
1123
|
-
isChanged(): boolean;
|
|
1124
|
-
isNewRecord(): boolean;
|
|
1125
|
-
isPersisted(): boolean;
|
|
1126
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
1127
|
-
setNewModel(model: /*elided*/ any): void;
|
|
1128
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
1129
|
-
previousModelData: any;
|
|
1130
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
1131
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
1132
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
1133
|
-
modelClassData(): ModelClassDataType;
|
|
1134
|
-
reload(): Promise<void>;
|
|
1135
|
-
save(): Promise<{
|
|
1136
|
-
model: /*elided*/ any;
|
|
1137
|
-
response?: object;
|
|
1138
|
-
}>;
|
|
1139
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
1140
|
-
model: /*elided*/ any;
|
|
1141
|
-
response: object;
|
|
1142
|
-
}>;
|
|
1143
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
1144
|
-
model: /*elided*/ any;
|
|
1145
|
-
response?: object;
|
|
1146
|
-
}>;
|
|
1147
|
-
_refreshModelFromResponse(response: object): void;
|
|
1148
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
1149
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
1150
|
-
simpleModelErrors?: boolean;
|
|
1151
|
-
}): Promise<{
|
|
1152
|
-
response: object;
|
|
1153
|
-
model: /*elided*/ any;
|
|
1154
|
-
}>;
|
|
1155
|
-
isValid(): never;
|
|
1156
|
-
isValidOnServer(): Promise<{
|
|
1157
|
-
valid: boolean;
|
|
1158
|
-
errors: Record<string, any>;
|
|
1159
|
-
}>;
|
|
1160
|
-
modelClass(): Record<string, any>;
|
|
1161
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
1162
|
-
markForDestruction(): void;
|
|
1163
|
-
_markedForDestruction: boolean;
|
|
1164
|
-
markedForDestruction(): boolean;
|
|
1165
|
-
uniqueKey(): number;
|
|
1166
|
-
uniqueKeyValue: number;
|
|
1167
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
1168
|
-
readAttribute(attributeName: string): any;
|
|
1169
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
1170
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
1171
|
-
_isPresent(value: any): boolean;
|
|
1172
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
1173
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
1174
|
-
modelClass: any;
|
|
1175
|
-
reflectionName: string;
|
|
1176
|
-
}): any | null;
|
|
1177
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
1178
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
1179
|
-
_readHasOneReflection({ reflectionName }: {
|
|
1180
|
-
modelClass: any;
|
|
1181
|
-
reflectionName: string;
|
|
1182
|
-
}): any | null;
|
|
1183
|
-
_readModelDataFromArgs(args?: {
|
|
1184
|
-
data?: {
|
|
1185
|
-
b?: Record<string, any>;
|
|
1186
|
-
a?: Record<string, any>;
|
|
1187
|
-
r?: any;
|
|
1188
|
-
};
|
|
1189
|
-
collection?: Collection<any>;
|
|
1190
|
-
}): void;
|
|
1191
|
-
collection: Collection<any>;
|
|
1192
|
-
preloadedRelationships: any;
|
|
1193
|
-
_readPreloadedRelationships(preloaded: {
|
|
1194
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
1195
|
-
}): void;
|
|
1196
|
-
primaryKey(): number | string;
|
|
1197
|
-
} | {
|
|
1198
|
-
changes: {};
|
|
1199
|
-
newRecord: boolean;
|
|
1200
|
-
relationshipsCache: {};
|
|
1201
|
-
relationships: {};
|
|
1202
|
-
abilities: Record<string, any>;
|
|
1203
|
-
modelData: {};
|
|
1204
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
1205
|
-
attributes(): Record<string, any>;
|
|
1206
|
-
can(givenAbilityName: string): boolean;
|
|
1207
|
-
clone(): /*elided*/ any;
|
|
1208
|
-
cacheKey(): number | string;
|
|
1209
|
-
localCacheKey(): string;
|
|
1210
|
-
fullCacheKey(): string;
|
|
1211
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
1212
|
-
model: /*elided*/ any;
|
|
1213
|
-
response: object;
|
|
1214
|
-
}>;
|
|
1215
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
1216
|
-
model: /*elided*/ any;
|
|
1217
|
-
response: any;
|
|
1218
|
-
}>;
|
|
1219
|
-
destroy(): Promise<{
|
|
1220
|
-
model: /*elided*/ any;
|
|
1221
|
-
response: object;
|
|
1222
|
-
}>;
|
|
1223
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
1224
|
-
getAttributes(): Record<string, any>;
|
|
1225
|
-
handleResponseError(response: object): never;
|
|
1226
|
-
identifierKey(): number | string;
|
|
1227
|
-
_identifierKey: string | number;
|
|
1228
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
1229
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
1230
|
-
isAssociationPresent(associationName: string): boolean;
|
|
1231
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
1232
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
1233
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
1234
|
-
isChanged(): boolean;
|
|
1235
|
-
isNewRecord(): boolean;
|
|
1236
|
-
isPersisted(): boolean;
|
|
1237
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
1238
|
-
setNewModel(model: /*elided*/ any): void;
|
|
1239
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
1240
|
-
previousModelData: any;
|
|
1241
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
1242
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
1243
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
1244
|
-
modelClassData(): ModelClassDataType;
|
|
1245
|
-
reload(): Promise<void>;
|
|
1246
|
-
save(): Promise<{
|
|
1247
|
-
model: /*elided*/ any;
|
|
1248
|
-
response?: object;
|
|
1249
|
-
}>;
|
|
1250
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
1251
|
-
model: /*elided*/ any;
|
|
1252
|
-
response: object;
|
|
1253
|
-
}>;
|
|
1254
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
1255
|
-
model: /*elided*/ any;
|
|
1256
|
-
response?: object;
|
|
1257
|
-
}>;
|
|
1258
|
-
_refreshModelFromResponse(response: object): void;
|
|
1259
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
1260
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
1261
|
-
simpleModelErrors?: boolean;
|
|
1262
|
-
}): Promise<{
|
|
1263
|
-
response: object;
|
|
1264
|
-
model: /*elided*/ any;
|
|
1265
|
-
}>;
|
|
1266
|
-
isValid(): never;
|
|
1267
|
-
isValidOnServer(): Promise<{
|
|
1268
|
-
valid: boolean;
|
|
1269
|
-
errors: Record<string, any>;
|
|
1270
|
-
}>;
|
|
1271
|
-
modelClass(): Record<string, any>;
|
|
1272
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
1273
|
-
markForDestruction(): void;
|
|
1274
|
-
_markedForDestruction: boolean;
|
|
1275
|
-
markedForDestruction(): boolean;
|
|
1276
|
-
uniqueKey(): number;
|
|
1277
|
-
uniqueKeyValue: number;
|
|
1278
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
1279
|
-
readAttribute(attributeName: string): any;
|
|
1280
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
1281
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
1282
|
-
_isPresent(value: any): boolean;
|
|
1283
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
1284
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
1285
|
-
modelClass: any;
|
|
1286
|
-
reflectionName: string;
|
|
1287
|
-
}): any | null;
|
|
1288
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
1289
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
1290
|
-
_readHasOneReflection({ reflectionName }: {
|
|
1291
|
-
modelClass: any;
|
|
1292
|
-
reflectionName: string;
|
|
1293
|
-
}): any | null;
|
|
1294
|
-
_readModelDataFromArgs(args?: {
|
|
1295
|
-
data?: {
|
|
1296
|
-
b?: Record<string, any>;
|
|
1297
|
-
a?: Record<string, any>;
|
|
1298
|
-
r?: any;
|
|
1299
|
-
};
|
|
1300
|
-
collection?: Collection<any>;
|
|
1301
|
-
}): void;
|
|
1302
|
-
collection: Collection<any>;
|
|
1303
|
-
preloadedRelationships: any;
|
|
1304
|
-
_readPreloadedRelationships(preloaded: {
|
|
1305
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
1306
|
-
}): void;
|
|
1307
|
-
primaryKey(): number | string;
|
|
1308
|
-
}[] | null): void;
|
|
1309
|
-
markForDestruction(): void;
|
|
1310
|
-
_markedForDestruction: boolean;
|
|
1311
|
-
markedForDestruction(): boolean;
|
|
1312
|
-
uniqueKey(): number;
|
|
1313
|
-
uniqueKeyValue: number;
|
|
1314
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
1315
|
-
readAttribute(attributeName: string): any;
|
|
1316
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
1317
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
1318
|
-
_isPresent(value: any): boolean;
|
|
1319
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
1320
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
1321
|
-
modelClass: any;
|
|
1322
|
-
reflectionName: string;
|
|
1323
|
-
}): any | null;
|
|
1324
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
1325
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
1326
|
-
_readHasOneReflection({ reflectionName }: {
|
|
1327
|
-
modelClass: any;
|
|
1328
|
-
reflectionName: string;
|
|
1329
|
-
}): any | null;
|
|
1330
|
-
_readModelDataFromArgs(args?: {
|
|
1331
|
-
data?: {
|
|
1332
|
-
b?: Record<string, any>;
|
|
1333
|
-
a?: Record<string, any>;
|
|
1334
|
-
r?: any;
|
|
1335
|
-
};
|
|
1336
|
-
collection?: Collection<any>;
|
|
1337
|
-
}): void;
|
|
1338
|
-
collection: Collection<any>;
|
|
1339
|
-
preloadedRelationships: any;
|
|
1340
|
-
_readPreloadedRelationships(preloaded: {
|
|
1341
|
-
getModel: (relationshipType: string, relationshipId: number | string) => {
|
|
1342
|
-
changes: {};
|
|
1343
|
-
newRecord: boolean;
|
|
1344
|
-
relationshipsCache: {};
|
|
1345
|
-
relationships: {};
|
|
1346
|
-
abilities: Record<string, any>;
|
|
1347
|
-
modelData: {};
|
|
1348
|
-
assignAttributes(newAttributes: Record<string, any>): void;
|
|
1349
|
-
attributes(): Record<string, any>;
|
|
1350
|
-
can(givenAbilityName: string): boolean;
|
|
1351
|
-
clone(): /*elided*/ any;
|
|
1352
|
-
cacheKey(): number | string;
|
|
1353
|
-
localCacheKey(): string;
|
|
1354
|
-
fullCacheKey(): string;
|
|
1355
|
-
create(attributes?: Record<string, any>, options?: object): Promise<{
|
|
1356
|
-
model: /*elided*/ any;
|
|
1357
|
-
response: object;
|
|
1358
|
-
}>;
|
|
1359
|
-
createRaw(rawData: FormData | Record<string, any>, options?: object): Promise<{
|
|
1360
|
-
model: /*elided*/ any;
|
|
1361
|
-
response: any;
|
|
1362
|
-
}>;
|
|
1363
|
-
destroy(): Promise<{
|
|
1364
|
-
model: /*elided*/ any;
|
|
1365
|
-
response: object;
|
|
1366
|
-
}>;
|
|
1367
|
-
ensureAbilities(listOfAbilities: string[]): Promise<void>;
|
|
1368
|
-
getAttributes(): Record<string, any>;
|
|
1369
|
-
handleResponseError(response: object): never;
|
|
1370
|
-
identifierKey(): number | string;
|
|
1371
|
-
_identifierKey: string | number;
|
|
1372
|
-
isAssociationLoaded(associationName: string): boolean;
|
|
1373
|
-
isAssociationLoadedUnderscore(associationNameUnderscore: string): boolean;
|
|
1374
|
-
isAssociationPresent(associationName: string): boolean;
|
|
1375
|
-
ensureAssociationLoaded(associationName: string): Promise<any>;
|
|
1376
|
-
ensureAssociationLoadedUnderscore(associationNameUnderscore: string): Promise<any>;
|
|
1377
|
-
isAttributeChanged(attributeName: string): boolean;
|
|
1378
|
-
isChanged(): boolean;
|
|
1379
|
-
isNewRecord(): boolean;
|
|
1380
|
-
isPersisted(): boolean;
|
|
1381
|
-
savedChangeToAttribute(attributeName: string): boolean;
|
|
1382
|
-
setNewModel(model: /*elided*/ any): void;
|
|
1383
|
-
setNewModelData(model: /*elided*/ any): void;
|
|
1384
|
-
previousModelData: any;
|
|
1385
|
-
_isDateChanged(oldValue: any, newValue: any): boolean | void;
|
|
1386
|
-
_isIntegerChanged(oldValue: any, newValue: any): boolean | void;
|
|
1387
|
-
_isStringChanged(oldValue: any, newValue: any): boolean | void;
|
|
1388
|
-
modelClassData(): ModelClassDataType;
|
|
1389
|
-
reload(): Promise<void>;
|
|
1390
|
-
save(): Promise<{
|
|
1391
|
-
model: /*elided*/ any;
|
|
1392
|
-
response?: object;
|
|
1393
|
-
}>;
|
|
1394
|
-
saveRaw(rawData: any, options?: {}): Promise<{
|
|
1395
|
-
model: /*elided*/ any;
|
|
1396
|
-
response: object;
|
|
1397
|
-
}>;
|
|
1398
|
-
update(newAttributes?: Record<string, any>, options?: ParseValidationErrorsOptions): Promise<{
|
|
1399
|
-
model: /*elided*/ any;
|
|
1400
|
-
response?: object;
|
|
1401
|
-
}>;
|
|
1402
|
-
_refreshModelFromResponse(response: object): void;
|
|
1403
|
-
_refreshModelDataFromResponse(response: object): void;
|
|
1404
|
-
updateRaw(rawData: FormData | Record<string, any>, options?: ParseValidationErrorsOptions & {
|
|
1405
|
-
simpleModelErrors?: boolean;
|
|
1406
|
-
}): Promise<{
|
|
1407
|
-
response: object;
|
|
1408
|
-
model: /*elided*/ any;
|
|
1409
|
-
}>;
|
|
1410
|
-
isValid(): never;
|
|
1411
|
-
isValidOnServer(): Promise<{
|
|
1412
|
-
valid: boolean;
|
|
1413
|
-
errors: Record<string, any>;
|
|
1414
|
-
}>;
|
|
1415
|
-
modelClass(): Record<string, any>;
|
|
1416
|
-
preloadRelationship(relationshipName: string, model: /*elided*/ any | /*elided*/ any[] | null): void;
|
|
1417
|
-
markForDestruction(): void;
|
|
1418
|
-
_markedForDestruction: boolean;
|
|
1419
|
-
markedForDestruction(): boolean;
|
|
1420
|
-
uniqueKey(): number;
|
|
1421
|
-
uniqueKeyValue: number;
|
|
1422
|
-
_callMemberCommand(args: Record<string, any>, commandArgs: Record<string, any>): Promise<object>;
|
|
1423
|
-
readAttribute(attributeName: string): any;
|
|
1424
|
-
readAttributeUnderscore(attributeName: string): any;
|
|
1425
|
-
isAttributeLoaded(attributeName: any): boolean;
|
|
1426
|
-
_isPresent(value: any): boolean;
|
|
1427
|
-
_loadBelongsToReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any | null>;
|
|
1428
|
-
_readBelongsToReflection({ reflectionName }: {
|
|
1429
|
-
modelClass: any;
|
|
1430
|
-
reflectionName: string;
|
|
1431
|
-
}): any | null;
|
|
1432
|
-
_loadHasManyReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<Array<any>>;
|
|
1433
|
-
_loadHasOneReflection(args: import("./collection.js").CollectionArgsType<any>, queryArgs?: import("./collection.js").QueryArgsType): Promise<any>;
|
|
1434
|
-
_readHasOneReflection({ reflectionName }: {
|
|
1435
|
-
modelClass: any;
|
|
1436
|
-
reflectionName: string;
|
|
1437
|
-
}): any | null;
|
|
1438
|
-
_readModelDataFromArgs(args?: {
|
|
1439
|
-
data?: {
|
|
1440
|
-
b?: Record<string, any>;
|
|
1441
|
-
a?: Record<string, any>;
|
|
1442
|
-
r?: any;
|
|
1443
|
-
};
|
|
1444
|
-
collection?: Collection<any>;
|
|
1445
|
-
}): void;
|
|
1446
|
-
collection: Collection<any>;
|
|
1447
|
-
preloadedRelationships: any;
|
|
1448
|
-
_readPreloadedRelationships(preloaded: {
|
|
1449
|
-
getModel: (relationshipType: string, relationshipId: number | string) => /*elided*/ any;
|
|
1450
|
-
}): void;
|
|
1451
|
-
primaryKey(): number | string;
|
|
1452
|
-
};
|
|
1453
|
-
}): void;
|
|
1454
|
-
primaryKey(): number | string;
|
|
1455
|
-
};
|
|
1456
|
-
readonly name: any;
|
|
1457
|
-
apiMakerType: string;
|
|
1458
|
-
};
|
|
1459
|
-
/** addAttributeMethodsToModelClass. */
|
|
1460
|
-
addAttributeMethodsToModelClass(ModelClass: any, attributes: any): void;
|
|
1461
|
-
/** addQueryCommandsToModelClass. */
|
|
1462
|
-
addQueryCommandsToModelClass(ModelClass: any, collectionCommands: any): void;
|
|
1463
|
-
/** addMemberCommandsToModelClass. */
|
|
1464
|
-
addMemberCommandsToModelClass(ModelClass: any, memberCommands: any): void;
|
|
1465
|
-
/** addRelationshipsToModelClass. */
|
|
1466
|
-
addRelationshipsToModelClass(ModelClass: any, modelClassData: any, relationships: any): void;
|
|
1467
|
-
/** defineEnsureAssociationLoadedMethod. */
|
|
49
|
+
modelRecipesLoader: import("./model-recipes-loader.js").default;
|
|
50
|
+
modelRecipe: ModelRecipe;
|
|
51
|
+
/**
|
|
52
|
+
* createClass.
|
|
53
|
+
* @returns {ModelClassLike}
|
|
54
|
+
*/
|
|
55
|
+
createClass(): ModelClassLike;
|
|
56
|
+
/**
|
|
57
|
+
* addAttributeMethodsToModelClass.
|
|
58
|
+
* @param {ModelClassLike} ModelClass
|
|
59
|
+
* @param {ModelRecipeAttributes} attributes
|
|
60
|
+
*/
|
|
61
|
+
addAttributeMethodsToModelClass(ModelClass: ModelClassLike, attributes: ModelRecipeAttributes): void;
|
|
62
|
+
/**
|
|
63
|
+
* addQueryCommandsToModelClass.
|
|
64
|
+
* @param {ModelClassLike} ModelClass
|
|
65
|
+
* @param {ModelRecipeCommands} collectionCommands
|
|
66
|
+
*/
|
|
67
|
+
addQueryCommandsToModelClass(ModelClass: ModelClassLike, collectionCommands: ModelRecipeCommands): void;
|
|
68
|
+
/**
|
|
69
|
+
* addMemberCommandsToModelClass.
|
|
70
|
+
* @param {ModelClassLike} ModelClass
|
|
71
|
+
* @param {ModelRecipeCommands} memberCommands
|
|
72
|
+
*/
|
|
73
|
+
addMemberCommandsToModelClass(ModelClass: ModelClassLike, memberCommands: ModelRecipeCommands): void;
|
|
74
|
+
/**
|
|
75
|
+
* addRelationshipsToModelClass.
|
|
76
|
+
* @param {ModelClassLike} ModelClass
|
|
77
|
+
* @param {ModelRecipeClassData} modelClassData
|
|
78
|
+
* @param {Record<string, RelationshipDefinition>} relationships
|
|
79
|
+
*/
|
|
80
|
+
addRelationshipsToModelClass(ModelClass: ModelClassLike, modelClassData: ModelRecipeClassData, relationships: Record<string, RelationshipDefinition>): void;
|
|
81
|
+
/**
|
|
82
|
+
* defineEnsureAssociationLoadedMethod.
|
|
83
|
+
* @param {object} root0
|
|
84
|
+
* @param {string} root0.ensureMethodName
|
|
85
|
+
* @param {ModelClassLike} root0.ModelClass
|
|
86
|
+
* @param {string} root0.relationshipName
|
|
87
|
+
*/
|
|
1468
88
|
defineEnsureAssociationLoadedMethod({ ensureMethodName, ModelClass, relationshipName }: {
|
|
1469
|
-
ensureMethodName:
|
|
1470
|
-
ModelClass:
|
|
1471
|
-
relationshipName:
|
|
89
|
+
ensureMethodName: string;
|
|
90
|
+
ModelClass: ModelClassLike;
|
|
91
|
+
relationshipName: string;
|
|
1472
92
|
}): void;
|
|
1473
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* defineBelongsToGetMethod.
|
|
95
|
+
* @param {object} root0
|
|
96
|
+
* @param {ModelClassLike} root0.ModelClass
|
|
97
|
+
* @param {string} root0.modelMethodName
|
|
98
|
+
* @param {string} root0.relationshipName
|
|
99
|
+
*/
|
|
1474
100
|
defineBelongsToGetMethod({ ModelClass, modelMethodName, relationshipName }: {
|
|
1475
|
-
ModelClass:
|
|
1476
|
-
modelMethodName:
|
|
1477
|
-
relationshipName:
|
|
101
|
+
ModelClass: ModelClassLike;
|
|
102
|
+
modelMethodName: string;
|
|
103
|
+
relationshipName: string;
|
|
1478
104
|
}): void;
|
|
1479
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* defineBelongsToLoadMethod.
|
|
107
|
+
* @param {object} root0
|
|
108
|
+
* @param {string} root0.foreignKey
|
|
109
|
+
* @param {string} root0.klassPrimaryKey
|
|
110
|
+
* @param {ModelClassLike} root0.ModelClass
|
|
111
|
+
* @param {ModelRecipesLoaderLike} root0.modelRecipesLoader
|
|
112
|
+
* @param {string} root0.loadMethodName
|
|
113
|
+
* @param {string | undefined} root0.optionsPrimaryKey
|
|
114
|
+
* @param {string} root0.relationshipName
|
|
115
|
+
* @param {string} root0.resourceName
|
|
116
|
+
*/
|
|
1480
117
|
defineBelongsToLoadMethod({ foreignKey, klassPrimaryKey, ModelClass, modelRecipesLoader, loadMethodName, optionsPrimaryKey, relationshipName, resourceName }: {
|
|
1481
|
-
foreignKey:
|
|
1482
|
-
klassPrimaryKey:
|
|
1483
|
-
ModelClass:
|
|
1484
|
-
modelRecipesLoader:
|
|
1485
|
-
loadMethodName:
|
|
1486
|
-
optionsPrimaryKey:
|
|
1487
|
-
relationshipName:
|
|
1488
|
-
resourceName:
|
|
118
|
+
foreignKey: string;
|
|
119
|
+
klassPrimaryKey: string;
|
|
120
|
+
ModelClass: ModelClassLike;
|
|
121
|
+
modelRecipesLoader: ModelRecipesLoaderLike;
|
|
122
|
+
loadMethodName: string;
|
|
123
|
+
optionsPrimaryKey: string | undefined;
|
|
124
|
+
relationshipName: string;
|
|
125
|
+
resourceName: string;
|
|
1489
126
|
}): void;
|
|
1490
127
|
defineHasManyGetMethod({ activeRecordName, className, foreignKey, ModelClass, modelMethodName, modelRecipesLoader, optionsAs, optionsPrimaryKey, optionsThrough, relationshipName, resourceName }: {
|
|
1491
128
|
activeRecordName: any;
|
|
@@ -1500,22 +137,39 @@ export default class ApiMakerModelRecipesModelLoader {
|
|
|
1500
137
|
relationshipName: any;
|
|
1501
138
|
resourceName: any;
|
|
1502
139
|
}): void;
|
|
1503
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* defineHasManyLoadMethod.
|
|
142
|
+
* @param {object} root0
|
|
143
|
+
* @param {string} root0.foreignKey
|
|
144
|
+
* @param {string} root0.loadMethodName
|
|
145
|
+
* @param {ModelClassLike} root0.ModelClass
|
|
146
|
+
* @param {ModelRecipeClassData} root0.modelClassData
|
|
147
|
+
* @param {ModelRecipesLoaderLike} root0.modelRecipesLoader
|
|
148
|
+
* @param {string | undefined} root0.optionsThrough
|
|
149
|
+
* @param {string} root0.relationshipName
|
|
150
|
+
* @param {string} root0.resourceName
|
|
151
|
+
*/
|
|
1504
152
|
defineHasManyLoadMethod({ foreignKey, loadMethodName, ModelClass, modelClassData, modelRecipesLoader, optionsThrough, relationshipName, resourceName }: {
|
|
1505
|
-
foreignKey:
|
|
1506
|
-
loadMethodName:
|
|
1507
|
-
ModelClass:
|
|
1508
|
-
modelClassData:
|
|
1509
|
-
modelRecipesLoader:
|
|
1510
|
-
optionsThrough:
|
|
1511
|
-
relationshipName:
|
|
1512
|
-
resourceName:
|
|
153
|
+
foreignKey: string;
|
|
154
|
+
loadMethodName: string;
|
|
155
|
+
ModelClass: ModelClassLike;
|
|
156
|
+
modelClassData: ModelRecipeClassData;
|
|
157
|
+
modelRecipesLoader: ModelRecipesLoaderLike;
|
|
158
|
+
optionsThrough: string | undefined;
|
|
159
|
+
relationshipName: string;
|
|
160
|
+
resourceName: string;
|
|
1513
161
|
}): void;
|
|
1514
|
-
/**
|
|
162
|
+
/**
|
|
163
|
+
* defineHasOneGetMethd.
|
|
164
|
+
* @param {object} root0
|
|
165
|
+
* @param {ModelClassLike} root0.ModelClass
|
|
166
|
+
* @param {string} root0.modelMethodName
|
|
167
|
+
* @param {string} root0.relationshipName
|
|
168
|
+
*/
|
|
1515
169
|
defineHasOneGetMethd({ ModelClass, modelMethodName, relationshipName }: {
|
|
1516
|
-
ModelClass:
|
|
1517
|
-
modelMethodName:
|
|
1518
|
-
relationshipName:
|
|
170
|
+
ModelClass: ModelClassLike;
|
|
171
|
+
modelMethodName: string;
|
|
172
|
+
relationshipName: string;
|
|
1519
173
|
}): void;
|
|
1520
174
|
defineHasOneLoadMethod({ activeRecordPrimaryKey, foreignKey, loadMethodName, ModelClass, modelClassData, modelRecipesLoader, optionsThrough, relationshipName, resourceName }: {
|
|
1521
175
|
activeRecordPrimaryKey: any;
|
|
@@ -1529,5 +183,47 @@ export default class ApiMakerModelRecipesModelLoader {
|
|
|
1529
183
|
resourceName: any;
|
|
1530
184
|
}): void;
|
|
1531
185
|
}
|
|
1532
|
-
|
|
186
|
+
export type ModelRecipesLoaderLike = import("./model-recipes-loader.js").default;
|
|
187
|
+
export type ModelClassLike = typeof import("./base-model.js").default;
|
|
188
|
+
export type ModelClassWithData = ModelClassLike & {
|
|
189
|
+
modelClassData: () => ModelRecipeClassData;
|
|
190
|
+
};
|
|
191
|
+
export type ModelRecipeAttributes = Record<string, {
|
|
192
|
+
name: string;
|
|
193
|
+
}>;
|
|
194
|
+
export type ModelRecipeCommands = Record<string, {
|
|
195
|
+
args?: Record<string, object | string | number | boolean | null | undefined>;
|
|
196
|
+
}>;
|
|
197
|
+
export type ModelRecipeClassData = {
|
|
198
|
+
className: string;
|
|
199
|
+
collectionName: string;
|
|
200
|
+
name: string;
|
|
201
|
+
primaryKey: string;
|
|
202
|
+
};
|
|
203
|
+
export type RelationshipOptions = {
|
|
204
|
+
as?: string;
|
|
205
|
+
primary_key?: string;
|
|
206
|
+
through?: string;
|
|
207
|
+
};
|
|
208
|
+
export type RelationshipDefinition = {
|
|
209
|
+
active_record: {
|
|
210
|
+
name: string;
|
|
211
|
+
primary_key: string;
|
|
212
|
+
};
|
|
213
|
+
class_name: string;
|
|
214
|
+
foreign_key: string;
|
|
215
|
+
klass: {
|
|
216
|
+
primary_key: string;
|
|
217
|
+
};
|
|
218
|
+
options: RelationshipOptions;
|
|
219
|
+
resource_name: string;
|
|
220
|
+
type: "belongs_to" | "has_many" | "has_one";
|
|
221
|
+
};
|
|
222
|
+
export type ModelRecipe = {
|
|
223
|
+
attributes: ModelRecipeAttributes;
|
|
224
|
+
collection_commands: ModelRecipeCommands;
|
|
225
|
+
member_commands: ModelRecipeCommands;
|
|
226
|
+
model_class_data: ModelRecipeClassData;
|
|
227
|
+
relationships: Record<string, RelationshipDefinition>;
|
|
228
|
+
};
|
|
1533
229
|
//# sourceMappingURL=model-recipes-model-loader.d.ts.map
|