@powerhousedao/contributor-billing 0.1.42 → 0.1.43
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/account-transactions/actions.d.ts.map +1 -1
- package/dist/document-models/account-transactions/gen/account/actions.d.ts +1 -1
- package/dist/document-models/account-transactions/gen/account/actions.d.ts.map +1 -1
- package/dist/document-models/account-transactions/gen/account/actions.js +1 -1
- package/dist/document-models/account-transactions/gen/account/operations.d.ts +2 -2
- package/dist/document-models/account-transactions/gen/account/operations.d.ts.map +1 -1
- package/dist/document-models/account-transactions/gen/account/operations.js +0 -2
- package/dist/document-models/account-transactions/gen/budgets/actions.d.ts +1 -1
- package/dist/document-models/account-transactions/gen/budgets/actions.d.ts.map +1 -1
- package/dist/document-models/account-transactions/gen/budgets/actions.js +1 -1
- package/dist/document-models/account-transactions/gen/budgets/operations.d.ts +2 -2
- package/dist/document-models/account-transactions/gen/budgets/operations.d.ts.map +1 -1
- package/dist/document-models/account-transactions/gen/budgets/operations.js +0 -2
- package/dist/document-models/account-transactions/gen/document-model.js +45 -45
- package/dist/document-models/account-transactions/gen/document-schema.d.ts +21 -151
- package/dist/document-models/account-transactions/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/account-transactions/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/account-transactions/gen/reducer.js +16 -8
- package/dist/document-models/account-transactions/gen/schema/types.d.ts +13 -1
- package/dist/document-models/account-transactions/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/account-transactions/gen/schema/zod.d.ts +11 -5
- package/dist/document-models/account-transactions/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/account-transactions/gen/schema/zod.js +18 -18
- package/dist/document-models/account-transactions/gen/transactions/actions.d.ts +1 -1
- package/dist/document-models/account-transactions/gen/transactions/actions.d.ts.map +1 -1
- package/dist/document-models/account-transactions/gen/transactions/actions.js +1 -1
- package/dist/document-models/account-transactions/gen/transactions/operations.d.ts +2 -2
- package/dist/document-models/account-transactions/gen/transactions/operations.d.ts.map +1 -1
- package/dist/document-models/account-transactions/gen/transactions/operations.js +0 -2
- package/dist/document-models/account-transactions/gen/types.d.ts.map +1 -1
- package/dist/document-models/account-transactions/hooks.d.ts +5 -2
- package/dist/document-models/account-transactions/hooks.d.ts.map +1 -1
- package/dist/document-models/account-transactions/hooks.js +3 -4
- package/dist/document-models/account-transactions/index.d.ts +0 -4
- package/dist/document-models/account-transactions/index.d.ts.map +1 -1
- package/dist/document-models/account-transactions/index.js +0 -4
- package/dist/document-models/account-transactions/module.d.ts.map +1 -1
- package/dist/document-models/account-transactions/module.js +1 -0
- package/dist/document-models/account-transactions/tests/account.test.d.ts +2 -0
- package/dist/document-models/account-transactions/tests/account.test.d.ts.map +1 -0
- package/dist/document-models/account-transactions/tests/account.test.js +15 -0
- package/dist/document-models/account-transactions/tests/budgets.test.d.ts +2 -0
- package/dist/document-models/account-transactions/tests/budgets.test.d.ts.map +1 -0
- package/dist/document-models/account-transactions/tests/budgets.test.js +35 -0
- package/dist/document-models/account-transactions/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/account-transactions/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/account-transactions/tests/document-model.test.js +104 -0
- package/dist/document-models/account-transactions/tests/transactions.test.d.ts +2 -0
- package/dist/document-models/account-transactions/tests/transactions.test.d.ts.map +1 -0
- package/dist/document-models/account-transactions/tests/transactions.test.js +45 -0
- package/dist/document-models/accounts/actions.d.ts.map +1 -1
- package/dist/document-models/accounts/gen/accounts/actions.d.ts +1 -1
- package/dist/document-models/accounts/gen/accounts/actions.d.ts.map +1 -1
- package/dist/document-models/accounts/gen/accounts/actions.js +1 -1
- package/dist/document-models/accounts/gen/accounts/operations.d.ts +2 -2
- package/dist/document-models/accounts/gen/accounts/operations.d.ts.map +1 -1
- package/dist/document-models/accounts/gen/accounts/operations.js +0 -2
- package/dist/document-models/accounts/gen/document-model.js +2 -2
- package/dist/document-models/accounts/gen/document-schema.d.ts +15 -113
- package/dist/document-models/accounts/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/accounts/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/accounts/gen/reducer.js +8 -4
- package/dist/document-models/accounts/gen/schema/types.d.ts +13 -1
- package/dist/document-models/accounts/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/accounts/gen/schema/zod.d.ts +25 -7
- package/dist/document-models/accounts/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/accounts/gen/schema/zod.js +12 -12
- package/dist/document-models/accounts/gen/types.d.ts.map +1 -1
- package/dist/document-models/accounts/hooks.d.ts +5 -2
- package/dist/document-models/accounts/hooks.d.ts.map +1 -1
- package/dist/document-models/accounts/hooks.js +3 -4
- package/dist/document-models/accounts/index.d.ts +0 -4
- package/dist/document-models/accounts/index.d.ts.map +1 -1
- package/dist/document-models/accounts/index.js +0 -4
- package/dist/document-models/accounts/module.d.ts.map +1 -1
- package/dist/document-models/accounts/module.js +1 -0
- package/dist/document-models/accounts/tests/accounts.test.d.ts +2 -0
- package/dist/document-models/accounts/tests/accounts.test.d.ts.map +1 -0
- package/dist/document-models/accounts/tests/accounts.test.js +45 -0
- package/dist/document-models/accounts/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/accounts/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/accounts/tests/document-model.test.js +104 -0
- package/dist/document-models/billing-statement/actions.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/document-model.js +41 -41
- package/dist/document-models/billing-statement/gen/document-schema.d.ts +39 -265
- package/dist/document-models/billing-statement/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/general/actions.d.ts +1 -1
- package/dist/document-models/billing-statement/gen/general/actions.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/general/actions.js +1 -1
- package/dist/document-models/billing-statement/gen/general/operations.d.ts +2 -2
- package/dist/document-models/billing-statement/gen/general/operations.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/general/operations.js +0 -2
- package/dist/document-models/billing-statement/gen/line-items/actions.d.ts +1 -1
- package/dist/document-models/billing-statement/gen/line-items/actions.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/line-items/actions.js +1 -1
- package/dist/document-models/billing-statement/gen/line-items/operations.d.ts +2 -2
- package/dist/document-models/billing-statement/gen/line-items/operations.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/line-items/operations.js +0 -2
- package/dist/document-models/billing-statement/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/reducer.js +14 -7
- package/dist/document-models/billing-statement/gen/schema/types.d.ts +13 -1
- package/dist/document-models/billing-statement/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/schema/zod.d.ts +29 -7
- package/dist/document-models/billing-statement/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/schema/zod.js +10 -10
- package/dist/document-models/billing-statement/gen/tags/actions.d.ts +1 -1
- package/dist/document-models/billing-statement/gen/tags/actions.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/tags/actions.js +1 -1
- package/dist/document-models/billing-statement/gen/tags/operations.d.ts +2 -2
- package/dist/document-models/billing-statement/gen/tags/operations.d.ts.map +1 -1
- package/dist/document-models/billing-statement/gen/tags/operations.js +0 -2
- package/dist/document-models/billing-statement/gen/types.d.ts.map +1 -1
- package/dist/document-models/billing-statement/hooks.d.ts +5 -2
- package/dist/document-models/billing-statement/hooks.d.ts.map +1 -1
- package/dist/document-models/billing-statement/hooks.js +3 -4
- package/dist/document-models/billing-statement/index.d.ts +0 -4
- package/dist/document-models/billing-statement/index.d.ts.map +1 -1
- package/dist/document-models/billing-statement/index.js +0 -4
- package/dist/document-models/billing-statement/module.d.ts.map +1 -1
- package/dist/document-models/billing-statement/module.js +1 -0
- package/dist/document-models/billing-statement/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/billing-statement/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/billing-statement/tests/document-model.test.js +104 -0
- package/dist/document-models/billing-statement/tests/general.test.d.ts +2 -0
- package/dist/document-models/billing-statement/tests/general.test.d.ts.map +1 -0
- package/dist/document-models/billing-statement/tests/general.test.js +35 -0
- package/dist/document-models/billing-statement/tests/line-items.test.d.ts +2 -0
- package/dist/document-models/billing-statement/tests/line-items.test.d.ts.map +1 -0
- package/dist/document-models/billing-statement/tests/line-items.test.js +35 -0
- package/dist/document-models/billing-statement/tests/tags.test.d.ts +2 -0
- package/dist/document-models/billing-statement/tests/tags.test.d.ts.map +1 -0
- package/dist/document-models/billing-statement/tests/tags.test.js +15 -0
- package/dist/document-models/document-models.js +4 -4
- package/dist/document-models/expense-report/actions.d.ts +1 -0
- package/dist/document-models/expense-report/actions.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/document-model.js +14 -3
- package/dist/document-models/expense-report/gen/document-schema.d.ts +36 -208
- package/dist/document-models/expense-report/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/ph-factories.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/ph-factories.js +2 -0
- package/dist/document-models/expense-report/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/reducer.js +40 -18
- package/dist/document-models/expense-report/gen/schema/types.d.ts +19 -1
- package/dist/document-models/expense-report/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/schema/zod.d.ts +15 -6
- package/dist/document-models/expense-report/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/schema/zod.js +37 -29
- package/dist/document-models/expense-report/gen/types.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/utils.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/utils.js +2 -0
- package/dist/document-models/expense-report/gen/wallet/actions.d.ts +7 -3
- package/dist/document-models/expense-report/gen/wallet/actions.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/wallet/actions.js +1 -1
- package/dist/document-models/expense-report/gen/wallet/creators.d.ts +3 -2
- package/dist/document-models/expense-report/gen/wallet/creators.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/wallet/creators.js +2 -1
- package/dist/document-models/expense-report/gen/wallet/operations.d.ts +3 -2
- package/dist/document-models/expense-report/gen/wallet/operations.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/wallet/operations.js +0 -2
- package/dist/document-models/expense-report/hooks.d.ts +5 -2
- package/dist/document-models/expense-report/hooks.d.ts.map +1 -1
- package/dist/document-models/expense-report/hooks.js +3 -4
- package/dist/document-models/expense-report/index.d.ts +0 -4
- package/dist/document-models/expense-report/index.d.ts.map +1 -1
- package/dist/document-models/expense-report/index.js +0 -4
- package/dist/document-models/expense-report/module.d.ts.map +1 -1
- package/dist/document-models/expense-report/module.js +1 -0
- package/dist/document-models/expense-report/src/reducers/wallet.d.ts.map +1 -1
- package/dist/document-models/expense-report/src/reducers/wallet.js +9 -0
- package/dist/document-models/expense-report/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/expense-report/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/expense-report/tests/document-model.test.js +104 -0
- package/dist/document-models/expense-report/tests/wallet.test.d.ts +2 -0
- package/dist/document-models/expense-report/tests/wallet.test.d.ts.map +1 -0
- package/dist/document-models/expense-report/tests/wallet.test.js +175 -0
- package/dist/document-models/index.d.ts +3 -7
- package/dist/document-models/index.d.ts.map +1 -1
- package/dist/document-models/index.js +3 -7
- package/dist/document-models/invoice/actions.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/document-model.js +146 -146
- package/dist/document-models/invoice/gen/document-schema.d.ts +66 -436
- package/dist/document-models/invoice/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/general/actions.d.ts +1 -1
- package/dist/document-models/invoice/gen/general/actions.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/general/actions.js +1 -1
- package/dist/document-models/invoice/gen/general/operations.d.ts +2 -2
- package/dist/document-models/invoice/gen/general/operations.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/general/operations.js +0 -2
- package/dist/document-models/invoice/gen/items/actions.d.ts +1 -1
- package/dist/document-models/invoice/gen/items/actions.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/items/actions.js +1 -1
- package/dist/document-models/invoice/gen/items/operations.d.ts +2 -2
- package/dist/document-models/invoice/gen/items/operations.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/items/operations.js +0 -2
- package/dist/document-models/invoice/gen/parties/actions.d.ts +1 -1
- package/dist/document-models/invoice/gen/parties/actions.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/parties/actions.js +1 -1
- package/dist/document-models/invoice/gen/parties/operations.d.ts +2 -2
- package/dist/document-models/invoice/gen/parties/operations.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/parties/operations.js +0 -2
- package/dist/document-models/invoice/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/reducer.js +56 -28
- package/dist/document-models/invoice/gen/schema/types.d.ts +9 -1
- package/dist/document-models/invoice/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/schema/zod.d.ts +42 -21
- package/dist/document-models/invoice/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/schema/zod.js +67 -67
- package/dist/document-models/invoice/gen/transitions/actions.d.ts +1 -1
- package/dist/document-models/invoice/gen/transitions/actions.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/transitions/actions.js +1 -1
- package/dist/document-models/invoice/gen/transitions/operations.d.ts +2 -2
- package/dist/document-models/invoice/gen/transitions/operations.d.ts.map +1 -1
- package/dist/document-models/invoice/gen/transitions/operations.js +0 -2
- package/dist/document-models/invoice/gen/types.d.ts.map +1 -1
- package/dist/document-models/invoice/hooks.d.ts +5 -2
- package/dist/document-models/invoice/hooks.d.ts.map +1 -1
- package/dist/document-models/invoice/hooks.js +3 -4
- package/dist/document-models/invoice/index.d.ts +0 -4
- package/dist/document-models/invoice/index.d.ts.map +1 -1
- package/dist/document-models/invoice/index.js +0 -4
- package/dist/document-models/invoice/module.d.ts.map +1 -1
- package/dist/document-models/invoice/module.js +1 -0
- package/dist/document-models/invoice/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/invoice/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/invoice/tests/document-model.test.js +104 -0
- package/dist/document-models/invoice/tests/general.test.d.ts +2 -0
- package/dist/document-models/invoice/tests/general.test.d.ts.map +1 -0
- package/dist/document-models/invoice/tests/general.test.js +55 -0
- package/dist/document-models/invoice/tests/items.test.d.ts +2 -0
- package/dist/document-models/invoice/tests/items.test.d.ts.map +1 -0
- package/dist/document-models/invoice/tests/items.test.js +55 -0
- package/dist/document-models/invoice/tests/parties.test.d.ts +2 -0
- package/dist/document-models/invoice/tests/parties.test.d.ts.map +1 -0
- package/dist/document-models/invoice/tests/parties.test.js +65 -0
- package/dist/document-models/invoice/tests/transitions.test.d.ts +2 -0
- package/dist/document-models/invoice/tests/transitions.test.d.ts.map +1 -0
- package/dist/document-models/invoice/tests/transitions.test.js +125 -0
- package/dist/document-models/resource-template/actions.d.ts +3 -0
- package/dist/document-models/resource-template/actions.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/audience-management/actions.d.ts +1 -1
- package/dist/document-models/resource-template/gen/audience-management/actions.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/audience-management/actions.js +1 -1
- package/dist/document-models/resource-template/gen/audience-management/error.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/audience-management/error.js +2 -6
- package/dist/document-models/resource-template/gen/audience-management/operations.d.ts +2 -2
- package/dist/document-models/resource-template/gen/audience-management/operations.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/audience-management/operations.js +0 -2
- package/dist/document-models/resource-template/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/document-model.js +61 -28
- package/dist/document-models/resource-template/gen/document-schema.d.ts +60 -379
- package/dist/document-models/resource-template/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/facet-targeting/actions.d.ts +1 -1
- package/dist/document-models/resource-template/gen/facet-targeting/actions.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/facet-targeting/actions.js +1 -1
- package/dist/document-models/resource-template/gen/facet-targeting/error.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/facet-targeting/error.js +3 -9
- package/dist/document-models/resource-template/gen/facet-targeting/operations.d.ts +2 -2
- package/dist/document-models/resource-template/gen/facet-targeting/operations.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/facet-targeting/operations.js +0 -2
- package/dist/document-models/resource-template/gen/option-group-management/actions.d.ts +15 -3
- package/dist/document-models/resource-template/gen/option-group-management/actions.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/option-group-management/actions.js +1 -1
- package/dist/document-models/resource-template/gen/option-group-management/creators.d.ts +5 -2
- package/dist/document-models/resource-template/gen/option-group-management/creators.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/option-group-management/creators.js +4 -1
- package/dist/document-models/resource-template/gen/option-group-management/error.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/option-group-management/error.js +3 -9
- package/dist/document-models/resource-template/gen/option-group-management/operations.d.ts +5 -2
- package/dist/document-models/resource-template/gen/option-group-management/operations.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/option-group-management/operations.js +0 -2
- package/dist/document-models/resource-template/gen/ph-factories.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/ph-factories.js +1 -0
- package/dist/document-models/resource-template/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/reducer.js +56 -21
- package/dist/document-models/resource-template/gen/schema/types.d.ts +34 -3
- package/dist/document-models/resource-template/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/schema/zod.d.ts +14 -5
- package/dist/document-models/resource-template/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/schema/zod.js +43 -15
- package/dist/document-models/resource-template/gen/service-category-management/actions.d.ts +1 -1
- package/dist/document-models/resource-template/gen/service-category-management/actions.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/service-category-management/actions.js +1 -1
- package/dist/document-models/resource-template/gen/service-category-management/operations.d.ts +2 -2
- package/dist/document-models/resource-template/gen/service-category-management/operations.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/service-category-management/operations.js +0 -2
- package/dist/document-models/resource-template/gen/service-management/actions.d.ts +1 -1
- package/dist/document-models/resource-template/gen/service-management/actions.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/service-management/actions.js +1 -1
- package/dist/document-models/resource-template/gen/service-management/error.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/service-management/error.js +5 -17
- package/dist/document-models/resource-template/gen/service-management/operations.d.ts +2 -2
- package/dist/document-models/resource-template/gen/service-management/operations.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/service-management/operations.js +0 -2
- package/dist/document-models/resource-template/gen/template-management/actions.d.ts +1 -1
- package/dist/document-models/resource-template/gen/template-management/actions.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/template-management/actions.js +1 -1
- package/dist/document-models/resource-template/gen/template-management/operations.d.ts +2 -2
- package/dist/document-models/resource-template/gen/template-management/operations.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/template-management/operations.js +0 -2
- package/dist/document-models/resource-template/gen/types.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/utils.d.ts.map +1 -1
- package/dist/document-models/resource-template/gen/utils.js +1 -0
- package/dist/document-models/resource-template/hooks.d.ts +5 -2
- package/dist/document-models/resource-template/hooks.d.ts.map +1 -1
- package/dist/document-models/resource-template/hooks.js +3 -4
- package/dist/document-models/resource-template/index.d.ts +0 -4
- package/dist/document-models/resource-template/index.d.ts.map +1 -1
- package/dist/document-models/resource-template/index.js +0 -4
- package/dist/document-models/resource-template/module.d.ts.map +1 -1
- package/dist/document-models/resource-template/module.js +1 -0
- package/dist/document-models/resource-template/src/reducers/audience-management.d.ts.map +1 -1
- package/dist/document-models/resource-template/src/reducers/audience-management.js +3 -3
- package/dist/document-models/resource-template/src/reducers/facet-preset-management.d.ts.map +1 -0
- package/dist/document-models/resource-template/src/reducers/facet-targeting.d.ts.map +1 -1
- package/dist/document-models/resource-template/src/reducers/facet-targeting.js +9 -8
- package/dist/document-models/resource-template/src/reducers/option-group-management.d.ts.map +1 -1
- package/dist/document-models/resource-template/src/reducers/option-group-management.js +33 -7
- package/dist/document-models/resource-template/src/reducers/service-category-management.d.ts.map +1 -1
- package/dist/document-models/resource-template/src/reducers/service-category-management.js +1 -1
- package/dist/document-models/resource-template/src/reducers/service-management.d.ts.map +1 -1
- package/dist/document-models/resource-template/src/reducers/service-management.js +14 -11
- package/dist/document-models/resource-template/src/reducers/template-management.d.ts.map +1 -1
- package/dist/document-models/resource-template/src/reducers/template-management.js +1 -1
- package/dist/document-models/resource-template/tests/audience-management.test.d.ts +2 -0
- package/dist/document-models/resource-template/tests/audience-management.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/tests/audience-management.test.js +25 -0
- package/dist/document-models/resource-template/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/resource-template/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/tests/document-model.test.js +104 -0
- package/dist/document-models/resource-template/tests/facet-targeting.test.d.ts +2 -0
- package/dist/document-models/resource-template/tests/facet-targeting.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/tests/facet-targeting.test.js +45 -0
- package/dist/document-models/resource-template/tests/option-group-management.test.d.ts +2 -0
- package/dist/document-models/resource-template/tests/option-group-management.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/tests/option-group-management.test.js +65 -0
- package/dist/document-models/resource-template/tests/service-category-management.test.d.ts +2 -0
- package/dist/document-models/resource-template/tests/service-category-management.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/tests/service-category-management.test.js +25 -0
- package/dist/document-models/resource-template/tests/service-management.test.d.ts +2 -0
- package/dist/document-models/resource-template/tests/service-management.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/tests/service-management.test.js +55 -0
- package/dist/document-models/resource-template/tests/template-management.test.d.ts +2 -0
- package/dist/document-models/resource-template/tests/template-management.test.d.ts.map +1 -0
- package/dist/document-models/resource-template/tests/template-management.test.js +45 -0
- package/dist/document-models/service-offering/actions.d.ts +3 -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 +100 -22
- package/dist/document-models/service-offering/gen/document-schema.d.ts +63 -417
- 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 +1 -1
- package/dist/document-models/service-offering/gen/offering-management/actions.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/offering-management/actions.js +1 -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 +6 -19
- package/dist/document-models/service-offering/gen/offering-management/operations.d.ts +2 -2
- package/dist/document-models/service-offering/gen/offering-management/operations.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/offering-management/operations.js +0 -2
- package/dist/document-models/service-offering/gen/option-group-management/actions.d.ts +1 -1
- package/dist/document-models/service-offering/gen/option-group-management/actions.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/option-group-management/actions.js +1 -1
- package/dist/document-models/service-offering/gen/option-group-management/error.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/option-group-management/error.js +3 -9
- package/dist/document-models/service-offering/gen/option-group-management/operations.d.ts +2 -2
- package/dist/document-models/service-offering/gen/option-group-management/operations.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/option-group-management/operations.js +0 -2
- package/dist/document-models/service-offering/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/reducer.js +80 -33
- package/dist/document-models/service-offering/gen/schema/types.d.ts +84 -12
- 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 +38 -8
- package/dist/document-models/service-offering/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/schema/zod.js +100 -31
- package/dist/document-models/service-offering/gen/service-management/actions.d.ts +1 -1
- package/dist/document-models/service-offering/gen/service-management/actions.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/service-management/actions.js +1 -1
- package/dist/document-models/service-offering/gen/service-management/error.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/service-management/error.js +5 -17
- package/dist/document-models/service-offering/gen/service-management/operations.d.ts +2 -2
- package/dist/document-models/service-offering/gen/service-management/operations.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/service-management/operations.js +0 -2
- package/dist/document-models/service-offering/gen/tier-management/actions.d.ts +15 -3
- package/dist/document-models/service-offering/gen/tier-management/actions.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/tier-management/actions.js +1 -1
- package/dist/document-models/service-offering/gen/tier-management/creators.d.ts +5 -2
- package/dist/document-models/service-offering/gen/tier-management/creators.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/tier-management/creators.js +4 -1
- package/dist/document-models/service-offering/gen/tier-management/error.d.ts +37 -1
- package/dist/document-models/service-offering/gen/tier-management/error.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/tier-management/error.js +50 -13
- package/dist/document-models/service-offering/gen/tier-management/operations.d.ts +5 -2
- package/dist/document-models/service-offering/gen/tier-management/operations.d.ts.map +1 -1
- package/dist/document-models/service-offering/gen/tier-management/operations.js +0 -2
- package/dist/document-models/service-offering/gen/types.d.ts.map +1 -1
- package/dist/document-models/service-offering/hooks.d.ts +5 -2
- package/dist/document-models/service-offering/hooks.d.ts.map +1 -1
- package/dist/document-models/service-offering/hooks.js +3 -4
- package/dist/document-models/service-offering/index.d.ts +0 -4
- package/dist/document-models/service-offering/index.d.ts.map +1 -1
- package/dist/document-models/service-offering/index.js +0 -4
- package/dist/document-models/service-offering/module.d.ts.map +1 -1
- package/dist/document-models/service-offering/module.js +1 -0
- package/dist/document-models/service-offering/src/reducers/tier-management.d.ts.map +1 -1
- package/dist/document-models/service-offering/src/reducers/tier-management.js +110 -2
- package/dist/document-models/service-offering/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/service-offering/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/service-offering/tests/document-model.test.js +104 -0
- package/dist/document-models/service-offering/tests/offering-management.test.d.ts +2 -0
- package/dist/document-models/service-offering/tests/offering-management.test.d.ts.map +1 -0
- package/dist/document-models/service-offering/tests/offering-management.test.js +145 -0
- package/dist/document-models/service-offering/tests/option-group-management.test.d.ts +2 -0
- package/dist/document-models/service-offering/tests/option-group-management.test.d.ts.map +1 -0
- package/dist/document-models/service-offering/tests/option-group-management.test.js +35 -0
- package/dist/document-models/service-offering/tests/service-management.test.d.ts +2 -0
- package/dist/document-models/service-offering/tests/service-management.test.d.ts.map +1 -0
- package/dist/document-models/service-offering/tests/service-management.test.js +55 -0
- package/dist/document-models/service-offering/tests/tier-management.test.d.ts +2 -0
- package/dist/document-models/service-offering/tests/tier-management.test.d.ts.map +1 -0
- package/dist/document-models/service-offering/tests/tier-management.test.js +135 -0
- package/dist/document-models/service-subscriptions/actions.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/categories/actions.d.ts +1 -1
- package/dist/document-models/service-subscriptions/gen/categories/actions.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/categories/actions.js +1 -1
- package/dist/document-models/service-subscriptions/gen/categories/operations.d.ts +2 -2
- package/dist/document-models/service-subscriptions/gen/categories/operations.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/categories/operations.js +0 -2
- package/dist/document-models/service-subscriptions/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/document-model.js +70 -70
- package/dist/document-models/service-subscriptions/gen/document-schema.d.ts +21 -151
- package/dist/document-models/service-subscriptions/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/reducer.js +26 -13
- package/dist/document-models/service-subscriptions/gen/schema/types.d.ts +13 -1
- package/dist/document-models/service-subscriptions/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/schema/zod.d.ts +19 -5
- package/dist/document-models/service-subscriptions/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/schema/zod.js +21 -21
- package/dist/document-models/service-subscriptions/gen/subscriptions/actions.d.ts +1 -1
- package/dist/document-models/service-subscriptions/gen/subscriptions/actions.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/subscriptions/actions.js +1 -1
- package/dist/document-models/service-subscriptions/gen/subscriptions/operations.d.ts +2 -2
- package/dist/document-models/service-subscriptions/gen/subscriptions/operations.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/subscriptions/operations.js +0 -2
- package/dist/document-models/service-subscriptions/gen/types.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/vendors/actions.d.ts +1 -1
- package/dist/document-models/service-subscriptions/gen/vendors/actions.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/vendors/actions.js +1 -1
- package/dist/document-models/service-subscriptions/gen/vendors/operations.d.ts +2 -2
- package/dist/document-models/service-subscriptions/gen/vendors/operations.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/gen/vendors/operations.js +0 -2
- package/dist/document-models/service-subscriptions/hooks.d.ts +5 -2
- package/dist/document-models/service-subscriptions/hooks.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/hooks.js +3 -4
- package/dist/document-models/service-subscriptions/index.d.ts +0 -4
- package/dist/document-models/service-subscriptions/index.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/index.js +0 -4
- package/dist/document-models/service-subscriptions/module.d.ts.map +1 -1
- package/dist/document-models/service-subscriptions/module.js +1 -0
- package/dist/document-models/service-subscriptions/tests/categories.test.d.ts +2 -0
- package/dist/document-models/service-subscriptions/tests/categories.test.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/tests/categories.test.js +35 -0
- package/dist/document-models/service-subscriptions/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/service-subscriptions/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/tests/document-model.test.js +104 -0
- package/dist/document-models/service-subscriptions/tests/subscriptions.test.d.ts +2 -0
- package/dist/document-models/service-subscriptions/tests/subscriptions.test.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/tests/subscriptions.test.js +75 -0
- package/dist/document-models/service-subscriptions/tests/vendors.test.d.ts +2 -0
- package/dist/document-models/service-subscriptions/tests/vendors.test.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/tests/vendors.test.js +35 -0
- package/dist/document-models/snapshot-report/actions.d.ts +2 -1
- package/dist/document-models/snapshot-report/actions.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/accounts/actions.d.ts +1 -1
- package/dist/document-models/snapshot-report/gen/accounts/actions.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/accounts/actions.js +1 -1
- package/dist/document-models/snapshot-report/gen/accounts/error.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/accounts/error.js +3 -9
- package/dist/document-models/snapshot-report/gen/accounts/operations.d.ts +2 -2
- package/dist/document-models/snapshot-report/gen/accounts/operations.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/accounts/operations.js +0 -2
- package/dist/document-models/snapshot-report/gen/balances/actions.d.ts +1 -1
- package/dist/document-models/snapshot-report/gen/balances/actions.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/balances/actions.js +1 -1
- package/dist/document-models/snapshot-report/gen/balances/error.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/balances/error.js +4 -12
- package/dist/document-models/snapshot-report/gen/balances/operations.d.ts +2 -2
- package/dist/document-models/snapshot-report/gen/balances/operations.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/balances/operations.js +0 -2
- package/dist/document-models/snapshot-report/gen/configuration/actions.d.ts +10 -6
- package/dist/document-models/snapshot-report/gen/configuration/actions.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/configuration/actions.js +1 -1
- package/dist/document-models/snapshot-report/gen/configuration/creators.d.ts +4 -3
- package/dist/document-models/snapshot-report/gen/configuration/creators.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/configuration/creators.js +3 -2
- package/dist/document-models/snapshot-report/gen/configuration/operations.d.ts +4 -3
- package/dist/document-models/snapshot-report/gen/configuration/operations.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/configuration/operations.js +0 -2
- package/dist/document-models/snapshot-report/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/document-model.js +22 -11
- package/dist/document-models/snapshot-report/gen/document-schema.d.ts +36 -246
- package/dist/document-models/snapshot-report/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/ph-factories.js +1 -1
- package/dist/document-models/snapshot-report/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/reducer.js +42 -20
- package/dist/document-models/snapshot-report/gen/schema/types.d.ts +22 -8
- package/dist/document-models/snapshot-report/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/schema/zod.d.ts +40 -11
- package/dist/document-models/snapshot-report/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/schema/zod.js +34 -28
- package/dist/document-models/snapshot-report/gen/transactions/actions.d.ts +1 -1
- package/dist/document-models/snapshot-report/gen/transactions/actions.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/transactions/actions.js +1 -1
- package/dist/document-models/snapshot-report/gen/transactions/error.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/transactions/error.js +2 -6
- package/dist/document-models/snapshot-report/gen/transactions/operations.d.ts +2 -2
- package/dist/document-models/snapshot-report/gen/transactions/operations.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/transactions/operations.js +0 -2
- package/dist/document-models/snapshot-report/gen/types.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/gen/utils.js +1 -1
- package/dist/document-models/snapshot-report/hooks.d.ts +5 -2
- package/dist/document-models/snapshot-report/hooks.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/hooks.js +3 -4
- package/dist/document-models/snapshot-report/index.d.ts +0 -4
- package/dist/document-models/snapshot-report/index.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/index.js +0 -4
- package/dist/document-models/snapshot-report/module.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/module.js +1 -0
- package/dist/document-models/snapshot-report/src/reducers/balances.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/src/reducers/balances.js +37 -21
- package/dist/document-models/snapshot-report/src/reducers/configuration.d.ts.map +1 -1
- package/dist/document-models/snapshot-report/src/reducers/configuration.js +11 -3
- package/dist/document-models/snapshot-report/tests/accounts.test.d.ts +2 -0
- package/dist/document-models/snapshot-report/tests/accounts.test.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/tests/accounts.test.js +35 -0
- package/dist/document-models/snapshot-report/tests/balances.test.d.ts +2 -0
- package/dist/document-models/snapshot-report/tests/balances.test.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/tests/balances.test.js +45 -0
- package/dist/document-models/snapshot-report/tests/configuration.test.d.ts +2 -0
- package/dist/document-models/snapshot-report/tests/configuration.test.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/tests/configuration.test.js +75 -0
- package/dist/document-models/snapshot-report/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/snapshot-report/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/tests/document-model.test.js +104 -0
- package/dist/document-models/snapshot-report/tests/transactions.test.d.ts +2 -0
- package/dist/document-models/snapshot-report/tests/transactions.test.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/tests/transactions.test.js +45 -0
- package/dist/editors/accounts-editor/editor.d.ts.map +1 -1
- package/dist/editors/accounts-editor/editor.js +25 -6
- package/dist/editors/billing-statement/components/lineItemsTable.js +8 -8
- package/dist/editors/billing-statement/editor.d.ts.map +1 -1
- package/dist/editors/billing-statement/editor.js +15 -16
- package/dist/editors/billing-statement/lineItemTags/lineItemTags.js +5 -5
- package/dist/editors/builder-team-admin/components/ResourcesServices.d.ts.map +1 -1
- package/dist/editors/builder-team-admin/components/ResourcesServices.js +3 -1
- package/dist/editors/builder-team-admin/components/overview/TeamMembersOverview.d.ts.map +1 -1
- package/dist/editors/builder-team-admin/components/overview/TeamMembersOverview.js +20 -3
- package/dist/editors/builder-team-admin/components/team-members.d.ts.map +1 -1
- package/dist/editors/builder-team-admin/components/team-members.js +20 -5
- package/dist/editors/builder-team-admin/hooks/useExpenseReportAutoPlacement.d.ts.map +1 -1
- package/dist/editors/builder-team-admin/hooks/useExpenseReportAutoPlacement.js +45 -17
- package/dist/editors/builder-team-admin/hooks/useSnapshotReportAutoPlacement.d.ts.map +1 -1
- package/dist/editors/builder-team-admin/hooks/useSnapshotReportAutoPlacement.js +45 -17
- package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/DriveExplorer.js +2 -1
- package/dist/editors/contributor-billing/components/FolderTree.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/FolderTree.js +72 -11
- package/dist/editors/contributor-billing/components/FolderTreeErrorBoundary.d.ts +24 -0
- package/dist/editors/contributor-billing/components/FolderTreeErrorBoundary.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/FolderTreeErrorBoundary.js +41 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/HeaderStats.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/InvoiceTable/HeaderStats.js +10 -3
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.js +65 -28
- package/dist/editors/contributor-billing/components/InvoiceTable/NotificationDialog.d.ts +11 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/NotificationDialog.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/NotificationDialog.js +8 -0
- package/dist/editors/expense-report/components/AddReportToRemoteDrive.d.ts +1 -1
- package/dist/editors/expense-report/editor.d.ts.map +1 -1
- package/dist/editors/expense-report/editor.js +43 -6
- package/dist/editors/expense-report/hooks/useSyncWallet.d.ts.map +1 -1
- package/dist/editors/expense-report/hooks/useSyncWallet.js +4 -0
- package/dist/editors/invoice/exportUBL.js +5 -5
- package/dist/editors/resource-template-editor/components/FacetTargeting.js +2 -2
- package/dist/editors/resource-template-editor/components/TemplateInfo.d.ts.map +1 -1
- package/dist/editors/resource-template-editor/components/TemplateInfo.js +394 -99
- package/dist/editors/resource-template-editor/editor.d.ts.map +1 -1
- package/dist/editors/resource-template-editor/editor.js +2 -2
- package/dist/editors/resource-template-editor/module.d.ts +1 -1
- package/dist/editors/resource-template-editor/module.d.ts.map +1 -1
- package/dist/editors/resource-template-editor/module.js +1 -1
- package/dist/editors/service-offering-editor/components/ResourceTemplateSelector.js +1 -1
- package/dist/editors/service-offering-editor/components/ServiceCatalog.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/ServiceCatalog.js +33 -69
- package/dist/editors/service-offering-editor/components/ServicesList.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/ServicesList.js +1 -1
- package/dist/editors/service-offering-editor/components/TheMatrix.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/TheMatrix.js +475 -132
- package/dist/editors/service-offering-editor/components/TierDefinition.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/TierDefinition.js +307 -122
- package/dist/editors/service-offering-editor/components/TierPricingOptionsPanel.d.ts +11 -0
- package/dist/editors/service-offering-editor/components/TierPricingOptionsPanel.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/TierPricingOptionsPanel.js +405 -0
- package/dist/editors/service-offering-editor/components/TiersList.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/components/TiersList.js +1 -1
- package/dist/editors/service-offering-editor/components/pricing-utils.d.ts +10 -0
- package/dist/editors/service-offering-editor/components/pricing-utils.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/pricing-utils.js +65 -0
- package/dist/editors/service-offering-editor/module.d.ts +1 -1
- package/dist/editors/service-offering-editor/module.d.ts.map +1 -1
- package/dist/editors/service-offering-editor/module.js +1 -1
- package/dist/editors/service-subscriptions-editor/components/SubscriptionsList.js +1 -1
- package/dist/editors/snapshot-report-editor/components/AddReportToRemoteDrive.js +1 -1
- package/dist/editors/snapshot-report-editor/components/SetOwner.d.ts +4 -4
- package/dist/editors/snapshot-report-editor/components/SetOwner.d.ts.map +1 -1
- package/dist/editors/snapshot-report-editor/components/SetOwner.js +25 -14
- package/dist/editors/snapshot-report-editor/editor.d.ts.map +1 -1
- package/dist/editors/snapshot-report-editor/editor.js +14 -7
- package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.d.ts.map +1 -1
- package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.js +133 -8
- package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.d.ts +4 -0
- package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.d.ts.map +1 -1
- package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.js +28 -0
- package/dist/index.d.ts +1 -1
- package/dist/powerhouse.manifest.json +2 -2
- package/dist/scripts/alchemy/alchemyEnvironment.d.ts +2 -2
- package/dist/scripts/alchemy/alchemyEnvironment.d.ts.map +1 -1
- package/dist/scripts/alchemy/alchemyEnvironment.js +31 -10
- package/dist/style.css +1327 -1108
- package/dist/subgraphs/budget-statements/resolvers.js +2 -2
- package/dist/subgraphs/expense-report/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/expense-report/resolvers.js +12 -0
- package/dist/subgraphs/expense-report/schema.d.ts.map +1 -1
- package/dist/subgraphs/expense-report/schema.js +9 -0
- package/dist/subgraphs/index.d.ts +2 -9
- package/dist/subgraphs/index.d.ts.map +1 -1
- package/dist/subgraphs/index.js +2 -9
- package/dist/subgraphs/invoice-addon/schema.d.ts.map +1 -1
- package/dist/subgraphs/invoice-addon/schema.js +5 -7
- package/dist/subgraphs/snapshot-report/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/snapshot-report/resolvers.js +15 -3
- package/dist/subgraphs/snapshot-report/schema.d.ts.map +1 -1
- package/dist/subgraphs/snapshot-report/schema.js +11 -4
- package/package.json +26 -21
- package/dist/document-models/resource-template/reducers/audience-management.d.ts +0 -3
- package/dist/document-models/resource-template/reducers/audience-management.d.ts.map +0 -1
- package/dist/document-models/resource-template/reducers/audience-management.js +0 -17
- package/dist/document-models/resource-template/reducers/facet-preset-management.d.ts.map +0 -1
- package/dist/document-models/resource-template/reducers/facet-targeting.d.ts +0 -3
- package/dist/document-models/resource-template/reducers/facet-targeting.d.ts.map +0 -1
- package/dist/document-models/resource-template/reducers/facet-targeting.js +0 -47
- package/dist/document-models/resource-template/reducers/option-group-management.d.ts +0 -3
- package/dist/document-models/resource-template/reducers/option-group-management.d.ts.map +0 -1
- package/dist/document-models/resource-template/reducers/option-group-management.js +0 -44
- package/dist/document-models/resource-template/reducers/service-category-management.d.ts +0 -3
- package/dist/document-models/resource-template/reducers/service-category-management.d.ts.map +0 -1
- package/dist/document-models/resource-template/reducers/service-category-management.js +0 -10
- package/dist/document-models/resource-template/reducers/service-management.d.ts +0 -3
- package/dist/document-models/resource-template/reducers/service-management.d.ts.map +0 -1
- package/dist/document-models/resource-template/reducers/service-management.js +0 -71
- package/dist/document-models/resource-template/reducers/template-management.d.ts +0 -3
- package/dist/document-models/resource-template/reducers/template-management.d.ts.map +0 -1
- package/dist/document-models/resource-template/reducers/template-management.js +0 -32
- package/dist/editors/accounts-editor/components/AccountsFilter.d.ts +0 -8
- package/dist/editors/accounts-editor/components/AccountsFilter.d.ts.map +0 -1
- package/dist/editors/accounts-editor/components/AccountsFilter.js +0 -34
- package/dist/editors/billing-statement/components/objectSetTable.d.ts +0 -7
- package/dist/editors/billing-statement/components/objectSetTable.d.ts.map +0 -1
- package/dist/editors/billing-statement/components/objectSetTable.js +0 -96
- package/dist/subgraphs/account-transactions/index.d.ts +0 -11
- package/dist/subgraphs/account-transactions/index.d.ts.map +0 -1
- package/dist/subgraphs/account-transactions/index.js +0 -11
- package/dist/subgraphs/account-transactions/resolvers.d.ts +0 -3
- package/dist/subgraphs/account-transactions/resolvers.d.ts.map +0 -1
- package/dist/subgraphs/account-transactions/resolvers.js +0 -168
- package/dist/subgraphs/account-transactions/schema.d.ts +0 -3
- package/dist/subgraphs/account-transactions/schema.d.ts.map +0 -1
- package/dist/subgraphs/account-transactions/schema.js +0 -129
- package/dist/subgraphs/accounts/index.d.ts +0 -11
- package/dist/subgraphs/accounts/index.d.ts.map +0 -1
- package/dist/subgraphs/accounts/index.js +0 -11
- package/dist/subgraphs/accounts/resolvers.d.ts +0 -3
- package/dist/subgraphs/accounts/resolvers.d.ts.map +0 -1
- package/dist/subgraphs/accounts/resolvers.js +0 -120
- package/dist/subgraphs/accounts/schema.d.ts +0 -3
- package/dist/subgraphs/accounts/schema.d.ts.map +0 -1
- package/dist/subgraphs/accounts/schema.js +0 -75
- package/dist/subgraphs/billing-statement/index.d.ts +0 -11
- package/dist/subgraphs/billing-statement/index.d.ts.map +0 -1
- package/dist/subgraphs/billing-statement/index.js +0 -11
- package/dist/subgraphs/billing-statement/resolvers.d.ts +0 -3
- package/dist/subgraphs/billing-statement/resolvers.d.ts.map +0 -1
- package/dist/subgraphs/billing-statement/resolvers.js +0 -156
- package/dist/subgraphs/billing-statement/schema.d.ts +0 -3
- package/dist/subgraphs/billing-statement/schema.d.ts.map +0 -1
- package/dist/subgraphs/billing-statement/schema.js +0 -110
- package/dist/subgraphs/invoice/index.d.ts +0 -11
- package/dist/subgraphs/invoice/index.d.ts.map +0 -1
- package/dist/subgraphs/invoice/index.js +0 -11
- package/dist/subgraphs/invoice/resolvers.d.ts +0 -3
- package/dist/subgraphs/invoice/resolvers.d.ts.map +0 -1
- package/dist/subgraphs/invoice/resolvers.js +0 -408
- package/dist/subgraphs/invoice/schema.d.ts +0 -3
- package/dist/subgraphs/invoice/schema.d.ts.map +0 -1
- package/dist/subgraphs/invoice/schema.js +0 -390
- package/dist/subgraphs/resource-template/index.d.ts +0 -11
- package/dist/subgraphs/resource-template/index.d.ts.map +0 -1
- package/dist/subgraphs/resource-template/index.js +0 -11
- package/dist/subgraphs/resource-template/resolvers.d.ts +0 -3
- package/dist/subgraphs/resource-template/resolvers.d.ts.map +0 -1
- package/dist/subgraphs/resource-template/resolvers.js +0 -312
- package/dist/subgraphs/resource-template/schema.d.ts +0 -3
- package/dist/subgraphs/resource-template/schema.d.ts.map +0 -1
- package/dist/subgraphs/resource-template/schema.js +0 -262
- package/dist/subgraphs/service-offering/index.d.ts +0 -11
- package/dist/subgraphs/service-offering/index.d.ts.map +0 -1
- package/dist/subgraphs/service-offering/index.js +0 -11
- package/dist/subgraphs/service-offering/resolvers.d.ts +0 -3
- package/dist/subgraphs/service-offering/resolvers.d.ts.map +0 -1
- package/dist/subgraphs/service-offering/resolvers.js +0 -456
- package/dist/subgraphs/service-offering/schema.d.ts +0 -3
- package/dist/subgraphs/service-offering/schema.d.ts.map +0 -1
- package/dist/subgraphs/service-offering/schema.js +0 -407
- package/dist/subgraphs/service-subscriptions/index.d.ts +0 -11
- package/dist/subgraphs/service-subscriptions/index.d.ts.map +0 -1
- package/dist/subgraphs/service-subscriptions/index.js +0 -11
- package/dist/subgraphs/service-subscriptions/resolvers.d.ts +0 -3
- package/dist/subgraphs/service-subscriptions/resolvers.d.ts.map +0 -1
- package/dist/subgraphs/service-subscriptions/resolvers.js +0 -228
- package/dist/subgraphs/service-subscriptions/schema.d.ts +0 -3
- package/dist/subgraphs/service-subscriptions/schema.d.ts.map +0 -1
- package/dist/subgraphs/service-subscriptions/schema.js +0 -193
- /package/dist/document-models/resource-template/{reducers → src/reducers}/facet-preset-management.d.ts +0 -0
- /package/dist/document-models/resource-template/{reducers → src/reducers}/facet-preset-management.js +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SetReportConfigAction, SetAccountsDocumentAction, SetPeriodAction, AddOwnerIdAction, SetPeriodStartAction, SetPeriodEndAction, RemoveOwnerIdAction } from "./actions.js";
|
|
3
|
+
import type { SnapshotReportState } from "../types.js";
|
|
4
4
|
export interface SnapshotReportConfigurationOperations {
|
|
5
5
|
setReportConfigOperation: (state: SnapshotReportState, action: SetReportConfigAction, dispatch?: SignalDispatch) => void;
|
|
6
6
|
setAccountsDocumentOperation: (state: SnapshotReportState, action: SetAccountsDocumentAction, dispatch?: SignalDispatch) => void;
|
|
7
7
|
setPeriodOperation: (state: SnapshotReportState, action: SetPeriodAction, dispatch?: SignalDispatch) => void;
|
|
8
|
-
|
|
8
|
+
addOwnerIdOperation: (state: SnapshotReportState, action: AddOwnerIdAction, dispatch?: SignalDispatch) => void;
|
|
9
9
|
setPeriodStartOperation: (state: SnapshotReportState, action: SetPeriodStartAction, dispatch?: SignalDispatch) => void;
|
|
10
10
|
setPeriodEndOperation: (state: SnapshotReportState, action: SetPeriodEndAction, dispatch?: SignalDispatch) => void;
|
|
11
|
+
removeOwnerIdOperation: (state: SnapshotReportState, action: RemoveOwnerIdAction, dispatch?: SignalDispatch) => void;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/snapshot-report/gen/configuration/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/snapshot-report/gen/configuration/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,qCAAqC;IACpD,wBAAwB,EAAE,CACxB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,4BAA4B,EAAE,CAC5B,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,yBAAyB,EACjC,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,kBAAkB,EAAE,CAClB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,eAAe,EACvB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,mBAAmB,EAAE,CACnB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,uBAAuB,EAAE,CACvB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,qBAAqB,EAAE,CACrB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,sBAAsB,EAAE,CACtB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/document-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/document-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,wBA8Y3B,CAAC"}
|
|
@@ -22,8 +22,8 @@ export const documentModel = {
|
|
|
22
22
|
examples: [],
|
|
23
23
|
id: "set-report-config",
|
|
24
24
|
name: "SET_REPORT_CONFIG",
|
|
25
|
-
reducer: "if (action.input.reportName !== undefined && action.input.reportName !== null) {\n state.reportName = action.input.reportName;\n}\nif (action.input.startDate !== undefined && action.input.startDate !== null) {\n state.startDate = action.input.startDate;\n}\nif (action.input.endDate !== undefined && action.input.endDate !== null) {\n state.endDate = action.input.endDate;\n}\nif (action.input.accountsDocumentId !== undefined && action.input.accountsDocumentId !== null) {\n state.accountsDocumentId = action.input.accountsDocumentId;\n}
|
|
26
|
-
schema: "input SetReportConfigInput {\n reportName: String\n startDate: DateTime\n endDate: DateTime\n accountsDocumentId: PHID\n
|
|
25
|
+
reducer: "if (action.input.reportName !== undefined && action.input.reportName !== null) {\n state.reportName = action.input.reportName;\n}\nif (action.input.startDate !== undefined && action.input.startDate !== null) {\n state.startDate = action.input.startDate;\n}\nif (action.input.endDate !== undefined && action.input.endDate !== null) {\n state.endDate = action.input.endDate;\n}\nif (action.input.accountsDocumentId !== undefined && action.input.accountsDocumentId !== null) {\n state.accountsDocumentId = action.input.accountsDocumentId;\n}",
|
|
26
|
+
schema: "input SetReportConfigInput {\n reportName: String\n startDate: DateTime\n endDate: DateTime\n accountsDocumentId: PHID\n}",
|
|
27
27
|
scope: "global",
|
|
28
28
|
template: "Set the report configuration including name, period, and accounts document reference",
|
|
29
29
|
},
|
|
@@ -50,13 +50,13 @@ export const documentModel = {
|
|
|
50
50
|
template: "Set the accounting period for the snapshot report",
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
description: "
|
|
53
|
+
description: "Add an owner ID (builder team) to the snapshot report",
|
|
54
54
|
errors: [],
|
|
55
55
|
examples: [],
|
|
56
56
|
id: "set-owner-id",
|
|
57
|
-
name: "
|
|
58
|
-
reducer: "state.ownerId
|
|
59
|
-
schema: "input
|
|
57
|
+
name: "ADD_OWNER_ID",
|
|
58
|
+
reducer: "if (!state.ownerIds.includes(action.input.ownerId)) {\n state.ownerIds.push(action.input.ownerId);\n}",
|
|
59
|
+
schema: "input AddOwnerIdInput {\n ownerId: PHID!\n}",
|
|
60
60
|
scope: "global",
|
|
61
61
|
template: "Set the owner ID (builder team) for the snapshot report",
|
|
62
62
|
},
|
|
@@ -82,6 +82,17 @@ export const documentModel = {
|
|
|
82
82
|
scope: "global",
|
|
83
83
|
template: "",
|
|
84
84
|
},
|
|
85
|
+
{
|
|
86
|
+
id: "remove-owner-id",
|
|
87
|
+
name: "REMOVE_OWNER_ID",
|
|
88
|
+
description: "Remove an owner ID from the snapshot report",
|
|
89
|
+
schema: "input RemoveOwnerIdInput {\n ownerId: PHID!\n}",
|
|
90
|
+
template: "",
|
|
91
|
+
reducer: "const index = state.ownerIds.indexOf(action.input.ownerId);\nif (index !== -1) {\n state.ownerIds.splice(index, 1);\n}",
|
|
92
|
+
errors: [],
|
|
93
|
+
examples: [],
|
|
94
|
+
scope: "global",
|
|
95
|
+
},
|
|
85
96
|
],
|
|
86
97
|
},
|
|
87
98
|
{
|
|
@@ -257,7 +268,7 @@ export const documentModel = {
|
|
|
257
268
|
examples: [],
|
|
258
269
|
id: "add-transaction",
|
|
259
270
|
name: "ADD_TRANSACTION",
|
|
260
|
-
reducer:
|
|
271
|
+
reducer: "const account = state.snapshotAccounts.find(a => a.id === action.input.accountId);\nif (!account) {\n throw new AddTransactionAccountNotFoundError(`Account with ID ${action.input.accountId} not found`);\n}\n\nconst existingTransaction = account.transactions.find(t => t.id === action.input.id);\nif (existingTransaction) {\n throw new DuplicateTransactionError(`Transaction with ID ${action.input.id} already exists`);\n}\n\n// Known swap protocol addresses (lowercase)\nconst SWAP_ADDRESSES = new Set([\n '0x9008d19f58aabd9ed0d60971565aa8510560ab41', // CoW Protocol Settlement\n '0x7a250d5630b4cf539739df2c5dacb4c659f2488d', // Uniswap V2 Router\n '0xe592427a0aece92de3edee1f18e0157c05861564', // Uniswap V3 Router\n '0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45', // Uniswap V3 Router 2\n '0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad', // Uniswap Universal Router\n '0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f', // SushiSwap Router\n '0x1111111254eeb25477b68fb85ed929f73a960582', // 1inch Router v5\n '0x1111111254fb6c44bac0bed2854e76f90643097d', // 1inch Router v4\n '0xdef1c0ded9bec7f1a1670819833240f027b25eff', // 0x Exchange Proxy\n '0x881d40237659c251811cec9c364ef91dc08d300c', // Metamask Swap Router\n]);\n\nfunction isSwapAddress(address) {\n if (!address) return false;\n return SWAP_ADDRESSES.has(address.toLowerCase());\n}\n\n// AUTO-CATEGORIZATION: Determine flow type and counter-party account ID\nlet flowType = action.input.flowType || null;\nlet counterPartyAccountId = action.input.counterPartyAccountId || null;\n\n// Check for swap transactions first (highest priority)\nif (!flowType && isSwapAddress(action.input.counterParty)) {\n flowType = 'Swap';\n} else if (action.input.counterParty) {\n // Find counter-party account in snapshot\n const counterPartyAccount = state.snapshotAccounts.find(\n (acc) => acc.accountAddress.toLowerCase() === action.input.counterParty.toLowerCase(),\n );\n\n if (counterPartyAccount) {\n // Auto-link counter-party account\n counterPartyAccountId = counterPartyAccount.id;\n\n // Auto-categorize flow type if not explicitly provided\n if (!flowType) {\n // Determine sender and receiver types based on transaction direction\n const fromType =\n action.input.direction === 'OUTFLOW'\n ? account.type\n : counterPartyAccount.type;\n const toType =\n action.input.direction === 'OUTFLOW'\n ? counterPartyAccount.type\n : account.type;\n\n // Flow categorization rules\n if (fromType === 'Source') {\n flowType = 'TopUp';\n } else if (toType === 'Source') {\n flowType = 'Return';\n } else if (toType === 'Destination') {\n flowType = 'TopUp';\n } else if (fromType === 'External') {\n flowType = 'External';\n } else if (fromType === 'Internal' && toType === 'Internal') {\n flowType = 'Internal';\n } else if (fromType === 'Internal' && toType === 'External') {\n flowType = 'External';\n } else {\n flowType = 'External';\n }\n }\n } else if (!flowType) {\n // FALLBACK: Counter-party not found in snapshot, default to External\n flowType = 'External';\n }\n} else if (!flowType) {\n // FALLBACK: No counter-party provided, default to External\n flowType = 'External';\n}\n\nconst newTransaction = {\n id: action.input.id,\n transactionId: action.input.transactionId,\n counterParty: action.input.counterParty || null,\n amount: action.input.amount,\n datetime: action.input.datetime,\n txHash: action.input.txHash,\n token: action.input.token,\n blockNumber: action.input.blockNumber || null,\n direction: action.input.direction,\n flowType: flowType,\n counterPartyAccountId: counterPartyAccountId,\n};\n\naccount.transactions.push(newTransaction);",
|
|
261
272
|
schema: "input AddTransactionInput {\n accountId: OID!\n id: OID!\n transactionId: String!\n counterParty: EthereumAddress\n amount: Amount_Currency!\n datetime: DateTime!\n txHash: String!\n token: Currency!\n blockNumber: Int\n direction: TransactionDirectionInput!\n flowType: TransactionFlowTypeInput\n counterPartyAccountId: OID\n}\n",
|
|
262
273
|
scope: "global",
|
|
263
274
|
template: "Add a transaction to the snapshot with enrichment data",
|
|
@@ -306,7 +317,7 @@ export const documentModel = {
|
|
|
306
317
|
examples: [],
|
|
307
318
|
id: "recalculate-flow-types",
|
|
308
319
|
name: "RECALCULATE_FLOW_TYPES",
|
|
309
|
-
reducer: '
|
|
320
|
+
reducer: "// Known swap protocol addresses (lowercase)\nconst SWAP_ADDRESSES = new Set([\n '0x9008d19f58aabd9ed0d60971565aa8510560ab41', // CoW Protocol Settlement\n '0x7a250d5630b4cf539739df2c5dacb4c659f2488d', // Uniswap V2 Router\n '0xe592427a0aece92de3edee1f18e0157c05861564', // Uniswap V3 Router\n '0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45', // Uniswap V3 Router 2\n '0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad', // Uniswap Universal Router\n '0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f', // SushiSwap Router\n '0x1111111254eeb25477b68fb85ed929f73a960582', // 1inch Router v5\n '0x1111111254fb6c44bac0bed2854e76f90643097d', // 1inch Router v4\n '0xdef1c0ded9bec7f1a1670819833240f027b25eff', // 0x Exchange Proxy\n '0x881d40237659c251811cec9c364ef91dc08d300c', // Metamask Swap Router\n]);\n\nfunction isSwapAddress(address) {\n if (!address) return false;\n return SWAP_ADDRESSES.has(address.toLowerCase());\n}\n\nfor (const account of state.snapshotAccounts) {\n for (const tx of account.transactions) {\n // Check for swap transactions first\n if (isSwapAddress(tx.counterParty)) {\n tx.flowType = 'Swap';\n continue;\n }\n\n if (!tx.counterParty) continue;\n\n // Find counter-party account\n const counterPartyAccount = state.snapshotAccounts.find(\n (acc) => acc.accountAddress.toLowerCase() === tx.counterParty.toLowerCase(),\n );\n\n if (counterPartyAccount) {\n // Update counter-party link if missing\n if (!tx.counterPartyAccountId) {\n tx.counterPartyAccountId = counterPartyAccount.id;\n }\n\n // Recalculate flow type based on account types\n const fromType =\n tx.direction === 'OUTFLOW' ? account.type : counterPartyAccount.type;\n const toType =\n tx.direction === 'OUTFLOW' ? counterPartyAccount.type : account.type;\n\n // Flow categorization rules\n if (fromType === 'Source') {\n tx.flowType = 'TopUp';\n } else if (toType === 'Source') {\n tx.flowType = 'Return';\n } else if (toType === 'Destination') {\n tx.flowType = 'TopUp';\n } else if (fromType === 'External') {\n tx.flowType = 'External';\n } else if (fromType === 'Internal' && toType === 'Internal') {\n tx.flowType = 'Internal';\n } else if (fromType === 'Internal' && toType === 'External') {\n tx.flowType = 'External';\n } else {\n tx.flowType = 'External';\n }\n }\n }\n}",
|
|
310
321
|
schema: "input RecalculateFlowTypesInput {\n _: String\n}",
|
|
311
322
|
scope: "global",
|
|
312
323
|
template: "Recalculate all transaction flow types based on current account types",
|
|
@@ -317,12 +328,12 @@ export const documentModel = {
|
|
|
317
328
|
state: {
|
|
318
329
|
global: {
|
|
319
330
|
examples: [],
|
|
320
|
-
initialValue: '
|
|
321
|
-
schema: "type SnapshotReportState {\n
|
|
331
|
+
initialValue: '{"ownerIds": [], "accountsDocumentId": null, "startDate": null, "endDate": null, "reportName": null, "reportPeriodStart": null, "reportPeriodEnd": null, "snapshotAccounts": []}',
|
|
332
|
+
schema: "type SnapshotReportState {\n ownerIds: [PHID!]!\n accountsDocumentId: PHID\n startDate: DateTime\n endDate: DateTime\n reportName: String\n reportPeriodStart: DateTime\n reportPeriodEnd: DateTime\n snapshotAccounts: [SnapshotAccount!]!\n}\n\ntype SnapshotAccount {\n id: OID!\n accountId: OID!\n accountAddress: String!\n accountName: String!\n type: AccountType!\n accountTransactionsId: PHID\n startingBalances: [TokenBalance!]!\n endingBalances: [TokenBalance!]!\n transactions: [SnapshotTransaction!]!\n}\n\ntype TokenBalance {\n id: OID!\n token: Currency!\n amount: Amount_Currency!\n}\n\ntype SnapshotTransaction {\n id: OID!\n transactionId: String!\n counterParty: EthereumAddress\n amount: Amount_Currency!\n datetime: DateTime!\n txHash: String!\n token: Currency!\n blockNumber: Int\n direction: TransactionDirection!\n flowType: TransactionFlowType\n counterPartyAccountId: OID\n}\n\nenum AccountType {\n Source\n Internal\n Destination\n External\n}\n\nenum AccountTypeInput {\n Source\n Internal\n Destination\n External\n}\n\nenum TransactionDirection {\n INFLOW\n OUTFLOW\n}\n\nenum TransactionDirectionInput {\n INFLOW\n OUTFLOW\n}\n\nenum TransactionFlowType {\n TopUp\n Return\n Internal\n External\n Swap\n}\n\nenum TransactionFlowTypeInput {\n TopUp\n Return\n Internal\n External\n Swap\n}",
|
|
322
333
|
},
|
|
323
334
|
local: {
|
|
324
335
|
examples: [],
|
|
325
|
-
initialValue:
|
|
336
|
+
initialValue: "",
|
|
326
337
|
schema: "",
|
|
327
338
|
},
|
|
328
339
|
},
|
|
@@ -6,264 +6,54 @@ export declare const SnapshotReportDocumentHeaderSchema: z.ZodObject<{
|
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
createdAtUtcIso: z.ZodString;
|
|
8
8
|
lastModifiedAtUtcIso: z.ZodString;
|
|
9
|
-
} & {
|
|
10
9
|
documentType: z.ZodLiteral<"powerhouse/snapshot-report">;
|
|
11
|
-
},
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
documentType: "powerhouse/snapshot-report";
|
|
15
|
-
createdAtUtcIso: string;
|
|
16
|
-
lastModifiedAtUtcIso: string;
|
|
17
|
-
}, {
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
documentType: "powerhouse/snapshot-report";
|
|
21
|
-
createdAtUtcIso: string;
|
|
22
|
-
lastModifiedAtUtcIso: string;
|
|
23
|
-
}>;
|
|
10
|
+
}, z.core.$strip>;
|
|
24
11
|
/** Schema for validating the state object of a SnapshotReport document */
|
|
25
|
-
export declare const SnapshotReportPHStateSchema: z.ZodObject<{
|
|
12
|
+
export declare const SnapshotReportPHStateSchema: z.ZodObject<{
|
|
26
13
|
global: z.ZodObject<Required<{
|
|
27
|
-
accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>,
|
|
28
|
-
endDate: z.ZodType<import("./types.js").Maybe<string>,
|
|
29
|
-
|
|
30
|
-
reportName: z.ZodType<import("./types.js").Maybe<string>,
|
|
31
|
-
reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>,
|
|
32
|
-
reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>,
|
|
33
|
-
snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[],
|
|
34
|
-
startDate: z.ZodType<import("./types.js").Maybe<string>,
|
|
35
|
-
}>, z.
|
|
36
|
-
|
|
37
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
38
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
39
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
40
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
41
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
42
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
43
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
44
|
-
}, {
|
|
45
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
46
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
47
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
48
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
49
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
50
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
51
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
52
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
53
|
-
}>;
|
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
global: {
|
|
56
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
57
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
58
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
59
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
60
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
61
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
62
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
63
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
64
|
-
};
|
|
65
|
-
}, {
|
|
66
|
-
global: {
|
|
67
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
68
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
69
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
70
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
71
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
72
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
73
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
74
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
75
|
-
};
|
|
76
|
-
}>;
|
|
14
|
+
accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
15
|
+
endDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
16
|
+
ownerIds: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
17
|
+
reportName: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
18
|
+
reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
19
|
+
reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
20
|
+
snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[], unknown, z.core.$ZodTypeInternals<import("./types.js").SnapshotAccount[], unknown>>;
|
|
21
|
+
startDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
22
|
+
}>, z.core.$strip>;
|
|
23
|
+
}, z.core.$strip>;
|
|
77
24
|
export declare const SnapshotReportDocumentSchema: z.ZodObject<{
|
|
78
25
|
header: z.ZodObject<{
|
|
79
26
|
id: z.ZodString;
|
|
80
27
|
name: z.ZodString;
|
|
81
28
|
createdAtUtcIso: z.ZodString;
|
|
82
29
|
lastModifiedAtUtcIso: z.ZodString;
|
|
83
|
-
} & {
|
|
84
30
|
documentType: z.ZodLiteral<"powerhouse/snapshot-report">;
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
name: string;
|
|
88
|
-
documentType: "powerhouse/snapshot-report";
|
|
89
|
-
createdAtUtcIso: string;
|
|
90
|
-
lastModifiedAtUtcIso: string;
|
|
91
|
-
}, {
|
|
92
|
-
id: string;
|
|
93
|
-
name: string;
|
|
94
|
-
documentType: "powerhouse/snapshot-report";
|
|
95
|
-
createdAtUtcIso: string;
|
|
96
|
-
lastModifiedAtUtcIso: string;
|
|
97
|
-
}>;
|
|
98
|
-
state: z.ZodObject<{} & {
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
state: z.ZodObject<{
|
|
99
33
|
global: z.ZodObject<Required<{
|
|
100
|
-
accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>,
|
|
101
|
-
endDate: z.ZodType<import("./types.js").Maybe<string>,
|
|
102
|
-
|
|
103
|
-
reportName: z.ZodType<import("./types.js").Maybe<string>,
|
|
104
|
-
reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>,
|
|
105
|
-
reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>,
|
|
106
|
-
snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[],
|
|
107
|
-
startDate: z.ZodType<import("./types.js").Maybe<string>,
|
|
108
|
-
}>, z.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
112
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
113
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
114
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
115
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
116
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
117
|
-
}, {
|
|
118
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
119
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
120
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
121
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
122
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
123
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
124
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
125
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
126
|
-
}>;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
global: {
|
|
129
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
130
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
131
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
132
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
133
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
134
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
135
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
136
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
137
|
-
};
|
|
138
|
-
}, {
|
|
139
|
-
global: {
|
|
140
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
141
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
142
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
143
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
144
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
145
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
146
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
147
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
148
|
-
};
|
|
149
|
-
}>;
|
|
150
|
-
initialState: z.ZodObject<{} & {
|
|
34
|
+
accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
35
|
+
endDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
36
|
+
ownerIds: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
37
|
+
reportName: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
38
|
+
reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
39
|
+
reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
40
|
+
snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[], unknown, z.core.$ZodTypeInternals<import("./types.js").SnapshotAccount[], unknown>>;
|
|
41
|
+
startDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
42
|
+
}>, z.core.$strip>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
initialState: z.ZodObject<{
|
|
151
45
|
global: z.ZodObject<Required<{
|
|
152
|
-
accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>,
|
|
153
|
-
endDate: z.ZodType<import("./types.js").Maybe<string>,
|
|
154
|
-
|
|
155
|
-
reportName: z.ZodType<import("./types.js").Maybe<string>,
|
|
156
|
-
reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>,
|
|
157
|
-
reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>,
|
|
158
|
-
snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[],
|
|
159
|
-
startDate: z.ZodType<import("./types.js").Maybe<string>,
|
|
160
|
-
}>, z.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
164
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
165
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
166
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
167
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
168
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
169
|
-
}, {
|
|
170
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
171
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
172
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
173
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
174
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
175
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
176
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
177
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
178
|
-
}>;
|
|
179
|
-
}, "strip", z.ZodTypeAny, {
|
|
180
|
-
global: {
|
|
181
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
182
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
183
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
184
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
185
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
186
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
187
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
188
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
189
|
-
};
|
|
190
|
-
}, {
|
|
191
|
-
global: {
|
|
192
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
193
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
194
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
195
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
196
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
197
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
198
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
199
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
200
|
-
};
|
|
201
|
-
}>;
|
|
202
|
-
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
header: {
|
|
204
|
-
id: string;
|
|
205
|
-
name: string;
|
|
206
|
-
documentType: "powerhouse/snapshot-report";
|
|
207
|
-
createdAtUtcIso: string;
|
|
208
|
-
lastModifiedAtUtcIso: string;
|
|
209
|
-
};
|
|
210
|
-
state: {
|
|
211
|
-
global: {
|
|
212
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
213
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
214
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
215
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
216
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
217
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
218
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
219
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
|
-
initialState: {
|
|
223
|
-
global: {
|
|
224
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
225
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
226
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
227
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
228
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
229
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
230
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
231
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
}, {
|
|
235
|
-
header: {
|
|
236
|
-
id: string;
|
|
237
|
-
name: string;
|
|
238
|
-
documentType: "powerhouse/snapshot-report";
|
|
239
|
-
createdAtUtcIso: string;
|
|
240
|
-
lastModifiedAtUtcIso: string;
|
|
241
|
-
};
|
|
242
|
-
state: {
|
|
243
|
-
global: {
|
|
244
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
245
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
246
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
247
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
248
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
249
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
250
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
251
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
initialState: {
|
|
255
|
-
global: {
|
|
256
|
-
ownerId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
257
|
-
accountsDocumentId: import("./types.js").Maybe<import("./types.js").Scalars["PHID"]["output"]>;
|
|
258
|
-
endDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
259
|
-
startDate: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
260
|
-
reportName: import("./types.js").Maybe<import("./types.js").Scalars["String"]["output"]>;
|
|
261
|
-
reportPeriodEnd: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
262
|
-
reportPeriodStart: import("./types.js").Maybe<import("./types.js").Scalars["DateTime"]["output"]>;
|
|
263
|
-
snapshotAccounts: Array<import("./types.js").SnapshotAccount>;
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
}>;
|
|
46
|
+
accountsDocumentId: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
47
|
+
endDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
48
|
+
ownerIds: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
49
|
+
reportName: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
50
|
+
reportPeriodEnd: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
51
|
+
reportPeriodStart: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
52
|
+
snapshotAccounts: z.ZodType<import("./types.js").SnapshotAccount[], unknown, z.core.$ZodTypeInternals<import("./types.js").SnapshotAccount[], unknown>>;
|
|
53
|
+
startDate: z.ZodType<import("./types.js").Maybe<string>, unknown, z.core.$ZodTypeInternals<import("./types.js").Maybe<string>, unknown>>;
|
|
54
|
+
}>, z.core.$strip>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
}, z.core.$strip>;
|
|
267
57
|
/** Simple helper function to check if a state object is a SnapshotReport document state object */
|
|
268
58
|
export declare function isSnapshotReportState(state: unknown): state is SnapshotReportPHState;
|
|
269
59
|
/** Simple helper function to assert that a document state object is a SnapshotReport document state object */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-schema.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/document-schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,kCAAkC
|
|
1
|
+
{"version":3,"file":"document-schema.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/document-schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,kCAAkC;;;;;;iBAG3C,CAAC;AAEL,0EAA0E;AAC1E,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAEtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIvC,CAAC;AAEH,kGAAkG;AAClG,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,qBAAqB,CAEhC;AAED,8GAA8G;AAC9G,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,KAAK,IAAI,qBAAqB,CAExC;AAED,iFAAiF;AACjF,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,OAAO,GAChB,QAAQ,IAAI,sBAAsB,CAEpC;AAED,oFAAoF;AACpF,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,QAAQ,IAAI,sBAAsB,CAE5C"}
|
|
@@ -2,7 +2,7 @@ import { createBaseState, defaultBaseState } from "document-model/core";
|
|
|
2
2
|
import { createDocument } from "./utils.js";
|
|
3
3
|
export function defaultGlobalState() {
|
|
4
4
|
return {
|
|
5
|
-
|
|
5
|
+
ownerIds: [],
|
|
6
6
|
accountsDocumentId: null,
|
|
7
7
|
startDate: null,
|
|
8
8
|
endDate: null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;AAkQhH,eAAO,MAAM,OAAO,yDAAqD,CAAC"}
|