uapp-communication-sdk 1.0.0-dev.109 → 1.0.0-dev.112

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.
Files changed (90) hide show
  1. package/communication-sdk.cjs +4 -4
  2. package/communication-sdk.js +1514 -1483
  3. package/communication-sdk.standalone.js +4 -4
  4. package/package.json +1 -1
  5. package/types/app/shell/AccountProfilePanel.d.ts.map +1 -1
  6. package/types/app/shell/use-account-profile.d.ts +3 -1
  7. package/types/app/shell/use-account-profile.d.ts.map +1 -1
  8. package/types/features/calls/presentation/CallButton.d.ts.map +1 -1
  9. package/types/features/feed/presentation/FeedPostCardSubcomponents.d.ts +4 -2
  10. package/types/features/feed/presentation/FeedPostCardSubcomponents.d.ts.map +1 -1
  11. package/types/features/feed/presentation/PostComments.d.ts.map +1 -1
  12. package/types/features/module-access/domain/module-access.d.ts +4 -0
  13. package/types/features/module-access/domain/module-access.d.ts.map +1 -1
  14. package/types/features/org/application/index.d.ts +5 -0
  15. package/types/features/org/application/index.d.ts.map +1 -1
  16. package/types/features/org/application/use-cases/delete-communication-rule.d.ts +15 -0
  17. package/types/features/org/application/use-cases/delete-communication-rule.d.ts.map +1 -0
  18. package/types/features/org/application/use-cases/link-communication-rule-webhook.d.ts +15 -0
  19. package/types/features/org/application/use-cases/link-communication-rule-webhook.d.ts.map +1 -0
  20. package/types/features/org/application/use-cases/list-communication-rules.d.ts +15 -0
  21. package/types/features/org/application/use-cases/list-communication-rules.d.ts.map +1 -0
  22. package/types/features/org/application/use-cases/save-communication-rule.d.ts +18 -0
  23. package/types/features/org/application/use-cases/save-communication-rule.d.ts.map +1 -0
  24. package/types/features/org/application/use-cases/unlink-communication-rule-webhook.d.ts +15 -0
  25. package/types/features/org/application/use-cases/unlink-communication-rule-webhook.d.ts.map +1 -0
  26. package/types/features/org/domain/communication-rule.d.ts +23 -0
  27. package/types/features/org/domain/communication-rule.d.ts.map +1 -0
  28. package/types/features/org/domain/errors/org-errors.d.ts +5 -0
  29. package/types/features/org/domain/errors/org-errors.d.ts.map +1 -1
  30. package/types/features/org/domain/index.d.ts +1 -0
  31. package/types/features/org/domain/index.d.ts.map +1 -1
  32. package/types/features/org/domain/ports/org-gateway.d.ts +7 -0
  33. package/types/features/org/domain/ports/org-gateway.d.ts.map +1 -1
  34. package/types/features/org/infrastructure/dto/org-dtos.d.ts +57 -0
  35. package/types/features/org/infrastructure/dto/org-dtos.d.ts.map +1 -1
  36. package/types/features/org/infrastructure/http-branches-gateway.d.ts +16 -0
  37. package/types/features/org/infrastructure/http-branches-gateway.d.ts.map +1 -0
  38. package/types/features/org/infrastructure/http-communication-rules-gateway.d.ts +17 -0
  39. package/types/features/org/infrastructure/http-communication-rules-gateway.d.ts.map +1 -0
  40. package/types/features/org/infrastructure/http-hierarchy-gateway.d.ts +16 -0
  41. package/types/features/org/infrastructure/http-hierarchy-gateway.d.ts.map +1 -0
  42. package/types/features/org/infrastructure/http-org-call.d.ts +15 -0
  43. package/types/features/org/infrastructure/http-org-call.d.ts.map +1 -0
  44. package/types/features/org/infrastructure/http-org-gateway.d.ts +16 -21
  45. package/types/features/org/infrastructure/http-org-gateway.d.ts.map +1 -1
  46. package/types/features/org/infrastructure/http-org-routes.d.ts +4 -0
  47. package/types/features/org/infrastructure/http-org-routes.d.ts.map +1 -1
  48. package/types/features/org/infrastructure/http-teams-gateway.d.ts +15 -0
  49. package/types/features/org/infrastructure/http-teams-gateway.d.ts.map +1 -0
  50. package/types/features/org/infrastructure/http-user-branches-gateway.d.ts +14 -0
  51. package/types/features/org/infrastructure/http-user-branches-gateway.d.ts.map +1 -0
  52. package/types/features/org/infrastructure/http-user-types-gateway.d.ts +22 -0
  53. package/types/features/org/infrastructure/http-user-types-gateway.d.ts.map +1 -0
  54. package/types/features/org/infrastructure/org-mappers.d.ts +4 -2
  55. package/types/features/org/infrastructure/org-mappers.d.ts.map +1 -1
  56. package/types/features/org/org-module.d.ts +6 -1
  57. package/types/features/org/org-module.d.ts.map +1 -1
  58. package/types/features/org/presentation/AccessControlPage.d.ts +2 -3
  59. package/types/features/org/presentation/AccessControlPage.d.ts.map +1 -1
  60. package/types/features/org/presentation/CommunicationRuleModal.d.ts +11 -0
  61. package/types/features/org/presentation/CommunicationRuleModal.d.ts.map +1 -0
  62. package/types/features/org/presentation/CommunicationRulesPanel.d.ts +7 -0
  63. package/types/features/org/presentation/CommunicationRulesPanel.d.ts.map +1 -0
  64. package/types/features/org/presentation/RuleCard.d.ts +13 -0
  65. package/types/features/org/presentation/RuleCard.d.ts.map +1 -0
  66. package/types/features/org/presentation/RuleFormInputs.d.ts +11 -0
  67. package/types/features/org/presentation/RuleFormInputs.d.ts.map +1 -0
  68. package/types/features/org/presentation/TargetRolesPicker.d.ts +12 -0
  69. package/types/features/org/presentation/TargetRolesPicker.d.ts.map +1 -0
  70. package/types/features/org/presentation/WebhookRuleGuide.d.ts +3 -0
  71. package/types/features/org/presentation/WebhookRuleGuide.d.ts.map +1 -0
  72. package/types/features/org/presentation/index.d.ts +3 -0
  73. package/types/features/org/presentation/index.d.ts.map +1 -1
  74. package/types/features/org/presentation/org-query-keys.d.ts +1 -0
  75. package/types/features/org/presentation/org-query-keys.d.ts.map +1 -1
  76. package/types/features/org/presentation/use-communication-rules.d.ts +16 -0
  77. package/types/features/org/presentation/use-communication-rules.d.ts.map +1 -0
  78. package/types/features/org/presentation/use-my-user-type.d.ts.map +1 -1
  79. package/types/features/org/presentation/use-org-module.d.ts +2 -0
  80. package/types/features/org/presentation/use-org-module.d.ts.map +1 -1
  81. package/types/features/org/presentation/use-role-selection.d.ts +13 -0
  82. package/types/features/org/presentation/use-role-selection.d.ts.map +1 -0
  83. package/types/features/org/presentation/use-rule-form-modal.d.ts +24 -0
  84. package/types/features/org/presentation/use-rule-form-modal.d.ts.map +1 -0
  85. package/types/features/org/presentation/use-save-communication-rule-handler.d.ts +7 -0
  86. package/types/features/org/presentation/use-save-communication-rule-handler.d.ts.map +1 -0
  87. package/types/features/schedule/presentation/RecurrenceBuilder.d.ts.map +1 -1
  88. package/types/features/schedule/presentation/use-conflict-resolver.d.ts.map +1 -1
  89. package/types/features/settings/index.d.ts +2 -2
  90. package/types/features/settings/index.d.ts.map +1 -1
@@ -20,7 +20,11 @@ export declare const ORG_ROUTES: {
20
20
  readonly orgSettings: "/api/app/org-settings";
21
21
  readonly teams: "/api/app/team";
22
22
  readonly branches: "/api/app/branch";
23
+ readonly communicationRules: "/api/app/communication-rule";
23
24
  };
25
+ export declare const communicationRulePath: (id: string) => string;
26
+ export declare const linkRuleWebhookPath: (id: string, webhookId: string) => string;
27
+ export declare const unlinkRuleWebhookPath: (id: string) => string;
24
28
  /** A single catalogue type by id (PUT update / DELETE). */
25
29
  export declare const userTypePath: (id: string) => string;
26
30
  /** A single team by id (PUT update / DELETE). */
@@ -1 +1 @@
1
- {"version":3,"file":"http-org-routes.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/infrastructure/http-org-routes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAoBb,CAAC;AAEX,2DAA2D;AAC3D,eAAO,MAAM,YAAY,GAAI,IAAI,MAAM,KAAG,MACM,CAAC;AAEjD,iDAAiD;AACjD,eAAO,MAAM,QAAQ,GAAI,IAAI,MAAM,KAAG,MAAmD,CAAC;AAE1F,mDAAmD;AACnD,eAAO,MAAM,UAAU,GAAI,IAAI,MAAM,KAAG,MACK,CAAC;AAE9C,2FAA2F;AAC3F,eAAO,MAAM,oBAAoB,GAAI,IAAI,MAAM,KAAG,MACO,CAAC;AAE1D,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,GAAI,QAAQ,MAAM,KAAG,MACO,CAAC;AAE9D,wEAAwE;AACxE,eAAO,MAAM,oBAAoB,GAAI,YAAY,MAAM,KAAG,MACS,CAAC;AAEpE,oEAAoE;AACpE,eAAO,MAAM,uBAAuB,GAAI,QAAQ,MAAM,KAAG,MACM,CAAC;AAEhE,gFAAgF;AAChF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,MAAM,KAAG,MACO,CAAC"}
1
+ {"version":3,"file":"http-org-routes.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/infrastructure/http-org-routes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;CAqBb,CAAC;AAEX,eAAO,MAAM,qBAAqB,GAAI,IAAI,MAAM,KAAG,MACM,CAAC;AAE1D,eAAO,MAAM,mBAAmB,GAAI,IAAI,MAAM,EAAE,WAAW,MAAM,KAAG,MACqD,CAAC;AAE1H,eAAO,MAAM,qBAAqB,GAAI,IAAI,MAAM,KAAG,MACqB,CAAC;AAEzE,2DAA2D;AAC3D,eAAO,MAAM,YAAY,GAAI,IAAI,MAAM,KAAG,MACM,CAAC;AAEjD,iDAAiD;AACjD,eAAO,MAAM,QAAQ,GAAI,IAAI,MAAM,KAAG,MAAmD,CAAC;AAE1F,mDAAmD;AACnD,eAAO,MAAM,UAAU,GAAI,IAAI,MAAM,KAAG,MACK,CAAC;AAE9C,2FAA2F;AAC3F,eAAO,MAAM,oBAAoB,GAAI,IAAI,MAAM,KAAG,MACO,CAAC;AAE1D,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,GAAI,QAAQ,MAAM,KAAG,MACO,CAAC;AAE9D,wEAAwE;AACxE,eAAO,MAAM,oBAAoB,GAAI,YAAY,MAAM,KAAG,MACS,CAAC;AAEpE,oEAAoE;AACpE,eAAO,MAAM,uBAAuB,GAAI,QAAQ,MAAM,KAAG,MACM,CAAC;AAEhE,gFAAgF;AAChF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,MAAM,KAAG,MACO,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { HttpClient } from '@core/http';
2
+ import type { Logger } from '@core/logger';
3
+ import type { Result } from '@core/result';
4
+ import type { OrgError, OrgTeam, TeamDraft } from '../domain';
5
+ export declare class HttpTeamsGateway {
6
+ private readonly http;
7
+ private readonly call;
8
+ constructor(http: HttpClient, logger: Logger);
9
+ list(): Promise<Result<readonly OrgTeam[], OrgError>>;
10
+ create(draft: TeamDraft): Promise<Result<OrgTeam, OrgError>>;
11
+ update(id: string, draft: TeamDraft): Promise<Result<OrgTeam, OrgError>>;
12
+ delete(id: string): Promise<Result<void, OrgError>>;
13
+ private save;
14
+ }
15
+ //# sourceMappingURL=http-teams-gateway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-teams-gateway.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/infrastructure/http-teams-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAM9D,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAc;gBAEhB,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM;IAK5C,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,SAAS,OAAO,EAAE,EAAE,QAAQ,CAAC,CAAC;IAMrD,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAM5D,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAIxE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAI1D,OAAO,CAAC,IAAI;CAGb"}
@@ -0,0 +1,14 @@
1
+ import type { HttpClient } from '@core/http';
2
+ import type { Logger } from '@core/logger';
3
+ import type { Result } from '@core/result';
4
+ import type { OrgBranchOption, OrgError, UserBranchAssignment } from '../domain';
5
+ export declare class HttpUserBranchesGateway {
6
+ private readonly http;
7
+ private readonly call;
8
+ constructor(http: HttpClient, logger: Logger);
9
+ getUserBranches(userId: string): Promise<Result<readonly UserBranchAssignment[], OrgError>>;
10
+ assignUserBranch(userId: string, branchKey: string, asPrimary: boolean): Promise<Result<void, OrgError>>;
11
+ removeUserBranch(userId: string, branchKey: string): Promise<Result<void, OrgError>>;
12
+ listBranchOptions(): Promise<Result<readonly OrgBranchOption[], OrgError>>;
13
+ }
14
+ //# sourceMappingURL=http-user-branches-gateway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-user-branches-gateway.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/infrastructure/http-user-branches-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAUjF,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAc;gBAEhB,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM;IAK5C,eAAe,CACpB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,SAAS,oBAAoB,EAAE,EAAE,QAAQ,CAAC,CAAC;IAMtD,gBAAgB,CACrB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,OAAO,GACjB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAQ3B,gBAAgB,CACrB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAQ3B,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,SAAS,eAAe,EAAE,EAAE,QAAQ,CAAC,CAAC;CAKlF"}
@@ -0,0 +1,22 @@
1
+ import type { HttpClient } from '@core/http';
2
+ import type { Logger } from '@core/logger';
3
+ import type { Result } from '@core/result';
4
+ import type { HierarchyInsertPlan, MyUserType, OrgError, OrgUserType, UserTypeDraft } from '../domain';
5
+ export declare class HttpUserTypesGateway {
6
+ private readonly http;
7
+ private readonly call;
8
+ constructor(http: HttpClient, logger: Logger);
9
+ listUserTypes(): Promise<Result<readonly OrgUserType[], OrgError>>;
10
+ createUserType(draft: UserTypeDraft): Promise<Result<OrgUserType, OrgError>>;
11
+ updateUserType(id: string, draft: UserTypeDraft): Promise<Result<OrgUserType, OrgError>>;
12
+ deleteUserType(id: string): Promise<Result<void, OrgError>>;
13
+ getHierarchyPlan(excludeId?: string): Promise<Result<HierarchyInsertPlan, OrgError>>;
14
+ getUserTypesFor(userId: string): Promise<Result<readonly MyUserType[], OrgError>>;
15
+ assignUserType(userId: string, userTypeId: string): Promise<Result<void, OrgError>>;
16
+ removeUserType(userId: string, userTypeId: string): Promise<Result<void, OrgError>>;
17
+ getMyUserTypes(): Promise<Result<readonly MyUserType[], OrgError>>;
18
+ switchMyUserType(userTypeId: string): Promise<Result<readonly MyUserType[], OrgError>>;
19
+ private saveUserType;
20
+ private myTypesCall;
21
+ }
22
+ //# sourceMappingURL=http-user-types-gateway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-user-types-gateway.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/infrastructure/http-user-types-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAA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EAAE,QAAQ,CAAC,CAAC;IAQ3B,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,SAAS,UAAU,EAAE,EAAE,QAAQ,CAAC,CAAC;IAIlE,gBAAgB,CACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC,SAAS,UAAU,EAAE,EAAE,QAAQ,CAAC,CAAC;IAMnD,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,WAAW;CAOpB"}
@@ -1,5 +1,5 @@
1
- import type { AssignableRole, AssignmentSource, BranchDraft, DataAccessScope, HierarchyEdge, HierarchyEdgeView, HierarchyInsertPlan, MyUserType, OrgBranch, OrgTeam, OrgUserType, TeamDraft, UserBranchAssignment, UserTypeDraft } from '../domain';
2
- import type { AssignableRoleDto, BranchDto, HierarchyEdgeDto, HierarchyEdgeViewDto, HierarchyPlanDto, MyUserTypeDto, TeamDto, UserBranchDto, UserTypeDto } from './dto/org-dtos';
1
+ import type { AssignableRole, AssignmentSource, BranchDraft, DataAccessScope, HierarchyEdge, HierarchyEdgeView, HierarchyInsertPlan, MyUserType, OrgBranch, OrgTeam, OrgUserType, TeamDraft, UserBranchAssignment, UserTypeDraft, CommunicationRule, CommunicationRuleDraft } from '../domain';
2
+ import type { AssignableRoleDto, BranchDto, HierarchyEdgeDto, HierarchyEdgeViewDto, HierarchyPlanDto, MyUserTypeDto, TeamDto, UserBranchDto, UserTypeDto, CommunicationRuleDto } from './dto/org-dtos';
3
3
  export declare const toScope: (value: number) => DataAccessScope;
4
4
  export declare const toScopeNumber: (scope: DataAccessScope) => number;
5
5
  /** Backend `AssignmentSource` numbers ⇄ the domain union (0 Portal / 1 Local). */
@@ -21,4 +21,6 @@ export declare const toOrgBranch: (dto: BranchDto) => OrgBranch;
21
21
  export declare const toCreateBranchDto: (draft: BranchDraft) => Record<string, unknown>;
22
22
  /** Domain draft → the backend `UpdateBranchInput` body (no key; adds the active flag). */
23
23
  export declare const toUpdateBranchDto: (draft: BranchDraft) => Record<string, unknown>;
24
+ export declare const toCommunicationRule: (dto: CommunicationRuleDto) => CommunicationRule;
25
+ export declare const toCommunicationRuleInputDto: (draft: CommunicationRuleDraft) => Record<string, unknown>;
24
26
  //# sourceMappingURL=org-mappers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"org-mappers.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/infrastructure/org-mappers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,OAAO,EACP,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,aAAa,EACd,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,aAAa,EACb,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAiBxB,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,KAAG,eACN,CAAC;AAEnC,eAAO,MAAM,aAAa,GAAI,OAAO,eAAe,KAAG,MAAgC,CAAC;AAExF,kFAAkF;AAClF,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,KAAG,gBACP,CAAC;AAEnC,eAAO,MAAM,aAAa,GAAI,KAAK,WAAW,KAAG,WAW/C,CAAC;AAEH,eAAO,MAAM,YAAY,GAAI,KAAK,aAAa,KAAG,UAKhD,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,KAAK,iBAAiB,KAAG,cASxD,CAAC;AAEH,eAAO,MAAM,eAAe,GAAI,KAAK,gBAAgB,KAAG,mBAWtD,CAAC;AAEH,eAAO,MAAM,eAAe,GAAI,KAAK,gBAAgB,KAAG,aAOtD,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,KAAK,oBAAoB,KAAG,iBAM9D,CAAC;AAEH,eAAO,MAAM,sBAAsB,GAAI,KAAK,aAAa,KAAG,oBAK1D,CAAC;AAEH,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,GAAI,OAAO,aAAa,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAS9E,CAAC;AAEH,eAAO,MAAM,SAAS,GAAI,KAAK,OAAO,KAAG,OAKvC,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAItE,CAAC;AAEH,eAAO,MAAM,WAAW,GAAI,KAAK,SAAS,KAAG,SAa3C,CAAC;AAEH,wFAAwF;AACxF,eAAO,MAAM,iBAAiB,GAAI,OAAO,WAAW,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAQ3E,CAAC;AAEH,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,GAAI,OAAO,WAAW,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAQ3E,CAAC"}
1
+ {"version":3,"file":"org-mappers.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/infrastructure/org-mappers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,OAAO,EACP,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EACV,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,aAAa,EACb,WAAW,EACX,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAiBxB,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,KAAG,eACN,CAAC;AAEnC,eAAO,MAAM,aAAa,GAAI,OAAO,eAAe,KAAG,MAAgC,CAAC;AAExF,kFAAk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AC"}
@@ -1,6 +1,6 @@
1
1
  import type { HttpClient } from '@core/http';
2
2
  import type { Logger } from '@core/logger';
3
- import { AssignManagerUseCase, AssignUserBranchUseCase, AssignUserTypeUseCase, DeleteBranchUseCase, DeleteTeamUseCase, DeleteUserTypeUseCase, GetAssignableRolesUseCase, GetGroupMembershipHierarchyUseCase, GetHierarchyPlanUseCase, SetGroupMembershipHierarchyUseCase, GetMyUserTypesUseCase, GetUserBranchesUseCase, GetUserTypesForUseCase, ListBranchOptionsUseCase, ListBranchesUseCase, ListHierarchyEdgesUseCase, ListTeamsUseCase, ListUserTypesUseCase, RemoveManagerUseCase, RemoveUserBranchUseCase, RemoveUserTypeUseCase, SaveBranchUseCase, SaveTeamUseCase, SaveUserTypeUseCase, SetDefaultBranchUseCase, SwitchMyUserTypeUseCase } from './application';
3
+ import { AssignManagerUseCase, AssignUserBranchUseCase, AssignUserTypeUseCase, DeleteBranchUseCase, DeleteCommunicationRuleUseCase, DeleteTeamUseCase, DeleteUserTypeUseCase, GetAssignableRolesUseCase, GetGroupMembershipHierarchyUseCase, GetHierarchyPlanUseCase, SetGroupMembershipHierarchyUseCase, GetMyUserTypesUseCase, GetUserBranchesUseCase, GetUserTypesForUseCase, LinkCommunicationRuleWebhookUseCase, ListBranchOptionsUseCase, ListBranchesUseCase, ListCommunicationRulesUseCase, ListHierarchyEdgesUseCase, ListTeamsUseCase, ListUserTypesUseCase, RemoveManagerUseCase, RemoveUserBranchUseCase, RemoveUserTypeUseCase, SaveBranchUseCase, SaveCommunicationRuleUseCase, SaveTeamUseCase, SaveUserTypeUseCase, SetDefaultBranchUseCase, SwitchMyUserTypeUseCase, UnlinkCommunicationRuleWebhookUseCase } from './application';
4
4
  export interface OrgModuleDeps {
5
5
  readonly logger: Logger;
6
6
  readonly httpClient: HttpClient;
@@ -32,6 +32,11 @@ export interface OrgModule {
32
32
  readonly saveBranch: SaveBranchUseCase;
33
33
  readonly deleteBranch: DeleteBranchUseCase;
34
34
  readonly setDefaultBranch: SetDefaultBranchUseCase;
35
+ readonly listCommunicationRules: ListCommunicationRulesUseCase;
36
+ readonly saveCommunicationRule: SaveCommunicationRuleUseCase;
37
+ readonly deleteCommunicationRule: DeleteCommunicationRuleUseCase;
38
+ readonly linkCommunicationRuleWebhook: LinkCommunicationRuleWebhookUseCase;
39
+ readonly unlinkCommunicationRuleWebhook: UnlinkCommunicationRuleWebhookUseCase;
35
40
  }
36
41
  /** Composition root for the org feature — wires the HTTP gateway to the use cases. */
37
42
  export declare const createOrgModule: (deps: OrgModuleDeps) => OrgModule;
@@ -1 +1 @@
1
- {"version":3,"file":"org-module.d.ts","sourceRoot":"","sources":["../../../../../src/features/org/org-module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,kCAAkC,EAClC,uBAAuB,EACvB,kCAAkC,EAClC,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,eAAe,CAAC;AAGvB,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;CACjC;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,aAAa,EAAE,oBAAoB,CAAC;IAC7C,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,QAAQ,CAAC,cAAc,EAAE,qBA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;IACvD,QAAQ,CAAC,kBAAkB,EAAE,yBAAyB,CAAC;IACvD,QAAQ,CAAC,2BAA2B,EAAE,kCAAkC,CAAC;IACzE,QAAQ,CAAC,2BAA2B,EAAE,kCAAkC,CAAC;IACzE,QAAQ,CAAC,aAAa,EAAE,oBAAoB,CAAC;IAC7C,QAAQ,CAAC,aAAa,EAAE,oBAAoB,CAAC;IAC7C,QAAQ,CAAC,eAAe,EAAE,sBAAsB,CAAC;IACjD,QAAQ,CAAC,gBAAgB,EAAE,uBAAuB,CAAC;IACnD,QAAQ,CAAC,gBAAgB,EAAE,uBAAuB,CAAC;IACnD,QAAQ,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;IACrD,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACrC,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,QAAQ,CAAC,gBAAgB,EAAE,uBAAuB,CAAC;IACnD,QAAQ,CAAC,sBAAsB,EAAE,6BAA6B,CAAC;IAC/D,QAAQ,CAAC,qBAAqB,EAAE,4BAA4B,CAAC;IAC7D,QAAQ,CAAC,uBAAuB,EAAE,8BAA8B,CAAC;IACjE,QAAQ,CAAC,4BAA4B,EAAE,mCAAmC,CAAC;IAC3E,QAAQ,CAAC,8BAA8B,EAAE,qCAAqC,CAAC;CAChF;AAED,sFAAsF;AACtF,eAAO,MAAM,eAAe,GAAI,MAAM,aAAa,KAAG,SAwCrD,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import { type ReactElement } from 'react';
2
2
  /**
3
- * Org access-control admin: the user-type catalogue (visibility scope per role), the feed teams (which
4
- * user types drive the feed "Team Updates" tab), the branch registry (create/edit/delete branches + the
5
- * default), and the reporting hierarchy (who reports to whom, which gates chat-group membership).
3
+ * Org access-control admin: the user-type catalogue, feed teams, branch registry,
4
+ * communication rules, and reporting hierarchy.
6
5
  */
7
6
  export declare const AccessControlPage: () => ReactElement;
8
7
  export default AccessControlPage;
@@ -1 +1 @@
1
- {"version":3,"file":"AccessControlPage.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/AccessControlPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAiIpD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAAO,YAiFpC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"AccessControlPage.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/AccessControlPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AA2LpD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,YA0EpC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type ReactElement } from 'react';
2
+ import { type CommunicationRule, type CommunicationRuleDraft } from '../domain';
3
+ export interface CommunicationRuleModalProps {
4
+ readonly open: boolean;
5
+ readonly editing: CommunicationRule | null;
6
+ readonly saving: boolean;
7
+ readonly onClose: () => void;
8
+ readonly onSave: (draft: CommunicationRuleDraft) => void;
9
+ }
10
+ export declare const CommunicationRuleModal: ({ open, editing, saving, onClose, onSave, }: CommunicationRuleModalProps) => ReactElement;
11
+ //# sourceMappingURL=CommunicationRuleModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommunicationRuleModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/CommunicationRuleModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAMhF,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC1D;AAED,eAAO,MAAM,sBAAsB,GAAI,6CAMpC,2BAA2B,KAAG,YA8DhC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { CommunicationRule } from '../domain';
3
+ export interface CommunicationRulesPanelProps {
4
+ readonly onOpenForm: (editing: CommunicationRule | null) => void;
5
+ }
6
+ export declare const CommunicationRulesPanel: ({ onOpenForm, }: CommunicationRulesPanelProps) => ReactElement;
7
+ //# sourceMappingURL=CommunicationRulesPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommunicationRulesPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/CommunicationRulesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAUnD,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;CAClE;AAwKD,eAAO,MAAM,uBAAuB,GAAI,iBAErC,4BAA4B,KAAG,YAiEjC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { CommunicationRule } from '../domain';
3
+ export interface RuleCardProps {
4
+ readonly rule: CommunicationRule;
5
+ readonly canEdit: boolean;
6
+ readonly canDelete: boolean;
7
+ readonly onEdit: () => void;
8
+ readonly onDelete: () => void;
9
+ readonly onToggleActive: () => void;
10
+ readonly onDisconnectWebhook: () => void;
11
+ }
12
+ export declare const RuleCard: ({ rule, canEdit, canDelete, onEdit, onDelete, onToggleActive, onDisconnectWebhook, }: RuleCardProps) => ReactElement;
13
+ //# sourceMappingURL=RuleCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuleCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/RuleCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AA0DnD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,cAAc,EAAE,MAAM,IAAI,CAAC;IACpC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,IAAI,CAAC;CAC1C;AAED,eAAO,MAAM,QAAQ,GAAI,sFAQtB,aAAa,KAAG,YA+DlB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type ReactElement } from 'react';
2
+ import { type WebhookEndpoint } from '@features/settings';
3
+ import { type CommunicationRuleDraft, type OrgUserType } from '../domain';
4
+ export interface RuleFormInputsProps {
5
+ readonly draft: CommunicationRuleDraft;
6
+ readonly userTypes: readonly OrgUserType[];
7
+ readonly webhooks: readonly WebhookEndpoint[];
8
+ readonly onPatch: (changes: Partial<CommunicationRuleDraft>) => void;
9
+ }
10
+ export declare const RuleFormInputs: ({ draft, userTypes, webhooks, onPatch, }: RuleFormInputsProps) => ReactElement;
11
+ //# sourceMappingURL=RuleFormInputs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuleFormInputs.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/RuleFormInputs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AA6F1E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAC;IACvC,QAAQ,CAAC,SAAS,EAAE,SAAS,WAAW,EAAE,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,sBAAsB,CAAC,KAAK,IAAI,CAAC;CACtE;AAED,eAAO,MAAM,cAAc,GAAI,0CAK5B,mBAAmB,KAAG,YAwCxB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { type ReactElement } from 'react';
2
+ export interface TargetRolesPickerProps {
3
+ readonly suggestedRoles: readonly string[];
4
+ readonly selectedRoles: readonly string[];
5
+ readonly customRoleInput: string;
6
+ readonly onCustomRoleInputChange: (value: string) => void;
7
+ readonly onToggleRole: (role: string) => void;
8
+ readonly onAddCustomRole: () => void;
9
+ readonly onRemoveRole: (role: string) => void;
10
+ }
11
+ export declare const TargetRolesPicker: ({ suggestedRoles, selectedRoles, customRoleInput, onCustomRoleInputChange, onToggleRole, onAddCustomRole, onRemoveRole, }: TargetRolesPickerProps) => ReactElement;
12
+ //# sourceMappingURL=TargetRolesPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TargetRolesPicker.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/TargetRolesPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,QAAQ,CAAC,eAAe,EAAE,MAAM,IAAI,CAAC;IACrC,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,iBAAiB,GAAI,2HAQ/B,sBAAsB,KAAG,YAmE3B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ReactElement } from 'react';
2
+ export declare const WebhookRuleGuide: () => ReactElement;
3
+ //# sourceMappingURL=WebhookRuleGuide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookRuleGuide.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/WebhookRuleGuide.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAkB,MAAM,OAAO,CAAC;AAoHpE,eAAO,MAAM,gBAAgB,QAAO,YA6BnC,CAAC"}
@@ -1,6 +1,9 @@
1
1
  export { OrgModuleProvider } from './OrgModuleProvider';
2
2
  export { useOrgModule } from './use-org-module';
3
3
  export * from './use-org-admin';
4
+ export * from './use-communication-rules';
4
5
  export * from './use-my-user-type';
5
6
  export { TypeSwitcher } from './TypeSwitcher';
7
+ export { CommunicationRulesPanel } from './CommunicationRulesPanel';
8
+ export { CommunicationRuleModal } from './CommunicationRuleModal';
6
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -5,6 +5,7 @@ export declare const assignableRolesQueryKey: readonly ["org", "assignable-roles
5
5
  export declare const branchOptionsQueryKey: readonly ["org", "branch-options"];
6
6
  export declare const teamsQueryKey: readonly ["org", "teams"];
7
7
  export declare const branchesQueryKey: readonly ["org", "branches"];
8
+ export declare const communicationRulesQueryKey: readonly ["org", "communication-rules"];
8
9
  export declare const memberTypesQueryKey: (userId: string) => readonly unknown[];
9
10
  export declare const memberBranchesQueryKey: (userId: string) => readonly unknown[];
10
11
  //# sourceMappingURL=org-query-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"org-query-keys.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/org-query-keys.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,gCAAiC,CAAC;AAChE,eAAO,MAAM,qBAAqB,oCAAqC,CAAC;AACxE,eAAO,MAAM,iBAAiB,+BAAgC,CAAC;AAC/D,eAAO,MAAM,uBAAuB,sCAAuC,CAAC;AAC5E,eAAO,MAAM,qBAAqB,oCAAqC,CAAC;AACxE,eAAO,MAAM,aAAa,2BAA4B,CAAC;AACvD,eAAO,MAAM,gBAAgB,8BAA+B,CAAC;AAC7D,eAAO,MAAM,mBAAmB,WATrB,MAAM,KAAG,SAAS,OAAO,EAS6B,CAAC;AAClE,eAAO,MAAM,sBAAsB,WAVxB,MAAM,KAAG,SAAS,OAAO,EAUmC,CAAC"}
1
+ {"version":3,"file":"org-query-keys.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/org-query-keys.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,gCAAiC,CAAC;AAChE,eAAO,MAAM,qBAAqB,oCAAqC,CAAC;AACxE,eAAO,MAAM,iBAAiB,+BAAgC,CAAC;AAC/D,eAAO,MAAM,uBAAuB,sCAAuC,CAAC;AAC5E,eAAO,MAAM,qBAAqB,oCAAqC,CAAC;AACxE,eAAO,MAAM,aAAa,2BAA4B,CAAC;AACvD,eAAO,MAAM,gBAAgB,8BAA+B,CAAC;AAC7D,eAAO,MAAM,0BAA0B,yCAA0C,CAAC;AAClF,eAAO,MAAM,mBAAmB,WAVrB,MAAM,KAAG,SAAS,OAAO,EAU6B,CAAC;AAClE,eAAO,MAAM,sBAAsB,WAXxB,MAAM,KAAG,SAAS,OAAO,EAWmC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type UseMutationResult, type UseQueryResult } from '@tanstack/react-query';
2
+ import type { CommunicationRule, CommunicationRuleDraft } from '../domain';
3
+ export interface SaveCommunicationRuleVariables {
4
+ readonly draft: CommunicationRuleDraft;
5
+ readonly id?: string | undefined;
6
+ }
7
+ export interface LinkRuleWebhookVariables {
8
+ readonly ruleId: string;
9
+ readonly webhookEndpointId: string;
10
+ }
11
+ export declare const useCommunicationRules: () => UseQueryResult<readonly CommunicationRule[]>;
12
+ export declare const useSaveCommunicationRule: () => UseMutationResult<CommunicationRule, Error, SaveCommunicationRuleVariables>;
13
+ export declare const useDeleteCommunicationRule: () => UseMutationResult<void, Error, string>;
14
+ export declare const useLinkRuleWebhook: () => UseMutationResult<CommunicationRule, Error, LinkRuleWebhookVariables>;
15
+ export declare const useUnlinkRuleWebhook: () => UseMutationResult<CommunicationRule, Error, string>;
16
+ //# sourceMappingURL=use-communication-rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-communication-rules.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/use-communication-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAI3E,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAC;IACvC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACpC;AAQD,eAAO,MAAM,qBAAqB,QAAO,cAAc,CAAC,SAAS,iBAAiB,EAAE,CAMnF,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAAO,iBAAiB,CAC3D,iBAAiB,EACjB,KAAK,EACL,8BAA8B,CAS/B,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,iBAAiB,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAOlF,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAO,iBAAiB,CACrD,iBAAiB,EACjB,KAAK,EACL,wBAAwB,CASzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,iBAAiB,CACvD,iBAAiB,EACjB,KAAK,EACL,MAAM,CASP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-my-user-type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/use-my-user-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG5C,eAAO,MAAM,mBAAmB,mCAAoC,CAAC;AAErE,+EAA+E;AAC/E,eAAO,MAAM,cAAc,QAAO,cAAc,CAAC,SAAS,UAAU,EAAE,CAMrE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAO,iBAAiB,CACtD,SAAS,UAAU,EAAE,EACrB,KAAK,EACL,MAAM,CAYP,CAAC"}
1
+ {"version":3,"file":"use-my-user-type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/use-my-user-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG5C,eAAO,MAAM,mBAAmB,mCAAoC,CAAC;AAErE,+EAA+E;AAC/E,eAAO,MAAM,cAAc,QAAO,cAAc,CAAC,SAAS,UAAU,EAAE,CAQrE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAO,iBAAiB,CACtD,SAAS,UAAU,EAAE,EACrB,KAAK,EACL,MAAM,CAYP,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import type { OrgModule } from '../org-module';
2
+ /** Resolve the injected org use cases. Returns null if used outside the provider. */
3
+ export declare const useOptionalOrgModule: () => OrgModule | null;
2
4
  /** Resolve the injected org use cases. Throws if used outside the provider. */
3
5
  export declare const useOrgModule: () => OrgModule;
4
6
  //# sourceMappingURL=use-org-module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-org-module.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/use-org-module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,+EAA+E;AAC/E,eAAO,MAAM,YAAY,QAAO,SAM/B,CAAC"}
1
+ {"version":3,"file":"use-org-module.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/use-org-module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,qFAAqF;AACrF,eAAO,MAAM,oBAAoB,QAAO,SAAS,GAAG,IAEnD,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,YAAY,QAAO,SAM/B,CAAC"}
@@ -0,0 +1,13 @@
1
+ export interface UseRoleSelectionOptions {
2
+ readonly selectedRoles: readonly string[];
3
+ readonly onChange: (roles: readonly string[]) => void;
4
+ }
5
+ export interface UseRoleSelectionResult {
6
+ readonly customRoleInput: string;
7
+ readonly setCustomRoleInput: (value: string) => void;
8
+ readonly handleToggleRole: (role: string) => void;
9
+ readonly handleAddCustomRole: () => void;
10
+ readonly handleRemoveRole: (role: string) => void;
11
+ }
12
+ export declare function useRoleSelection({ selectedRoles, onChange, }: UseRoleSelectionOptions): UseRoleSelectionResult;
13
+ //# sourceMappingURL=use-role-selection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-role-selection.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/use-role-selection.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,KAAK,IAAI,CAAC;CACvD;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,QAAQ,CAAC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,mBAAmB,EAAE,MAAM,IAAI,CAAC;IACzC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,aAAa,EACb,QAAQ,GACT,EAAE,uBAAuB,GAAG,sBAAsB,CA6BlD"}
@@ -0,0 +1,24 @@
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
+ import { type WebhookEndpoint } from '@features/settings';
3
+ import { type CommunicationRule, type CommunicationRuleDraft, type OrgUserType } from '../domain';
4
+ export interface UseRuleFormModalOptions {
5
+ readonly open: boolean;
6
+ readonly editing: CommunicationRule | null;
7
+ readonly onSave: (draft: CommunicationRuleDraft) => void;
8
+ }
9
+ export interface UseRuleFormModalResult {
10
+ readonly draft: CommunicationRuleDraft;
11
+ readonly setDraft: Dispatch<SetStateAction<CommunicationRuleDraft>>;
12
+ readonly error: string | null;
13
+ readonly customRoleInput: string;
14
+ readonly setCustomRoleInput: (val: string) => void;
15
+ readonly userTypes: readonly OrgUserType[];
16
+ readonly webhooks: readonly WebhookEndpoint[];
17
+ readonly suggestedRoles: readonly string[];
18
+ readonly handleToggleRole: (role: string) => void;
19
+ readonly handleAddCustomRole: () => void;
20
+ readonly handleRemoveRole: (role: string) => void;
21
+ readonly handleSubmit: () => void;
22
+ }
23
+ export declare function useRuleFormModal({ open, editing, onSave, }: UseRuleFormModalOptions): UseRuleFormModalResult;
24
+ //# sourceMappingURL=use-rule-form-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-rule-form-modal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/use-rule-form-modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAA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O,EACP,MAAM,GACP,EAAE,uBAAuB,GAAG,sBAAsB,CA2ClD"}
@@ -0,0 +1,7 @@
1
+ import type { CommunicationRuleDraft } from '../domain';
2
+ /** Save handler shared by the page: create or update a communication rule, with toast feedback. */
3
+ export declare const useSaveCommunicationRuleHandler: (onDone: () => void) => {
4
+ readonly saving: boolean;
5
+ readonly save: (draft: CommunicationRuleDraft, id?: string) => void;
6
+ };
7
+ //# sourceMappingURL=use-save-communication-rule-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-save-communication-rule-handler.d.ts","sourceRoot":"","sources":["../../../../../../src/features/org/presentation/use-save-communication-rule-handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGxD,mGAAmG;AACnG,eAAO,MAAM,+BAA+B,GAC1C,QAAQ,MAAM,IAAI,KACjB;IACD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAwBrE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RecurrenceBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/features/schedule/presentation/RecurrenceBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EACL,KAAK,UAAU,EAIhB,MAAM,WAAW,CAAC;AA8LnB,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI,CAAC;CAC9C;AAED,mGAAmG;AACnG,eAAO,MAAM,iBAAiB,GAAI,6CAK/B,sBAAsB,KAAG,YA0B3B,CAAC"}
1
+ {"version":3,"file":"RecurrenceBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/features/schedule/presentation/RecurrenceBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EACL,KAAK,UAAU,EAIhB,MAAM,WAAW,CAAC;AA0MnB,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI,CAAC;CAC9C;AAED,mGAAmG;AACnG,eAAO,MAAM,iBAAiB,GAAI,6CAK/B,sBAAsB,KAAG,YA0B3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-conflict-resolver.d.ts","sourceRoot":"","sources":["../../../../../../src/features/schedule/presentation/use-conflict-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAGxE,OAAO,EAAE,KAAK,gBAAgB,EAAc,MAAM,eAAe,CAAC;AASlE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EACV,aAAa,GACb,gBAAgB,GAChB,cAAc,GACd,sBAAsB,GACtB,eAAe,CAAC;IACpB,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CACvC;AAoFD,eAAO,MAAM,kBAAkB,GAC7B,OAAO,kBAAkB,EACzB,QAAQ,SAAS,aAAa,EAAE,EAChC,aAAa,gBAAgB,EAC7B,UAAU,MAAM,KACf,gBA4BF,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,CAChB,MAAM,EAAE,SAAS,aAAa,EAAE,EAChC,SAAS,EAAE,MAAM,IAAI,KAClB,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB,GAC9B,OAAO,kBAAkB,EACzB,aAAa,gBAAgB,EAC7B,UAAU,MAAM,KACf,gBA0CF,CAAC"}
1
+ {"version":3,"file":"use-conflict-resolver.d.ts","sourceRoot":"","sources":["../../../../../../src/features/schedule/presentation/use-conflict-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAGxE,OAAO,EAAE,KAAK,gBAAgB,EAAc,MAAM,eAAe,CAAC;AASlE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EACV,aAAa,GACb,gBAAgB,GAChB,cAAc,GACd,sBAAsB,GACtB,eAAe,CAAC;IACpB,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CACvC;AAoFD,eAAO,MAAM,kBAAkB,GAC7B,OAAO,kBAAkB,EACzB,QAAQ,SAAS,aAAa,EAAE,EAChC,aAAa,gBAAgB,EAC7B,UAAU,MAAM,KACf,gBAmCF,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,CAChB,MAAM,EAAE,SAAS,aAAa,EAAE,EAChC,SAAS,EAAE,MAAM,IAAI,KAClB,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB,GAC9B,OAAO,kBAAkB,EACzB,aAAa,gBAAgB,EAC7B,UAAU,MAAM,KACf,gBA0CF,CAAC"}
@@ -9,6 +9,6 @@ export { useCommTemplates, usePromoCategories, usePromotions, useOrgSettings, }
9
9
  export { PromoCategoryCard } from './presentation';
10
10
  export { promoFieldsFor, promotionCard, resolvedTemplateCard, resolveBranchHours, } from './domain';
11
11
  export type { CommTemplate, PromoCategory, PromoField, Promotion, ResolvedCard, OrgSettings, WeeklyHours, DayHours, WeekdayId, } from './domain';
12
- export { useFeedCategoryItems, useExternalFeedCategoryItems, useFeedTemplates, } from './presentation';
13
- export type { FeedTemplate, FeedCategoryItem } from './domain';
12
+ export { useFeedCategoryItems, useExternalFeedCategoryItems, useFeedTemplates, useWebhookEndpoints, } from './presentation';
13
+ export type { FeedTemplate, FeedCategoryItem, WebhookEndpoint } from './domain';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/settings/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,kBAAkB,GACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGhF,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACL,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,YAAY,EACZ,aAAa,EACb,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,WAAW,EACX,QAAQ,EACR,SAAS,GACV,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/settings/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,kBAAkB,GACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGhF,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACL,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,YAAY,EACZ,aAAa,EACb,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,WAAW,EACX,QAAQ,EACR,SAAS,GACV,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC"}