@pedro.araujo/ml-architecture-shared 0.1.139 → 0.1.142

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 (40) hide show
  1. package/dist/index.d.ts +11 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +11 -0
  4. package/dist/integration/create-integration-request.dto.d.ts +4 -0
  5. package/dist/integration/create-integration-request.dto.d.ts.map +1 -0
  6. package/dist/integration/create-integration-request.dto.js +1 -0
  7. package/dist/integration/create-integration-request.schema.d.ts +4 -0
  8. package/dist/integration/create-integration-request.schema.d.ts.map +1 -0
  9. package/dist/integration/create-integration-request.schema.js +4 -0
  10. package/dist/notification-event-type/notification-event-type.enum.js +1 -1
  11. package/dist/permission/permission-key.d.ts +52 -0
  12. package/dist/permission/permission-key.d.ts.map +1 -0
  13. package/dist/permission/permission-key.js +50 -0
  14. package/dist/permission/permission-management.dto.d.ts +41 -0
  15. package/dist/permission/permission-management.dto.d.ts.map +1 -0
  16. package/dist/permission/permission-management.dto.js +1 -0
  17. package/dist/permission/permission-management.schema.d.ts +17 -0
  18. package/dist/permission/permission-management.schema.d.ts.map +1 -0
  19. package/dist/permission/permission-management.schema.js +11 -0
  20. package/dist/plan/plan-management.dto.d.ts +49 -0
  21. package/dist/plan/plan-management.dto.d.ts.map +1 -0
  22. package/dist/plan/plan-management.dto.js +6 -0
  23. package/dist/plan/plan-management.schema.d.ts +37 -0
  24. package/dist/plan/plan-management.schema.d.ts.map +1 -0
  25. package/dist/plan/plan-management.schema.js +40 -0
  26. package/dist/subscription/refund-subscription-request.dto.d.ts +4 -0
  27. package/dist/subscription/refund-subscription-request.dto.d.ts.map +1 -0
  28. package/dist/subscription/refund-subscription-request.dto.js +1 -0
  29. package/dist/subscription/refund-subscription-request.schema.d.ts +4 -0
  30. package/dist/subscription/refund-subscription-request.schema.d.ts.map +1 -0
  31. package/dist/subscription/refund-subscription-request.schema.js +4 -0
  32. package/dist/user/current-user-response.dto.d.ts +2 -0
  33. package/dist/user/current-user-response.dto.d.ts.map +1 -1
  34. package/dist/user-notification-preference/user-notification-preference-params.dto.d.ts +7 -0
  35. package/dist/user-notification-preference/user-notification-preference-params.dto.d.ts.map +1 -0
  36. package/dist/user-notification-preference/user-notification-preference-params.dto.js +1 -0
  37. package/dist/user-notification-preference/user-notification-preference-params.schema.d.ts +4 -0
  38. package/dist/user-notification-preference/user-notification-preference-params.schema.d.ts.map +1 -0
  39. package/dist/user-notification-preference/user-notification-preference-params.schema.js +7 -0
  40. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -118,6 +118,8 @@ export * from "./group/list-auction-item-groups-request.dto.js";
118
118
  export * from "./group/list-auction-item-groups-request.schema.js";
119
119
  export * from "./group-user/list-group-users-request.dto.js";
120
120
  export * from "./group-user/list-group-users-request.schema.js";
121
+ export * from "./integration/create-integration-request.dto.js";
122
+ export * from "./integration/create-integration-request.schema.js";
121
123
  export * from "./item-financial-event/create-item-financial-event-request.dto.js";
122
124
  export * from "./item-financial-event/create-item-financial-event-request.schema.js";
123
125
  export * from "./item-financial-event/item-financial-event-response.dto.js";
@@ -156,6 +158,11 @@ export * from "./notification-event-type/notification-event-type.enum.js";
156
158
  export * from "./pagination/pagination-request.schema.js";
157
159
  export * from "./pagination/pagination-request.dto.js";
158
160
  export * from "./pagination/pagination-response.dto.js";
161
+ export * from "./permission/permission-key.js";
162
+ export * from "./permission/permission-management.dto.js";
163
+ export * from "./permission/permission-management.schema.js";
164
+ export * from "./plan/plan-management.dto.js";
165
+ export * from "./plan/plan-management.schema.js";
159
166
  export * from "./public-id/public-id.schema.js";
160
167
  export * from "./report/create-report-request.dto.js";
161
168
  export * from "./report/get-reports-request.dto.js";
@@ -169,6 +176,8 @@ export * from "./state/state-response.dto.js";
169
176
  export * from "./subscription/billing-cycle.type.js";
170
177
  export * from "./subscription/create-subscription-request.dto.js";
171
178
  export * from "./subscription/create-subscription-request.schema.js";
179
+ export * from "./subscription/refund-subscription-request.dto.js";
180
+ export * from "./subscription/refund-subscription-request.schema.js";
172
181
  export * from "./user/current-user-response.dto.js";
173
182
  export * from "./user/update-username-request.dto.js";
174
183
  export * from "./user/update-username-request.schema.js";
@@ -186,5 +195,7 @@ export * from "./user-notification-preference/update-user-notification-preferenc
186
195
  export * from "./user-notification-preference/user-notification-preference-response.dto.js";
187
196
  export * from "./user-notification-preference/create-user-notification-preference.schema.js";
188
197
  export * from "./user-notification-preference/update-user-notification-preference.schema.js";
198
+ export * from "./user-notification-preference/user-notification-preference-params.dto.js";
199
+ export * from "./user-notification-preference/user-notification-preference-params.schema.js";
189
200
  export * from "./user-subscription/active-user-subscription.response.js";
190
201
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AAEnD,cAAc,qEAAqE,CAAC;AACpF,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAE7D,cAAc,+DAA+D,CAAC;AAC9E,cAAc,kEAAkE,CAAC;AAEjF,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAE7D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,0EAA0E,CAAC;AACzF,cAAc,mEAAmE,CAAC;AAClF,cAAc,sEAAsE,CAAC;AACrF,cAAc,wEAAwE,CAAC;AACvF,cAAc,2EAA2E,CAAC;AAC1F,cAAc,iEAAiE,CAAC;AAChF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mEAAmE,CAAC;AAClF,cAAc,sEAAsE,CAAC;AAErF,cAAc,yEAAyE,CAAC;AACxF,cAAc,mEAAmE,CAAC;AAClF,cAAc,iEAAiE,CAAC;AAEhF,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,iDAAiD,CAAC;AA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AC;AAE7F,cAAc,0DAA0D,CAAC"}
package/dist/index.js CHANGED
@@ -118,6 +118,8 @@ export * from "./group/list-auction-item-groups-request.dto.js";
118
118
  export * from "./group/list-auction-item-groups-request.schema.js";
119
119
  export * from "./group-user/list-group-users-request.dto.js";
120
120
  export * from "./group-user/list-group-users-request.schema.js";
121
+ export * from "./integration/create-integration-request.dto.js";
122
+ export * from "./integration/create-integration-request.schema.js";
121
123
  export * from "./item-financial-event/create-item-financial-event-request.dto.js";
122
124
  export * from "./item-financial-event/create-item-financial-event-request.schema.js";
123
125
  export * from "./item-financial-event/item-financial-event-response.dto.js";
@@ -156,6 +158,11 @@ export * from "./notification-event-type/notification-event-type.enum.js";
156
158
  export * from "./pagination/pagination-request.schema.js";
157
159
  export * from "./pagination/pagination-request.dto.js";
158
160
  export * from "./pagination/pagination-response.dto.js";
161
+ export * from "./permission/permission-key.js";
162
+ export * from "./permission/permission-management.dto.js";
163
+ export * from "./permission/permission-management.schema.js";
164
+ export * from "./plan/plan-management.dto.js";
165
+ export * from "./plan/plan-management.schema.js";
159
166
  export * from "./public-id/public-id.schema.js";
160
167
  export * from "./report/create-report-request.dto.js";
161
168
  export * from "./report/get-reports-request.dto.js";
@@ -169,6 +176,8 @@ export * from "./state/state-response.dto.js";
169
176
  export * from "./subscription/billing-cycle.type.js";
170
177
  export * from "./subscription/create-subscription-request.dto.js";
171
178
  export * from "./subscription/create-subscription-request.schema.js";
179
+ export * from "./subscription/refund-subscription-request.dto.js";
180
+ export * from "./subscription/refund-subscription-request.schema.js";
172
181
  export * from "./user/current-user-response.dto.js";
173
182
  export * from "./user/update-username-request.dto.js";
174
183
  export * from "./user/update-username-request.schema.js";
@@ -186,4 +195,6 @@ export * from "./user-notification-preference/update-user-notification-preferenc
186
195
  export * from "./user-notification-preference/user-notification-preference-response.dto.js";
187
196
  export * from "./user-notification-preference/create-user-notification-preference.schema.js";
188
197
  export * from "./user-notification-preference/update-user-notification-preference.schema.js";
198
+ export * from "./user-notification-preference/user-notification-preference-params.dto.js";
199
+ export * from "./user-notification-preference/user-notification-preference-params.schema.js";
189
200
  export * from "./user-subscription/active-user-subscription.response.js";
@@ -0,0 +1,4 @@
1
+ export interface CreateIntegrationRequestDTO {
2
+ name: string;
3
+ }
4
+ //# sourceMappingURL=create-integration-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-integration-request.dto.d.ts","sourceRoot":"","sources":["../../src/integration/create-integration-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import type { CreateIntegrationRequestDTO } from "./create-integration-request.dto.js";
3
+ export declare const CreateIntegrationRequestSchema: z.ZodType<CreateIntegrationRequestDTO>;
4
+ //# sourceMappingURL=create-integration-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-integration-request.schema.d.ts","sourceRoot":"","sources":["../../src/integration/create-integration-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAEvF,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAGrE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ export const CreateIntegrationRequestSchema = z.object({
3
+ name: z.string().trim().min(1).max(255),
4
+ }).strict();
@@ -14,7 +14,7 @@ export const NotificationEventTypeLabels = {
14
14
  [NotificationEventType.COMMENT_REPLIED]: "Comentário respondido",
15
15
  [NotificationEventType.ITEM_SHARED_AS_VIEWER]: "Item compartilhado para visualização",
16
16
  [NotificationEventType.ITEM_PARTICIPANT_INVITED]: "Convite para participar do item",
17
- [NotificationEventType.AUCTION_WON]: "Leilão vencido",
17
+ [NotificationEventType.AUCTION_WON]: "Leilão arrematado",
18
18
  [NotificationEventType.AUCTION_ENDING_SOON]: "Leilão encerrando em breve",
19
19
  [NotificationEventType.ITEM_SOLD]: "Item vendido",
20
20
  [NotificationEventType.PASSWORD_CHANGED]: "Senha alterada",
@@ -0,0 +1,52 @@
1
+ export declare const PermissionKeys: {
2
+ readonly AuctionItemsClone: "auction.items.clone";
3
+ readonly AuctionItemsPreview: "auction.items.preview";
4
+ readonly AuctionCommentsView: "auction.comments.view";
5
+ readonly AuctionCommentsCreate: "auction.comments.create";
6
+ readonly AuctionUsersView: "auction.users.view";
7
+ readonly AuctionUsersCreate: "auction.users.create";
8
+ readonly AuctionSourcesView: "auction.sources.view";
9
+ readonly AuctionSourcesCreate: "auction.sources.create";
10
+ readonly AuctionSourcesCreateSystem: "auction.sources.create-system";
11
+ readonly BidsView: "bids.view";
12
+ readonly BidsCreate: "bids.create";
13
+ readonly CounterpartyView: "counterparty.view";
14
+ readonly CounterpartyCreate: "counterparty.create";
15
+ readonly ExternalAuctionItemsView: "external-auction-items.view";
16
+ readonly ExternalAuctionItemsClone: "external-auction-items.clone";
17
+ readonly FinancialAccountView: "financial-account.view";
18
+ readonly FinancialAccountUpdate: "financial-account.update";
19
+ readonly GroupsView: "groups.view";
20
+ readonly GroupsCreate: "groups.create";
21
+ readonly GroupsAuctionItemsShare: "groups.auction-items.share";
22
+ readonly AuctionFinancialEventsView: "auction.financial-events.view";
23
+ readonly AuctionFinancialEventsCreate: "auction.financial-events.create";
24
+ readonly AuctionFinancialMovementsView: "auction.financial-movements.view";
25
+ readonly AuctionFinancialMovementsCreate: "auction.financial-movements.create";
26
+ readonly AuctionNotesView: "auction.notes.view";
27
+ readonly AuctionNotesCreate: "auction.notes.create";
28
+ readonly FinancialReportsView: "financial-reports.view";
29
+ readonly FinancialReportsCreate: "financial-reports.create";
30
+ readonly AuctionStatsView: "auction.stats.view";
31
+ readonly ManagementIntegrationsView: "management.integrations.view";
32
+ readonly ManagementIntegrationsCreate: "management.integrations.create";
33
+ readonly ManagementIntegrationsEdit: "management.integrations.edit";
34
+ readonly ManagementIntegrationsDelete: "management.integrations.delete";
35
+ readonly ManagementIntegrationsApiKeyRegenerate: "management.integrations.api-key.regenerate";
36
+ readonly ManagementExternalAuctionItemsCreate: "management.external-auction-items.create";
37
+ readonly ManagementExternalAuctionItemsEdit: "management.external-auction-items.edit";
38
+ readonly ManagementExternalAuctionItemsDelete: "management.external-auction-items.delete";
39
+ readonly ManagementUsersView: "management.users.view";
40
+ readonly ManagementUsersCreate: "management.users.create";
41
+ readonly ManagementUsersEdit: "management.users.edit";
42
+ readonly ManagementUsersDelete: "management.users.delete";
43
+ readonly ManagementPlansView: "management.plans.view";
44
+ readonly ManagementPlansCreate: "management.plans.create";
45
+ readonly ManagementPlansEdit: "management.plans.edit";
46
+ readonly ManagementPlansDelete: "management.plans.delete";
47
+ readonly ManagementUserPermissionsView: "management.user-permissions.view";
48
+ readonly ManagementUserPermissionsGrant: "management.user-permissions.grant";
49
+ readonly ManagementUserPermissionsRevoke: "management.user-permissions.revoke";
50
+ };
51
+ export type PermissionKey = typeof PermissionKeys[keyof typeof PermissionKeys];
52
+ //# sourceMappingURL=permission-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission-key.d.ts","sourceRoot":"","sources":["../../src/permission/permission-key.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoEjB,CAAC;AAEX,MAAM,MAAM,aAAa,GACvB,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,50 @@
1
+ export const PermissionKeys = {
2
+ AuctionItemsClone: "auction.items.clone",
3
+ AuctionItemsPreview: "auction.items.preview",
4
+ AuctionCommentsView: "auction.comments.view",
5
+ AuctionCommentsCreate: "auction.comments.create",
6
+ AuctionUsersView: "auction.users.view",
7
+ AuctionUsersCreate: "auction.users.create",
8
+ AuctionSourcesView: "auction.sources.view",
9
+ AuctionSourcesCreate: "auction.sources.create",
10
+ AuctionSourcesCreateSystem: "auction.sources.create-system",
11
+ BidsView: "bids.view",
12
+ BidsCreate: "bids.create",
13
+ CounterpartyView: "counterparty.view",
14
+ CounterpartyCreate: "counterparty.create",
15
+ ExternalAuctionItemsView: "external-auction-items.view",
16
+ ExternalAuctionItemsClone: "external-auction-items.clone",
17
+ FinancialAccountView: "financial-account.view",
18
+ FinancialAccountUpdate: "financial-account.update",
19
+ GroupsView: "groups.view",
20
+ GroupsCreate: "groups.create",
21
+ GroupsAuctionItemsShare: "groups.auction-items.share",
22
+ AuctionFinancialEventsView: "auction.financial-events.view",
23
+ AuctionFinancialEventsCreate: "auction.financial-events.create",
24
+ AuctionFinancialMovementsView: "auction.financial-movements.view",
25
+ AuctionFinancialMovementsCreate: "auction.financial-movements.create",
26
+ AuctionNotesView: "auction.notes.view",
27
+ AuctionNotesCreate: "auction.notes.create",
28
+ FinancialReportsView: "financial-reports.view",
29
+ FinancialReportsCreate: "financial-reports.create",
30
+ AuctionStatsView: "auction.stats.view",
31
+ ManagementIntegrationsView: "management.integrations.view",
32
+ ManagementIntegrationsCreate: "management.integrations.create",
33
+ ManagementIntegrationsEdit: "management.integrations.edit",
34
+ ManagementIntegrationsDelete: "management.integrations.delete",
35
+ ManagementIntegrationsApiKeyRegenerate: "management.integrations.api-key.regenerate",
36
+ ManagementExternalAuctionItemsCreate: "management.external-auction-items.create",
37
+ ManagementExternalAuctionItemsEdit: "management.external-auction-items.edit",
38
+ ManagementExternalAuctionItemsDelete: "management.external-auction-items.delete",
39
+ ManagementUsersView: "management.users.view",
40
+ ManagementUsersCreate: "management.users.create",
41
+ ManagementUsersEdit: "management.users.edit",
42
+ ManagementUsersDelete: "management.users.delete",
43
+ ManagementPlansView: "management.plans.view",
44
+ ManagementPlansCreate: "management.plans.create",
45
+ ManagementPlansEdit: "management.plans.edit",
46
+ ManagementPlansDelete: "management.plans.delete",
47
+ ManagementUserPermissionsView: "management.user-permissions.view",
48
+ ManagementUserPermissionsGrant: "management.user-permissions.grant",
49
+ ManagementUserPermissionsRevoke: "management.user-permissions.revoke",
50
+ };
@@ -0,0 +1,41 @@
1
+ import type { PermissionKey } from "./permission-key.js";
2
+ export type UserPermissionEffect = "allow" | "deny";
3
+ export interface PermissionCatalogItemDTO {
4
+ key: PermissionKey;
5
+ description: string | null;
6
+ group: string | null;
7
+ }
8
+ export interface PermissionPlanOptionDTO {
9
+ publicId: string;
10
+ name: string;
11
+ permissionKeys: PermissionKey[];
12
+ }
13
+ export interface PermissionUserOptionDTO {
14
+ publicId: string;
15
+ name: string | null;
16
+ email: string;
17
+ }
18
+ export interface UserPermissionOverrideDTO {
19
+ permissionKey: PermissionKey;
20
+ effect: UserPermissionEffect;
21
+ }
22
+ export interface UserPermissionDetailsDTO {
23
+ user: PermissionUserOptionDTO;
24
+ planPermissionKeys: PermissionKey[];
25
+ overrides: UserPermissionOverrideDTO[];
26
+ effectivePermissionKeys: PermissionKey[];
27
+ }
28
+ export interface PermissionManagementBootstrapDTO {
29
+ permissions: PermissionCatalogItemDTO[];
30
+ plans: PermissionPlanOptionDTO[];
31
+ users: PermissionUserOptionDTO[];
32
+ }
33
+ export interface SetPlanPermissionRequestDTO {
34
+ permissionKey: PermissionKey;
35
+ enabled: boolean;
36
+ }
37
+ export interface SetUserPermissionOverrideRequestDTO {
38
+ permissionKey: PermissionKey;
39
+ effect: UserPermissionEffect | null;
40
+ }
41
+ //# sourceMappingURL=permission-management.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission-management.dto.d.ts","sourceRoot":"","sources":["../../src/permission/permission-management.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,aAAa,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,aAAa,CAAC;IAC7B,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,kBAAkB,EAAE,aAAa,EAAE,CAAC;IACpC,SAAS,EAAE,yBAAyB,EAAE,CAAC;IACvC,uBAAuB,EAAE,aAAa,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,gCAAgC;IAC/C,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACxC,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,KAAK,EAAE,uBAAuB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,mCAAmC;IAClD,aAAa,EAAE,aAAa,CAAC;IAC7B,MAAM,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACrC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ export declare const SetPlanPermissionSchema: z.ZodObject<{
3
+ permissionKey: z.ZodEnum<{
4
+ [x: string]: string;
5
+ }>;
6
+ enabled: z.ZodBoolean;
7
+ }, z.core.$strip>;
8
+ export declare const SetUserPermissionOverrideSchema: z.ZodObject<{
9
+ permissionKey: z.ZodEnum<{
10
+ [x: string]: string;
11
+ }>;
12
+ effect: z.ZodNullable<z.ZodEnum<{
13
+ allow: "allow";
14
+ deny: "deny";
15
+ }>>;
16
+ }, z.core.$strip>;
17
+ //# sourceMappingURL=permission-management.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission-management.schema.d.ts","sourceRoot":"","sources":["../../src/permission/permission-management.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,uBAAuB;;;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;iBAG1C,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ import { PermissionKeys } from "./permission-key.js";
3
+ const permissionKeySchema = z.enum(Object.values(PermissionKeys));
4
+ export const SetPlanPermissionSchema = z.object({
5
+ permissionKey: permissionKeySchema,
6
+ enabled: z.boolean(),
7
+ });
8
+ export const SetUserPermissionOverrideSchema = z.object({
9
+ permissionKey: permissionKeySchema,
10
+ effect: z.enum(["allow", "deny"]).nullable(),
11
+ });
@@ -0,0 +1,49 @@
1
+ import { BillingCycle } from "../subscription/billing-cycle.type.js";
2
+ export declare enum PaymentProvider {
3
+ STRIPE = "stripe",
4
+ MERCADOPAGO = "mercadopago",
5
+ PAGARME = "pagarme"
6
+ }
7
+ export interface PlanPriceGatewayResponseDTO {
8
+ provider: PaymentProvider;
9
+ externalPriceId: string;
10
+ }
11
+ export interface PlanPriceResponseDTO {
12
+ cycle: BillingCycle;
13
+ amount: number;
14
+ isActive: boolean;
15
+ validFrom: string;
16
+ validTo: string | null;
17
+ gateways: PlanPriceGatewayResponseDTO[];
18
+ }
19
+ export interface PlanManagementResponseDTO {
20
+ publicId: string;
21
+ name: string;
22
+ description: string | null;
23
+ active: boolean;
24
+ prices: PlanPriceResponseDTO[];
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ }
28
+ export interface SavePlanPriceGatewayRequestDTO {
29
+ provider: PaymentProvider;
30
+ externalPriceId: string;
31
+ }
32
+ export interface SavePlanPriceRequestDTO {
33
+ cycle: BillingCycle;
34
+ amount: number;
35
+ isActive: boolean;
36
+ validFrom: string;
37
+ validTo?: string | null;
38
+ gateways: SavePlanPriceGatewayRequestDTO[];
39
+ }
40
+ export interface CreatePlanRequestDTO {
41
+ name: string;
42
+ description?: string | null;
43
+ active: boolean;
44
+ prices: SavePlanPriceRequestDTO[];
45
+ }
46
+ export interface UpdatePlanRequestDTO extends CreatePlanRequestDTO {
47
+ planPublicId: string;
48
+ }
49
+ //# sourceMappingURL=plan-management.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan-management.dto.d.ts","sourceRoot":"","sources":["../../src/plan/plan-management.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAErE,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,eAAe,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,2BAA2B,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,eAAe,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,8BAA8B,EAAE,CAAC;CAC5C;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,uBAAuB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,6 @@
1
+ export var PaymentProvider;
2
+ (function (PaymentProvider) {
3
+ PaymentProvider["STRIPE"] = "stripe";
4
+ PaymentProvider["MERCADOPAGO"] = "mercadopago";
5
+ PaymentProvider["PAGARME"] = "pagarme";
6
+ })(PaymentProvider || (PaymentProvider = {}));
@@ -0,0 +1,37 @@
1
+ import { z } from "zod";
2
+ import { BillingCycle } from "../subscription/billing-cycle.type.js";
3
+ import { PaymentProvider } from "./plan-management.dto.js";
4
+ export declare const CreatePlanSchema: z.ZodObject<{
5
+ name: z.ZodString;
6
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ active: z.ZodBoolean;
8
+ prices: z.ZodArray<z.ZodObject<{
9
+ cycle: z.ZodEnum<typeof BillingCycle>;
10
+ amount: z.ZodCoercedNumber<unknown>;
11
+ isActive: z.ZodBoolean;
12
+ validFrom: z.ZodString;
13
+ validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ gateways: z.ZodArray<z.ZodObject<{
15
+ provider: z.ZodEnum<typeof PaymentProvider>;
16
+ externalPriceId: z.ZodString;
17
+ }, z.core.$strip>>;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>;
20
+ export declare const UpdatePlanSchema: z.ZodObject<{
21
+ name: z.ZodString;
22
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ active: z.ZodBoolean;
24
+ prices: z.ZodArray<z.ZodObject<{
25
+ cycle: z.ZodEnum<typeof BillingCycle>;
26
+ amount: z.ZodCoercedNumber<unknown>;
27
+ isActive: z.ZodBoolean;
28
+ validFrom: z.ZodString;
29
+ validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ gateways: z.ZodArray<z.ZodObject<{
31
+ provider: z.ZodEnum<typeof PaymentProvider>;
32
+ externalPriceId: z.ZodString;
33
+ }, z.core.$strip>>;
34
+ }, z.core.$strip>>;
35
+ planPublicId: z.ZodString;
36
+ }, z.core.$strip>;
37
+ //# sourceMappingURL=plan-management.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan-management.schema.d.ts","sourceRoot":"","sources":["../../src/plan/plan-management.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AA2C3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;iBAAa,CAAC;AAC3C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;iBAAwD,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { z } from "zod";
2
+ import { BillingCycle } from "../subscription/billing-cycle.type.js";
3
+ import { PaymentProvider } from "./plan-management.dto.js";
4
+ import { publicIdSchema } from "../public-id/public-id.schema.js";
5
+ const gatewaySchema = z.object({
6
+ provider: z.nativeEnum(PaymentProvider),
7
+ externalPriceId: z.string().trim().min(1).max(255),
8
+ });
9
+ const priceSchema = z.object({
10
+ cycle: z.nativeEnum(BillingCycle),
11
+ amount: z.coerce.number().positive().max(99999999.99),
12
+ isActive: z.boolean(),
13
+ validFrom: z.string().datetime(),
14
+ validTo: z.string().datetime().nullable().optional(),
15
+ gateways: z.array(gatewaySchema).superRefine((gateways, ctx) => {
16
+ const providers = new Set();
17
+ gateways.forEach((gateway, index) => {
18
+ if (providers.has(gateway.provider)) {
19
+ ctx.addIssue({ code: z.ZodIssueCode.custom, message: "Gateway duplicado", path: [index, "provider"] });
20
+ }
21
+ providers.add(gateway.provider);
22
+ });
23
+ }),
24
+ }).refine(value => !value.validTo || new Date(value.validTo) >= new Date(value.validFrom), { message: "A validade final deve ser posterior à inicial", path: ["validTo"] });
25
+ const planFields = z.object({
26
+ name: z.string().trim().min(2).max(100),
27
+ description: z.string().trim().max(5000).nullable().optional(),
28
+ active: z.boolean(),
29
+ prices: z.array(priceSchema).min(1).superRefine((prices, ctx) => {
30
+ const cycles = new Set();
31
+ prices.forEach((price, index) => {
32
+ if (cycles.has(price.cycle)) {
33
+ ctx.addIssue({ code: z.ZodIssueCode.custom, message: "Ciclo duplicado", path: [index, "cycle"] });
34
+ }
35
+ cycles.add(price.cycle);
36
+ });
37
+ }),
38
+ });
39
+ export const CreatePlanSchema = planFields;
40
+ export const UpdatePlanSchema = planFields.extend({ planPublicId: publicIdSchema() });
@@ -0,0 +1,4 @@
1
+ export interface RefundSubscriptionRequestDTO {
2
+ confirm: true;
3
+ }
4
+ //# sourceMappingURL=refund-subscription-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refund-subscription-request.dto.d.ts","sourceRoot":"","sources":["../../src/subscription/refund-subscription-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,IAAI,CAAC;CACf"}
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import type { RefundSubscriptionRequestDTO } from "./refund-subscription-request.dto.js";
3
+ export declare const RefundSubscriptionRequestSchema: z.ZodType<RefundSubscriptionRequestDTO>;
4
+ //# sourceMappingURL=refund-subscription-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refund-subscription-request.schema.d.ts","sourceRoot":"","sources":["../../src/subscription/refund-subscription-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAEzF,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAGvE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ export const RefundSubscriptionRequestSchema = z.object({
3
+ confirm: z.literal(true),
4
+ }).strict();
@@ -1,10 +1,12 @@
1
1
  import { ActiveUserSubscriptionResponse } from "../user-subscription/active-user-subscription.response.js";
2
2
  import { UserResponseDTO } from "./user-response.dto.js";
3
+ import type { PermissionKey } from "../permission/permission-key.js";
3
4
  export interface CurrentUserResponseDTO {
4
5
  user: UserResponseDTO;
5
6
  metadata: {
6
7
  pendingAuctionItemInvitesCount: number;
7
8
  activeSubscription: ActiveUserSubscriptionResponse | null;
9
+ permissions: PermissionKey[];
8
10
  };
9
11
  }
10
12
  //# sourceMappingURL=current-user-response.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"current-user-response.dto.d.ts","sourceRoot":"","sources":["../../src/user/current-user-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,2DAA2D,CAAC;AAC3G,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE;QACR,8BAA8B,EAAE,MAAM,CAAC;QACvC,kBAAkB,EAAE,8BAA8B,GAAG,IAAI,CAAC;KAC3D,CAAA;CACF"}
1
+ {"version":3,"file":"current-user-response.dto.d.ts","sourceRoot":"","sources":["../../src/user/current-user-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,2DAA2D,CAAC;AAC3G,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE;QACR,8BAA8B,EAAE,MAAM,CAAC;QACvC,kBAAkB,EAAE,8BAA8B,GAAG,IAAI,CAAC;QAC1D,WAAW,EAAE,aAAa,EAAE,CAAC;KAC9B,CAAA;CACF"}
@@ -0,0 +1,7 @@
1
+ import type { NotificationChannelType } from "../notification-channel-type/notification-channel-type.enum.js";
2
+ import type { NotificationEventType } from "../notification-event-type/notification-event-type.enum.js";
3
+ export interface UserNotificationPreferenceParamsDTO {
4
+ eventType: NotificationEventType;
5
+ channelType: NotificationChannelType;
6
+ }
7
+ //# sourceMappingURL=user-notification-preference-params.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-notification-preference-params.dto.d.ts","sourceRoot":"","sources":["../../src/user-notification-preference/user-notification-preference-params.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gEAAgE,CAAC;AAC9G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG,MAAM,WAAW,mCAAmC;IAClD,SAAS,EAAE,qBAAqB,CAAC;IACjC,WAAW,EAAE,uBAAuB,CAAC;CACtC"}
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import type { UserNotificationPreferenceParamsDTO } from "./user-notification-preference-params.dto.js";
3
+ export declare const UserNotificationPreferenceParamsSchema: z.ZodType<UserNotificationPreferenceParamsDTO>;
4
+ //# sourceMappingURL=user-notification-preference-params.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-notification-preference-params.schema.d.ts","sourceRoot":"","sources":["../../src/user-notification-preference/user-notification-preference-params.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AAExG,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAAC,mCAAmC,CAI9F,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ import { NotificationChannelType } from "../notification-channel-type/notification-channel-type.enum.js";
3
+ import { NotificationEventType } from "../notification-event-type/notification-event-type.enum.js";
4
+ export const UserNotificationPreferenceParamsSchema = z.object({
5
+ eventType: z.enum(NotificationEventType),
6
+ channelType: z.enum(NotificationChannelType),
7
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedro.araujo/ml-architecture-shared",
3
- "version": "0.1.139",
3
+ "version": "0.1.142",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",