@powerhousedao/contributor-billing 0.1.40 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/document-models/document-models.d.ts.map +1 -1
- package/dist/document-models/document-models.js +2 -0
- package/dist/document-models/index.d.ts +1 -0
- package/dist/document-models/index.d.ts.map +1 -1
- package/dist/document-models/index.js +1 -0
- package/dist/document-models/resource-template/actions.d.ts +32 -0
- package/dist/document-models/resource-template/actions.d.ts.map +1 -0
- package/dist/document-models/resource-template/actions.js +12 -0
- package/dist/document-models/resource-template/gen/actions.d.ts +14 -0
- package/dist/document-models/resource-template/gen/actions.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/actions.js +6 -0
- package/dist/document-models/resource-template/gen/audience-management/actions.d.ts +12 -0
- package/dist/document-models/resource-template/gen/audience-management/actions.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/audience-management/actions.js +1 -0
- package/dist/document-models/resource-template/gen/audience-management/creators.d.ts +5 -0
- package/dist/document-models/resource-template/gen/audience-management/creators.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/audience-management/creators.js +4 -0
- package/dist/document-models/resource-template/gen/audience-management/error.d.ts +21 -0
- package/dist/document-models/resource-template/gen/audience-management/error.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/audience-management/error.js +20 -0
- package/dist/document-models/resource-template/gen/audience-management/operations.d.ts +8 -0
- package/dist/document-models/resource-template/gen/audience-management/operations.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/audience-management/operations.js +3 -0
- package/dist/document-models/resource-template/gen/creators.d.ts +13 -0
- package/dist/document-models/resource-template/gen/creators.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/creators.js +12 -0
- package/dist/document-models/resource-template/gen/document-model.d.ts +3 -0
- package/dist/document-models/resource-template/gen/document-model.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/document-model.js +410 -0
- package/dist/document-models/resource-template/gen/document-schema.d.ts +408 -0
- package/dist/document-models/resource-template/gen/document-schema.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/document-schema.js +33 -0
- package/dist/document-models/resource-template/gen/document-type.d.ts +2 -0
- package/dist/document-models/resource-template/gen/document-type.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/document-type.js +1 -0
- package/dist/document-models/resource-template/gen/facet-targeting/actions.d.ts +20 -0
- package/dist/document-models/resource-template/gen/facet-targeting/actions.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/facet-targeting/actions.js +1 -0
- package/dist/document-models/resource-template/gen/facet-targeting/creators.d.ts +7 -0
- package/dist/document-models/resource-template/gen/facet-targeting/creators.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/facet-targeting/creators.js +6 -0
- package/dist/document-models/resource-template/gen/facet-targeting/error.d.ts +28 -0
- package/dist/document-models/resource-template/gen/facet-targeting/error.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/facet-targeting/error.js +29 -0
- package/dist/document-models/resource-template/gen/facet-targeting/operations.d.ts +10 -0
- package/dist/document-models/resource-template/gen/facet-targeting/operations.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/facet-targeting/operations.js +3 -0
- package/dist/document-models/resource-template/gen/index.d.ts +17 -0
- package/dist/document-models/resource-template/gen/index.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/index.js +16 -0
- package/dist/document-models/resource-template/gen/option-group-management/actions.d.ts +16 -0
- package/dist/document-models/resource-template/gen/option-group-management/actions.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/option-group-management/actions.js +1 -0
- package/dist/document-models/resource-template/gen/option-group-management/creators.d.ts +6 -0
- package/dist/document-models/resource-template/gen/option-group-management/creators.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/option-group-management/creators.js +5 -0
- package/dist/document-models/resource-template/gen/option-group-management/error.d.ts +28 -0
- package/dist/document-models/resource-template/gen/option-group-management/error.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/option-group-management/error.js +29 -0
- package/dist/document-models/resource-template/gen/option-group-management/operations.d.ts +9 -0
- package/dist/document-models/resource-template/gen/option-group-management/operations.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/option-group-management/operations.js +3 -0
- package/dist/document-models/resource-template/gen/ph-factories.d.ts +23 -0
- package/dist/document-models/resource-template/gen/ph-factories.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/ph-factories.js +61 -0
- package/dist/document-models/resource-template/gen/reducer.d.ts +3 -0
- package/dist/document-models/resource-template/gen/reducer.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/reducer.js +98 -0
- package/dist/document-models/resource-template/gen/schema/index.d.ts +3 -0
- package/dist/document-models/resource-template/gen/schema/index.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/schema/index.js +2 -0
- package/dist/document-models/resource-template/gen/schema/types.d.ts +305 -0
- package/dist/document-models/resource-template/gen/schema/types.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/schema/types.js +1 -0
- package/dist/document-models/resource-template/gen/schema/zod.d.ts +37 -0
- package/dist/document-models/resource-template/gen/schema/zod.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/schema/zod.js +236 -0
- package/dist/document-models/resource-template/gen/service-category-management/actions.d.ts +12 -0
- package/dist/document-models/resource-template/gen/service-category-management/actions.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/service-category-management/actions.js +1 -0
- package/dist/document-models/resource-template/gen/service-category-management/creators.d.ts +5 -0
- package/dist/document-models/resource-template/gen/service-category-management/creators.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/service-category-management/creators.js +4 -0
- package/dist/document-models/resource-template/gen/service-category-management/error.d.ts +2 -0
- package/dist/document-models/resource-template/gen/service-category-management/error.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/service-category-management/error.js +1 -0
- package/dist/document-models/resource-template/gen/service-category-management/operations.d.ts +8 -0
- package/dist/document-models/resource-template/gen/service-category-management/operations.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/service-category-management/operations.js +3 -0
- package/dist/document-models/resource-template/gen/service-management/actions.d.ts +24 -0
- package/dist/document-models/resource-template/gen/service-management/actions.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/service-management/actions.js +1 -0
- package/dist/document-models/resource-template/gen/service-management/creators.d.ts +8 -0
- package/dist/document-models/resource-template/gen/service-management/creators.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/service-management/creators.js +7 -0
- package/dist/document-models/resource-template/gen/service-management/error.d.ts +52 -0
- package/dist/document-models/resource-template/gen/service-management/error.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/service-management/error.js +61 -0
- package/dist/document-models/resource-template/gen/service-management/operations.d.ts +11 -0
- package/dist/document-models/resource-template/gen/service-management/operations.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/service-management/operations.js +3 -0
- package/dist/document-models/resource-template/gen/template-management/actions.d.ts +20 -0
- package/dist/document-models/resource-template/gen/template-management/actions.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/template-management/actions.js +1 -0
- package/dist/document-models/resource-template/gen/template-management/creators.d.ts +7 -0
- package/dist/document-models/resource-template/gen/template-management/creators.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/template-management/creators.js +6 -0
- package/dist/document-models/resource-template/gen/template-management/error.d.ts +2 -0
- package/dist/document-models/resource-template/gen/template-management/error.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/template-management/error.js +1 -0
- package/dist/document-models/resource-template/gen/template-management/operations.d.ts +10 -0
- package/dist/document-models/resource-template/gen/template-management/operations.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/template-management/operations.js +3 -0
- package/dist/document-models/resource-template/gen/types.d.ts +12 -0
- package/dist/document-models/resource-template/gen/types.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/types.js +1 -0
- package/dist/document-models/resource-template/gen/utils.d.ts +15 -0
- package/dist/document-models/resource-template/gen/utils.d.ts.map +1 -0
- package/dist/document-models/resource-template/gen/utils.js +65 -0
- package/dist/document-models/resource-template/hooks.d.ts +11 -0
- package/dist/document-models/resource-template/hooks.d.ts.map +1 -0
- package/dist/document-models/resource-template/hooks.js +26 -0
- package/dist/document-models/resource-template/index.d.ts +10 -0
- package/dist/document-models/resource-template/index.d.ts.map +1 -0
- package/dist/document-models/resource-template/index.js +9 -0
- package/dist/document-models/resource-template/module.d.ts +5 -0
- package/dist/document-models/resource-template/module.d.ts.map +1 -0
- package/dist/document-models/resource-template/module.js +10 -0
- package/dist/document-models/resource-template/reducers/audience-management.d.ts +3 -0
- package/dist/document-models/resource-template/reducers/audience-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/reducers/audience-management.js +17 -0
- package/dist/document-models/resource-template/reducers/facet-preset-management.d.ts +59 -0
- package/dist/document-models/resource-template/reducers/facet-preset-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/reducers/facet-preset-management.js +52 -0
- package/dist/document-models/resource-template/reducers/facet-targeting.d.ts +3 -0
- package/dist/document-models/resource-template/reducers/facet-targeting.d.ts.map +1 -0
- package/dist/document-models/resource-template/reducers/facet-targeting.js +47 -0
- package/dist/document-models/resource-template/reducers/option-group-management.d.ts +3 -0
- package/dist/document-models/resource-template/reducers/option-group-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/reducers/option-group-management.js +44 -0
- package/dist/document-models/resource-template/reducers/service-category-management.d.ts +3 -0
- package/dist/document-models/resource-template/reducers/service-category-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/reducers/service-category-management.js +10 -0
- package/dist/document-models/resource-template/reducers/service-management.d.ts +3 -0
- package/dist/document-models/resource-template/reducers/service-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/reducers/service-management.js +71 -0
- package/dist/document-models/resource-template/reducers/template-management.d.ts +3 -0
- package/dist/document-models/resource-template/reducers/template-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/reducers/template-management.js +32 -0
- package/dist/document-models/resource-template/src/index.d.ts +2 -0
- package/dist/document-models/resource-template/src/index.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/index.js +1 -0
- package/dist/document-models/resource-template/src/reducers/audience-management.d.ts +3 -0
- package/dist/document-models/resource-template/src/reducers/audience-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/reducers/audience-management.js +17 -0
- package/dist/document-models/resource-template/src/reducers/facet-targeting.d.ts +3 -0
- package/dist/document-models/resource-template/src/reducers/facet-targeting.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/reducers/facet-targeting.js +46 -0
- package/dist/document-models/resource-template/src/reducers/option-group-management.d.ts +3 -0
- package/dist/document-models/resource-template/src/reducers/option-group-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/reducers/option-group-management.js +42 -0
- package/dist/document-models/resource-template/src/reducers/service-category-management.d.ts +3 -0
- package/dist/document-models/resource-template/src/reducers/service-category-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/reducers/service-category-management.js +10 -0
- package/dist/document-models/resource-template/src/reducers/service-management.d.ts +3 -0
- package/dist/document-models/resource-template/src/reducers/service-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/reducers/service-management.js +68 -0
- package/dist/document-models/resource-template/src/reducers/template-management.d.ts +3 -0
- package/dist/document-models/resource-template/src/reducers/template-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/reducers/template-management.js +32 -0
- package/dist/document-models/resource-template/src/tests/audience-management.test.d.ts +6 -0
- package/dist/document-models/resource-template/src/tests/audience-management.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/tests/audience-management.test.js +29 -0
- package/dist/document-models/resource-template/src/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/resource-template/src/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/tests/document-model.test.js +104 -0
- package/dist/document-models/resource-template/src/tests/facet-targeting.test.d.ts +6 -0
- package/dist/document-models/resource-template/src/tests/facet-targeting.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/tests/facet-targeting.test.js +49 -0
- package/dist/document-models/resource-template/src/tests/option-group-management.test.d.ts +6 -0
- package/dist/document-models/resource-template/src/tests/option-group-management.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/tests/option-group-management.test.js +39 -0
- package/dist/document-models/resource-template/src/tests/service-category-management.test.d.ts +6 -0
- package/dist/document-models/resource-template/src/tests/service-category-management.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/tests/service-category-management.test.js +29 -0
- package/dist/document-models/resource-template/src/tests/service-management.test.d.ts +6 -0
- package/dist/document-models/resource-template/src/tests/service-management.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/tests/service-management.test.js +59 -0
- package/dist/document-models/resource-template/src/tests/template-management.test.d.ts +6 -0
- package/dist/document-models/resource-template/src/tests/template-management.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/tests/template-management.test.js +49 -0
- package/dist/document-models/resource-template/src/utils.d.ts +2 -0
- package/dist/document-models/resource-template/src/utils.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/utils.js +1 -0
- package/dist/document-models/resource-template/utils.d.ts +14 -0
- package/dist/document-models/resource-template/utils.d.ts.map +1 -0
- package/dist/document-models/resource-template/utils.js +7 -0
- package/dist/document-models/service-offering/actions.d.ts +2 -0
- package/dist/document-models/service-offering/actions.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/document-model.js +51 -6
- package/dist/document-models/service-offering/gen/document-schema.d.ts +35 -16
- package/dist/document-models/service-offering/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/offering-management/actions.d.ts +10 -2
- package/dist/document-models/service-offering/gen/offering-management/actions.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/offering-management/creators.d.ts +4 -2
- package/dist/document-models/service-offering/gen/offering-management/creators.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/offering-management/creators.js +3 -1
- package/dist/document-models/service-offering/gen/offering-management/error.d.ts +20 -1
- package/dist/document-models/service-offering/gen/offering-management/error.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/offering-management/error.js +25 -0
- package/dist/document-models/service-offering/gen/offering-management/operations.d.ts +3 -1
- package/dist/document-models/service-offering/gen/offering-management/operations.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/ph-factories.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/ph-factories.js +1 -0
- package/dist/document-models/service-offering/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/reducer.js +9 -1
- package/dist/document-models/service-offering/gen/schema/types.d.ts +24 -11
- package/dist/document-models/service-offering/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/schema/zod.d.ts +3 -1
- package/dist/document-models/service-offering/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/schema/zod.js +17 -0
- package/dist/document-models/service-offering/gen/utils.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/utils.js +1 -0
- package/dist/document-models/service-offering/src/reducers/offering-management.d.ts.map +1 -1
- package/dist/document-models/service-offering/src/reducers/offering-management.js +22 -4
- package/dist/document-models/service-offering/src/reducers/service-management.d.ts.map +1 -1
- package/dist/document-models/service-offering/src/reducers/service-management.js +5 -0
- package/dist/document-models/service-offering/src/tests/offering-management.test.js +1 -81
- package/dist/document-models/service-offering/src/tests/tier-management.test.d.ts +4 -0
- package/dist/document-models/service-offering/src/tests/tier-management.test.d.ts.map +1 -1
- package/dist/document-models/service-offering/src/tests/tier-management.test.js +109 -1
- package/dist/editors/builder-team-admin/components/DriveExplorer.d.ts.map +1 -1
- package/dist/editors/builder-team-admin/components/DriveExplorer.js +4 -0
- package/dist/editors/builder-team-admin/components/FolderTree.d.ts +1 -1
- package/dist/editors/builder-team-admin/components/FolderTree.d.ts.map +1 -1
- package/dist/editors/builder-team-admin/components/FolderTree.js +134 -9
- package/dist/editors/builder-team-admin/components/ResourcesServices.d.ts +8 -0
- package/dist/editors/builder-team-admin/components/ResourcesServices.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/ResourcesServices.js +76 -0
- package/dist/editors/builder-team-admin/hooks/useResourcesServicesAutoPlacement.d.ts +27 -0
- package/dist/editors/builder-team-admin/hooks/useResourcesServicesAutoPlacement.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/hooks/useResourcesServicesAutoPlacement.js +123 -0
- package/dist/editors/index.d.ts +1 -0
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +1 -0
- package/dist/editors/resource-template-editor/components/FacetTargeting.d.ts +9 -0
- package/dist/editors/resource-template-editor/components/FacetTargeting.d.ts.map +1 -0
- package/dist/editors/resource-template-editor/components/FacetTargeting.js +958 -0
- package/dist/editors/resource-template-editor/components/TemplateInfo.d.ts +9 -0
- package/dist/editors/resource-template-editor/components/TemplateInfo.d.ts.map +1 -0
- package/dist/editors/resource-template-editor/components/TemplateInfo.js +1288 -0
- package/dist/editors/resource-template-editor/editor.d.ts +2 -0
- package/dist/editors/resource-template-editor/editor.d.ts.map +1 -0
- package/dist/editors/resource-template-editor/editor.js +149 -0
- package/dist/editors/resource-template-editor/module.d.ts +4 -0
- package/dist/editors/resource-template-editor/module.d.ts.map +1 -0
- package/dist/editors/resource-template-editor/module.js +10 -0
- package/dist/editors/service-offering-editor/components/EditName.js +1 -1
- package/dist/editors/service-offering-editor/components/OfferingInfo.d.ts +1 -1
- package/dist/editors/service-offering-editor/components/OfferingInfo.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/OfferingProgress.d.ts +10 -0
- package/dist/editors/service-offering-editor/components/OfferingProgress.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/OfferingProgress.js +240 -0
- package/dist/editors/service-offering-editor/components/ResourceTemplateSelector.d.ts +9 -0
- package/dist/editors/service-offering-editor/components/ResourceTemplateSelector.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/ResourceTemplateSelector.js +1157 -0
- package/dist/editors/service-offering-editor/components/ScopeAndFacets.d.ts +1 -1
- package/dist/editors/service-offering-editor/components/ScopeAndFacets.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/ServiceCatalog.d.ts +1 -1
- package/dist/editors/service-offering-editor/components/ServiceCatalog.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/ServiceCatalog.js +318 -1
- package/dist/editors/service-offering-editor/components/ServicesList.d.ts +1 -1
- package/dist/editors/service-offering-editor/components/ServicesList.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/TabNavigation.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/TabNavigation.js +17 -3
- package/dist/editors/service-offering-editor/components/TheMatrix.d.ts +1 -1
- package/dist/editors/service-offering-editor/components/TheMatrix.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/TheMatrix.js +823 -29
- package/dist/editors/service-offering-editor/components/TierDefinition.d.ts +1 -1
- package/dist/editors/service-offering-editor/components/TierDefinition.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/TierDefinition.js +406 -4
- package/dist/editors/service-offering-editor/components/TiersList.d.ts +1 -1
- package/dist/editors/service-offering-editor/components/TiersList.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/editor.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/editor.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/powerhouse.manifest.json +18 -0
- package/dist/style.css +25 -0
- package/dist/subgraphs/index.d.ts +1 -0
- package/dist/subgraphs/index.d.ts.map +1 -1
- package/dist/subgraphs/index.js +1 -0
- package/dist/subgraphs/resource-template/index.d.ts +11 -0
- package/dist/subgraphs/resource-template/index.d.ts.map +1 -0
- package/dist/subgraphs/resource-template/index.js +11 -0
- package/dist/subgraphs/resource-template/resolvers.d.ts +3 -0
- package/dist/subgraphs/resource-template/resolvers.d.ts.map +1 -0
- package/dist/subgraphs/resource-template/resolvers.js +312 -0
- package/dist/subgraphs/resource-template/schema.d.ts +3 -0
- package/dist/subgraphs/resource-template/schema.d.ts.map +1 -0
- package/dist/subgraphs/resource-template/schema.js +262 -0
- package/dist/subgraphs/service-offering/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/service-offering/resolvers.js +24 -0
- package/dist/subgraphs/service-offering/schema.d.ts.map +1 -1
- package/dist/subgraphs/service-offering/schema.js +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export const resourceTemplateFacetPresetManagementOperations = {
|
|
2
|
+
setFacetPresetOperation(state, action) {
|
|
3
|
+
const existingIndex = state.facetPresets.findIndex((fp) => fp.id === action.input.id);
|
|
4
|
+
if (existingIndex !== -1) {
|
|
5
|
+
state.facetPresets[existingIndex] = {
|
|
6
|
+
id: action.input.id,
|
|
7
|
+
categoryKey: action.input.categoryKey,
|
|
8
|
+
categoryLabel: action.input.categoryLabel,
|
|
9
|
+
description: action.input.description || null,
|
|
10
|
+
icon: action.input.icon || null,
|
|
11
|
+
isRecommended: action.input.isRecommended || false,
|
|
12
|
+
suggestedOptions: action.input.suggestedOptions,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
state.facetPresets.push({
|
|
17
|
+
id: action.input.id,
|
|
18
|
+
categoryKey: action.input.categoryKey,
|
|
19
|
+
categoryLabel: action.input.categoryLabel,
|
|
20
|
+
description: action.input.description || null,
|
|
21
|
+
icon: action.input.icon || null,
|
|
22
|
+
isRecommended: action.input.isRecommended || false,
|
|
23
|
+
suggestedOptions: action.input.suggestedOptions,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
state.lastModified = action.input.lastModified;
|
|
27
|
+
},
|
|
28
|
+
removeFacetPresetOperation(state, action) {
|
|
29
|
+
const presetIndex = state.facetPresets.findIndex((fp) => fp.id === action.input.id);
|
|
30
|
+
if (presetIndex !== -1) {
|
|
31
|
+
state.facetPresets.splice(presetIndex, 1);
|
|
32
|
+
}
|
|
33
|
+
state.lastModified = action.input.lastModified;
|
|
34
|
+
},
|
|
35
|
+
addPresetOptionOperation(state, action) {
|
|
36
|
+
const preset = state.facetPresets.find((fp) => fp.id === action.input.presetId);
|
|
37
|
+
if (preset && !preset.suggestedOptions.includes(action.input.option)) {
|
|
38
|
+
preset.suggestedOptions.push(action.input.option);
|
|
39
|
+
}
|
|
40
|
+
state.lastModified = action.input.lastModified;
|
|
41
|
+
},
|
|
42
|
+
removePresetOptionOperation(state, action) {
|
|
43
|
+
const preset = state.facetPresets.find((fp) => fp.id === action.input.presetId);
|
|
44
|
+
if (preset) {
|
|
45
|
+
const optionIndex = preset.suggestedOptions.indexOf(action.input.option);
|
|
46
|
+
if (optionIndex !== -1) {
|
|
47
|
+
preset.suggestedOptions.splice(optionIndex, 1);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
state.lastModified = action.input.lastModified;
|
|
51
|
+
},
|
|
52
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResourceTemplateFacetTargetingOperations } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
2
|
+
export declare const resourceTemplateFacetTargetingOperations: ResourceTemplateFacetTargetingOperations;
|
|
3
|
+
//# sourceMappingURL=facet-targeting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"facet-targeting.d.ts","sourceRoot":"","sources":["../../../../document-models/resource-template/reducers/facet-targeting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,sEAAsE,CAAC;AAErI,eAAO,MAAM,wCAAwC,EAAE,wCA0DpD,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export const resourceTemplateFacetTargetingOperations = {
|
|
2
|
+
setFacetTargetOperation(state, action) {
|
|
3
|
+
const existingIndex = state.facetTargets.findIndex((ft) => ft.categoryKey === action.input.categoryKey);
|
|
4
|
+
if (existingIndex !== -1) {
|
|
5
|
+
state.facetTargets[existingIndex] = {
|
|
6
|
+
id: action.input.id,
|
|
7
|
+
categoryKey: action.input.categoryKey,
|
|
8
|
+
categoryLabel: action.input.categoryLabel,
|
|
9
|
+
selectedOptions: action.input.selectedOptions,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
state.facetTargets.push({
|
|
14
|
+
id: action.input.id,
|
|
15
|
+
categoryKey: action.input.categoryKey,
|
|
16
|
+
categoryLabel: action.input.categoryLabel,
|
|
17
|
+
selectedOptions: action.input.selectedOptions,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
state.lastModified = action.input.lastModified;
|
|
21
|
+
},
|
|
22
|
+
removeFacetTargetOperation(state, action) {
|
|
23
|
+
const facetIndex = state.facetTargets.findIndex((ft) => ft.categoryKey === action.input.categoryKey);
|
|
24
|
+
if (facetIndex !== -1) {
|
|
25
|
+
state.facetTargets.splice(facetIndex, 1);
|
|
26
|
+
}
|
|
27
|
+
state.lastModified = action.input.lastModified;
|
|
28
|
+
},
|
|
29
|
+
addFacetOptionOperation(state, action) {
|
|
30
|
+
const facetTarget = state.facetTargets.find((ft) => ft.categoryKey === action.input.categoryKey);
|
|
31
|
+
if (facetTarget &&
|
|
32
|
+
!facetTarget.selectedOptions.includes(action.input.optionId)) {
|
|
33
|
+
facetTarget.selectedOptions.push(action.input.optionId);
|
|
34
|
+
}
|
|
35
|
+
state.lastModified = action.input.lastModified;
|
|
36
|
+
},
|
|
37
|
+
removeFacetOptionOperation(state, action) {
|
|
38
|
+
const facetTarget = state.facetTargets.find((ft) => ft.categoryKey === action.input.categoryKey);
|
|
39
|
+
if (facetTarget) {
|
|
40
|
+
const optionIndex = facetTarget.selectedOptions.indexOf(action.input.optionId);
|
|
41
|
+
if (optionIndex !== -1) {
|
|
42
|
+
facetTarget.selectedOptions.splice(optionIndex, 1);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
state.lastModified = action.input.lastModified;
|
|
46
|
+
},
|
|
47
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResourceTemplateOptionGroupManagementOperations } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
2
|
+
export declare const resourceTemplateOptionGroupManagementOperations: ResourceTemplateOptionGroupManagementOperations;
|
|
3
|
+
//# sourceMappingURL=option-group-management.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"option-group-management.d.ts","sourceRoot":"","sources":["../../../../document-models/resource-template/reducers/option-group-management.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+CAA+C,EAAE,MAAM,sEAAsE,CAAC;AAE5I,eAAO,MAAM,+CAA+C,EAAE,+CAoD3D,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const resourceTemplateOptionGroupManagementOperations = {
|
|
2
|
+
addOptionGroupOperation(state, action) {
|
|
3
|
+
state.optionGroups.push({
|
|
4
|
+
id: action.input.id,
|
|
5
|
+
name: action.input.name,
|
|
6
|
+
description: action.input.description || null,
|
|
7
|
+
isAddOn: action.input.isAddOn,
|
|
8
|
+
defaultSelected: action.input.defaultSelected,
|
|
9
|
+
});
|
|
10
|
+
state.lastModified = action.input.lastModified;
|
|
11
|
+
},
|
|
12
|
+
updateOptionGroupOperation(state, action) {
|
|
13
|
+
const optionGroup = state.optionGroups.find((og) => og.id === action.input.id);
|
|
14
|
+
if (optionGroup) {
|
|
15
|
+
if (action.input.name) {
|
|
16
|
+
optionGroup.name = action.input.name;
|
|
17
|
+
}
|
|
18
|
+
if (action.input.description !== undefined) {
|
|
19
|
+
optionGroup.description = action.input.description || null;
|
|
20
|
+
}
|
|
21
|
+
if (action.input.isAddOn !== undefined &&
|
|
22
|
+
action.input.isAddOn !== null) {
|
|
23
|
+
optionGroup.isAddOn = action.input.isAddOn;
|
|
24
|
+
}
|
|
25
|
+
if (action.input.defaultSelected !== undefined &&
|
|
26
|
+
action.input.defaultSelected !== null) {
|
|
27
|
+
optionGroup.defaultSelected = action.input.defaultSelected;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
state.lastModified = action.input.lastModified;
|
|
31
|
+
},
|
|
32
|
+
deleteOptionGroupOperation(state, action) {
|
|
33
|
+
const optionGroupIndex = state.optionGroups.findIndex((og) => og.id === action.input.id);
|
|
34
|
+
if (optionGroupIndex !== -1) {
|
|
35
|
+
state.services.forEach((service) => {
|
|
36
|
+
if (service.optionGroupId === action.input.id) {
|
|
37
|
+
service.optionGroupId = null;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
state.optionGroups.splice(optionGroupIndex, 1);
|
|
41
|
+
}
|
|
42
|
+
state.lastModified = action.input.lastModified;
|
|
43
|
+
},
|
|
44
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResourceTemplateServiceCategoryManagementOperations } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
2
|
+
export declare const resourceTemplateServiceCategoryManagementOperations: ResourceTemplateServiceCategoryManagementOperations;
|
|
3
|
+
//# sourceMappingURL=service-category-management.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-category-management.d.ts","sourceRoot":"","sources":["../../../../document-models/resource-template/reducers/service-category-management.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mDAAmD,EAAE,MAAM,sEAAsE,CAAC;AAEhJ,eAAO,MAAM,mDAAmD,EAAE,mDAU/D,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const resourceTemplateServiceCategoryManagementOperations = {
|
|
2
|
+
setSetupServicesOperation(state, action) {
|
|
3
|
+
state.setupServices = action.input.services;
|
|
4
|
+
state.lastModified = action.input.lastModified;
|
|
5
|
+
},
|
|
6
|
+
setRecurringServicesOperation(state, action) {
|
|
7
|
+
state.recurringServices = action.input.services;
|
|
8
|
+
state.lastModified = action.input.lastModified;
|
|
9
|
+
},
|
|
10
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResourceTemplateServiceManagementOperations } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
2
|
+
export declare const resourceTemplateServiceManagementOperations: ResourceTemplateServiceManagementOperations;
|
|
3
|
+
//# sourceMappingURL=service-management.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-management.d.ts","sourceRoot":"","sources":["../../../../document-models/resource-template/reducers/service-management.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2CAA2C,EAAE,MAAM,sEAAsE,CAAC;AAExI,eAAO,MAAM,2CAA2C,EAAE,2CAqFvD,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export const resourceTemplateServiceManagementOperations = {
|
|
2
|
+
addServiceOperation(state, action) {
|
|
3
|
+
state.services.push({
|
|
4
|
+
id: action.input.id,
|
|
5
|
+
title: action.input.title,
|
|
6
|
+
description: action.input.description || null,
|
|
7
|
+
parentServiceId: action.input.parentServiceId || null,
|
|
8
|
+
displayOrder: action.input.displayOrder || null,
|
|
9
|
+
isSetupFormation: action.input.isSetupFormation || false,
|
|
10
|
+
optionGroupId: action.input.optionGroupId || null,
|
|
11
|
+
facetBindings: [],
|
|
12
|
+
});
|
|
13
|
+
state.lastModified = action.input.lastModified;
|
|
14
|
+
},
|
|
15
|
+
updateServiceOperation(state, action) {
|
|
16
|
+
const service = state.services.find((s) => s.id === action.input.id);
|
|
17
|
+
if (service) {
|
|
18
|
+
if (action.input.title) {
|
|
19
|
+
service.title = action.input.title;
|
|
20
|
+
}
|
|
21
|
+
if (action.input.description !== undefined &&
|
|
22
|
+
action.input.description !== null) {
|
|
23
|
+
service.description = action.input.description;
|
|
24
|
+
}
|
|
25
|
+
if (action.input.parentServiceId !== undefined) {
|
|
26
|
+
service.parentServiceId = action.input.parentServiceId || null;
|
|
27
|
+
}
|
|
28
|
+
if (action.input.displayOrder !== undefined &&
|
|
29
|
+
action.input.displayOrder !== null) {
|
|
30
|
+
service.displayOrder = action.input.displayOrder;
|
|
31
|
+
}
|
|
32
|
+
if (action.input.isSetupFormation !== undefined &&
|
|
33
|
+
action.input.isSetupFormation !== null) {
|
|
34
|
+
service.isSetupFormation = action.input.isSetupFormation;
|
|
35
|
+
}
|
|
36
|
+
if (action.input.optionGroupId !== undefined) {
|
|
37
|
+
service.optionGroupId = action.input.optionGroupId || null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
state.lastModified = action.input.lastModified;
|
|
41
|
+
},
|
|
42
|
+
deleteServiceOperation(state, action) {
|
|
43
|
+
const serviceIndex = state.services.findIndex((s) => s.id === action.input.id);
|
|
44
|
+
if (serviceIndex !== -1) {
|
|
45
|
+
state.services.splice(serviceIndex, 1);
|
|
46
|
+
}
|
|
47
|
+
state.lastModified = action.input.lastModified;
|
|
48
|
+
},
|
|
49
|
+
addFacetBindingOperation(state, action) {
|
|
50
|
+
const service = state.services.find((s) => s.id === action.input.serviceId);
|
|
51
|
+
if (service) {
|
|
52
|
+
service.facetBindings.push({
|
|
53
|
+
id: action.input.bindingId,
|
|
54
|
+
facetName: action.input.facetName,
|
|
55
|
+
facetType: action.input.facetType,
|
|
56
|
+
supportedOptions: action.input.supportedOptions,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
state.lastModified = action.input.lastModified;
|
|
60
|
+
},
|
|
61
|
+
removeFacetBindingOperation(state, action) {
|
|
62
|
+
const service = state.services.find((s) => s.id === action.input.serviceId);
|
|
63
|
+
if (service) {
|
|
64
|
+
const bindingIndex = service.facetBindings.findIndex((fb) => fb.id === action.input.bindingId);
|
|
65
|
+
if (bindingIndex !== -1) {
|
|
66
|
+
service.facetBindings.splice(bindingIndex, 1);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
state.lastModified = action.input.lastModified;
|
|
70
|
+
},
|
|
71
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResourceTemplateTemplateManagementOperations } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
2
|
+
export declare const resourceTemplateTemplateManagementOperations: ResourceTemplateTemplateManagementOperations;
|
|
3
|
+
//# sourceMappingURL=template-management.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-management.d.ts","sourceRoot":"","sources":["../../../../document-models/resource-template/reducers/template-management.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,sEAAsE,CAAC;AAEzI,eAAO,MAAM,4CAA4C,EAAE,4CAgCxD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export const resourceTemplateTemplateManagementOperations = {
|
|
2
|
+
updateTemplateInfoOperation(state, action) {
|
|
3
|
+
if (action.input.title) {
|
|
4
|
+
state.title = action.input.title;
|
|
5
|
+
}
|
|
6
|
+
if (action.input.summary) {
|
|
7
|
+
state.summary = action.input.summary;
|
|
8
|
+
}
|
|
9
|
+
if (action.input.description !== undefined) {
|
|
10
|
+
state.description = action.input.description || null;
|
|
11
|
+
}
|
|
12
|
+
if (action.input.thumbnailUrl !== undefined) {
|
|
13
|
+
state.thumbnailUrl = action.input.thumbnailUrl || null;
|
|
14
|
+
}
|
|
15
|
+
if (action.input.infoLink !== undefined) {
|
|
16
|
+
state.infoLink = action.input.infoLink || null;
|
|
17
|
+
}
|
|
18
|
+
state.lastModified = action.input.lastModified;
|
|
19
|
+
},
|
|
20
|
+
updateTemplateStatusOperation(state, action) {
|
|
21
|
+
state.status = action.input.status;
|
|
22
|
+
state.lastModified = action.input.lastModified;
|
|
23
|
+
},
|
|
24
|
+
setOperatorOperation(state, action) {
|
|
25
|
+
state.operatorId = action.input.operatorId;
|
|
26
|
+
state.lastModified = action.input.lastModified;
|
|
27
|
+
},
|
|
28
|
+
setTemplateIdOperation(state, action) {
|
|
29
|
+
state.id = action.input.id;
|
|
30
|
+
state.lastModified = action.input.lastModified;
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../document-models/resource-template/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./utils.js";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResourceTemplateAudienceManagementOperations } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
2
|
+
export declare const resourceTemplateAudienceManagementOperations: ResourceTemplateAudienceManagementOperations;
|
|
3
|
+
//# sourceMappingURL=audience-management.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audience-management.d.ts","sourceRoot":"","sources":["../../../../../document-models/resource-template/src/reducers/audience-management.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,sEAAsE,CAAC;AAEzI,eAAO,MAAM,4CAA4C,EAAE,4CAgB1D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const resourceTemplateAudienceManagementOperations = {
|
|
2
|
+
addTargetAudienceOperation(state, action) {
|
|
3
|
+
state.targetAudiences.push({
|
|
4
|
+
id: action.input.id,
|
|
5
|
+
label: action.input.label,
|
|
6
|
+
color: action.input.color || null
|
|
7
|
+
});
|
|
8
|
+
state.lastModified = action.input.lastModified;
|
|
9
|
+
},
|
|
10
|
+
removeTargetAudienceOperation(state, action) {
|
|
11
|
+
const audienceIndex = state.targetAudiences.findIndex(a => a.id === action.input.id);
|
|
12
|
+
if (audienceIndex !== -1) {
|
|
13
|
+
state.targetAudiences.splice(audienceIndex, 1);
|
|
14
|
+
}
|
|
15
|
+
state.lastModified = action.input.lastModified;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResourceTemplateFacetTargetingOperations } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
2
|
+
export declare const resourceTemplateFacetTargetingOperations: ResourceTemplateFacetTargetingOperations;
|
|
3
|
+
//# sourceMappingURL=facet-targeting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"facet-targeting.d.ts","sourceRoot":"","sources":["../../../../../document-models/resource-template/src/reducers/facet-targeting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,sEAAsE,CAAC;AAErI,eAAO,MAAM,wCAAwC,EAAE,wCA4CtD,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export const resourceTemplateFacetTargetingOperations = {
|
|
2
|
+
setFacetTargetOperation(state, action) {
|
|
3
|
+
const existingIndex = state.facetTargets.findIndex(ft => ft.categoryKey === action.input.categoryKey);
|
|
4
|
+
if (existingIndex !== -1) {
|
|
5
|
+
state.facetTargets[existingIndex] = {
|
|
6
|
+
id: action.input.id,
|
|
7
|
+
categoryKey: action.input.categoryKey,
|
|
8
|
+
categoryLabel: action.input.categoryLabel,
|
|
9
|
+
selectedOptions: action.input.selectedOptions
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
state.facetTargets.push({
|
|
14
|
+
id: action.input.id,
|
|
15
|
+
categoryKey: action.input.categoryKey,
|
|
16
|
+
categoryLabel: action.input.categoryLabel,
|
|
17
|
+
selectedOptions: action.input.selectedOptions
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
state.lastModified = action.input.lastModified;
|
|
21
|
+
},
|
|
22
|
+
removeFacetTargetOperation(state, action) {
|
|
23
|
+
const facetIndex = state.facetTargets.findIndex(ft => ft.categoryKey === action.input.categoryKey);
|
|
24
|
+
if (facetIndex !== -1) {
|
|
25
|
+
state.facetTargets.splice(facetIndex, 1);
|
|
26
|
+
}
|
|
27
|
+
state.lastModified = action.input.lastModified;
|
|
28
|
+
},
|
|
29
|
+
addFacetOptionOperation(state, action) {
|
|
30
|
+
const facetTarget = state.facetTargets.find(ft => ft.categoryKey === action.input.categoryKey);
|
|
31
|
+
if (facetTarget && !facetTarget.selectedOptions.includes(action.input.optionId)) {
|
|
32
|
+
facetTarget.selectedOptions.push(action.input.optionId);
|
|
33
|
+
}
|
|
34
|
+
state.lastModified = action.input.lastModified;
|
|
35
|
+
},
|
|
36
|
+
removeFacetOptionOperation(state, action) {
|
|
37
|
+
const facetTarget = state.facetTargets.find(ft => ft.categoryKey === action.input.categoryKey);
|
|
38
|
+
if (facetTarget) {
|
|
39
|
+
const optionIndex = facetTarget.selectedOptions.indexOf(action.input.optionId);
|
|
40
|
+
if (optionIndex !== -1) {
|
|
41
|
+
facetTarget.selectedOptions.splice(optionIndex, 1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
state.lastModified = action.input.lastModified;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResourceTemplateOptionGroupManagementOperations } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
2
|
+
export declare const resourceTemplateOptionGroupManagementOperations: ResourceTemplateOptionGroupManagementOperations;
|
|
3
|
+
//# sourceMappingURL=option-group-management.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"option-group-management.d.ts","sourceRoot":"","sources":["../../../../../document-models/resource-template/src/reducers/option-group-management.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+CAA+C,EAAE,MAAM,sEAAsE,CAAC;AAE5I,eAAO,MAAM,+CAA+C,EAAE,+CAyC7D,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const resourceTemplateOptionGroupManagementOperations = {
|
|
2
|
+
addOptionGroupOperation(state, action) {
|
|
3
|
+
state.optionGroups.push({
|
|
4
|
+
id: action.input.id,
|
|
5
|
+
name: action.input.name,
|
|
6
|
+
description: action.input.description || null,
|
|
7
|
+
isAddOn: action.input.isAddOn,
|
|
8
|
+
defaultSelected: action.input.defaultSelected
|
|
9
|
+
});
|
|
10
|
+
state.lastModified = action.input.lastModified;
|
|
11
|
+
},
|
|
12
|
+
updateOptionGroupOperation(state, action) {
|
|
13
|
+
const optionGroup = state.optionGroups.find(og => og.id === action.input.id);
|
|
14
|
+
if (optionGroup) {
|
|
15
|
+
if (action.input.name) {
|
|
16
|
+
optionGroup.name = action.input.name;
|
|
17
|
+
}
|
|
18
|
+
if (action.input.description !== undefined) {
|
|
19
|
+
optionGroup.description = action.input.description || null;
|
|
20
|
+
}
|
|
21
|
+
if (action.input.isAddOn !== undefined && action.input.isAddOn !== null) {
|
|
22
|
+
optionGroup.isAddOn = action.input.isAddOn;
|
|
23
|
+
}
|
|
24
|
+
if (action.input.defaultSelected !== undefined && action.input.defaultSelected !== null) {
|
|
25
|
+
optionGroup.defaultSelected = action.input.defaultSelected;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
state.lastModified = action.input.lastModified;
|
|
29
|
+
},
|
|
30
|
+
deleteOptionGroupOperation(state, action) {
|
|
31
|
+
const optionGroupIndex = state.optionGroups.findIndex(og => og.id === action.input.id);
|
|
32
|
+
if (optionGroupIndex !== -1) {
|
|
33
|
+
state.services.forEach(service => {
|
|
34
|
+
if (service.optionGroupId === action.input.id) {
|
|
35
|
+
service.optionGroupId = null;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
state.optionGroups.splice(optionGroupIndex, 1);
|
|
39
|
+
}
|
|
40
|
+
state.lastModified = action.input.lastModified;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResourceTemplateServiceCategoryManagementOperations } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
2
|
+
export declare const resourceTemplateServiceCategoryManagementOperations: ResourceTemplateServiceCategoryManagementOperations;
|
|
3
|
+
//# sourceMappingURL=service-category-management.d.ts.map
|
package/dist/document-models/resource-template/src/reducers/service-category-management.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-category-management.d.ts","sourceRoot":"","sources":["../../../../../document-models/resource-template/src/reducers/service-category-management.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mDAAmD,EAAE,MAAM,sEAAsE,CAAC;AAEhJ,eAAO,MAAM,mDAAmD,EAAE,mDASjE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const resourceTemplateServiceCategoryManagementOperations = {
|
|
2
|
+
setSetupServicesOperation(state, action) {
|
|
3
|
+
state.setupServices = action.input.services;
|
|
4
|
+
state.lastModified = action.input.lastModified;
|
|
5
|
+
},
|
|
6
|
+
setRecurringServicesOperation(state, action) {
|
|
7
|
+
state.recurringServices = action.input.services;
|
|
8
|
+
state.lastModified = action.input.lastModified;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResourceTemplateServiceManagementOperations } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
2
|
+
export declare const resourceTemplateServiceManagementOperations: ResourceTemplateServiceManagementOperations;
|
|
3
|
+
//# sourceMappingURL=service-management.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-management.d.ts","sourceRoot":"","sources":["../../../../../document-models/resource-template/src/reducers/service-management.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2CAA2C,EAAE,MAAM,sEAAsE,CAAC;AAExI,eAAO,MAAM,2CAA2C,EAAE,2CAmEzD,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export const resourceTemplateServiceManagementOperations = {
|
|
2
|
+
addServiceOperation(state, action) {
|
|
3
|
+
state.services.push({
|
|
4
|
+
id: action.input.id,
|
|
5
|
+
title: action.input.title,
|
|
6
|
+
description: action.input.description || null,
|
|
7
|
+
parentServiceId: action.input.parentServiceId || null,
|
|
8
|
+
displayOrder: action.input.displayOrder || null,
|
|
9
|
+
isSetupFormation: action.input.isSetupFormation || false,
|
|
10
|
+
optionGroupId: action.input.optionGroupId || null,
|
|
11
|
+
facetBindings: []
|
|
12
|
+
});
|
|
13
|
+
state.lastModified = action.input.lastModified;
|
|
14
|
+
},
|
|
15
|
+
updateServiceOperation(state, action) {
|
|
16
|
+
const service = state.services.find(s => s.id === action.input.id);
|
|
17
|
+
if (service) {
|
|
18
|
+
if (action.input.title) {
|
|
19
|
+
service.title = action.input.title;
|
|
20
|
+
}
|
|
21
|
+
if (action.input.description !== undefined && action.input.description !== null) {
|
|
22
|
+
service.description = action.input.description;
|
|
23
|
+
}
|
|
24
|
+
if (action.input.parentServiceId !== undefined) {
|
|
25
|
+
service.parentServiceId = action.input.parentServiceId || null;
|
|
26
|
+
}
|
|
27
|
+
if (action.input.displayOrder !== undefined && action.input.displayOrder !== null) {
|
|
28
|
+
service.displayOrder = action.input.displayOrder;
|
|
29
|
+
}
|
|
30
|
+
if (action.input.isSetupFormation !== undefined && action.input.isSetupFormation !== null) {
|
|
31
|
+
service.isSetupFormation = action.input.isSetupFormation;
|
|
32
|
+
}
|
|
33
|
+
if (action.input.optionGroupId !== undefined) {
|
|
34
|
+
service.optionGroupId = action.input.optionGroupId || null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
state.lastModified = action.input.lastModified;
|
|
38
|
+
},
|
|
39
|
+
deleteServiceOperation(state, action) {
|
|
40
|
+
const serviceIndex = state.services.findIndex(s => s.id === action.input.id);
|
|
41
|
+
if (serviceIndex !== -1) {
|
|
42
|
+
state.services.splice(serviceIndex, 1);
|
|
43
|
+
}
|
|
44
|
+
state.lastModified = action.input.lastModified;
|
|
45
|
+
},
|
|
46
|
+
addFacetBindingOperation(state, action) {
|
|
47
|
+
const service = state.services.find(s => s.id === action.input.serviceId);
|
|
48
|
+
if (service) {
|
|
49
|
+
service.facetBindings.push({
|
|
50
|
+
id: action.input.bindingId,
|
|
51
|
+
facetName: action.input.facetName,
|
|
52
|
+
facetType: action.input.facetType,
|
|
53
|
+
supportedOptions: action.input.supportedOptions
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
state.lastModified = action.input.lastModified;
|
|
57
|
+
},
|
|
58
|
+
removeFacetBindingOperation(state, action) {
|
|
59
|
+
const service = state.services.find(s => s.id === action.input.serviceId);
|
|
60
|
+
if (service) {
|
|
61
|
+
const bindingIndex = service.facetBindings.findIndex(fb => fb.id === action.input.bindingId);
|
|
62
|
+
if (bindingIndex !== -1) {
|
|
63
|
+
service.facetBindings.splice(bindingIndex, 1);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
state.lastModified = action.input.lastModified;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResourceTemplateTemplateManagementOperations } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
2
|
+
export declare const resourceTemplateTemplateManagementOperations: ResourceTemplateTemplateManagementOperations;
|
|
3
|
+
//# sourceMappingURL=template-management.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-management.d.ts","sourceRoot":"","sources":["../../../../../document-models/resource-template/src/reducers/template-management.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,sEAAsE,CAAC;AAEzI,eAAO,MAAM,4CAA4C,EAAE,4CA+B1D,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export const resourceTemplateTemplateManagementOperations = {
|
|
2
|
+
updateTemplateInfoOperation(state, action) {
|
|
3
|
+
if (action.input.title) {
|
|
4
|
+
state.title = action.input.title;
|
|
5
|
+
}
|
|
6
|
+
if (action.input.summary) {
|
|
7
|
+
state.summary = action.input.summary;
|
|
8
|
+
}
|
|
9
|
+
if (action.input.description !== undefined) {
|
|
10
|
+
state.description = action.input.description || null;
|
|
11
|
+
}
|
|
12
|
+
if (action.input.thumbnailUrl !== undefined) {
|
|
13
|
+
state.thumbnailUrl = action.input.thumbnailUrl || null;
|
|
14
|
+
}
|
|
15
|
+
if (action.input.infoLink !== undefined) {
|
|
16
|
+
state.infoLink = action.input.infoLink || null;
|
|
17
|
+
}
|
|
18
|
+
state.lastModified = action.input.lastModified;
|
|
19
|
+
},
|
|
20
|
+
updateTemplateStatusOperation(state, action) {
|
|
21
|
+
state.status = action.input.status;
|
|
22
|
+
state.lastModified = action.input.lastModified;
|
|
23
|
+
},
|
|
24
|
+
setOperatorOperation(state, action) {
|
|
25
|
+
state.operatorId = action.input.operatorId;
|
|
26
|
+
state.lastModified = action.input.lastModified;
|
|
27
|
+
},
|
|
28
|
+
setTemplateIdOperation(state, action) {
|
|
29
|
+
state.id = action.input.id;
|
|
30
|
+
state.lastModified = action.input.lastModified;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audience-management.test.d.ts","sourceRoot":"","sources":["../../../../../document-models/resource-template/src/tests/audience-management.test.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a scaffold file meant for customization:
|
|
3
|
+
* - change it by adding new tests or modifying the existing ones
|
|
4
|
+
*/
|
|
5
|
+
import { describe, it, expect } from "vitest";
|
|
6
|
+
import { generateMock } from "@powerhousedao/codegen";
|
|
7
|
+
import { reducer, utils, isResourceTemplateDocument, addTargetAudience, AddTargetAudienceInputSchema, removeTargetAudience, RemoveTargetAudienceInputSchema, } from "@powerhousedao/contributor-billing/document-models/resource-template";
|
|
8
|
+
describe("AudienceManagement Operations", () => {
|
|
9
|
+
it("should handle addTargetAudience operation", () => {
|
|
10
|
+
const document = utils.createDocument();
|
|
11
|
+
const input = generateMock(AddTargetAudienceInputSchema());
|
|
12
|
+
const updatedDocument = reducer(document, addTargetAudience(input));
|
|
13
|
+
expect(isResourceTemplateDocument(updatedDocument)).toBe(true);
|
|
14
|
+
expect(updatedDocument.operations.global).toHaveLength(1);
|
|
15
|
+
expect(updatedDocument.operations.global[0].action.type).toBe("ADD_TARGET_AUDIENCE");
|
|
16
|
+
expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
|
|
17
|
+
expect(updatedDocument.operations.global[0].index).toEqual(0);
|
|
18
|
+
});
|
|
19
|
+
it("should handle removeTargetAudience operation", () => {
|
|
20
|
+
const document = utils.createDocument();
|
|
21
|
+
const input = generateMock(RemoveTargetAudienceInputSchema());
|
|
22
|
+
const updatedDocument = reducer(document, removeTargetAudience(input));
|
|
23
|
+
expect(isResourceTemplateDocument(updatedDocument)).toBe(true);
|
|
24
|
+
expect(updatedDocument.operations.global).toHaveLength(1);
|
|
25
|
+
expect(updatedDocument.operations.global[0].action.type).toBe("REMOVE_TARGET_AUDIENCE");
|
|
26
|
+
expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
|
|
27
|
+
expect(updatedDocument.operations.global[0].index).toEqual(0);
|
|
28
|
+
});
|
|
29
|
+
});
|