Commit graph

19 commits

Author SHA1 Message Date
Adam Moussa
b345eb6d0d Add Claude Code review workflow 2026-05-06 18:06:58 -04:00
Adam Moussa
c7cbded571
Merge pull request #7 from Sea-Haven-Industries/feature/dependabot-auto-assign
Auto-assign Dependabot PRs
2026-05-02 17:28:22 -04:00
Adam Moussa
b459b53d70 Auto-assign Dependabot PRs to amoussa1229 2026-05-02 17:26:34 -04:00
Adam Moussa
620428604d
Merge pull request #6 from Sea-Haven-Industries/dependabot/pip/pyyaml-gte-6.0.3
Update pyyaml requirement from >=6.0 to >=6.0.3
2026-05-02 17:25:48 -04:00
dependabot[bot]
000f2ed12a
Update pyyaml requirement from >=6.0 to >=6.0.3
Updates the requirements on [pyyaml](https://github.com/yaml/pyyaml) to permit the latest version.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/6.0.3/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/6.0...6.0.3)

---
updated-dependencies:
- dependency-name: pyyaml
  dependency-version: 6.0.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-02 21:24:32 +00:00
Adam Moussa
bfa781848f
Merge pull request #5 from Sea-Haven-Industries/dependabot/pip/requests-gte-2.33.1
Update requests requirement from >=2.31.0 to >=2.33.1
2026-05-02 17:23:28 -04:00
Adam Moussa
ccdca7bf80
Merge pull request #4 from Sea-Haven-Industries/dependabot/pip/boto3-gte-1.43.2
Update boto3 requirement from >=1.28.0 to >=1.43.2
2026-05-02 17:23:25 -04:00
dependabot[bot]
4187073882
Update requests requirement from >=2.31.0 to >=2.33.1
Updates the requirements on [requests](https://github.com/psf/requests) to permit the latest version.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.31.0...v2.33.1)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.33.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-02 21:17:25 +00:00
dependabot[bot]
a088322220
Update boto3 requirement from >=1.28.0 to >=1.43.2
Updates the requirements on [boto3](https://github.com/boto/boto3) to permit the latest version.
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.28.0...1.43.2)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.43.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-02 21:17:20 +00:00
Adam Moussa
594645edbd
Merge pull request #3 from Sea-Haven-Industries/feature/add-dependabot-config
Add Dependabot version update configuration
2026-05-02 17:15:57 -04:00
Adam Moussa
67a38484dc Add Dependabot version update configuration 2026-05-02 17:14:35 -04:00
Adam Moussa
77989d1983 Switch from ring group to queue API for extension 801
3CX extension 801 was converted from a ring group to a queue,
so the XAPI calls need to use Queues endpoints instead of RingGroups.
Also adds samconfig.toml for streamlined deploys.
2026-04-21 15:11:34 -04:00
Adam Moussa
c2b81a9f6b
Merge pull request #2 from Sea-Haven-Industries/feature/weekend-day-shifts
feat: Support weekend day shifts (8am-5pm)
2026-04-07 18:30:58 -04:00
Adam Moussa
642d24429c Support weekend day shifts (8am-5pm) alongside after-hours
On weekends, the scheduler now runs twice:
- 8am: routes calls to the day shift person (checks DynamoDB -DAY keys)
- 5pm: switches to the night shift person (existing after-hours logic)

Adds two EventBridge rules for weekend 5pm triggers (EST/EDT).
DynamoDB keys: OVERRIDE SK=<date>-DAY, WEEKLY SK=Saturday-Day/Sunday-Day.
2026-04-07 18:30:39 -04:00
Adam Moussa
9143c93386
Merge pull request #1 from Sea-Haven-Industries/feature/dynamodb-shift-integration
Add DynamoDB integration for Slack shift manager
2026-04-03 18:31:28 -04:00
Adam Moussa
e142a71873 Add DynamoDB integration for Slack shift manager overrides
The scheduler now checks the afterhours-shifts DynamoDB table before
falling back to the YAML config. This enables the Slack shift manager
bot to drive schedule changes that take effect at the next 8am run.
Same-day changes are handled by direct Lambda invocation from the bot.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 18:30:33 -04:00
Adam Moussa
775ed07506 Add README
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 17:41:57 -04:00
Adam Moussa
cb5817ce95 Fix module import, IAM permissions, and add manual test support
- Fix three_cx_client import path for Lambda packaging
- Expand SSM policy to include parent path and KMS decrypt for SecureString
- Add force flag to bypass 8am schedule check for manual invocations
- Add override_extension payload option for ad-hoc testing
- Update .gitignore for output.json and .DS_Store

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 17:40:58 -04:00
Adam Moussa
dc1d0bfe75 Initial commit: 3CX ring group after-hours scheduler
Lambda + EventBridge that updates ring group 800 forwarding daily at 8am ET.
Uses 3CX V20 XAPI with OAuth2 auth. Dual cron rules for EST/EDT handling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 17:16:08 -04:00