@powerhousedao/contributor-billing 0.1.31 → 0.1.32
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 +20 -0
- package/dist/document-models/account-transactions/actions.d.ts.map +1 -0
- package/dist/document-models/account-transactions/actions.js +9 -0
- package/dist/document-models/account-transactions/gen/account/actions.d.ts +8 -0
- package/dist/document-models/account-transactions/gen/account/actions.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/account/creators.d.ts +4 -0
- package/dist/document-models/account-transactions/gen/account/creators.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/account/creators.js +3 -0
- package/dist/document-models/account-transactions/gen/account/error.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/account/operations.d.ts +7 -0
- package/dist/document-models/account-transactions/gen/account/operations.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/actions.d.ts +8 -0
- package/dist/document-models/account-transactions/gen/actions.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/actions.js +3 -0
- package/dist/document-models/account-transactions/gen/budgets/actions.d.ts +16 -0
- package/dist/document-models/account-transactions/gen/budgets/actions.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/budgets/actions.js +1 -0
- package/dist/document-models/account-transactions/gen/budgets/creators.d.ts +6 -0
- package/dist/document-models/account-transactions/gen/budgets/creators.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/budgets/creators.js +5 -0
- package/dist/document-models/account-transactions/gen/budgets/error.d.ts +2 -0
- package/dist/document-models/account-transactions/gen/budgets/error.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/budgets/error.js +1 -0
- package/dist/document-models/account-transactions/gen/budgets/operations.d.ts +9 -0
- package/dist/document-models/account-transactions/gen/budgets/operations.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/budgets/operations.js +3 -0
- package/dist/document-models/account-transactions/gen/creators.d.ts +7 -0
- package/dist/document-models/account-transactions/gen/creators.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/creators.js +6 -0
- package/dist/document-models/account-transactions/gen/document-model.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/document-model.js +139 -0
- package/dist/document-models/account-transactions/gen/document-schema.d.ts +180 -0
- package/dist/document-models/account-transactions/gen/document-schema.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/document-schema.js +33 -0
- package/dist/document-models/account-transactions/gen/document-type.d.ts +2 -0
- package/dist/document-models/account-transactions/gen/document-type.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/document-type.js +1 -0
- package/dist/document-models/account-transactions/gen/index.d.ts +14 -0
- package/dist/document-models/account-transactions/gen/index.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/index.js +13 -0
- package/dist/document-models/account-transactions/gen/ph-factories.d.ts +23 -0
- package/dist/document-models/account-transactions/gen/ph-factories.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/ph-factories.js +59 -0
- package/dist/document-models/account-transactions/gen/reducer.d.ts +3 -0
- package/dist/document-models/account-transactions/gen/reducer.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/reducer.js +47 -0
- package/dist/document-models/account-transactions/gen/schema/index.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/schema/types.d.ts +230 -0
- package/dist/document-models/account-transactions/gen/schema/types.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/schema/zod.d.ts +25 -0
- package/dist/document-models/account-transactions/gen/schema/zod.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/schema/zod.js +144 -0
- package/dist/document-models/account-transactions/gen/transactions/actions.d.ts +20 -0
- package/dist/document-models/account-transactions/gen/transactions/actions.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/transactions/actions.js +1 -0
- package/dist/document-models/account-transactions/gen/transactions/creators.d.ts +7 -0
- package/dist/document-models/account-transactions/gen/transactions/creators.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/transactions/creators.js +6 -0
- package/dist/document-models/account-transactions/gen/transactions/error.d.ts +2 -0
- package/dist/document-models/account-transactions/gen/transactions/error.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/transactions/error.js +1 -0
- package/dist/document-models/account-transactions/gen/transactions/operations.d.ts +10 -0
- package/dist/document-models/account-transactions/gen/transactions/operations.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/transactions/operations.js +3 -0
- package/dist/document-models/account-transactions/gen/types.d.ts +12 -0
- package/dist/document-models/account-transactions/gen/types.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/utils.d.ts +15 -0
- package/dist/document-models/account-transactions/gen/utils.d.ts.map +1 -0
- package/dist/document-models/account-transactions/gen/utils.js +63 -0
- package/dist/document-models/account-transactions/hooks.d.ts +11 -0
- package/dist/document-models/account-transactions/hooks.d.ts.map +1 -0
- package/dist/document-models/account-transactions/hooks.js +26 -0
- package/dist/document-models/account-transactions/index.d.ts.map +1 -0
- package/dist/document-models/account-transactions/module.d.ts +5 -0
- package/dist/document-models/account-transactions/module.d.ts.map +1 -0
- package/dist/document-models/account-transactions/module.js +10 -0
- package/dist/document-models/account-transactions/src/index.d.ts.map +1 -0
- package/dist/document-models/account-transactions/src/reducers/account.d.ts +3 -0
- package/dist/document-models/account-transactions/src/reducers/account.d.ts.map +1 -0
- package/dist/document-models/account-transactions/src/reducers/account.js +13 -0
- package/dist/document-models/account-transactions/src/reducers/budgets.d.ts +3 -0
- package/dist/document-models/account-transactions/src/reducers/budgets.d.ts.map +1 -0
- package/dist/document-models/account-transactions/src/reducers/budgets.js +20 -0
- package/dist/document-models/account-transactions/src/reducers/transactions.d.ts +3 -0
- package/dist/document-models/account-transactions/src/reducers/transactions.d.ts.map +1 -0
- package/dist/document-models/account-transactions/src/reducers/transactions.js +69 -0
- package/dist/document-models/{integrations/src/tests/integrations.test.d.ts → account-transactions/src/tests/account.test.d.ts} +1 -1
- package/dist/document-models/account-transactions/src/tests/account.test.d.ts.map +1 -0
- package/dist/document-models/account-transactions/src/tests/account.test.js +19 -0
- package/dist/document-models/account-transactions/src/tests/budgets.test.d.ts +6 -0
- package/dist/document-models/account-transactions/src/tests/budgets.test.d.ts.map +1 -0
- package/dist/document-models/account-transactions/src/tests/budgets.test.js +39 -0
- package/dist/document-models/account-transactions/src/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/account-transactions/src/tests/document-model.test.js +104 -0
- package/dist/document-models/account-transactions/src/tests/transactions.test.d.ts +6 -0
- package/dist/document-models/account-transactions/src/tests/transactions.test.d.ts.map +1 -0
- package/dist/document-models/account-transactions/src/tests/transactions.test.js +49 -0
- package/dist/document-models/account-transactions/src/utils.d.ts.map +1 -0
- package/dist/document-models/account-transactions/utils.d.ts +14 -0
- package/dist/document-models/account-transactions/utils.d.ts.map +1 -0
- package/dist/document-models/account-transactions/utils.js +7 -0
- package/dist/document-models/{integrations → accounts}/actions.d.ts +5 -4
- package/dist/document-models/accounts/actions.d.ts.map +1 -0
- package/dist/document-models/accounts/actions.js +4 -0
- package/dist/document-models/accounts/gen/accounts/actions.d.ts +20 -0
- package/dist/document-models/accounts/gen/accounts/actions.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/accounts/actions.js +1 -0
- package/dist/document-models/accounts/gen/accounts/creators.d.ts +7 -0
- package/dist/document-models/accounts/gen/accounts/creators.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/accounts/creators.js +6 -0
- package/dist/document-models/accounts/gen/accounts/error.d.ts +2 -0
- package/dist/document-models/accounts/gen/accounts/error.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/accounts/error.js +1 -0
- package/dist/document-models/accounts/gen/accounts/operations.d.ts +10 -0
- package/dist/document-models/accounts/gen/accounts/operations.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/accounts/operations.js +3 -0
- package/dist/document-models/accounts/gen/actions.d.ts +4 -0
- package/dist/document-models/accounts/gen/actions.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/actions.js +1 -0
- package/dist/document-models/accounts/gen/creators.d.ts +3 -0
- package/dist/document-models/accounts/gen/creators.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/creators.js +2 -0
- package/dist/document-models/accounts/gen/document-model.d.ts +3 -0
- package/dist/document-models/accounts/gen/document-model.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/document-model.js +81 -0
- package/dist/document-models/accounts/gen/document-schema.d.ts +142 -0
- package/dist/document-models/accounts/gen/document-schema.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/document-schema.js +33 -0
- package/dist/document-models/accounts/gen/document-type.d.ts +2 -0
- package/dist/document-models/accounts/gen/document-type.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/document-type.js +1 -0
- package/dist/document-models/{integrations → accounts}/gen/index.d.ts +2 -2
- package/dist/document-models/accounts/gen/index.d.ts.map +1 -0
- package/dist/document-models/{integrations → accounts}/gen/index.js +2 -2
- package/dist/document-models/accounts/gen/ph-factories.d.ts +23 -0
- package/dist/document-models/accounts/gen/ph-factories.d.ts.map +1 -0
- package/dist/document-models/{integrations → accounts}/gen/ph-factories.js +3 -5
- package/dist/document-models/accounts/gen/reducer.d.ts +3 -0
- package/dist/document-models/accounts/gen/reducer.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/reducer.js +29 -0
- package/dist/document-models/accounts/gen/schema/index.d.ts +3 -0
- package/dist/document-models/accounts/gen/schema/index.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/schema/index.js +2 -0
- package/dist/document-models/{integrations → accounts}/gen/schema/types.d.ts +41 -53
- package/dist/document-models/accounts/gen/schema/types.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/schema/types.js +1 -0
- package/dist/document-models/accounts/gen/schema/zod.d.ts +20 -0
- package/dist/document-models/accounts/gen/schema/zod.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/schema/zod.js +80 -0
- package/dist/document-models/accounts/gen/types.d.ts +12 -0
- package/dist/document-models/accounts/gen/types.d.ts.map +1 -0
- package/dist/document-models/accounts/gen/types.js +1 -0
- package/dist/document-models/accounts/gen/utils.d.ts +15 -0
- package/dist/document-models/accounts/gen/utils.d.ts.map +1 -0
- package/dist/document-models/{integrations → accounts}/gen/utils.js +8 -10
- package/dist/document-models/accounts/hooks.d.ts +11 -0
- package/dist/document-models/accounts/hooks.d.ts.map +1 -0
- package/dist/document-models/accounts/hooks.js +26 -0
- package/dist/document-models/accounts/index.d.ts +10 -0
- package/dist/document-models/accounts/index.d.ts.map +1 -0
- package/dist/document-models/accounts/index.js +9 -0
- package/dist/document-models/accounts/module.d.ts +5 -0
- package/dist/document-models/accounts/module.d.ts.map +1 -0
- package/dist/document-models/{integrations → accounts}/module.js +2 -2
- package/dist/document-models/accounts/src/index.d.ts +2 -0
- package/dist/document-models/accounts/src/index.d.ts.map +1 -0
- package/dist/document-models/accounts/src/index.js +1 -0
- package/dist/document-models/accounts/src/reducers/accounts.d.ts +3 -0
- package/dist/document-models/accounts/src/reducers/accounts.d.ts.map +1 -0
- package/dist/document-models/accounts/src/reducers/accounts.js +52 -0
- package/dist/document-models/accounts/src/tests/accounts.test.d.ts +6 -0
- package/dist/document-models/accounts/src/tests/accounts.test.d.ts.map +1 -0
- package/dist/document-models/accounts/src/tests/accounts.test.js +19 -0
- package/dist/document-models/accounts/src/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/accounts/src/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/{integrations → accounts}/src/tests/document-model.test.js +26 -26
- package/dist/document-models/accounts/src/utils.d.ts +2 -0
- package/dist/document-models/accounts/src/utils.d.ts.map +1 -0
- package/dist/document-models/accounts/src/utils.js +1 -0
- package/dist/document-models/accounts/utils.d.ts +14 -0
- package/dist/document-models/accounts/utils.d.ts.map +1 -0
- package/dist/document-models/{integrations → accounts}/utils.js +1 -1
- package/dist/document-models/billing-statement/gen/document-schema.d.ts +32 -32
- package/dist/document-models/billing-statement/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/billing-statement/src/reducers/line-items.d.ts.map +1 -1
- package/dist/document-models/billing-statement/src/reducers/line-items.js +0 -1
- package/dist/document-models/document-models.d.ts.map +1 -1
- package/dist/document-models/document-models.js +11 -3
- package/dist/document-models/expense-report/actions.d.ts +2 -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 +25 -3
- package/dist/document-models/expense-report/gen/document-schema.d.ts +38 -0
- 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 +17 -15
- package/dist/document-models/expense-report/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/reducer.js +9 -1
- package/dist/document-models/expense-report/gen/schema/types.d.ts +14 -0
- 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 +5 -1
- package/dist/document-models/expense-report/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/schema/zod.js +22 -0
- package/dist/document-models/expense-report/gen/utils.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/utils.js +17 -15
- package/dist/document-models/expense-report/gen/wallet/actions.d.ts +10 -2
- package/dist/document-models/expense-report/gen/wallet/actions.d.ts.map +1 -1
- package/dist/document-models/expense-report/gen/wallet/creators.d.ts +4 -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 +3 -1
- package/dist/document-models/expense-report/gen/wallet/operations.d.ts +3 -1
- package/dist/document-models/expense-report/gen/wallet/operations.d.ts.map +1 -1
- package/dist/document-models/expense-report/src/reducers/wallet.d.ts.map +1 -1
- package/dist/document-models/expense-report/src/reducers/wallet.js +29 -7
- package/dist/document-models/index.d.ts +10 -2
- package/dist/document-models/index.d.ts.map +1 -1
- package/dist/document-models/index.js +10 -2
- package/dist/document-models/invoice/gen/document-schema.d.ts +96 -96
- package/dist/document-models/invoice/gen/document-schema.d.ts.map +1 -1
- package/dist/document-models/service-offering/actions.d.ts +42 -0
- package/dist/document-models/service-offering/actions.d.ts.map +1 -0
- package/dist/document-models/service-offering/actions.js +10 -0
- package/dist/document-models/service-offering/gen/actions.d.ts +10 -0
- package/dist/document-models/service-offering/gen/actions.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/actions.js +4 -0
- package/dist/document-models/service-offering/gen/creators.d.ts +9 -0
- package/dist/document-models/service-offering/gen/creators.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/creators.js +8 -0
- package/dist/document-models/service-offering/gen/document-model.d.ts +3 -0
- package/dist/document-models/service-offering/gen/document-model.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/document-model.js +620 -0
- package/dist/document-models/service-offering/gen/document-schema.d.ts +427 -0
- package/dist/document-models/service-offering/gen/document-schema.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/document-schema.js +33 -0
- package/dist/document-models/service-offering/gen/document-type.d.ts +2 -0
- package/dist/document-models/service-offering/gen/document-type.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/document-type.js +1 -0
- package/dist/document-models/service-offering/gen/index.d.ts +15 -0
- package/dist/document-models/service-offering/gen/index.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/index.js +14 -0
- package/dist/document-models/service-offering/gen/offering-management/actions.d.ts +52 -0
- package/dist/document-models/service-offering/gen/offering-management/actions.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/offering-management/actions.js +1 -0
- package/dist/document-models/service-offering/gen/offering-management/creators.d.ts +15 -0
- package/dist/document-models/service-offering/gen/offering-management/creators.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/offering-management/creators.js +14 -0
- package/dist/document-models/service-offering/gen/offering-management/error.d.ts +35 -0
- package/dist/document-models/service-offering/gen/offering-management/error.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/offering-management/error.js +38 -0
- package/dist/document-models/service-offering/gen/offering-management/operations.d.ts +18 -0
- package/dist/document-models/service-offering/gen/offering-management/operations.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/offering-management/operations.js +3 -0
- package/dist/document-models/service-offering/gen/option-group-management/actions.d.ts +16 -0
- package/dist/document-models/service-offering/gen/option-group-management/actions.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/option-group-management/actions.js +1 -0
- package/dist/document-models/service-offering/gen/option-group-management/creators.d.ts +6 -0
- package/dist/document-models/service-offering/gen/option-group-management/creators.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/option-group-management/creators.js +5 -0
- package/dist/document-models/service-offering/gen/option-group-management/error.d.ts +28 -0
- package/dist/document-models/service-offering/gen/option-group-management/error.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/option-group-management/error.js +29 -0
- package/dist/document-models/service-offering/gen/option-group-management/operations.d.ts +9 -0
- package/dist/document-models/service-offering/gen/option-group-management/operations.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/option-group-management/operations.js +3 -0
- package/dist/document-models/service-offering/gen/ph-factories.d.ts +23 -0
- package/dist/document-models/service-offering/gen/ph-factories.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/ph-factories.js +62 -0
- package/dist/document-models/service-offering/gen/reducer.d.ts +3 -0
- package/dist/document-models/service-offering/gen/reducer.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/reducer.js +136 -0
- package/dist/document-models/service-offering/gen/schema/index.d.ts +3 -0
- package/dist/document-models/service-offering/gen/schema/index.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/schema/index.js +2 -0
- package/dist/document-models/service-offering/gen/schema/types.d.ts +424 -0
- package/dist/document-models/service-offering/gen/schema/types.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/schema/types.js +1 -0
- package/dist/document-models/service-offering/gen/schema/zod.d.ts +54 -0
- package/dist/document-models/service-offering/gen/schema/zod.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/schema/zod.js +408 -0
- package/dist/document-models/service-offering/gen/service-management/actions.d.ts +24 -0
- package/dist/document-models/service-offering/gen/service-management/actions.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/service-management/actions.js +1 -0
- package/dist/document-models/service-offering/gen/service-management/creators.d.ts +8 -0
- package/dist/document-models/service-offering/gen/service-management/creators.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/service-management/creators.js +7 -0
- package/dist/document-models/service-offering/gen/service-management/error.d.ts +52 -0
- package/dist/document-models/service-offering/gen/service-management/error.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/service-management/error.js +61 -0
- package/dist/document-models/service-offering/gen/service-management/operations.d.ts +11 -0
- package/dist/document-models/service-offering/gen/service-management/operations.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/service-management/operations.js +3 -0
- package/dist/document-models/service-offering/gen/tier-management/actions.d.ts +44 -0
- package/dist/document-models/service-offering/gen/tier-management/actions.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/tier-management/actions.js +1 -0
- package/dist/document-models/service-offering/gen/tier-management/creators.d.ts +13 -0
- package/dist/document-models/service-offering/gen/tier-management/creators.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/tier-management/creators.js +12 -0
- package/dist/document-models/service-offering/gen/tier-management/error.d.ts +107 -0
- package/dist/document-models/service-offering/gen/tier-management/error.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/tier-management/error.js +134 -0
- package/dist/document-models/service-offering/gen/tier-management/operations.d.ts +16 -0
- package/dist/document-models/service-offering/gen/tier-management/operations.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/tier-management/operations.js +3 -0
- package/dist/document-models/service-offering/gen/types.d.ts +12 -0
- package/dist/document-models/service-offering/gen/types.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/types.js +1 -0
- package/dist/document-models/service-offering/gen/utils.d.ts +15 -0
- package/dist/document-models/service-offering/gen/utils.d.ts.map +1 -0
- package/dist/document-models/service-offering/gen/utils.js +66 -0
- package/dist/document-models/service-offering/hooks.d.ts +11 -0
- package/dist/document-models/service-offering/hooks.d.ts.map +1 -0
- package/dist/document-models/service-offering/hooks.js +26 -0
- package/dist/document-models/service-offering/index.d.ts +10 -0
- package/dist/document-models/service-offering/index.d.ts.map +1 -0
- package/dist/document-models/service-offering/index.js +9 -0
- package/dist/document-models/service-offering/module.d.ts +5 -0
- package/dist/document-models/service-offering/module.d.ts.map +1 -0
- package/dist/document-models/service-offering/module.js +10 -0
- package/dist/document-models/service-offering/src/index.d.ts +2 -0
- package/dist/document-models/service-offering/src/index.d.ts.map +1 -0
- package/dist/document-models/service-offering/src/index.js +1 -0
- package/dist/document-models/service-offering/src/reducers/offering-management.d.ts +3 -0
- package/dist/document-models/service-offering/src/reducers/offering-management.d.ts.map +1 -0
- package/dist/document-models/service-offering/src/reducers/offering-management.js +100 -0
- package/dist/document-models/service-offering/src/reducers/option-group-management.d.ts +3 -0
- package/dist/document-models/service-offering/src/reducers/option-group-management.d.ts.map +1 -0
- package/dist/document-models/service-offering/src/reducers/option-group-management.js +47 -0
- package/dist/document-models/service-offering/src/reducers/service-management.d.ts +3 -0
- package/dist/document-models/service-offering/src/reducers/service-management.d.ts.map +1 -0
- package/dist/document-models/service-offering/src/reducers/service-management.js +74 -0
- package/dist/document-models/service-offering/src/reducers/tier-management.d.ts +3 -0
- package/dist/document-models/service-offering/src/reducers/tier-management.d.ts.map +1 -0
- package/dist/document-models/service-offering/src/reducers/tier-management.js +159 -0
- package/dist/document-models/service-offering/src/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/service-offering/src/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/service-offering/src/tests/document-model.test.js +104 -0
- package/dist/document-models/service-offering/src/tests/offering-management.test.d.ts +6 -0
- package/dist/document-models/service-offering/src/tests/offering-management.test.d.ts.map +1 -0
- package/dist/document-models/service-offering/src/tests/offering-management.test.js +129 -0
- package/dist/document-models/service-offering/src/tests/option-group-management.test.d.ts +6 -0
- package/dist/document-models/service-offering/src/tests/option-group-management.test.d.ts.map +1 -0
- package/dist/document-models/service-offering/src/tests/option-group-management.test.js +39 -0
- package/dist/document-models/service-offering/src/tests/service-management.test.d.ts +6 -0
- package/dist/document-models/service-offering/src/tests/service-management.test.d.ts.map +1 -0
- package/dist/document-models/service-offering/src/tests/service-management.test.js +59 -0
- package/dist/document-models/service-offering/src/tests/tier-management.test.d.ts +2 -0
- package/dist/document-models/service-offering/src/tests/tier-management.test.d.ts.map +1 -0
- package/dist/document-models/service-offering/src/tests/tier-management.test.js +1 -0
- package/dist/document-models/service-offering/src/utils.d.ts +2 -0
- package/dist/document-models/service-offering/src/utils.d.ts.map +1 -0
- package/dist/document-models/service-offering/src/utils.js +1 -0
- package/dist/document-models/service-offering/utils.d.ts +14 -0
- package/dist/document-models/service-offering/utils.d.ts.map +1 -0
- package/dist/document-models/service-offering/utils.js +7 -0
- package/dist/document-models/service-subscriptions/actions.d.ts +25 -0
- package/dist/document-models/service-subscriptions/actions.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/actions.js +9 -0
- package/dist/document-models/service-subscriptions/gen/actions.d.ts +8 -0
- package/dist/document-models/service-subscriptions/gen/actions.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/actions.js +3 -0
- package/dist/document-models/service-subscriptions/gen/categories/actions.d.ts +16 -0
- package/dist/document-models/service-subscriptions/gen/categories/actions.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/categories/actions.js +1 -0
- package/dist/document-models/service-subscriptions/gen/categories/creators.d.ts +6 -0
- package/dist/document-models/service-subscriptions/gen/categories/creators.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/categories/creators.js +5 -0
- package/dist/document-models/service-subscriptions/gen/categories/error.d.ts +2 -0
- package/dist/document-models/service-subscriptions/gen/categories/error.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/categories/error.js +1 -0
- package/dist/document-models/service-subscriptions/gen/categories/operations.d.ts +9 -0
- package/dist/document-models/service-subscriptions/gen/categories/operations.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/categories/operations.js +3 -0
- package/dist/document-models/service-subscriptions/gen/creators.d.ts +7 -0
- package/dist/document-models/service-subscriptions/gen/creators.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/creators.js +6 -0
- package/dist/document-models/service-subscriptions/gen/document-model.d.ts +3 -0
- package/dist/document-models/service-subscriptions/gen/document-model.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/document-model.js +194 -0
- package/dist/document-models/service-subscriptions/gen/document-schema.d.ts +180 -0
- package/dist/document-models/service-subscriptions/gen/document-schema.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/document-schema.js +33 -0
- package/dist/document-models/service-subscriptions/gen/document-type.d.ts +2 -0
- package/dist/document-models/service-subscriptions/gen/document-type.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/document-type.js +1 -0
- package/dist/document-models/service-subscriptions/gen/index.d.ts +14 -0
- package/dist/document-models/service-subscriptions/gen/index.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/index.js +13 -0
- package/dist/document-models/service-subscriptions/gen/ph-factories.d.ts +23 -0
- package/dist/document-models/service-subscriptions/gen/ph-factories.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/ph-factories.js +45 -0
- package/dist/document-models/service-subscriptions/gen/reducer.d.ts +3 -0
- package/dist/document-models/service-subscriptions/gen/reducer.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/reducer.js +67 -0
- package/dist/document-models/service-subscriptions/gen/schema/index.d.ts +3 -0
- package/dist/document-models/service-subscriptions/gen/schema/index.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/schema/index.js +2 -0
- package/dist/document-models/service-subscriptions/gen/schema/types.d.ts +274 -0
- package/dist/document-models/service-subscriptions/gen/schema/types.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/schema/types.js +1 -0
- package/dist/document-models/service-subscriptions/gen/schema/zod.d.ts +31 -0
- package/dist/document-models/service-subscriptions/gen/schema/zod.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/schema/zod.js +199 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/actions.d.ts +32 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/actions.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/actions.js +1 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/creators.d.ts +10 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/creators.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/creators.js +9 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/error.d.ts +2 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/error.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/error.js +1 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/operations.d.ts +13 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/operations.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/subscriptions/operations.js +3 -0
- package/dist/document-models/service-subscriptions/gen/types.d.ts +12 -0
- package/dist/document-models/service-subscriptions/gen/types.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/types.js +1 -0
- package/dist/document-models/service-subscriptions/gen/utils.d.ts +15 -0
- package/dist/document-models/service-subscriptions/gen/utils.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/utils.js +53 -0
- package/dist/document-models/service-subscriptions/gen/vendors/actions.d.ts +16 -0
- package/dist/document-models/service-subscriptions/gen/vendors/actions.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/vendors/actions.js +1 -0
- package/dist/document-models/service-subscriptions/gen/vendors/creators.d.ts +6 -0
- package/dist/document-models/service-subscriptions/gen/vendors/creators.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/vendors/creators.js +5 -0
- package/dist/document-models/service-subscriptions/gen/vendors/error.d.ts +2 -0
- package/dist/document-models/service-subscriptions/gen/vendors/error.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/vendors/error.js +1 -0
- package/dist/document-models/service-subscriptions/gen/vendors/operations.d.ts +9 -0
- package/dist/document-models/service-subscriptions/gen/vendors/operations.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/gen/vendors/operations.js +3 -0
- package/dist/document-models/service-subscriptions/hooks.d.ts +11 -0
- package/dist/document-models/service-subscriptions/hooks.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/hooks.js +26 -0
- package/dist/document-models/service-subscriptions/index.d.ts +10 -0
- package/dist/document-models/service-subscriptions/index.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/index.js +9 -0
- package/dist/document-models/service-subscriptions/module.d.ts +5 -0
- package/dist/document-models/service-subscriptions/module.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/module.js +10 -0
- package/dist/document-models/service-subscriptions/src/index.d.ts +2 -0
- package/dist/document-models/service-subscriptions/src/index.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/src/index.js +1 -0
- package/dist/document-models/service-subscriptions/src/reducers/categories.d.ts +3 -0
- package/dist/document-models/service-subscriptions/src/reducers/categories.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/src/reducers/categories.js +24 -0
- package/dist/document-models/service-subscriptions/src/reducers/subscriptions.d.ts +3 -0
- package/dist/document-models/service-subscriptions/src/reducers/subscriptions.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/src/reducers/subscriptions.js +114 -0
- package/dist/document-models/service-subscriptions/src/reducers/vendors.d.ts +3 -0
- package/dist/document-models/service-subscriptions/src/reducers/vendors.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/src/reducers/vendors.js +30 -0
- package/dist/document-models/service-subscriptions/src/tests/categories.test.d.ts +6 -0
- package/dist/document-models/service-subscriptions/src/tests/categories.test.d.ts.map +1 -0
- package/dist/document-models/{integrations/src/tests/integrations.test.js → service-subscriptions/src/tests/categories.test.js} +17 -17
- package/dist/document-models/service-subscriptions/src/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/service-subscriptions/src/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/src/tests/document-model.test.js +104 -0
- package/dist/document-models/service-subscriptions/src/tests/subscriptions.test.d.ts +6 -0
- package/dist/document-models/service-subscriptions/src/tests/subscriptions.test.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/src/tests/subscriptions.test.js +79 -0
- package/dist/document-models/service-subscriptions/src/tests/vendors.test.d.ts +6 -0
- package/dist/document-models/service-subscriptions/src/tests/vendors.test.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/src/tests/vendors.test.js +39 -0
- package/dist/document-models/service-subscriptions/src/utils.d.ts +2 -0
- package/dist/document-models/service-subscriptions/src/utils.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/src/utils.js +1 -0
- package/dist/document-models/service-subscriptions/utils.d.ts +14 -0
- package/dist/document-models/service-subscriptions/utils.d.ts.map +1 -0
- package/dist/document-models/service-subscriptions/utils.js +7 -0
- package/dist/document-models/snapshot-report/actions.d.ts +29 -0
- package/dist/document-models/snapshot-report/actions.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/actions.js +10 -0
- package/dist/document-models/snapshot-report/gen/accounts/actions.d.ts +16 -0
- package/dist/document-models/snapshot-report/gen/accounts/actions.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/accounts/actions.js +1 -0
- package/dist/document-models/snapshot-report/gen/accounts/creators.d.ts +6 -0
- package/dist/document-models/snapshot-report/gen/accounts/creators.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/accounts/creators.js +5 -0
- package/dist/document-models/snapshot-report/gen/accounts/error.d.ts +28 -0
- package/dist/document-models/snapshot-report/gen/accounts/error.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/accounts/error.js +29 -0
- package/dist/document-models/snapshot-report/gen/accounts/operations.d.ts +9 -0
- package/dist/document-models/snapshot-report/gen/accounts/operations.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/accounts/operations.js +3 -0
- package/dist/document-models/snapshot-report/gen/actions.d.ts +10 -0
- package/dist/document-models/snapshot-report/gen/actions.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/actions.js +4 -0
- package/dist/document-models/snapshot-report/gen/balances/actions.d.ts +20 -0
- package/dist/document-models/snapshot-report/gen/balances/actions.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/balances/actions.js +1 -0
- package/dist/document-models/snapshot-report/gen/balances/creators.d.ts +7 -0
- package/dist/document-models/snapshot-report/gen/balances/creators.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/balances/creators.js +6 -0
- package/dist/document-models/snapshot-report/gen/balances/error.d.ts +35 -0
- package/dist/document-models/snapshot-report/gen/balances/error.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/balances/error.js +38 -0
- package/dist/document-models/snapshot-report/gen/balances/operations.d.ts +10 -0
- package/dist/document-models/snapshot-report/gen/balances/operations.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/balances/operations.js +3 -0
- package/dist/document-models/snapshot-report/gen/configuration/actions.d.ts +28 -0
- package/dist/document-models/snapshot-report/gen/configuration/actions.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/configuration/actions.js +1 -0
- package/dist/document-models/snapshot-report/gen/configuration/creators.d.ts +9 -0
- package/dist/document-models/snapshot-report/gen/configuration/creators.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/configuration/creators.js +8 -0
- package/dist/document-models/snapshot-report/gen/configuration/error.d.ts +2 -0
- package/dist/document-models/snapshot-report/gen/configuration/error.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/configuration/error.js +1 -0
- package/dist/document-models/snapshot-report/gen/configuration/operations.d.ts +12 -0
- package/dist/document-models/snapshot-report/gen/configuration/operations.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/configuration/operations.js +3 -0
- package/dist/document-models/snapshot-report/gen/creators.d.ts +9 -0
- package/dist/document-models/snapshot-report/gen/creators.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/creators.js +8 -0
- package/dist/document-models/snapshot-report/gen/document-model.d.ts +3 -0
- package/dist/document-models/snapshot-report/gen/document-model.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/document-model.js +332 -0
- package/dist/document-models/snapshot-report/gen/document-schema.d.ts +275 -0
- package/dist/document-models/snapshot-report/gen/document-schema.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/document-schema.js +33 -0
- package/dist/document-models/snapshot-report/gen/document-type.d.ts +2 -0
- package/dist/document-models/snapshot-report/gen/document-type.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/document-type.js +1 -0
- package/dist/document-models/snapshot-report/gen/index.d.ts +15 -0
- package/dist/document-models/snapshot-report/gen/index.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/index.js +14 -0
- package/dist/document-models/snapshot-report/gen/ph-factories.d.ts +23 -0
- package/dist/document-models/snapshot-report/gen/ph-factories.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/ph-factories.js +54 -0
- package/dist/document-models/snapshot-report/gen/reducer.d.ts +3 -0
- package/dist/document-models/snapshot-report/gen/reducer.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/reducer.js +84 -0
- package/dist/document-models/snapshot-report/gen/schema/index.d.ts +3 -0
- package/dist/document-models/snapshot-report/gen/schema/index.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/schema/index.js +2 -0
- package/dist/document-models/snapshot-report/gen/schema/types.d.ts +264 -0
- package/dist/document-models/snapshot-report/gen/schema/types.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/schema/types.js +1 -0
- package/dist/document-models/snapshot-report/gen/schema/zod.d.ts +37 -0
- package/dist/document-models/snapshot-report/gen/schema/zod.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/schema/zod.js +208 -0
- package/dist/document-models/snapshot-report/gen/transactions/actions.d.ts +20 -0
- package/dist/document-models/snapshot-report/gen/transactions/actions.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/transactions/actions.js +1 -0
- package/dist/document-models/snapshot-report/gen/transactions/creators.d.ts +7 -0
- package/dist/document-models/snapshot-report/gen/transactions/creators.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/transactions/creators.js +6 -0
- package/dist/document-models/snapshot-report/gen/transactions/error.d.ts +33 -0
- package/dist/document-models/snapshot-report/gen/transactions/error.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/transactions/error.js +36 -0
- package/dist/document-models/snapshot-report/gen/transactions/operations.d.ts +10 -0
- package/dist/document-models/snapshot-report/gen/transactions/operations.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/transactions/operations.js +3 -0
- package/dist/document-models/snapshot-report/gen/types.d.ts +12 -0
- package/dist/document-models/snapshot-report/gen/types.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/types.js +1 -0
- package/dist/document-models/snapshot-report/gen/utils.d.ts +15 -0
- package/dist/document-models/snapshot-report/gen/utils.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/gen/utils.js +58 -0
- package/dist/document-models/snapshot-report/hooks.d.ts +11 -0
- package/dist/document-models/snapshot-report/hooks.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/hooks.js +26 -0
- package/dist/document-models/snapshot-report/index.d.ts +10 -0
- package/dist/document-models/snapshot-report/index.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/index.js +9 -0
- package/dist/document-models/snapshot-report/module.d.ts +5 -0
- package/dist/document-models/snapshot-report/module.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/module.js +10 -0
- package/dist/document-models/snapshot-report/src/index.d.ts +2 -0
- package/dist/document-models/snapshot-report/src/index.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/src/index.js +1 -0
- package/dist/document-models/snapshot-report/src/reducers/accounts.d.ts +3 -0
- package/dist/document-models/snapshot-report/src/reducers/accounts.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/src/reducers/accounts.js +34 -0
- package/dist/document-models/snapshot-report/src/reducers/balances.d.ts +3 -0
- package/dist/document-models/snapshot-report/src/reducers/balances.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/src/reducers/balances.js +60 -0
- package/dist/document-models/snapshot-report/src/reducers/configuration.d.ts +3 -0
- package/dist/document-models/snapshot-report/src/reducers/configuration.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/src/reducers/configuration.js +35 -0
- package/dist/document-models/snapshot-report/src/reducers/transactions.d.ts +3 -0
- package/dist/document-models/snapshot-report/src/reducers/transactions.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/src/reducers/transactions.js +99 -0
- package/dist/document-models/snapshot-report/src/tests/accounts.test.d.ts +6 -0
- package/dist/document-models/snapshot-report/src/tests/accounts.test.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/src/tests/accounts.test.js +39 -0
- package/dist/document-models/snapshot-report/src/tests/balances.test.d.ts +6 -0
- package/dist/document-models/snapshot-report/src/tests/balances.test.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/src/tests/balances.test.js +49 -0
- package/dist/document-models/snapshot-report/src/tests/configuration.test.d.ts +6 -0
- package/dist/document-models/snapshot-report/src/tests/configuration.test.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/src/tests/configuration.test.js +39 -0
- package/dist/document-models/snapshot-report/src/tests/document-model.test.d.ts +10 -0
- package/dist/document-models/snapshot-report/src/tests/document-model.test.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/src/tests/document-model.test.js +104 -0
- package/dist/document-models/snapshot-report/src/tests/transactions.test.d.ts +6 -0
- package/dist/document-models/snapshot-report/src/tests/transactions.test.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/src/tests/transactions.test.js +39 -0
- package/dist/document-models/snapshot-report/src/utils.d.ts +2 -0
- package/dist/document-models/snapshot-report/src/utils.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/src/utils.js +1 -0
- package/dist/document-models/snapshot-report/utils.d.ts +14 -0
- package/dist/document-models/snapshot-report/utils.d.ts.map +1 -0
- package/dist/document-models/snapshot-report/utils.js +7 -0
- package/dist/editors/account-transactions-editor/alchemyIntegration.d.ts +55 -0
- package/dist/editors/account-transactions-editor/alchemyIntegration.d.ts.map +1 -0
- package/dist/editors/account-transactions-editor/alchemyIntegration.js +136 -0
- package/dist/editors/account-transactions-editor/components/AccountSection.d.ts +9 -0
- package/dist/editors/account-transactions-editor/components/AccountSection.d.ts.map +1 -0
- package/dist/editors/account-transactions-editor/components/AccountSection.js +18 -0
- package/dist/editors/account-transactions-editor/components/DocumentHeader.d.ts +8 -0
- package/dist/editors/account-transactions-editor/components/DocumentHeader.d.ts.map +1 -0
- package/dist/editors/account-transactions-editor/components/DocumentHeader.js +13 -0
- package/dist/editors/account-transactions-editor/components/TransactionForm.d.ts +10 -0
- package/dist/editors/account-transactions-editor/components/TransactionForm.d.ts.map +1 -0
- package/dist/editors/account-transactions-editor/components/TransactionForm.js +70 -0
- package/dist/editors/account-transactions-editor/components/TransactionsTable.d.ts +9 -0
- package/dist/editors/account-transactions-editor/components/TransactionsTable.d.ts.map +1 -0
- package/dist/editors/account-transactions-editor/components/TransactionsTable.js +56 -0
- package/dist/editors/account-transactions-editor/editor.d.ts +3 -0
- package/dist/editors/account-transactions-editor/editor.d.ts.map +1 -0
- package/dist/editors/account-transactions-editor/editor.js +212 -0
- package/dist/editors/account-transactions-editor/index.d.ts +3 -0
- package/dist/editors/account-transactions-editor/index.d.ts.map +1 -0
- package/dist/editors/account-transactions-editor/index.js +9 -0
- package/dist/editors/account-transactions-editor/module.d.ts +3 -0
- package/dist/editors/account-transactions-editor/module.d.ts.map +1 -0
- package/dist/editors/account-transactions-editor/module.js +9 -0
- package/dist/editors/accounts-editor/components/AccountCard.d.ts +12 -0
- package/dist/editors/accounts-editor/components/AccountCard.d.ts.map +1 -0
- package/dist/editors/accounts-editor/components/AccountCard.js +23 -0
- package/dist/editors/accounts-editor/components/AccountForm.d.ts +19 -0
- package/dist/editors/accounts-editor/components/AccountForm.d.ts.map +1 -0
- package/dist/editors/accounts-editor/components/AccountForm.js +66 -0
- package/dist/editors/accounts-editor/components/AccountsFilter.d.ts +8 -0
- package/dist/editors/accounts-editor/components/AccountsFilter.d.ts.map +1 -0
- package/dist/editors/accounts-editor/components/AccountsFilter.js +34 -0
- package/dist/editors/accounts-editor/components/AccountsList.d.ts +12 -0
- package/dist/editors/accounts-editor/components/AccountsList.d.ts.map +1 -0
- package/dist/editors/accounts-editor/components/AccountsList.js +8 -0
- package/dist/editors/accounts-editor/components/DocumentHeader.d.ts +15 -0
- package/dist/editors/accounts-editor/components/DocumentHeader.d.ts.map +1 -0
- package/dist/editors/accounts-editor/components/DocumentHeader.js +23 -0
- package/dist/editors/accounts-editor/components/KYCStatusBadge.d.ts +7 -0
- package/dist/editors/accounts-editor/components/KYCStatusBadge.d.ts.map +1 -0
- package/dist/editors/accounts-editor/components/KYCStatusBadge.js +17 -0
- package/dist/editors/accounts-editor/editor.d.ts +3 -0
- package/dist/editors/accounts-editor/editor.d.ts.map +1 -0
- package/dist/editors/accounts-editor/editor.js +159 -0
- package/dist/editors/accounts-editor/index.d.ts +3 -0
- package/dist/editors/accounts-editor/index.d.ts.map +1 -0
- package/dist/editors/accounts-editor/index.js +9 -0
- package/dist/editors/accounts-editor/module.d.ts +3 -0
- package/dist/editors/accounts-editor/module.d.ts.map +1 -0
- package/dist/editors/accounts-editor/module.js +9 -0
- package/dist/editors/accounts-editor/services/accountTransactionsService.d.ts +29 -0
- package/dist/editors/accounts-editor/services/accountTransactionsService.d.ts.map +1 -0
- package/dist/editors/accounts-editor/services/accountTransactionsService.js +252 -0
- package/dist/editors/builder-team-admin/components/CreateDocument.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/DriveContents.d.ts +6 -0
- package/dist/editors/builder-team-admin/components/DriveContents.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/DriveContents.js +36 -0
- package/dist/editors/builder-team-admin/components/DriveExplorer.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/DriveExplorer.js +49 -0
- package/dist/editors/builder-team-admin/components/EmptyState.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/ExpenseReportsStats.d.ts +11 -0
- package/dist/editors/builder-team-admin/components/ExpenseReportsStats.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/ExpenseReportsStats.js +137 -0
- package/dist/editors/builder-team-admin/components/Files.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/FolderTree.d.ts +14 -0
- package/dist/editors/builder-team-admin/components/FolderTree.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/FolderTree.js +307 -0
- package/dist/editors/builder-team-admin/components/Folders.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/NavigationBreadcrumbs.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/expense-reports.d.ts +2 -0
- package/dist/editors/builder-team-admin/components/expense-reports.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/expense-reports.js +118 -0
- package/dist/editors/builder-team-admin/components/overview/ProfileHeader.d.ts +10 -0
- package/dist/editors/builder-team-admin/components/overview/ProfileHeader.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/overview/ProfileHeader.js +24 -0
- package/dist/editors/builder-team-admin/components/overview/SubscriptionsStats.d.ts +15 -0
- package/dist/editors/builder-team-admin/components/overview/SubscriptionsStats.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/overview/SubscriptionsStats.js +61 -0
- package/dist/editors/builder-team-admin/components/overview/TeamMembersOverview.d.ts +10 -0
- package/dist/editors/builder-team-admin/components/overview/TeamMembersOverview.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/overview/TeamMembersOverview.js +121 -0
- package/dist/editors/builder-team-admin/components/snapshot-reports.d.ts +2 -0
- package/dist/editors/builder-team-admin/components/snapshot-reports.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/snapshot-reports.js +116 -0
- package/dist/editors/builder-team-admin/components/team-members.d.ts +2 -0
- package/dist/editors/builder-team-admin/components/team-members.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/components/team-members.js +309 -0
- package/dist/editors/{clean-new-editor → builder-team-admin}/config.d.ts +1 -1
- package/dist/editors/builder-team-admin/config.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/config.js +8 -0
- package/dist/editors/{clean-new-editor → builder-team-admin}/editor.d.ts +1 -1
- package/dist/editors/builder-team-admin/editor.d.ts.map +1 -0
- package/dist/editors/{clean-new-editor → builder-team-admin}/editor.js +1 -1
- package/dist/editors/builder-team-admin/hooks/useExpenseReportAutoPlacement.d.ts +25 -0
- package/dist/editors/builder-team-admin/hooks/useExpenseReportAutoPlacement.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/hooks/useExpenseReportAutoPlacement.js +180 -0
- package/dist/editors/builder-team-admin/hooks/useRemoteBuilderProfiles.d.ts +20 -0
- package/dist/editors/builder-team-admin/hooks/useRemoteBuilderProfiles.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/hooks/useRemoteBuilderProfiles.js +57 -0
- package/dist/editors/builder-team-admin/hooks/useSnapshotReportAutoPlacement.d.ts +25 -0
- package/dist/editors/builder-team-admin/hooks/useSnapshotReportAutoPlacement.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/hooks/useSnapshotReportAutoPlacement.js +180 -0
- package/dist/editors/builder-team-admin/module.d.ts +3 -0
- package/dist/editors/builder-team-admin/module.d.ts.map +1 -0
- package/dist/editors/{clean-new-editor → builder-team-admin}/module.js +3 -3
- package/dist/editors/builder-team-admin/utils/graphql-client.d.ts +41 -0
- package/dist/editors/builder-team-admin/utils/graphql-client.d.ts.map +1 -0
- package/dist/editors/builder-team-admin/utils/graphql-client.js +189 -0
- package/dist/editors/contributor-billing/components/DriveContents.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/DriveContents.js +5 -1
- package/dist/editors/contributor-billing/components/DriveExplorer.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/DriveExplorer.js +7 -7
- package/dist/editors/contributor-billing/components/FolderTree.d.ts +12 -3
- package/dist/editors/contributor-billing/components/FolderTree.d.ts.map +1 -1
- package/dist/editors/contributor-billing/components/FolderTree.js +146 -56
- package/dist/editors/contributor-billing/components/InvoiceTable/ConfirmationModal.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/HeaderStats.d.ts.map +1 -0
- package/dist/{old-contributor-billing → editors/contributor-billing}/components/InvoiceTable/HeaderStats.js +10 -9
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/{InvoiceTable.js → InvoiceTable/InvoiceTable.js} +5 -5
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableContainer.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +1 -0
- package/dist/editors/contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts.map +1 -0
- package/dist/editors/contributor-billing/config.d.ts.map +1 -1
- package/dist/editors/contributor-billing/config.js +0 -1
- package/dist/editors/editors.d.ts.map +1 -1
- package/dist/editors/editors.js +13 -3
- package/dist/editors/expense-report/components/AddBillingStatementModal.d.ts.map +1 -1
- package/dist/editors/expense-report/components/AddReportToRemoteDrive.d.ts +13 -0
- package/dist/editors/expense-report/components/AddReportToRemoteDrive.d.ts.map +1 -0
- package/dist/editors/expense-report/components/AddReportToRemoteDrive.js +76 -0
- package/dist/editors/expense-report/components/AggregatedExpensesTable.d.ts.map +1 -1
- package/dist/editors/expense-report/components/AggregatedExpensesTable.js +9 -7
- package/dist/editors/expense-report/components/ExpenseReportPDF.d.ts.map +1 -1
- package/dist/editors/expense-report/components/ExpenseReportTransactionsTable.d.ts +15 -0
- package/dist/editors/expense-report/components/ExpenseReportTransactionsTable.d.ts.map +1 -0
- package/dist/editors/expense-report/components/ExpenseReportTransactionsTable.js +64 -0
- package/dist/editors/expense-report/components/SetOwner.d.ts +8 -0
- package/dist/editors/expense-report/components/SetOwner.d.ts.map +1 -0
- package/dist/editors/expense-report/components/SetOwner.js +98 -0
- package/dist/editors/expense-report/components/WalletsTable.d.ts +3 -1
- package/dist/editors/expense-report/components/WalletsTable.d.ts.map +1 -1
- package/dist/editors/expense-report/components/WalletsTable.js +564 -89
- package/dist/editors/expense-report/editor.d.ts.map +1 -1
- package/dist/editors/expense-report/editor.js +120 -21
- package/dist/editors/expense-report/hooks/useSyncWallet.d.ts +2 -2
- package/dist/editors/expense-report/hooks/useSyncWallet.d.ts.map +1 -1
- package/dist/editors/expense-report/hooks/useSyncWallet.js +92 -17
- package/dist/editors/expense-report/hooks/useWalletSync.d.ts.map +1 -1
- package/dist/editors/expense-report/hooks/useWalletSync.js +2 -1
- package/dist/editors/expense-report/services/walletAccountService.d.ts +40 -0
- package/dist/editors/expense-report/services/walletAccountService.d.ts.map +1 -0
- package/dist/editors/expense-report/services/walletAccountService.js +403 -0
- package/dist/editors/hooks/useAccountTransactionsDocument.d.ts +4 -0
- package/dist/editors/hooks/useAccountTransactionsDocument.d.ts.map +1 -0
- package/dist/editors/hooks/useAccountTransactionsDocument.js +8 -0
- package/dist/editors/hooks/useAccountsDocument.d.ts +4 -0
- package/dist/editors/hooks/useAccountsDocument.d.ts.map +1 -0
- package/dist/editors/hooks/useAccountsDocument.js +8 -0
- package/dist/editors/hooks/useSnapshotReportDocument.d.ts +4 -0
- package/dist/editors/hooks/useSnapshotReportDocument.d.ts.map +1 -0
- package/dist/editors/hooks/useSnapshotReportDocument.js +8 -0
- package/dist/editors/index.d.ts +7 -2
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +7 -2
- package/dist/editors/invoice/editor.d.ts.map +1 -1
- package/dist/editors/invoice/editor.js +20 -34
- package/dist/editors/invoice/ingestPDF.js +1 -1
- package/dist/editors/invoice/invoiceToGnosis.js +3 -3
- package/dist/editors/invoice/lineItemTags/lineItemTags.d.ts.map +1 -1
- package/dist/editors/invoice/lineItemTags/lineItemTags.js +4 -25
- package/dist/editors/invoice/lineItems.d.ts +1 -1
- package/dist/editors/invoice/lineItems.d.ts.map +1 -1
- package/dist/editors/invoice/lineItems.js +31 -75
- package/dist/editors/invoice/module.d.ts +1 -1
- package/dist/editors/invoice/module.d.ts.map +1 -1
- package/dist/editors/invoice/module.js +1 -1
- package/dist/editors/invoice/requestFinance.js +2 -2
- package/dist/editors/invoice/uploadPdfChunked.js +2 -2
- package/dist/editors/service-offering-editor/components/EditName.d.ts +3 -0
- package/dist/editors/service-offering-editor/components/EditName.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/EditName.js +31 -0
- package/dist/editors/service-offering-editor/components/OfferingInfo.d.ts +9 -0
- package/dist/editors/service-offering-editor/components/OfferingInfo.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/OfferingInfo.js +62 -0
- package/dist/editors/service-offering-editor/components/ScopeAndFacets.d.ts +9 -0
- package/dist/editors/service-offering-editor/components/ScopeAndFacets.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/ScopeAndFacets.js +1077 -0
- package/dist/editors/service-offering-editor/components/ServiceCatalog.d.ts +16 -0
- package/dist/editors/service-offering-editor/components/ServiceCatalog.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/ServiceCatalog.js +1379 -0
- package/dist/editors/service-offering-editor/components/ServicesList.d.ts +9 -0
- package/dist/editors/service-offering-editor/components/ServicesList.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/ServicesList.js +63 -0
- package/dist/editors/service-offering-editor/components/TabNavigation.d.ts +9 -0
- package/dist/editors/service-offering-editor/components/TabNavigation.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/TabNavigation.js +243 -0
- package/dist/editors/service-offering-editor/components/TheMatrix.d.ts +10 -0
- package/dist/editors/service-offering-editor/components/TheMatrix.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/TheMatrix.js +1686 -0
- package/dist/editors/service-offering-editor/components/TierDefinition.d.ts +9 -0
- package/dist/editors/service-offering-editor/components/TierDefinition.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/TierDefinition.js +653 -0
- package/dist/editors/service-offering-editor/components/TiersList.d.ts +9 -0
- package/dist/editors/service-offering-editor/components/TiersList.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/components/TiersList.js +137 -0
- package/dist/editors/service-offering-editor/editor.d.ts +2 -0
- package/dist/editors/service-offering-editor/editor.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/editor.js +336 -0
- package/dist/editors/service-offering-editor/module.d.ts +4 -0
- package/dist/editors/service-offering-editor/module.d.ts.map +1 -0
- package/dist/editors/service-offering-editor/module.js +10 -0
- package/dist/editors/service-subscriptions-editor/components/AddCategoryModal.d.ts +7 -0
- package/dist/editors/service-subscriptions-editor/components/AddCategoryModal.d.ts.map +1 -0
- package/dist/editors/service-subscriptions-editor/components/AddCategoryModal.js +39 -0
- package/dist/editors/service-subscriptions-editor/components/AddSubscriptionModal.d.ts +10 -0
- package/dist/editors/service-subscriptions-editor/components/AddSubscriptionModal.d.ts.map +1 -0
- package/dist/editors/service-subscriptions-editor/components/AddSubscriptionModal.js +64 -0
- package/dist/editors/service-subscriptions-editor/components/AddVendorModal.d.ts +7 -0
- package/dist/editors/service-subscriptions-editor/components/AddVendorModal.d.ts.map +1 -0
- package/dist/editors/service-subscriptions-editor/components/AddVendorModal.js +43 -0
- package/dist/editors/service-subscriptions-editor/components/CategoriesList.d.ts +8 -0
- package/dist/editors/service-subscriptions-editor/components/CategoriesList.d.ts.map +1 -0
- package/dist/editors/service-subscriptions-editor/components/CategoriesList.js +23 -0
- package/dist/editors/service-subscriptions-editor/components/EditName.d.ts +3 -0
- package/dist/editors/service-subscriptions-editor/components/EditName.d.ts.map +1 -0
- package/dist/editors/service-subscriptions-editor/components/EditName.js +31 -0
- package/dist/editors/service-subscriptions-editor/components/StatsOverview.d.ts +8 -0
- package/dist/editors/service-subscriptions-editor/components/StatsOverview.d.ts.map +1 -0
- package/dist/editors/service-subscriptions-editor/components/StatsOverview.js +32 -0
- package/dist/editors/service-subscriptions-editor/components/SubscriptionsList.d.ts +10 -0
- package/dist/editors/service-subscriptions-editor/components/SubscriptionsList.d.ts.map +1 -0
- package/dist/editors/service-subscriptions-editor/components/SubscriptionsList.js +88 -0
- package/dist/editors/service-subscriptions-editor/components/VendorsList.d.ts +8 -0
- package/dist/editors/service-subscriptions-editor/components/VendorsList.d.ts.map +1 -0
- package/dist/editors/service-subscriptions-editor/components/VendorsList.js +23 -0
- package/dist/editors/service-subscriptions-editor/editor.d.ts +2 -0
- package/dist/editors/service-subscriptions-editor/editor.d.ts.map +1 -0
- package/dist/editors/service-subscriptions-editor/editor.js +60 -0
- package/dist/editors/{integrations → service-subscriptions-editor}/module.d.ts +1 -1
- package/dist/editors/service-subscriptions-editor/module.d.ts.map +1 -0
- package/dist/editors/service-subscriptions-editor/module.js +10 -0
- package/dist/editors/snapshot-report-editor/components/AddReportToRemoteDrive.d.ts +13 -0
- package/dist/editors/snapshot-report-editor/components/AddReportToRemoteDrive.d.ts.map +1 -0
- package/dist/editors/snapshot-report-editor/components/AddReportToRemoteDrive.js +76 -0
- package/dist/editors/snapshot-report-editor/components/SetOwner.d.ts +8 -0
- package/dist/editors/snapshot-report-editor/components/SetOwner.d.ts.map +1 -0
- package/dist/editors/snapshot-report-editor/components/SetOwner.js +98 -0
- package/dist/editors/snapshot-report-editor/editor.d.ts +2 -0
- package/dist/editors/snapshot-report-editor/editor.d.ts.map +1 -0
- package/dist/editors/snapshot-report-editor/editor.js +560 -0
- package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.d.ts +15 -0
- package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.d.ts.map +1 -0
- package/dist/editors/snapshot-report-editor/hooks/useSyncSnapshotAccount.js +327 -0
- package/dist/editors/snapshot-report-editor/module.d.ts +3 -0
- package/dist/editors/snapshot-report-editor/module.d.ts.map +1 -0
- package/dist/editors/snapshot-report-editor/module.js +9 -0
- package/dist/editors/snapshot-report-editor/utils/balanceCalculations.d.ts +26 -0
- package/dist/editors/snapshot-report-editor/utils/balanceCalculations.d.ts.map +1 -0
- package/dist/editors/snapshot-report-editor/utils/balanceCalculations.js +103 -0
- package/dist/editors/snapshot-report-editor/utils/deriveTransactions.d.ts +47 -0
- package/dist/editors/snapshot-report-editor/utils/deriveTransactions.d.ts.map +1 -0
- package/dist/editors/snapshot-report-editor/utils/deriveTransactions.js +89 -0
- package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.d.ts +29 -0
- package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.d.ts.map +1 -0
- package/dist/editors/snapshot-report-editor/utils/flowTypeCalculations.js +63 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/powerhouse.manifest.json +78 -6
- package/dist/scripts/alchemy/alchemyClient.d.ts +63 -0
- package/dist/scripts/alchemy/alchemyClient.d.ts.map +1 -0
- package/dist/scripts/alchemy/alchemyClient.js +232 -0
- package/dist/scripts/alchemy/alchemyEnvironment.d.ts +29 -0
- package/dist/scripts/alchemy/alchemyEnvironment.d.ts.map +1 -0
- package/dist/scripts/alchemy/alchemyEnvironment.js +49 -0
- package/dist/scripts/alchemy/alchemyHelpers.d.ts +24 -0
- package/dist/scripts/alchemy/alchemyHelpers.d.ts.map +1 -0
- package/dist/scripts/alchemy/alchemyHelpers.js +116 -0
- package/dist/scripts/alchemy/alchemyTypes.d.ts +93 -0
- package/dist/scripts/alchemy/alchemyTypes.d.ts.map +1 -0
- package/dist/scripts/alchemy/alchemyTypes.js +25 -0
- package/dist/scripts/invoice/pdfToClaudeAI.d.ts.map +1 -1
- package/dist/scripts/invoice/pdfToClaudeAI.js +186 -4
- package/dist/style.css +4288 -158
- package/dist/subgraphs/{integrations → acc-txs-addon}/index.d.ts +1 -1
- package/dist/subgraphs/acc-txs-addon/index.d.ts.map +1 -0
- package/dist/subgraphs/{integrations → acc-txs-addon}/index.js +2 -2
- package/dist/subgraphs/acc-txs-addon/resolvers.d.ts +3 -0
- package/dist/subgraphs/acc-txs-addon/resolvers.d.ts.map +1 -0
- package/dist/subgraphs/acc-txs-addon/resolvers.js +144 -0
- package/dist/subgraphs/acc-txs-addon/schema.d.ts.map +1 -0
- package/dist/subgraphs/acc-txs-addon/schema.js +47 -0
- package/dist/subgraphs/account-transactions/index.d.ts +11 -0
- package/dist/subgraphs/account-transactions/index.d.ts.map +1 -0
- package/dist/subgraphs/account-transactions/index.js +11 -0
- package/dist/subgraphs/account-transactions/resolvers.d.ts.map +1 -0
- package/dist/subgraphs/account-transactions/resolvers.js +168 -0
- package/dist/subgraphs/account-transactions/schema.d.ts +3 -0
- package/dist/subgraphs/account-transactions/schema.d.ts.map +1 -0
- package/dist/subgraphs/account-transactions/schema.js +129 -0
- package/dist/subgraphs/accounts/index.d.ts +11 -0
- package/dist/subgraphs/accounts/index.d.ts.map +1 -0
- package/dist/subgraphs/accounts/index.js +11 -0
- package/dist/subgraphs/accounts/resolvers.d.ts +3 -0
- package/dist/subgraphs/accounts/resolvers.d.ts.map +1 -0
- package/dist/subgraphs/{integrations → accounts}/resolvers.js +27 -15
- package/dist/subgraphs/accounts/schema.d.ts +3 -0
- package/dist/subgraphs/accounts/schema.d.ts.map +1 -0
- package/dist/subgraphs/accounts/schema.js +75 -0
- package/dist/subgraphs/expense-report/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/expense-report/resolvers.js +24 -0
- package/dist/subgraphs/expense-report/schema.d.ts.map +1 -1
- package/dist/subgraphs/expense-report/schema.js +24 -0
- package/dist/subgraphs/index.d.ts +6 -1
- package/dist/subgraphs/index.d.ts.map +1 -1
- package/dist/subgraphs/index.js +6 -1
- package/dist/subgraphs/invoice-addon/customResolvers.js +1 -1
- package/dist/subgraphs/service-offering/index.d.ts +11 -0
- package/dist/subgraphs/service-offering/index.d.ts.map +1 -0
- package/dist/subgraphs/service-offering/index.js +11 -0
- package/dist/subgraphs/service-offering/resolvers.d.ts +3 -0
- package/dist/subgraphs/service-offering/resolvers.d.ts.map +1 -0
- package/dist/subgraphs/service-offering/resolvers.js +432 -0
- package/dist/subgraphs/service-offering/schema.d.ts +3 -0
- package/dist/subgraphs/service-offering/schema.d.ts.map +1 -0
- package/dist/subgraphs/service-offering/schema.js +386 -0
- package/dist/subgraphs/service-subscriptions/index.d.ts +11 -0
- package/dist/subgraphs/service-subscriptions/index.d.ts.map +1 -0
- package/dist/subgraphs/service-subscriptions/index.js +11 -0
- package/dist/subgraphs/service-subscriptions/resolvers.d.ts +3 -0
- package/dist/subgraphs/service-subscriptions/resolvers.d.ts.map +1 -0
- package/dist/subgraphs/service-subscriptions/resolvers.js +228 -0
- package/dist/subgraphs/service-subscriptions/schema.d.ts +3 -0
- package/dist/subgraphs/service-subscriptions/schema.d.ts.map +1 -0
- package/dist/subgraphs/service-subscriptions/schema.js +193 -0
- package/dist/subgraphs/snapshot-report/index.d.ts +11 -0
- package/dist/subgraphs/snapshot-report/index.d.ts.map +1 -0
- package/dist/subgraphs/snapshot-report/index.js +11 -0
- package/dist/subgraphs/snapshot-report/resolvers.d.ts +3 -0
- package/dist/subgraphs/snapshot-report/resolvers.d.ts.map +1 -0
- package/dist/subgraphs/snapshot-report/resolvers.js +276 -0
- package/dist/subgraphs/snapshot-report/schema.d.ts +3 -0
- package/dist/subgraphs/snapshot-report/schema.d.ts.map +1 -0
- package/dist/subgraphs/snapshot-report/schema.js +206 -0
- package/package.json +15 -13
- package/dist/document-models/integrations/actions.d.ts.map +0 -1
- package/dist/document-models/integrations/actions.js +0 -4
- package/dist/document-models/integrations/gen/actions.d.ts +0 -4
- package/dist/document-models/integrations/gen/actions.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/actions.js +0 -1
- package/dist/document-models/integrations/gen/creators.d.ts +0 -3
- package/dist/document-models/integrations/gen/creators.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/creators.js +0 -2
- package/dist/document-models/integrations/gen/document-model.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/document-model.js +0 -70
- package/dist/document-models/integrations/gen/document-schema.d.ts +0 -180
- package/dist/document-models/integrations/gen/document-schema.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/document-schema.js +0 -33
- package/dist/document-models/integrations/gen/document-type.d.ts +0 -2
- package/dist/document-models/integrations/gen/document-type.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/document-type.js +0 -1
- package/dist/document-models/integrations/gen/index.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/integrations/actions.d.ts +0 -16
- package/dist/document-models/integrations/gen/integrations/actions.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/integrations/creators.d.ts +0 -6
- package/dist/document-models/integrations/gen/integrations/creators.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/integrations/creators.js +0 -5
- package/dist/document-models/integrations/gen/integrations/error.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/integrations/operations.d.ts +0 -9
- package/dist/document-models/integrations/gen/integrations/operations.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/ph-factories.d.ts +0 -23
- package/dist/document-models/integrations/gen/ph-factories.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/reducer.d.ts +0 -3
- package/dist/document-models/integrations/gen/reducer.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/reducer.js +0 -25
- package/dist/document-models/integrations/gen/schema/index.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/schema/types.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/schema/zod.d.ts +0 -19
- package/dist/document-models/integrations/gen/schema/zod.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/schema/zod.js +0 -97
- package/dist/document-models/integrations/gen/types.d.ts +0 -12
- package/dist/document-models/integrations/gen/types.d.ts.map +0 -1
- package/dist/document-models/integrations/gen/utils.d.ts +0 -15
- package/dist/document-models/integrations/gen/utils.d.ts.map +0 -1
- package/dist/document-models/integrations/hooks.d.ts +0 -11
- package/dist/document-models/integrations/hooks.d.ts.map +0 -1
- package/dist/document-models/integrations/hooks.js +0 -26
- package/dist/document-models/integrations/index.d.ts.map +0 -1
- package/dist/document-models/integrations/module.d.ts +0 -5
- package/dist/document-models/integrations/module.d.ts.map +0 -1
- package/dist/document-models/integrations/src/index.d.ts.map +0 -1
- package/dist/document-models/integrations/src/reducers/integrations.d.ts +0 -3
- package/dist/document-models/integrations/src/reducers/integrations.d.ts.map +0 -1
- package/dist/document-models/integrations/src/reducers/integrations.js +0 -14
- package/dist/document-models/integrations/src/tests/document-model.test.d.ts.map +0 -1
- package/dist/document-models/integrations/src/tests/integrations.test.d.ts.map +0 -1
- package/dist/document-models/integrations/src/utils.d.ts.map +0 -1
- package/dist/document-models/integrations/utils.d.ts +0 -14
- package/dist/document-models/integrations/utils.d.ts.map +0 -1
- package/dist/editors/clean-new-editor/components/CreateDocument.d.ts.map +0 -1
- package/dist/editors/clean-new-editor/components/DriveContents.d.ts +0 -3
- package/dist/editors/clean-new-editor/components/DriveContents.d.ts.map +0 -1
- package/dist/editors/clean-new-editor/components/DriveContents.js +0 -10
- package/dist/editors/clean-new-editor/components/DriveExplorer.d.ts.map +0 -1
- package/dist/editors/clean-new-editor/components/DriveExplorer.js +0 -16
- package/dist/editors/clean-new-editor/components/EmptyState.d.ts.map +0 -1
- package/dist/editors/clean-new-editor/components/Files.d.ts.map +0 -1
- package/dist/editors/clean-new-editor/components/FolderTree.d.ts +0 -6
- package/dist/editors/clean-new-editor/components/FolderTree.d.ts.map +0 -1
- package/dist/editors/clean-new-editor/components/FolderTree.js +0 -65
- package/dist/editors/clean-new-editor/components/Folders.d.ts.map +0 -1
- package/dist/editors/clean-new-editor/components/NavigationBreadcrumbs.d.ts.map +0 -1
- package/dist/editors/clean-new-editor/config.d.ts.map +0 -1
- package/dist/editors/clean-new-editor/config.js +0 -5
- package/dist/editors/clean-new-editor/editor.d.ts.map +0 -1
- package/dist/editors/clean-new-editor/module.d.ts +0 -3
- package/dist/editors/clean-new-editor/module.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/ConfirmationModal.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/HeaderControls.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/HeaderStats.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/HeaderStats.js +0 -73
- package/dist/editors/contributor-billing/components/InvoiceTable.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/InvoiceTableContainer.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/InvoiceTableRow.d.ts.map +0 -1
- package/dist/editors/contributor-billing/components/InvoiceTableSection.d.ts.map +0 -1
- package/dist/editors/integrations/components/EditName.d.ts +0 -3
- package/dist/editors/integrations/components/EditName.d.ts.map +0 -1
- package/dist/editors/integrations/components/EditName.js +0 -31
- package/dist/editors/integrations/editor.d.ts +0 -3
- package/dist/editors/integrations/editor.d.ts.map +0 -1
- package/dist/editors/integrations/editor.js +0 -6
- package/dist/editors/integrations/module.d.ts.map +0 -1
- package/dist/editors/integrations/module.js +0 -10
- package/dist/old-contributor-billing/components/DriveExplorer.d.ts +0 -7
- package/dist/old-contributor-billing/components/DriveExplorer.d.ts.map +0 -1
- package/dist/old-contributor-billing/components/DriveExplorer.js +0 -184
- package/dist/old-contributor-billing/components/InvoiceTable/HeaderControls.d.ts +0 -25
- package/dist/old-contributor-billing/components/InvoiceTable/HeaderControls.d.ts.map +0 -1
- package/dist/old-contributor-billing/components/InvoiceTable/HeaderControls.js +0 -154
- package/dist/old-contributor-billing/components/InvoiceTable/HeaderStats.d.ts +0 -2
- package/dist/old-contributor-billing/components/InvoiceTable/HeaderStats.d.ts.map +0 -1
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTable.d.ts +0 -30
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTable.d.ts.map +0 -1
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTable.js +0 -254
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts +0 -16
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableRow.d.ts.map +0 -1
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableRow.js +0 -47
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts +0 -10
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableSection.d.ts.map +0 -1
- package/dist/old-contributor-billing/components/InvoiceTable/InvoiceTableSection.js +0 -10
- package/dist/old-contributor-billing/components/InvoiceTable/RowActionMenu.d.ts +0 -8
- package/dist/old-contributor-billing/components/InvoiceTable/RowActionMenu.d.ts.map +0 -1
- package/dist/old-contributor-billing/components/InvoiceTable/RowActionMenu.js +0 -2
- package/dist/old-contributor-billing/config.d.ts +0 -3
- package/dist/old-contributor-billing/config.d.ts.map +0 -1
- package/dist/old-contributor-billing/config.js +0 -4
- package/dist/old-contributor-billing/editor.d.ts +0 -3
- package/dist/old-contributor-billing/editor.d.ts.map +0 -1
- package/dist/old-contributor-billing/editor.js +0 -8
- package/dist/old-contributor-billing/module.d.ts +0 -3
- package/dist/old-contributor-billing/module.d.ts.map +0 -1
- package/dist/old-contributor-billing/module.js +0 -9
- package/dist/old-contributor-billing/util.d.ts +0 -10
- package/dist/old-contributor-billing/util.d.ts.map +0 -1
- package/dist/old-contributor-billing/util.js +0 -112
- package/dist/subgraphs/integrations/index.d.ts.map +0 -1
- package/dist/subgraphs/integrations/resolvers.d.ts.map +0 -1
- package/dist/subgraphs/integrations/schema.d.ts.map +0 -1
- package/dist/subgraphs/integrations/schema.js +0 -69
- /package/dist/document-models/{integrations/gen/integrations → account-transactions/gen/account}/actions.js +0 -0
- /package/dist/document-models/{integrations/gen/integrations → account-transactions/gen/account}/error.d.ts +0 -0
- /package/dist/document-models/{integrations/gen/integrations → account-transactions/gen/account}/error.js +0 -0
- /package/dist/document-models/{integrations/gen/integrations → account-transactions/gen/account}/operations.js +0 -0
- /package/dist/document-models/{integrations → account-transactions}/gen/document-model.d.ts +0 -0
- /package/dist/document-models/{integrations → account-transactions}/gen/schema/index.d.ts +0 -0
- /package/dist/document-models/{integrations → account-transactions}/gen/schema/index.js +0 -0
- /package/dist/document-models/{integrations → account-transactions}/gen/schema/types.js +0 -0
- /package/dist/document-models/{integrations → account-transactions}/gen/types.js +0 -0
- /package/dist/document-models/{integrations → account-transactions}/index.d.ts +0 -0
- /package/dist/document-models/{integrations → account-transactions}/index.js +0 -0
- /package/dist/document-models/{integrations → account-transactions}/src/index.d.ts +0 -0
- /package/dist/document-models/{integrations → account-transactions}/src/index.js +0 -0
- /package/dist/document-models/{integrations → account-transactions}/src/tests/document-model.test.d.ts +0 -0
- /package/dist/document-models/{integrations → account-transactions}/src/utils.d.ts +0 -0
- /package/dist/document-models/{integrations → account-transactions}/src/utils.js +0 -0
- /package/dist/editors/{clean-new-editor → builder-team-admin}/components/CreateDocument.d.ts +0 -0
- /package/dist/editors/{clean-new-editor → builder-team-admin}/components/CreateDocument.js +0 -0
- /package/dist/editors/{clean-new-editor → builder-team-admin}/components/DriveExplorer.d.ts +0 -0
- /package/dist/editors/{clean-new-editor → builder-team-admin}/components/EmptyState.d.ts +0 -0
- /package/dist/editors/{clean-new-editor → builder-team-admin}/components/EmptyState.js +0 -0
- /package/dist/editors/{clean-new-editor → builder-team-admin}/components/Files.d.ts +0 -0
- /package/dist/editors/{clean-new-editor → builder-team-admin}/components/Files.js +0 -0
- /package/dist/editors/{clean-new-editor → builder-team-admin}/components/Folders.d.ts +0 -0
- /package/dist/editors/{clean-new-editor → builder-team-admin}/components/Folders.js +0 -0
- /package/dist/editors/{clean-new-editor → builder-team-admin}/components/NavigationBreadcrumbs.d.ts +0 -0
- /package/dist/editors/{clean-new-editor → builder-team-admin}/components/NavigationBreadcrumbs.js +0 -0
- /package/dist/editors/contributor-billing/components/{ConfirmationModal.d.ts → InvoiceTable/ConfirmationModal.d.ts} +0 -0
- /package/dist/editors/contributor-billing/components/{ConfirmationModal.js → InvoiceTable/ConfirmationModal.js} +0 -0
- /package/dist/editors/contributor-billing/components/{HeaderControls.d.ts → InvoiceTable/HeaderControls.d.ts} +0 -0
- /package/dist/editors/contributor-billing/components/{HeaderControls.js → InvoiceTable/HeaderControls.js} +0 -0
- /package/dist/editors/contributor-billing/components/{HeaderStats.d.ts → InvoiceTable/HeaderStats.d.ts} +0 -0
- /package/dist/editors/contributor-billing/components/{InvoiceTable.d.ts → InvoiceTable/InvoiceTable.d.ts} +0 -0
- /package/dist/editors/contributor-billing/components/{InvoiceTableContainer.d.ts → InvoiceTable/InvoiceTableContainer.d.ts} +0 -0
- /package/dist/editors/contributor-billing/components/{InvoiceTableContainer.js → InvoiceTable/InvoiceTableContainer.js} +0 -0
- /package/dist/editors/contributor-billing/components/{InvoiceTableRow.d.ts → InvoiceTable/InvoiceTableRow.d.ts} +0 -0
- /package/dist/editors/contributor-billing/components/{InvoiceTableRow.js → InvoiceTable/InvoiceTableRow.js} +0 -0
- /package/dist/editors/contributor-billing/components/{InvoiceTableSection.d.ts → InvoiceTable/InvoiceTableSection.d.ts} +0 -0
- /package/dist/editors/contributor-billing/components/{InvoiceTableSection.js → InvoiceTable/InvoiceTableSection.js} +0 -0
- /package/dist/subgraphs/{integrations → acc-txs-addon}/schema.d.ts +0 -0
- /package/dist/subgraphs/{integrations → account-transactions}/resolvers.d.ts +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a scaffold file meant for customization:
|
|
3
|
+
* - change it by adding new tests or modifying the existing ones
|
|
4
|
+
*/
|
|
5
|
+
import { describe, it, expect } from "vitest";
|
|
6
|
+
import { generateMock } from "@powerhousedao/codegen";
|
|
7
|
+
import { reducer, utils, isSnapshotReportDocument, setReportConfig, SetReportConfigInputSchema, setAccountsDocument, SetAccountsDocumentInputSchema, setPeriod, SetPeriodInputSchema, } from "@powerhousedao/contributor-billing/document-models/snapshot-report";
|
|
8
|
+
describe("Configuration Operations", () => {
|
|
9
|
+
it("should handle setReportConfig operation", () => {
|
|
10
|
+
const document = utils.createDocument();
|
|
11
|
+
const input = generateMock(SetReportConfigInputSchema());
|
|
12
|
+
const updatedDocument = reducer(document, setReportConfig(input));
|
|
13
|
+
expect(isSnapshotReportDocument(updatedDocument)).toBe(true);
|
|
14
|
+
expect(updatedDocument.operations.global).toHaveLength(1);
|
|
15
|
+
expect(updatedDocument.operations.global[0].action.type).toBe("SET_REPORT_CONFIG");
|
|
16
|
+
expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
|
|
17
|
+
expect(updatedDocument.operations.global[0].index).toEqual(0);
|
|
18
|
+
});
|
|
19
|
+
it("should handle setAccountsDocument operation", () => {
|
|
20
|
+
const document = utils.createDocument();
|
|
21
|
+
const input = generateMock(SetAccountsDocumentInputSchema());
|
|
22
|
+
const updatedDocument = reducer(document, setAccountsDocument(input));
|
|
23
|
+
expect(isSnapshotReportDocument(updatedDocument)).toBe(true);
|
|
24
|
+
expect(updatedDocument.operations.global).toHaveLength(1);
|
|
25
|
+
expect(updatedDocument.operations.global[0].action.type).toBe("SET_ACCOUNTS_DOCUMENT");
|
|
26
|
+
expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
|
|
27
|
+
expect(updatedDocument.operations.global[0].index).toEqual(0);
|
|
28
|
+
});
|
|
29
|
+
it("should handle setPeriod operation", () => {
|
|
30
|
+
const document = utils.createDocument();
|
|
31
|
+
const input = generateMock(SetPeriodInputSchema());
|
|
32
|
+
const updatedDocument = reducer(document, setPeriod(input));
|
|
33
|
+
expect(isSnapshotReportDocument(updatedDocument)).toBe(true);
|
|
34
|
+
expect(updatedDocument.operations.global).toHaveLength(1);
|
|
35
|
+
expect(updatedDocument.operations.global[0].action.type).toBe("SET_PERIOD");
|
|
36
|
+
expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
|
|
37
|
+
expect(updatedDocument.operations.global[0].index).toEqual(0);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a scaffold file meant for customization:
|
|
3
|
+
* - change it by adding new tests or modifying the existing ones
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* This is a scaffold file meant for customization:
|
|
7
|
+
* - change it by adding new tests or modifying the existing ones
|
|
8
|
+
*/
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=document-model.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-model.test.d.ts","sourceRoot":"","sources":["../../../../../document-models/snapshot-report/src/tests/document-model.test.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH;;;GAGG"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a scaffold file meant for customization:
|
|
3
|
+
* - change it by adding new tests or modifying the existing ones
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* This is a scaffold file meant for customization:
|
|
7
|
+
* - change it by adding new tests or modifying the existing ones
|
|
8
|
+
*/
|
|
9
|
+
import { describe, it, expect } from "vitest";
|
|
10
|
+
import { utils, initialGlobalState, initialLocalState, snapshotReportDocumentType, isSnapshotReportDocument, assertIsSnapshotReportDocument, isSnapshotReportState, assertIsSnapshotReportState, } from "@powerhousedao/contributor-billing/document-models/snapshot-report";
|
|
11
|
+
import { ZodError } from "zod";
|
|
12
|
+
describe("SnapshotReport Document Model", () => {
|
|
13
|
+
it("should create a new SnapshotReport document", () => {
|
|
14
|
+
const document = utils.createDocument();
|
|
15
|
+
expect(document).toBeDefined();
|
|
16
|
+
expect(document.header.documentType).toBe(snapshotReportDocumentType);
|
|
17
|
+
});
|
|
18
|
+
it("should create a new SnapshotReport document with a valid initial state", () => {
|
|
19
|
+
const document = utils.createDocument();
|
|
20
|
+
expect(document.state.global).toStrictEqual(initialGlobalState);
|
|
21
|
+
expect(document.state.local).toStrictEqual(initialLocalState);
|
|
22
|
+
expect(isSnapshotReportDocument(document)).toBe(true);
|
|
23
|
+
expect(isSnapshotReportState(document.state)).toBe(true);
|
|
24
|
+
});
|
|
25
|
+
it("should reject a document that is not a SnapshotReport document", () => {
|
|
26
|
+
const wrongDocumentType = utils.createDocument();
|
|
27
|
+
wrongDocumentType.header.documentType = "the-wrong-thing-1234";
|
|
28
|
+
try {
|
|
29
|
+
expect(assertIsSnapshotReportDocument(wrongDocumentType)).toThrow();
|
|
30
|
+
expect(isSnapshotReportDocument(wrongDocumentType)).toBe(false);
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
expect(error).toBeInstanceOf(ZodError);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const wrongState = utils.createDocument();
|
|
37
|
+
// @ts-expect-error - we are testing the error case
|
|
38
|
+
wrongState.state.global = {
|
|
39
|
+
...{ notWhat: "you want" },
|
|
40
|
+
};
|
|
41
|
+
try {
|
|
42
|
+
expect(isSnapshotReportState(wrongState.state)).toBe(false);
|
|
43
|
+
expect(assertIsSnapshotReportState(wrongState.state)).toThrow();
|
|
44
|
+
expect(isSnapshotReportDocument(wrongState)).toBe(false);
|
|
45
|
+
expect(assertIsSnapshotReportDocument(wrongState)).toThrow();
|
|
46
|
+
}
|
|
47
|
+
catch (error) {
|
|
48
|
+
expect(error).toBeInstanceOf(ZodError);
|
|
49
|
+
}
|
|
50
|
+
const wrongInitialState = utils.createDocument();
|
|
51
|
+
// @ts-expect-error - we are testing the error case
|
|
52
|
+
wrongInitialState.initialState.global = {
|
|
53
|
+
...{ notWhat: "you want" },
|
|
54
|
+
};
|
|
55
|
+
try {
|
|
56
|
+
expect(isSnapshotReportState(wrongInitialState.state)).toBe(false);
|
|
57
|
+
expect(assertIsSnapshotReportState(wrongInitialState.state)).toThrow();
|
|
58
|
+
expect(isSnapshotReportDocument(wrongInitialState)).toBe(false);
|
|
59
|
+
expect(assertIsSnapshotReportDocument(wrongInitialState)).toThrow();
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
expect(error).toBeInstanceOf(ZodError);
|
|
63
|
+
}
|
|
64
|
+
const missingIdInHeader = utils.createDocument();
|
|
65
|
+
// @ts-expect-error - we are testing the error case
|
|
66
|
+
delete missingIdInHeader.header.id;
|
|
67
|
+
try {
|
|
68
|
+
expect(isSnapshotReportDocument(missingIdInHeader)).toBe(false);
|
|
69
|
+
expect(assertIsSnapshotReportDocument(missingIdInHeader)).toThrow();
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
expect(error).toBeInstanceOf(ZodError);
|
|
73
|
+
}
|
|
74
|
+
const missingNameInHeader = utils.createDocument();
|
|
75
|
+
// @ts-expect-error - we are testing the error case
|
|
76
|
+
delete missingNameInHeader.header.name;
|
|
77
|
+
try {
|
|
78
|
+
expect(isSnapshotReportDocument(missingNameInHeader)).toBe(false);
|
|
79
|
+
expect(assertIsSnapshotReportDocument(missingNameInHeader)).toThrow();
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
expect(error).toBeInstanceOf(ZodError);
|
|
83
|
+
}
|
|
84
|
+
const missingCreatedAtUtcIsoInHeader = utils.createDocument();
|
|
85
|
+
// @ts-expect-error - we are testing the error case
|
|
86
|
+
delete missingCreatedAtUtcIsoInHeader.header.createdAtUtcIso;
|
|
87
|
+
try {
|
|
88
|
+
expect(isSnapshotReportDocument(missingCreatedAtUtcIsoInHeader)).toBe(false);
|
|
89
|
+
expect(assertIsSnapshotReportDocument(missingCreatedAtUtcIsoInHeader)).toThrow();
|
|
90
|
+
}
|
|
91
|
+
catch (error) {
|
|
92
|
+
expect(error).toBeInstanceOf(ZodError);
|
|
93
|
+
}
|
|
94
|
+
const missingLastModifiedAtUtcIsoInHeader = utils.createDocument();
|
|
95
|
+
// @ts-expect-error - we are testing the error case
|
|
96
|
+
delete missingLastModifiedAtUtcIsoInHeader.header.lastModifiedAtUtcIso;
|
|
97
|
+
try {
|
|
98
|
+
expect(isSnapshotReportDocument(missingLastModifiedAtUtcIsoInHeader)).toBe(false);
|
|
99
|
+
expect(assertIsSnapshotReportDocument(missingLastModifiedAtUtcIsoInHeader)).toThrow();
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
expect(error).toBeInstanceOf(ZodError);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions.test.d.ts","sourceRoot":"","sources":["../../../../../document-models/snapshot-report/src/tests/transactions.test.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a scaffold file meant for customization:
|
|
3
|
+
* - change it by adding new tests or modifying the existing ones
|
|
4
|
+
*/
|
|
5
|
+
import { describe, it, expect } from "vitest";
|
|
6
|
+
import { generateMock } from "@powerhousedao/codegen";
|
|
7
|
+
import { reducer, utils, isSnapshotReportDocument, addTransaction, AddTransactionInputSchema, removeTransaction, RemoveTransactionInputSchema, updateTransactionFlowType, UpdateTransactionFlowTypeInputSchema, } from "@powerhousedao/contributor-billing/document-models/snapshot-report";
|
|
8
|
+
describe("Transactions Operations", () => {
|
|
9
|
+
it("should handle addTransaction operation", () => {
|
|
10
|
+
const document = utils.createDocument();
|
|
11
|
+
const input = generateMock(AddTransactionInputSchema());
|
|
12
|
+
const updatedDocument = reducer(document, addTransaction(input));
|
|
13
|
+
expect(isSnapshotReportDocument(updatedDocument)).toBe(true);
|
|
14
|
+
expect(updatedDocument.operations.global).toHaveLength(1);
|
|
15
|
+
expect(updatedDocument.operations.global[0].action.type).toBe("ADD_TRANSACTION");
|
|
16
|
+
expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
|
|
17
|
+
expect(updatedDocument.operations.global[0].index).toEqual(0);
|
|
18
|
+
});
|
|
19
|
+
it("should handle removeTransaction operation", () => {
|
|
20
|
+
const document = utils.createDocument();
|
|
21
|
+
const input = generateMock(RemoveTransactionInputSchema());
|
|
22
|
+
const updatedDocument = reducer(document, removeTransaction(input));
|
|
23
|
+
expect(isSnapshotReportDocument(updatedDocument)).toBe(true);
|
|
24
|
+
expect(updatedDocument.operations.global).toHaveLength(1);
|
|
25
|
+
expect(updatedDocument.operations.global[0].action.type).toBe("REMOVE_TRANSACTION");
|
|
26
|
+
expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
|
|
27
|
+
expect(updatedDocument.operations.global[0].index).toEqual(0);
|
|
28
|
+
});
|
|
29
|
+
it("should handle updateTransactionFlowType operation", () => {
|
|
30
|
+
const document = utils.createDocument();
|
|
31
|
+
const input = generateMock(UpdateTransactionFlowTypeInputSchema());
|
|
32
|
+
const updatedDocument = reducer(document, updateTransactionFlowType(input));
|
|
33
|
+
expect(isSnapshotReportDocument(updatedDocument)).toBe(true);
|
|
34
|
+
expect(updatedDocument.operations.global).toHaveLength(1);
|
|
35
|
+
expect(updatedDocument.operations.global[0].action.type).toBe("UPDATE_TRANSACTION_FLOW_TYPE");
|
|
36
|
+
expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
|
|
37
|
+
expect(updatedDocument.operations.global[0].index).toEqual(0);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../document-models/snapshot-report/src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SnapshotReportPHState } from "./gen/types.js";
|
|
2
|
+
/** Utils for the SnapshotReport document model */
|
|
3
|
+
export declare const utils: {
|
|
4
|
+
fileExtension: string;
|
|
5
|
+
createState: import("document-model").CreateState<SnapshotReportPHState>;
|
|
6
|
+
createDocument: import("document-model").CreateDocument<SnapshotReportPHState>;
|
|
7
|
+
loadFromInput: import("document-model").LoadFromInput<SnapshotReportPHState>;
|
|
8
|
+
saveToFileHandle: import("document-model").SaveToFileHandle;
|
|
9
|
+
isStateOfType: import("document-model").IsStateOfType<SnapshotReportPHState>;
|
|
10
|
+
assertIsStateOfType: import("document-model").AssertIsStateOfType<SnapshotReportPHState>;
|
|
11
|
+
isDocumentOfType: import("document-model").IsDocumentOfType<SnapshotReportPHState>;
|
|
12
|
+
assertIsDocumentOfType: import("document-model").AssertIsDocumentOfType<SnapshotReportPHState>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../document-models/snapshot-report/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAI5D,kDAAkD;AAClD,eAAO,MAAM,KAAK;;;;;;;;;;CAGmC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment-aware Alchemy integration for AccountTransactions
|
|
3
|
+
* Follows the contributor-billing pattern for local/remote compatibility
|
|
4
|
+
*/
|
|
5
|
+
export interface AlchemyIntegrationResult {
|
|
6
|
+
success: boolean;
|
|
7
|
+
transactionsAdded: number;
|
|
8
|
+
message: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AlchemyTransactionData {
|
|
11
|
+
counterParty: string;
|
|
12
|
+
amount: string | {
|
|
13
|
+
value: string;
|
|
14
|
+
unit: string;
|
|
15
|
+
};
|
|
16
|
+
txHash: string;
|
|
17
|
+
token: string;
|
|
18
|
+
blockNumber: number;
|
|
19
|
+
datetime: string;
|
|
20
|
+
accountingPeriod: string;
|
|
21
|
+
from: string;
|
|
22
|
+
to: string;
|
|
23
|
+
direction: string;
|
|
24
|
+
}
|
|
25
|
+
export interface AlchemyTransactionsResult {
|
|
26
|
+
success: boolean;
|
|
27
|
+
transactions: AlchemyTransactionData[];
|
|
28
|
+
message: string;
|
|
29
|
+
transactionsCount: number;
|
|
30
|
+
}
|
|
31
|
+
export declare class AlchemyIntegrationService {
|
|
32
|
+
private graphqlEndpoint;
|
|
33
|
+
private isLocal;
|
|
34
|
+
constructor();
|
|
35
|
+
/**
|
|
36
|
+
* Get transaction data from Alchemy via GraphQL resolver (without document dependency)
|
|
37
|
+
* Works in both local Connect and remote Switchboard environments
|
|
38
|
+
*/
|
|
39
|
+
getTransactionsFromAlchemy(address: string, fromBlock?: string): Promise<AlchemyTransactionsResult>;
|
|
40
|
+
/**
|
|
41
|
+
* Fetch transactions from Alchemy via GraphQL resolver
|
|
42
|
+
* Works in both local Connect and remote Switchboard environments
|
|
43
|
+
*/
|
|
44
|
+
fetchTransactionsForDocument(docId: string, address: string, fromBlock?: string): Promise<AlchemyIntegrationResult>;
|
|
45
|
+
/**
|
|
46
|
+
* Get environment information for debugging
|
|
47
|
+
*/
|
|
48
|
+
getEnvironmentInfo(): {
|
|
49
|
+
endpoint: string;
|
|
50
|
+
mode: string;
|
|
51
|
+
isLocal: boolean;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export declare const alchemyIntegration: AlchemyIntegrationService;
|
|
55
|
+
//# sourceMappingURL=alchemyIntegration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alchemyIntegration.d.ts","sourceRoot":"","sources":["../../../editors/account-transactions-editor/alchemyIntegration.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IAEpB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,sBAAsB,EAAE,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,qBAAa,yBAAyB;IACpC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,OAAO,CAAU;;IAOzB;;;OAGG;IACG,0BAA0B,CAC9B,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,yBAAyB,CAAC;IAyErC;;;OAGG;IACG,4BAA4B,CAChC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,wBAAwB,CAAC;IA0DpC;;OAEG;IACH,kBAAkB;;;;;CAOnB;AAGD,eAAO,MAAM,kBAAkB,2BAAkC,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment-aware Alchemy integration for AccountTransactions
|
|
3
|
+
* Follows the contributor-billing pattern for local/remote compatibility
|
|
4
|
+
*/
|
|
5
|
+
import { getAlchemyGraphQLEndpoint, isLocalEnvironment, } from "../../scripts/alchemy/alchemyEnvironment.js";
|
|
6
|
+
export class AlchemyIntegrationService {
|
|
7
|
+
graphqlEndpoint;
|
|
8
|
+
isLocal;
|
|
9
|
+
constructor() {
|
|
10
|
+
this.graphqlEndpoint = getAlchemyGraphQLEndpoint();
|
|
11
|
+
this.isLocal = isLocalEnvironment();
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Get transaction data from Alchemy via GraphQL resolver (without document dependency)
|
|
15
|
+
* Works in both local Connect and remote Switchboard environments
|
|
16
|
+
*/
|
|
17
|
+
async getTransactionsFromAlchemy(address, fromBlock) {
|
|
18
|
+
try {
|
|
19
|
+
const response = await fetch(this.graphqlEndpoint, {
|
|
20
|
+
method: "POST",
|
|
21
|
+
headers: {
|
|
22
|
+
"Content-Type": "application/json",
|
|
23
|
+
},
|
|
24
|
+
body: JSON.stringify({
|
|
25
|
+
query: `
|
|
26
|
+
mutation GetTransactionsFromAlchemy($address: EthereumAddress!, $fromBlock: String) {
|
|
27
|
+
AccountTransactions_getTransactionsFromAlchemy(address: $address, fromBlock: $fromBlock) {
|
|
28
|
+
success
|
|
29
|
+
transactions {
|
|
30
|
+
counterParty
|
|
31
|
+
amount
|
|
32
|
+
txHash
|
|
33
|
+
token
|
|
34
|
+
blockNumber
|
|
35
|
+
datetime
|
|
36
|
+
accountingPeriod
|
|
37
|
+
to
|
|
38
|
+
from
|
|
39
|
+
direction
|
|
40
|
+
}
|
|
41
|
+
message
|
|
42
|
+
transactionsCount
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`,
|
|
46
|
+
variables: {
|
|
47
|
+
address,
|
|
48
|
+
fromBlock,
|
|
49
|
+
},
|
|
50
|
+
}),
|
|
51
|
+
});
|
|
52
|
+
if (!response.ok) {
|
|
53
|
+
const errorText = await response.text();
|
|
54
|
+
console.error(`[AlchemyIntegration] GraphQL endpoint error:`, {
|
|
55
|
+
status: response.status,
|
|
56
|
+
statusText: response.statusText,
|
|
57
|
+
errorText,
|
|
58
|
+
});
|
|
59
|
+
throw new Error(`GraphQL endpoint error: ${response.status} - ${response.statusText} - ${errorText}`);
|
|
60
|
+
}
|
|
61
|
+
const result = (await response.json());
|
|
62
|
+
if (result.errors) {
|
|
63
|
+
throw new Error(result.errors[0]?.message || "GraphQL error");
|
|
64
|
+
}
|
|
65
|
+
if (result.data?.AccountTransactions_getTransactionsFromAlchemy) {
|
|
66
|
+
return result.data.AccountTransactions_getTransactionsFromAlchemy;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
throw new Error("Failed to get transactions from Alchemy");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
console.error(`[AlchemyIntegration] Error in ${this.isLocal ? "local" : "remote"} mode:`, error);
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Fetch transactions from Alchemy via GraphQL resolver
|
|
79
|
+
* Works in both local Connect and remote Switchboard environments
|
|
80
|
+
*/
|
|
81
|
+
async fetchTransactionsForDocument(docId, address, fromBlock) {
|
|
82
|
+
try {
|
|
83
|
+
const response = await fetch(this.graphqlEndpoint, {
|
|
84
|
+
method: "POST",
|
|
85
|
+
headers: {
|
|
86
|
+
"Content-Type": "application/json",
|
|
87
|
+
},
|
|
88
|
+
body: JSON.stringify({
|
|
89
|
+
query: `
|
|
90
|
+
mutation FetchTransactionsFromAlchemy($docId: PHID!, $address: EthereumAddress!, $fromBlock: String) {
|
|
91
|
+
AccountTransactions_fetchTransactionsFromAlchemy(docId: $docId, address: $address, fromBlock: $fromBlock) {
|
|
92
|
+
success
|
|
93
|
+
transactionsAdded
|
|
94
|
+
message
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
`,
|
|
98
|
+
variables: {
|
|
99
|
+
docId,
|
|
100
|
+
address,
|
|
101
|
+
fromBlock,
|
|
102
|
+
},
|
|
103
|
+
}),
|
|
104
|
+
});
|
|
105
|
+
if (!response.ok) {
|
|
106
|
+
throw new Error(`GraphQL endpoint error: ${response.status} - ${response.statusText}`);
|
|
107
|
+
}
|
|
108
|
+
const result = (await response.json());
|
|
109
|
+
if (result.errors) {
|
|
110
|
+
throw new Error(result.errors[0]?.message || "GraphQL error");
|
|
111
|
+
}
|
|
112
|
+
if (result.data?.AccountTransactions_fetchTransactionsFromAlchemy?.success) {
|
|
113
|
+
return result.data.AccountTransactions_fetchTransactionsFromAlchemy;
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
throw new Error("Failed to fetch transactions from Alchemy");
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
catch (error) {
|
|
120
|
+
console.error(`[AlchemyIntegration] Error in ${this.isLocal ? "local" : "remote"} mode:`, error);
|
|
121
|
+
throw error;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Get environment information for debugging
|
|
126
|
+
*/
|
|
127
|
+
getEnvironmentInfo() {
|
|
128
|
+
return {
|
|
129
|
+
endpoint: this.graphqlEndpoint,
|
|
130
|
+
mode: this.isLocal ? "Local Connect" : "Remote Switchboard",
|
|
131
|
+
isLocal: this.isLocal,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
// Export singleton instance following the pattern
|
|
136
|
+
export const alchemyIntegration = new AlchemyIntegrationService();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Account } from "../../../document-models/account-transactions/gen/types.js";
|
|
2
|
+
interface AccountSectionProps {
|
|
3
|
+
account: Account;
|
|
4
|
+
hasFetchedTransactions: boolean;
|
|
5
|
+
onSetAccount: (address: string, name?: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function AccountSection({ account, hasFetchedTransactions, onSetAccount, }: AccountSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=AccountSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountSection.d.ts","sourceRoot":"","sources":["../../../../editors/account-transactions-editor/components/AccountSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4DAA4D,CAAC;AAE1F,UAAU,mBAAmB;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,OAAO,CAAC;IAChC,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACxD;AAED,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,sBAAsB,EACtB,YAAY,GACb,EAAE,mBAAmB,2CAmKrB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { Button, Form, StringField } from "@powerhousedao/document-engineering";
|
|
4
|
+
export function AccountSection({ account, hasFetchedTransactions, onSetAccount, }) {
|
|
5
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
6
|
+
function handleSubmit(values) {
|
|
7
|
+
if (values.address) {
|
|
8
|
+
onSetAccount(values.address, values.name);
|
|
9
|
+
setIsEditing(false);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
const hasAccount = account.account && account.account.trim() !== "";
|
|
13
|
+
const isLocked = hasAccount && hasFetchedTransactions;
|
|
14
|
+
return (_jsxs("div", { className: "bg-white rounded-xl border border-gray-200 p-6 mb-8", children: [_jsxs("div", { className: "flex items-center justify-between mb-4", children: [_jsx("h2", { className: "text-lg font-semibold text-gray-900", children: "Account Settings" }), hasAccount && !isLocked && !isEditing && (_jsx(Button, { onClick: () => setIsEditing(true), className: "bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 text-sm", children: "Change Account" }))] }), !hasAccount && !isEditing ? (_jsx("div", { className: "bg-yellow-50 border border-yellow-200 rounded-lg p-4", children: _jsxs("div", { className: "flex items-center", children: [_jsx("svg", { className: "h-5 w-5 text-yellow-400 mr-3", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z" }) }), _jsxs("div", { className: "flex-1", children: [_jsx("h3", { className: "text-sm font-medium text-yellow-800", children: "No Account Set" }), _jsx("p", { className: "text-sm text-yellow-700 mt-1", children: "Set an Ethereum address to start tracking transactions for this account." })] }), _jsx(Button, { onClick: () => setIsEditing(true), className: "ml-4 bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 text-sm", children: "Set Account" })] }) })) : hasAccount && !isEditing ? (_jsx("div", { className: "bg-green-50 border border-green-200 rounded-lg p-4", children: _jsxs("div", { className: "flex items-center", children: [_jsx("svg", { className: "h-5 w-5 text-green-400 mr-3", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" }) }), _jsxs("div", { className: "flex-1", children: [_jsxs("h3", { className: "text-sm font-medium text-green-800", children: ["Account Configured", isLocked && " (Locked)"] }), _jsx("p", { className: "text-sm text-green-700 mt-1 font-mono break-all", children: account.account }), account.name && (_jsxs("p", { className: "text-sm text-green-600 mt-1", children: ["Name: ", account.name] })), isLocked && (_jsx("p", { className: "text-xs text-gray-600 mt-2", children: "Account is locked after fetching transactions. Create a new document to use a different account." }))] })] }) })) : (_jsxs(Form, { onSubmit: handleSubmit, defaultValues: {
|
|
15
|
+
address: account.account || "",
|
|
16
|
+
name: account.name || "",
|
|
17
|
+
}, className: "space-y-4", children: [isLocked && (_jsx("p", { className: "text-sm text-gray-600", children: "Account changes are disabled after transactions have been fetched." })), _jsxs("div", { children: [_jsx("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "Ethereum Address *" }), _jsx(StringField, { name: "address", placeholder: "0x...", className: "w-full font-mono", required: true, disabled: Boolean(isLocked) }), _jsx("p", { className: "text-xs text-gray-500 mt-1", children: "Enter the Ethereum address for this account" })] }), _jsxs("div", { children: [_jsx("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "Account Name (Optional)" }), _jsx(StringField, { name: "name", placeholder: "My Main Wallet", className: "w-full", disabled: Boolean(isLocked) }), _jsx("p", { className: "text-xs text-gray-500 mt-1", children: "A friendly name for this account" })] }), _jsxs("div", { className: "flex gap-3", children: [_jsx(Button, { type: "submit", className: "bg-blue-600 hover:bg-blue-700 text-white px-6 py-2", disabled: Boolean(isLocked), children: "Set Account" }), _jsx(Button, { type: "button", onClick: () => setIsEditing(false), className: "bg-gray-300 hover:bg-gray-400 text-gray-700 px-6 py-2", disabled: Boolean(isLocked), children: "Cancel" })] })] }))] }));
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AccountTransactionsDocument } from "../../../document-models/account-transactions/gen/types.js";
|
|
2
|
+
interface DocumentHeaderProps {
|
|
3
|
+
document: AccountTransactionsDocument;
|
|
4
|
+
onNameChange: (name: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function DocumentHeader({ document, onNameChange, }: DocumentHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=DocumentHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentHeader.d.ts","sourceRoot":"","sources":["../../../../editors/account-transactions-editor/components/DocumentHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4DAA4D,CAAC;AAE9G,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,2BAA2B,CAAC;IACtC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,YAAY,GACb,EAAE,mBAAmB,2CAmFrB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { Button, Form, FormLabel, StringField, } from "@powerhousedao/document-engineering";
|
|
4
|
+
export function DocumentHeader({ document, onNameChange, }) {
|
|
5
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
6
|
+
function handleSubmit(values) {
|
|
7
|
+
if (values.name) {
|
|
8
|
+
onNameChange(values.name);
|
|
9
|
+
setIsEditing(false);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return (_jsxs("div", { className: "bg-white rounded-xl border border-gray-200 p-6 mb-8", children: [_jsx("div", { className: "flex items-center justify-between mb-4", children: isEditing ? (_jsxs(Form, { onSubmit: handleSubmit, defaultValues: { name: document.header.name }, className: "flex items-center gap-3 flex-1", children: [_jsx("div", { className: "flex-1", children: _jsx(StringField, { name: "name", placeholder: "Enter document name", className: "text-2xl font-semibold border-0 border-b-2 border-gray-300 focus:border-blue-500 bg-transparent p-0" }) }), _jsxs("div", { className: "flex gap-2", children: [_jsx(Button, { type: "submit", className: "bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 text-sm", children: "Save" }), _jsx(Button, { type: "button", onClick: () => setIsEditing(false), className: "bg-gray-300 hover:bg-gray-400 text-gray-700 px-3 py-1 text-sm", children: "Cancel" })] })] })) : (_jsxs(_Fragment, { children: [_jsx("h1", { className: "text-2xl font-semibold text-gray-900", children: document.header.name }), _jsx(Button, { onClick: () => setIsEditing(true), className: "bg-gray-100 hover:bg-gray-200 text-gray-700 px-3 py-1 text-sm border border-gray-300", children: "Edit Name" })] })) }), _jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 text-sm text-gray-600", children: [_jsxs("div", { children: [_jsx("span", { className: "font-medium", children: "ID:" }), _jsx("p", { className: "font-mono text-xs break-all", children: document.header.id })] }), _jsxs("div", { children: [_jsx("span", { className: "font-medium", children: "Type:" }), _jsx("p", { children: document.header.documentType })] }), _jsxs("div", { children: [_jsx("span", { className: "font-medium", children: "Created:" }), _jsx("p", { children: new Date(document.header.createdAtUtcIso).toLocaleDateString() })] }), _jsxs("div", { children: [_jsx("span", { className: "font-medium", children: "Modified:" }), _jsx("p", { children: new Date(document.header.lastModifiedAtUtcIso).toLocaleDateString() })] })] })] }));
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TransactionEntry, Budget, AddTransactionInput } from "../../../document-models/account-transactions/gen/types.js";
|
|
2
|
+
interface TransactionFormProps {
|
|
3
|
+
transaction?: TransactionEntry;
|
|
4
|
+
budgets: Budget[];
|
|
5
|
+
onSubmit: (values: AddTransactionInput | Omit<AddTransactionInput, "id">) => void;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function TransactionForm({ transaction, budgets, onSubmit, onCancel, }: TransactionFormProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=TransactionForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionForm.d.ts","sourceRoot":"","sources":["../../../../editors/account-transactions-editor/components/TransactionForm.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAChB,MAAM,EACN,mBAAmB,EACpB,MAAM,4DAA4D,CAAC;AAEpE,UAAU,oBAAoB;IAC5B,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,CACR,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,KAC1D,IAAI,CAAC;IACV,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,OAAO,EACP,QAAQ,EACR,QAAQ,GACT,EAAE,oBAAoB,2CAqMtB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Form, FormLabel, StringField, SelectField, } from "@powerhousedao/document-engineering";
|
|
3
|
+
export function TransactionForm({ transaction, budgets, onSubmit, onCancel, }) {
|
|
4
|
+
const isEditing = !!transaction;
|
|
5
|
+
const defaultValues = transaction
|
|
6
|
+
? {
|
|
7
|
+
id: transaction.id,
|
|
8
|
+
counterParty: transaction.counterParty || "",
|
|
9
|
+
amount: typeof transaction.amount === "object"
|
|
10
|
+
? transaction.amount.value
|
|
11
|
+
: transaction.amount,
|
|
12
|
+
datetime: new Date(transaction.datetime).toISOString().slice(0, 16), // Convert ISO to datetime-local format
|
|
13
|
+
txHash: transaction.details.txHash,
|
|
14
|
+
token: transaction.details.token,
|
|
15
|
+
blockNumber: transaction.details.blockNumber?.toString() || "",
|
|
16
|
+
budget: transaction.budget || "",
|
|
17
|
+
accountingPeriod: transaction.accountingPeriod,
|
|
18
|
+
direction: transaction.direction || "OUTFLOW",
|
|
19
|
+
}
|
|
20
|
+
: {
|
|
21
|
+
counterParty: "",
|
|
22
|
+
amount: "",
|
|
23
|
+
datetime: new Date().toISOString().slice(0, 16), // Format for datetime-local input
|
|
24
|
+
txHash: "",
|
|
25
|
+
token: "ETH",
|
|
26
|
+
blockNumber: "",
|
|
27
|
+
budget: "",
|
|
28
|
+
accountingPeriod: new Date().getFullYear().toString(),
|
|
29
|
+
direction: "OUTFLOW",
|
|
30
|
+
};
|
|
31
|
+
function handleSubmit(values) {
|
|
32
|
+
const formattedValues = {
|
|
33
|
+
...(isEditing && { id: values.id }),
|
|
34
|
+
counterParty: values.counterParty,
|
|
35
|
+
amount: {
|
|
36
|
+
unit: values.token,
|
|
37
|
+
value: values.amount,
|
|
38
|
+
},
|
|
39
|
+
datetime: new Date(values.datetime).toISOString(),
|
|
40
|
+
txHash: values.txHash,
|
|
41
|
+
token: values.token,
|
|
42
|
+
blockNumber: values.blockNumber
|
|
43
|
+
? parseInt(values.blockNumber)
|
|
44
|
+
: undefined,
|
|
45
|
+
budget: values.budget || undefined,
|
|
46
|
+
accountingPeriod: values.accountingPeriod,
|
|
47
|
+
direction: values.direction,
|
|
48
|
+
};
|
|
49
|
+
onSubmit(formattedValues);
|
|
50
|
+
}
|
|
51
|
+
const budgetOptions = [
|
|
52
|
+
{ value: "", label: "No Budget" },
|
|
53
|
+
...budgets.map((budget) => ({
|
|
54
|
+
value: budget.id,
|
|
55
|
+
label: budget.name || `Budget ${budget.id.slice(0, 8)}`,
|
|
56
|
+
})),
|
|
57
|
+
];
|
|
58
|
+
const tokenOptions = [
|
|
59
|
+
{ value: "ETH", label: "ETH" },
|
|
60
|
+
{ value: "USDC", label: "USDC" },
|
|
61
|
+
{ value: "USDT", label: "USDT" },
|
|
62
|
+
{ value: "DAI", label: "DAI" },
|
|
63
|
+
{ value: "WETH", label: "WETH" },
|
|
64
|
+
];
|
|
65
|
+
const directionOptions = [
|
|
66
|
+
{ value: "INFLOW", label: "Inflow (IN)" },
|
|
67
|
+
{ value: "OUTFLOW", label: "Outflow (OUT)" },
|
|
68
|
+
];
|
|
69
|
+
return (_jsx("div", { className: "bg-white rounded-xl border border-gray-200 p-6", children: _jsxs(Form, { onSubmit: handleSubmit, defaultValues: defaultValues, className: "space-y-6", children: [_jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [_jsxs("div", { children: [_jsx(FormLabel, { htmlFor: "counterParty", required: true, children: "Counter Party Address" }), _jsx(StringField, { name: "counterParty", placeholder: "0x...", className: "font-mono", required: true }), _jsx("p", { className: "text-xs text-gray-500 mt-1", children: "Ethereum address of the transaction counterpart" })] }), _jsxs("div", { children: [_jsx(FormLabel, { htmlFor: "amount", required: true, children: "Amount" }), _jsx(StringField, { name: "amount", placeholder: "0.00", type: "number", step: "any", required: true })] }), _jsxs("div", { children: [_jsx(FormLabel, { htmlFor: "datetime", required: true, children: "Date & Time" }), _jsx(StringField, { name: "datetime", type: "datetime-local", required: true })] }), _jsxs("div", { children: [_jsx(FormLabel, { htmlFor: "token", required: true, children: "Token" }), _jsx(SelectField, { name: "token", options: tokenOptions, required: true })] }), _jsxs("div", { children: [_jsx(FormLabel, { htmlFor: "direction", required: true, children: "Direction" }), _jsx(SelectField, { name: "direction", options: directionOptions, required: true })] }), _jsxs("div", { children: [_jsx(FormLabel, { htmlFor: "txHash", required: true, children: "Transaction Hash" }), _jsx(StringField, { name: "txHash", placeholder: "0x...", className: "font-mono", required: true })] }), _jsxs("div", { children: [_jsx(FormLabel, { htmlFor: "blockNumber", children: "Block Number (Optional)" }), _jsx(StringField, { name: "blockNumber", placeholder: "18000000", type: "number" })] }), _jsxs("div", { children: [_jsx(FormLabel, { htmlFor: "budget", children: "Budget (Optional)" }), _jsx(SelectField, { name: "budget", options: budgetOptions })] }), _jsxs("div", { children: [_jsx(FormLabel, { htmlFor: "accountingPeriod", required: true, children: "Accounting Period" }), _jsx(StringField, { name: "accountingPeriod", placeholder: "2024", required: true }), _jsx("p", { className: "text-xs text-gray-500 mt-1", children: "Year or period for accounting purposes" })] })] }), _jsxs("div", { className: "flex items-center justify-end gap-4 pt-6 border-t border-gray-200", children: [_jsx(Button, { type: "button", onClick: onCancel, className: "bg-gray-300 hover:bg-gray-400 text-gray-700 px-6 py-2", children: "Cancel" }), _jsx(Button, { type: "submit", className: "bg-blue-600 hover:bg-blue-700 text-white px-6 py-2", children: isEditing ? "Update Transaction" : "Add Transaction" })] })] }) }));
|
|
70
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TransactionEntry } from "../../../document-models/account-transactions/gen/types.js";
|
|
2
|
+
interface TransactionsTableProps {
|
|
3
|
+
transactions: TransactionEntry[];
|
|
4
|
+
onEdit: (transaction: TransactionEntry) => void;
|
|
5
|
+
onDelete: (id: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function TransactionsTable({ transactions, onEdit, onDelete, }: TransactionsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=TransactionsTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionsTable.d.ts","sourceRoot":"","sources":["../../../../editors/account-transactions-editor/components/TransactionsTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAEnG,UAAU,sBAAsB;IAC9B,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,MAAM,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAChD,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EACZ,MAAM,EACN,QAAQ,GACT,EAAE,sBAAsB,2CAoNxB"}
|