@natrave/shared-entities 9.16.0 → 9.18.0
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/central-auth/enums/organization-user-tour-device.enum.d.ts +5 -0
- package/dist/central-auth/enums/organization-user-tour-device.enum.d.ts.map +1 -0
- package/dist/central-auth/enums/organization-user-tour-device.enum.js +8 -0
- package/dist/central-auth/enums/organization-user-tour-end-reason.enum.d.ts +11 -0
- package/dist/central-auth/enums/organization-user-tour-end-reason.enum.d.ts.map +1 -0
- package/dist/central-auth/enums/organization-user-tour-end-reason.enum.js +14 -0
- package/dist/central-auth/enums/organization-user-tour-event-type.enum.d.ts +9 -0
- package/dist/central-auth/enums/organization-user-tour-event-type.enum.d.ts.map +1 -0
- package/dist/central-auth/enums/organization-user-tour-event-type.enum.js +12 -0
- package/dist/central-auth/enums/organization-user-tour-status.enum.d.ts +6 -0
- package/dist/central-auth/enums/organization-user-tour-status.enum.d.ts.map +1 -0
- package/dist/central-auth/enums/organization-user-tour-status.enum.js +9 -0
- package/dist/central-auth/enums/organization-user-tour-trigger.enum.d.ts +6 -0
- package/dist/central-auth/enums/organization-user-tour-trigger.enum.d.ts.map +1 -0
- package/dist/central-auth/enums/organization-user-tour-trigger.enum.js +9 -0
- package/dist/central-auth/index.d.ts +6 -0
- package/dist/central-auth/index.d.ts.map +1 -1
- package/dist/central-auth/index.js +12 -1
- package/dist/central-auth/organization-user-tours/index.d.ts +4 -0
- package/dist/central-auth/organization-user-tours/index.d.ts.map +1 -0
- package/dist/central-auth/organization-user-tours/index.js +8 -0
- package/dist/central-auth/organization-user-tours/organization-user-tour-event.entity.d.ts +15 -0
- package/dist/central-auth/organization-user-tours/organization-user-tour-event.entity.d.ts.map +1 -0
- package/dist/central-auth/organization-user-tours/organization-user-tour-event.entity.js +100 -0
- package/dist/central-auth/organization-user-tours/organization-user-tour-run.entity.d.ts +31 -0
- package/dist/central-auth/organization-user-tours/organization-user-tour-run.entity.d.ts.map +1 -0
- package/dist/central-auth/organization-user-tours/organization-user-tour-run.entity.js +225 -0
- package/dist/central-auth/organization-user-tours/organization-user-tour-state.entity.d.ts +28 -0
- package/dist/central-auth/organization-user-tours/organization-user-tour-state.entity.d.ts.map +1 -0
- package/dist/central-auth/organization-user-tours/organization-user-tour-state.entity.js +211 -0
- package/dist/database-entities/index.d.ts +2 -2
- package/dist/database-entities/index.d.ts.map +1 -1
- package/dist/database-entities/index.js +6 -0
- package/dist/sponsorship/constants/sponsor-exposure-event-type.d.ts +1 -0
- package/dist/sponsorship/constants/sponsor-exposure-event-type.d.ts.map +1 -1
- package/dist/sponsorship/constants/sponsor-exposure-event-type.js +2 -0
- package/dist/sponsorship/exposure-events/sponsor-exposure-event.entity.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-user-tour-device.enum.d.ts","sourceRoot":"","sources":["../../../src/central-auth/enums/organization-user-tour-device.enum.ts"],"names":[],"mappings":"AAKA,oBAAY,0BAA0B;IAEpC,MAAM,WAAW;IAEjB,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var OrganizationUserTourDevice = /* @__PURE__ */ ((OrganizationUserTourDevice2) => {
|
|
2
|
+
OrganizationUserTourDevice2["MOBILE"] = "MOBILE";
|
|
3
|
+
OrganizationUserTourDevice2["DESKTOP"] = "DESKTOP";
|
|
4
|
+
return OrganizationUserTourDevice2;
|
|
5
|
+
})(OrganizationUserTourDevice || {});
|
|
6
|
+
export {
|
|
7
|
+
OrganizationUserTourDevice
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum OrganizationUserTourEndReason {
|
|
2
|
+
COMPLETED = "COMPLETED",
|
|
3
|
+
NOT_NOW = "NOT_NOW",
|
|
4
|
+
CLOSED_X = "CLOSED_X",
|
|
5
|
+
ESCAPE = "ESCAPE",
|
|
6
|
+
LEFT_PAGE = "LEFT_PAGE",
|
|
7
|
+
TAB_CLOSED = "TAB_CLOSED",
|
|
8
|
+
NO_TARGET = "NO_TARGET",
|
|
9
|
+
NO_END = "NO_END"
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=organization-user-tour-end-reason.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-user-tour-end-reason.enum.d.ts","sourceRoot":"","sources":["../../../src/central-auth/enums/organization-user-tour-end-reason.enum.ts"],"names":[],"mappings":"AAKA,oBAAY,6BAA6B;IAEvC,SAAS,cAAc;IAEvB,OAAO,YAAY;IAEnB,QAAQ,aAAa;IAErB,MAAM,WAAW;IAEjB,SAAS,cAAc;IAEvB,UAAU,eAAe;IAEzB,SAAS,cAAc;IAEvB,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var OrganizationUserTourEndReason = /* @__PURE__ */ ((OrganizationUserTourEndReason2) => {
|
|
2
|
+
OrganizationUserTourEndReason2["COMPLETED"] = "COMPLETED";
|
|
3
|
+
OrganizationUserTourEndReason2["NOT_NOW"] = "NOT_NOW";
|
|
4
|
+
OrganizationUserTourEndReason2["CLOSED_X"] = "CLOSED_X";
|
|
5
|
+
OrganizationUserTourEndReason2["ESCAPE"] = "ESCAPE";
|
|
6
|
+
OrganizationUserTourEndReason2["LEFT_PAGE"] = "LEFT_PAGE";
|
|
7
|
+
OrganizationUserTourEndReason2["TAB_CLOSED"] = "TAB_CLOSED";
|
|
8
|
+
OrganizationUserTourEndReason2["NO_TARGET"] = "NO_TARGET";
|
|
9
|
+
OrganizationUserTourEndReason2["NO_END"] = "NO_END";
|
|
10
|
+
return OrganizationUserTourEndReason2;
|
|
11
|
+
})(OrganizationUserTourEndReason || {});
|
|
12
|
+
export {
|
|
13
|
+
OrganizationUserTourEndReason
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum OrganizationUserTourEventType {
|
|
2
|
+
OPENED = "OPENED",
|
|
3
|
+
STEP_VIEWED = "STEP_VIEWED",
|
|
4
|
+
STEP_BACK = "STEP_BACK",
|
|
5
|
+
OUTSIDE_CLICK = "OUTSIDE_CLICK",
|
|
6
|
+
TARGET_MISSING = "TARGET_MISSING",
|
|
7
|
+
CLOSED = "CLOSED"
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=organization-user-tour-event-type.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-user-tour-event-type.enum.d.ts","sourceRoot":"","sources":["../../../src/central-auth/enums/organization-user-tour-event-type.enum.ts"],"names":[],"mappings":"AAKA,oBAAY,6BAA6B;IAEvC,MAAM,WAAW;IAEjB,WAAW,gBAAgB;IAE3B,SAAS,cAAc;IAEvB,aAAa,kBAAkB;IAE/B,cAAc,mBAAmB;IAEjC,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var OrganizationUserTourEventType = /* @__PURE__ */ ((OrganizationUserTourEventType2) => {
|
|
2
|
+
OrganizationUserTourEventType2["OPENED"] = "OPENED";
|
|
3
|
+
OrganizationUserTourEventType2["STEP_VIEWED"] = "STEP_VIEWED";
|
|
4
|
+
OrganizationUserTourEventType2["STEP_BACK"] = "STEP_BACK";
|
|
5
|
+
OrganizationUserTourEventType2["OUTSIDE_CLICK"] = "OUTSIDE_CLICK";
|
|
6
|
+
OrganizationUserTourEventType2["TARGET_MISSING"] = "TARGET_MISSING";
|
|
7
|
+
OrganizationUserTourEventType2["CLOSED"] = "CLOSED";
|
|
8
|
+
return OrganizationUserTourEventType2;
|
|
9
|
+
})(OrganizationUserTourEventType || {});
|
|
10
|
+
export {
|
|
11
|
+
OrganizationUserTourEventType
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-user-tour-status.enum.d.ts","sourceRoot":"","sources":["../../../src/central-auth/enums/organization-user-tour-status.enum.ts"],"names":[],"mappings":"AAKA,oBAAY,0BAA0B;IAEpC,WAAW,gBAAgB;IAE3B,SAAS,cAAc;IAEvB,SAAS,cAAc;CACxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var OrganizationUserTourStatus = /* @__PURE__ */ ((OrganizationUserTourStatus2) => {
|
|
2
|
+
OrganizationUserTourStatus2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
3
|
+
OrganizationUserTourStatus2["COMPLETED"] = "COMPLETED";
|
|
4
|
+
OrganizationUserTourStatus2["DISMISSED"] = "DISMISSED";
|
|
5
|
+
return OrganizationUserTourStatus2;
|
|
6
|
+
})(OrganizationUserTourStatus || {});
|
|
7
|
+
export {
|
|
8
|
+
OrganizationUserTourStatus
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-user-tour-trigger.enum.d.ts","sourceRoot":"","sources":["../../../src/central-auth/enums/organization-user-tour-trigger.enum.ts"],"names":[],"mappings":"AAKA,oBAAY,2BAA2B;IAErC,IAAI,SAAS;IAEb,MAAM,WAAW;IAEjB,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var OrganizationUserTourTrigger = /* @__PURE__ */ ((OrganizationUserTourTrigger2) => {
|
|
2
|
+
OrganizationUserTourTrigger2["AUTO"] = "AUTO";
|
|
3
|
+
OrganizationUserTourTrigger2["BUTTON"] = "BUTTON";
|
|
4
|
+
OrganizationUserTourTrigger2["LINK"] = "LINK";
|
|
5
|
+
return OrganizationUserTourTrigger2;
|
|
6
|
+
})(OrganizationUserTourTrigger || {});
|
|
7
|
+
export {
|
|
8
|
+
OrganizationUserTourTrigger
|
|
9
|
+
};
|
|
@@ -9,12 +9,18 @@ export { OrganizationStatus } from './enums/organization-status.enum';
|
|
|
9
9
|
export { OrganizationType } from './enums/organization-type.enum';
|
|
10
10
|
export { OrganizationUserAuthProvider } from './enums/organization-user-auth-provider.enum';
|
|
11
11
|
export { OrganizationUserStatus } from './enums/organization-user-status.enum';
|
|
12
|
+
export { OrganizationUserTourDevice } from './enums/organization-user-tour-device.enum';
|
|
13
|
+
export { OrganizationUserTourEndReason } from './enums/organization-user-tour-end-reason.enum';
|
|
14
|
+
export { OrganizationUserTourEventType } from './enums/organization-user-tour-event-type.enum';
|
|
15
|
+
export { OrganizationUserTourStatus } from './enums/organization-user-tour-status.enum';
|
|
16
|
+
export { OrganizationUserTourTrigger } from './enums/organization-user-tour-trigger.enum';
|
|
12
17
|
export * from './organization-invitation-scopes';
|
|
13
18
|
export * from './organization-invitation-tokens';
|
|
14
19
|
export * from './organization-invitations';
|
|
15
20
|
export * from './organization-membership-scopes';
|
|
16
21
|
export * from './organization-memberships';
|
|
17
22
|
export * from './organization-user-billing-infos';
|
|
23
|
+
export * from './organization-user-tours';
|
|
18
24
|
export * from './organization-users';
|
|
19
25
|
export * from './organizations';
|
|
20
26
|
export * from './phone-numbers';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/central-auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,oDAAoD,CAAC;AACxG,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,cAAc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c,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
@@ -9,12 +9,18 @@ import { OrganizationStatus } from "./enums/organization-status.enum.js";
|
|
|
9
9
|
import { OrganizationType } from "./enums/organization-type.enum.js";
|
|
10
10
|
import { OrganizationUserAuthProvider } from "./enums/organization-user-auth-provider.enum.js";
|
|
11
11
|
import { OrganizationUserStatus } from "./enums/organization-user-status.enum.js";
|
|
12
|
+
import { OrganizationUserTourDevice } from "./enums/organization-user-tour-device.enum.js";
|
|
13
|
+
import { OrganizationUserTourEndReason } from "./enums/organization-user-tour-end-reason.enum.js";
|
|
14
|
+
import { OrganizationUserTourEventType } from "./enums/organization-user-tour-event-type.enum.js";
|
|
15
|
+
import { OrganizationUserTourStatus } from "./enums/organization-user-tour-status.enum.js";
|
|
16
|
+
import { OrganizationUserTourTrigger } from "./enums/organization-user-tour-trigger.enum.js";
|
|
12
17
|
export * from "./organization-invitation-scopes/index.js";
|
|
13
18
|
export * from "./organization-invitation-tokens/index.js";
|
|
14
19
|
export * from "./organization-invitations/index.js";
|
|
15
20
|
export * from "./organization-membership-scopes/index.js";
|
|
16
21
|
export * from "./organization-memberships/index.js";
|
|
17
22
|
export * from "./organization-user-billing-infos/index.js";
|
|
23
|
+
export * from "./organization-user-tours/index.js";
|
|
18
24
|
export * from "./organization-users/index.js";
|
|
19
25
|
export * from "./organizations/index.js";
|
|
20
26
|
export * from "./phone-numbers/index.js";
|
|
@@ -28,5 +34,10 @@ export {
|
|
|
28
34
|
OrganizationStatus,
|
|
29
35
|
OrganizationType,
|
|
30
36
|
OrganizationUserAuthProvider,
|
|
31
|
-
OrganizationUserStatus
|
|
37
|
+
OrganizationUserStatus,
|
|
38
|
+
OrganizationUserTourDevice,
|
|
39
|
+
OrganizationUserTourEndReason,
|
|
40
|
+
OrganizationUserTourEventType,
|
|
41
|
+
OrganizationUserTourStatus,
|
|
42
|
+
OrganizationUserTourTrigger
|
|
32
43
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { OrganizationUserTourEvent } from './organization-user-tour-event.entity';
|
|
2
|
+
export { OrganizationUserTourRun } from './organization-user-tour-run.entity';
|
|
3
|
+
export { OrganizationUserTourState } from './organization-user-tour-state.entity';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-user-tours/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrganizationUserTourEvent } from "./organization-user-tour-event.entity.js";
|
|
2
|
+
import { OrganizationUserTourRun } from "./organization-user-tour-run.entity.js";
|
|
3
|
+
import { OrganizationUserTourState } from "./organization-user-tour-state.entity.js";
|
|
4
|
+
export {
|
|
5
|
+
OrganizationUserTourEvent,
|
|
6
|
+
OrganizationUserTourRun,
|
|
7
|
+
OrganizationUserTourState
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OrganizationUserTourEndReason } from '../enums/organization-user-tour-end-reason.enum';
|
|
2
|
+
import { OrganizationUserTourEventType } from '../enums/organization-user-tour-event-type.enum';
|
|
3
|
+
import { OrganizationUserTourRun } from './organization-user-tour-run.entity';
|
|
4
|
+
export declare class OrganizationUserTourEvent {
|
|
5
|
+
id: string;
|
|
6
|
+
runId: string;
|
|
7
|
+
type: OrganizationUserTourEventType;
|
|
8
|
+
stepId: string | null;
|
|
9
|
+
stepIndex: number | null;
|
|
10
|
+
reason: OrganizationUserTourEndReason | null;
|
|
11
|
+
occurredAt: Date;
|
|
12
|
+
receivedAt: Date;
|
|
13
|
+
run: OrganizationUserTourRun;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=organization-user-tour-event.entity.d.ts.map
|
package/dist/central-auth/organization-user-tours/organization-user-tour-event.entity.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-user-tour-event.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-user-tours/organization-user-tour-event.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAChG,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAsB9E,qBAUa,yBAAyB;IAMpC,EAAE,EAAE,MAAM,CAAC;IAOX,KAAK,EAAE,MAAM,CAAC;IAOd,IAAI,EAAE,6BAA6B,CAAC;IASpC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAQtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,MAAM,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAO7C,UAAU,EAAE,IAAI,CAAC;IAQjB,UAAU,EAAE,IAAI,CAAC;IAOjB,GAAG,EAAE,uBAAuB,CAAC;CAC9B"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
import { Check, Column, Entity, Index, JoinColumn, ManyToOne, PrimaryColumn } from "typeorm";
|
|
12
|
+
import { OrganizationUserTourEndReason } from "../enums/organization-user-tour-end-reason.enum.js";
|
|
13
|
+
import { OrganizationUserTourEventType } from "../enums/organization-user-tour-event-type.enum.js";
|
|
14
|
+
import { OrganizationUserTourRun } from "./organization-user-tour-run.entity.js";
|
|
15
|
+
const list = (values) => values.map((value) => `'${value}'`).join(", ");
|
|
16
|
+
const TYPES = list(Object.values(OrganizationUserTourEventType));
|
|
17
|
+
const END_REASONS = list(Object.values(OrganizationUserTourEndReason));
|
|
18
|
+
let OrganizationUserTourEvent = class {
|
|
19
|
+
};
|
|
20
|
+
__decorateClass([
|
|
21
|
+
PrimaryColumn({
|
|
22
|
+
type: "uuid",
|
|
23
|
+
primaryKeyConstraintName: "PK_organization_user_tour_events",
|
|
24
|
+
comment: "Identificador do evento, gerado no navegador (reenvio n\xE3o duplica)."
|
|
25
|
+
})
|
|
26
|
+
], OrganizationUserTourEvent.prototype, "id", 2);
|
|
27
|
+
__decorateClass([
|
|
28
|
+
Column({
|
|
29
|
+
name: "run_id",
|
|
30
|
+
type: "uuid",
|
|
31
|
+
comment: "FK organization_user_tour_runs.id (CASCADE): a abertura em que aconteceu."
|
|
32
|
+
})
|
|
33
|
+
], OrganizationUserTourEvent.prototype, "runId", 2);
|
|
34
|
+
__decorateClass([
|
|
35
|
+
Column({
|
|
36
|
+
type: "varchar",
|
|
37
|
+
length: 16,
|
|
38
|
+
comment: "OPENED, STEP_VIEWED, STEP_BACK, OUTSIDE_CLICK, TARGET_MISSING ou CLOSED."
|
|
39
|
+
})
|
|
40
|
+
], OrganizationUserTourEvent.prototype, "type", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
Column({
|
|
43
|
+
name: "step_id",
|
|
44
|
+
type: "varchar",
|
|
45
|
+
length: 64,
|
|
46
|
+
nullable: true,
|
|
47
|
+
comment: "Id do passo no cat\xE1logo do front. Nulo na abertura."
|
|
48
|
+
})
|
|
49
|
+
], OrganizationUserTourEvent.prototype, "stepId", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
Column({
|
|
52
|
+
name: "step_index",
|
|
53
|
+
type: "smallint",
|
|
54
|
+
nullable: true,
|
|
55
|
+
comment: "Posi\xE7\xE3o do passo (a partir de 0). -1 ou nulo = na abertura."
|
|
56
|
+
})
|
|
57
|
+
], OrganizationUserTourEvent.prototype, "stepIndex", 2);
|
|
58
|
+
__decorateClass([
|
|
59
|
+
Column({
|
|
60
|
+
type: "varchar",
|
|
61
|
+
length: 16,
|
|
62
|
+
nullable: true,
|
|
63
|
+
comment: "S\xF3 no CLOSED: como fechou."
|
|
64
|
+
})
|
|
65
|
+
], OrganizationUserTourEvent.prototype, "reason", 2);
|
|
66
|
+
__decorateClass([
|
|
67
|
+
Column({
|
|
68
|
+
name: "occurred_at",
|
|
69
|
+
type: "timestamptz",
|
|
70
|
+
comment: "Quando aconteceu, pela hora do aparelho."
|
|
71
|
+
})
|
|
72
|
+
], OrganizationUserTourEvent.prototype, "occurredAt", 2);
|
|
73
|
+
__decorateClass([
|
|
74
|
+
Column({
|
|
75
|
+
name: "received_at",
|
|
76
|
+
type: "timestamptz",
|
|
77
|
+
default: () => "now()",
|
|
78
|
+
comment: "Quando o servidor recebeu."
|
|
79
|
+
})
|
|
80
|
+
], OrganizationUserTourEvent.prototype, "receivedAt", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
ManyToOne(() => OrganizationUserTourRun, (run) => run.events, { onDelete: "CASCADE" }),
|
|
83
|
+
JoinColumn({
|
|
84
|
+
name: "run_id",
|
|
85
|
+
foreignKeyConstraintName: "FK_organization_user_tour_events_run"
|
|
86
|
+
})
|
|
87
|
+
], OrganizationUserTourEvent.prototype, "run", 2);
|
|
88
|
+
OrganizationUserTourEvent = __decorateClass([
|
|
89
|
+
Entity("organization_user_tour_events"),
|
|
90
|
+
Index("IDX_organization_user_tour_events_run", ["runId", "occurredAt"]),
|
|
91
|
+
Index("IDX_organization_user_tour_events_received_at", ["receivedAt"]),
|
|
92
|
+
Check("CHK_organization_user_tour_events_type", `"type" IN (${TYPES})`),
|
|
93
|
+
Check(
|
|
94
|
+
"CHK_organization_user_tour_events_reason",
|
|
95
|
+
`("type" = 'CLOSED' AND "reason" IN (${END_REASONS})) OR ("type" <> 'CLOSED' AND "reason" IS NULL)`
|
|
96
|
+
)
|
|
97
|
+
], OrganizationUserTourEvent);
|
|
98
|
+
export {
|
|
99
|
+
OrganizationUserTourEvent
|
|
100
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OrganizationUserTourDevice } from '../enums/organization-user-tour-device.enum';
|
|
2
|
+
import { OrganizationUserTourEndReason } from '../enums/organization-user-tour-end-reason.enum';
|
|
3
|
+
import { OrganizationUserTourTrigger } from '../enums/organization-user-tour-trigger.enum';
|
|
4
|
+
import { OrganizationUser } from '../organization-users/organization-user.entity';
|
|
5
|
+
import { OrganizationUserTourEvent } from './organization-user-tour-event.entity';
|
|
6
|
+
export declare class OrganizationUserTourRun {
|
|
7
|
+
id: string;
|
|
8
|
+
organizationUserId: number;
|
|
9
|
+
tourKey: string;
|
|
10
|
+
tourVersion: number;
|
|
11
|
+
scope: string;
|
|
12
|
+
trigger: OrganizationUserTourTrigger | null;
|
|
13
|
+
device: OrganizationUserTourDevice | null;
|
|
14
|
+
surface: string;
|
|
15
|
+
categoryGroupId: number | null;
|
|
16
|
+
stepsTotal: number | null;
|
|
17
|
+
stepsSeen: string[];
|
|
18
|
+
furthestStepIndex: number;
|
|
19
|
+
outsideClicks: number;
|
|
20
|
+
backCount: number;
|
|
21
|
+
endReason: OrganizationUserTourEndReason | null;
|
|
22
|
+
endStepIndex: number | null;
|
|
23
|
+
startedAt: Date;
|
|
24
|
+
endedAt: Date | null;
|
|
25
|
+
durationMs: number | null;
|
|
26
|
+
createdAt: Date;
|
|
27
|
+
updatedAt: Date;
|
|
28
|
+
organizationUser: OrganizationUser;
|
|
29
|
+
events: OrganizationUserTourEvent[];
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=organization-user-tour-run.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-user-tour-run.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-user-tours/organization-user-tour-run.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAChG,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AA2BlF,qBAea,uBAAuB;IAMlC,EAAE,EAAE,MAAM,CAAC;IAOX,kBAAkB,EAAE,MAAM,CAAC;IAQ3B,OAAO,EAAE,MAAM,CAAC;IAOhB,WAAW,EAAE,MAAM,CAAC;IASpB,KAAK,EAAE,MAAM,CAAC;IASd,OAAO,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAQ5C,MAAM,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAQ1C,OAAO,EAAE,MAAM,CAAC;IAQhB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAU1B,SAAS,EAAE,MAAM,EAAE,CAAC;IAQpB,iBAAiB,EAAE,MAAM,CAAC;IAQ1B,aAAa,EAAE,MAAM,CAAC;IAQtB,SAAS,EAAE,MAAM,CAAC;IASlB,SAAS,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAQhD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAO5B,SAAS,EAAE,IAAI,CAAC;IAQhB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IAQrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAO1B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAOhB,gBAAgB,EAAE,gBAAgB,CAAC;IAGnC,MAAM,EAAE,yBAAyB,EAAE,CAAC;CACrC"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
import {
|
|
12
|
+
Check,
|
|
13
|
+
Column,
|
|
14
|
+
CreateDateColumn,
|
|
15
|
+
Entity,
|
|
16
|
+
Index,
|
|
17
|
+
JoinColumn,
|
|
18
|
+
ManyToOne,
|
|
19
|
+
OneToMany,
|
|
20
|
+
PrimaryColumn,
|
|
21
|
+
UpdateDateColumn
|
|
22
|
+
} from "typeorm";
|
|
23
|
+
import { OrganizationUserTourDevice } from "../enums/organization-user-tour-device.enum.js";
|
|
24
|
+
import { OrganizationUserTourEndReason } from "../enums/organization-user-tour-end-reason.enum.js";
|
|
25
|
+
import { OrganizationUserTourTrigger } from "../enums/organization-user-tour-trigger.enum.js";
|
|
26
|
+
import { OrganizationUser } from "../organization-users/organization-user.entity.js";
|
|
27
|
+
import { OrganizationUserTourEvent } from "./organization-user-tour-event.entity.js";
|
|
28
|
+
const list = (values) => values.map((value) => `'${value}'`).join(", ");
|
|
29
|
+
const TRIGGERS = list(Object.values(OrganizationUserTourTrigger));
|
|
30
|
+
const DEVICES = list(Object.values(OrganizationUserTourDevice));
|
|
31
|
+
const END_REASONS = list(Object.values(OrganizationUserTourEndReason));
|
|
32
|
+
let OrganizationUserTourRun = class {
|
|
33
|
+
};
|
|
34
|
+
__decorateClass([
|
|
35
|
+
PrimaryColumn({
|
|
36
|
+
type: "uuid",
|
|
37
|
+
primaryKeyConstraintName: "PK_organization_user_tour_runs",
|
|
38
|
+
comment: "Identificador da abertura, gerado no navegador (reenvio n\xE3o duplica)."
|
|
39
|
+
})
|
|
40
|
+
], OrganizationUserTourRun.prototype, "id", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
Column({
|
|
43
|
+
name: "organization_user_id",
|
|
44
|
+
type: "int",
|
|
45
|
+
comment: "FK organization_users.id (CASCADE): quem viu."
|
|
46
|
+
})
|
|
47
|
+
], OrganizationUserTourRun.prototype, "organizationUserId", 2);
|
|
48
|
+
__decorateClass([
|
|
49
|
+
Column({
|
|
50
|
+
name: "tour_key",
|
|
51
|
+
type: "varchar",
|
|
52
|
+
length: 64,
|
|
53
|
+
comment: "Chave do passo a passo no cat\xE1logo do front (ex.: perfil-campeonato)."
|
|
54
|
+
})
|
|
55
|
+
], OrganizationUserTourRun.prototype, "tourKey", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
Column({
|
|
58
|
+
name: "tour_version",
|
|
59
|
+
type: "int",
|
|
60
|
+
comment: "Vers\xE3o do passo a passo que a pessoa viu nesta abertura."
|
|
61
|
+
})
|
|
62
|
+
], OrganizationUserTourRun.prototype, "tourVersion", 2);
|
|
63
|
+
__decorateClass([
|
|
64
|
+
Column({
|
|
65
|
+
type: "varchar",
|
|
66
|
+
length: 64,
|
|
67
|
+
default: "",
|
|
68
|
+
comment: "Recorte em que o passo a passo vale. Vazio = vale para a pessoa em qualquer campeonato."
|
|
69
|
+
})
|
|
70
|
+
], OrganizationUserTourRun.prototype, "scope", 2);
|
|
71
|
+
__decorateClass([
|
|
72
|
+
Column({
|
|
73
|
+
type: "varchar",
|
|
74
|
+
length: 16,
|
|
75
|
+
nullable: true,
|
|
76
|
+
comment: "AUTO (abriu sozinho), BUTTON (Ver tutorial) ou LINK. Nulo se o evento OPENED se perdeu."
|
|
77
|
+
})
|
|
78
|
+
], OrganizationUserTourRun.prototype, "trigger", 2);
|
|
79
|
+
__decorateClass([
|
|
80
|
+
Column({
|
|
81
|
+
type: "varchar",
|
|
82
|
+
length: 16,
|
|
83
|
+
nullable: true,
|
|
84
|
+
comment: "MOBILE ou DESKTOP. Nulo se o evento OPENED se perdeu."
|
|
85
|
+
})
|
|
86
|
+
], OrganizationUserTourRun.prototype, "device", 2);
|
|
87
|
+
__decorateClass([
|
|
88
|
+
Column({
|
|
89
|
+
type: "varchar",
|
|
90
|
+
length: 32,
|
|
91
|
+
default: "central",
|
|
92
|
+
comment: "Produto onde abriu (central, backoffice)."
|
|
93
|
+
})
|
|
94
|
+
], OrganizationUserTourRun.prototype, "surface", 2);
|
|
95
|
+
__decorateClass([
|
|
96
|
+
Column({
|
|
97
|
+
name: "category_group_id",
|
|
98
|
+
type: "int",
|
|
99
|
+
nullable: true,
|
|
100
|
+
comment: "Campeonato em que a pessoa estava (sem FK: s\xF3 contexto)."
|
|
101
|
+
})
|
|
102
|
+
], OrganizationUserTourRun.prototype, "categoryGroupId", 2);
|
|
103
|
+
__decorateClass([
|
|
104
|
+
Column({
|
|
105
|
+
name: "steps_total",
|
|
106
|
+
type: "smallint",
|
|
107
|
+
nullable: true,
|
|
108
|
+
comment: "Quantos passos o passo a passo tinha nesta vers\xE3o."
|
|
109
|
+
})
|
|
110
|
+
], OrganizationUserTourRun.prototype, "stepsTotal", 2);
|
|
111
|
+
__decorateClass([
|
|
112
|
+
Column({
|
|
113
|
+
name: "steps_seen",
|
|
114
|
+
type: "varchar",
|
|
115
|
+
length: 64,
|
|
116
|
+
array: true,
|
|
117
|
+
default: () => "'{}'",
|
|
118
|
+
comment: "Ids dos passos vistos nesta abertura, na ordem em que apareceram, sem repetir."
|
|
119
|
+
})
|
|
120
|
+
], OrganizationUserTourRun.prototype, "stepsSeen", 2);
|
|
121
|
+
__decorateClass([
|
|
122
|
+
Column({
|
|
123
|
+
name: "furthest_step_index",
|
|
124
|
+
type: "smallint",
|
|
125
|
+
default: -1,
|
|
126
|
+
comment: "Passo mais adiante que a pessoa viu (a partir de 0). -1 = s\xF3 a abertura."
|
|
127
|
+
})
|
|
128
|
+
], OrganizationUserTourRun.prototype, "furthestStepIndex", 2);
|
|
129
|
+
__decorateClass([
|
|
130
|
+
Column({
|
|
131
|
+
name: "outside_clicks",
|
|
132
|
+
type: "int",
|
|
133
|
+
default: 0,
|
|
134
|
+
comment: "Quantas vezes clicou fora do bal\xE3o."
|
|
135
|
+
})
|
|
136
|
+
], OrganizationUserTourRun.prototype, "outsideClicks", 2);
|
|
137
|
+
__decorateClass([
|
|
138
|
+
Column({
|
|
139
|
+
name: "back_count",
|
|
140
|
+
type: "int",
|
|
141
|
+
default: 0,
|
|
142
|
+
comment: "Quantas vezes voltou um passo."
|
|
143
|
+
})
|
|
144
|
+
], OrganizationUserTourRun.prototype, "backCount", 2);
|
|
145
|
+
__decorateClass([
|
|
146
|
+
Column({
|
|
147
|
+
name: "end_reason",
|
|
148
|
+
type: "varchar",
|
|
149
|
+
length: 16,
|
|
150
|
+
nullable: true,
|
|
151
|
+
comment: "Como fechou (COMPLETED, NOT_NOW, CLOSED_X, ESCAPE...). Nulo = ainda aberta."
|
|
152
|
+
})
|
|
153
|
+
], OrganizationUserTourRun.prototype, "endReason", 2);
|
|
154
|
+
__decorateClass([
|
|
155
|
+
Column({
|
|
156
|
+
name: "end_step_index",
|
|
157
|
+
type: "smallint",
|
|
158
|
+
nullable: true,
|
|
159
|
+
comment: "Passo em que estava ao fechar (a partir de 0). -1 = na abertura."
|
|
160
|
+
})
|
|
161
|
+
], OrganizationUserTourRun.prototype, "endStepIndex", 2);
|
|
162
|
+
__decorateClass([
|
|
163
|
+
Column({
|
|
164
|
+
name: "started_at",
|
|
165
|
+
type: "timestamptz",
|
|
166
|
+
comment: "Quando abriu, pela hora do aparelho."
|
|
167
|
+
})
|
|
168
|
+
], OrganizationUserTourRun.prototype, "startedAt", 2);
|
|
169
|
+
__decorateClass([
|
|
170
|
+
Column({
|
|
171
|
+
name: "ended_at",
|
|
172
|
+
type: "timestamptz",
|
|
173
|
+
nullable: true,
|
|
174
|
+
comment: "Quando fechou, pela hora do aparelho. Nulo = ainda aberta."
|
|
175
|
+
})
|
|
176
|
+
], OrganizationUserTourRun.prototype, "endedAt", 2);
|
|
177
|
+
__decorateClass([
|
|
178
|
+
Column({
|
|
179
|
+
name: "duration_ms",
|
|
180
|
+
type: "int",
|
|
181
|
+
nullable: true,
|
|
182
|
+
comment: "Tempo entre abrir e fechar, em milissegundos."
|
|
183
|
+
})
|
|
184
|
+
], OrganizationUserTourRun.prototype, "durationMs", 2);
|
|
185
|
+
__decorateClass([
|
|
186
|
+
CreateDateColumn({
|
|
187
|
+
name: "created_at",
|
|
188
|
+
type: "timestamptz",
|
|
189
|
+
comment: "Quando o servidor recebeu o primeiro evento desta abertura."
|
|
190
|
+
})
|
|
191
|
+
], OrganizationUserTourRun.prototype, "createdAt", 2);
|
|
192
|
+
__decorateClass([
|
|
193
|
+
UpdateDateColumn({
|
|
194
|
+
name: "updated_at",
|
|
195
|
+
type: "timestamptz",
|
|
196
|
+
comment: "\xDAltimo evento recebido desta abertura."
|
|
197
|
+
})
|
|
198
|
+
], OrganizationUserTourRun.prototype, "updatedAt", 2);
|
|
199
|
+
__decorateClass([
|
|
200
|
+
ManyToOne(() => OrganizationUser, { onDelete: "CASCADE" }),
|
|
201
|
+
JoinColumn({
|
|
202
|
+
name: "organization_user_id",
|
|
203
|
+
foreignKeyConstraintName: "FK_organization_user_tour_runs_user"
|
|
204
|
+
})
|
|
205
|
+
], OrganizationUserTourRun.prototype, "organizationUser", 2);
|
|
206
|
+
__decorateClass([
|
|
207
|
+
OneToMany(() => OrganizationUserTourEvent, (event) => event.run)
|
|
208
|
+
], OrganizationUserTourRun.prototype, "events", 2);
|
|
209
|
+
OrganizationUserTourRun = __decorateClass([
|
|
210
|
+
Entity("organization_user_tour_runs"),
|
|
211
|
+
Index("IDX_organization_user_tour_runs_user_tour", ["organizationUserId", "tourKey", "startedAt"]),
|
|
212
|
+
Index("IDX_organization_user_tour_runs_tour_version", ["tourKey", "tourVersion", "startedAt"]),
|
|
213
|
+
Index("IDX_organization_user_tour_runs_open", ["startedAt"], { where: '"ended_at" IS NULL' }),
|
|
214
|
+
Check("CHK_organization_user_tour_runs_trigger", `"trigger" IS NULL OR "trigger" IN (${TRIGGERS})`),
|
|
215
|
+
Check("CHK_organization_user_tour_runs_device", `"device" IS NULL OR "device" IN (${DEVICES})`),
|
|
216
|
+
Check(
|
|
217
|
+
"CHK_organization_user_tour_runs_end_reason",
|
|
218
|
+
`"end_reason" IS NULL OR "end_reason" IN (${END_REASONS})`
|
|
219
|
+
),
|
|
220
|
+
Check("CHK_organization_user_tour_runs_end", `("end_reason" IS NULL) = ("ended_at" IS NULL)`),
|
|
221
|
+
Check("CHK_organization_user_tour_runs_version", `"tour_version" >= 1`)
|
|
222
|
+
], OrganizationUserTourRun);
|
|
223
|
+
export {
|
|
224
|
+
OrganizationUserTourRun
|
|
225
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OrganizationUserTourEndReason } from '../enums/organization-user-tour-end-reason.enum';
|
|
2
|
+
import { OrganizationUserTourStatus } from '../enums/organization-user-tour-status.enum';
|
|
3
|
+
import { OrganizationUser } from '../organization-users/organization-user.entity';
|
|
4
|
+
export declare class OrganizationUserTourState {
|
|
5
|
+
id: number;
|
|
6
|
+
organizationUserId: number;
|
|
7
|
+
tourKey: string;
|
|
8
|
+
scope: string;
|
|
9
|
+
status: OrganizationUserTourStatus;
|
|
10
|
+
lastVersionSeen: number;
|
|
11
|
+
timesOpened: number;
|
|
12
|
+
timesOpenedAuto: number;
|
|
13
|
+
timesOpenedButton: number;
|
|
14
|
+
timesCompleted: number;
|
|
15
|
+
timesDismissed: number;
|
|
16
|
+
stepsSeenLastVersion: string[];
|
|
17
|
+
furthestStepIndex: number;
|
|
18
|
+
lastEndReason: OrganizationUserTourEndReason | null;
|
|
19
|
+
firstSeenAt: Date;
|
|
20
|
+
lastSeenAt: Date;
|
|
21
|
+
completedAt: Date | null;
|
|
22
|
+
dismissedAt: Date | null;
|
|
23
|
+
nextAutoAt: Date | null;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
organizationUser: OrganizationUser;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=organization-user-tour-state.entity.d.ts.map
|
package/dist/central-auth/organization-user-tours/organization-user-tour-state.entity.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-user-tour-state.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-user-tours/organization-user-tour-state.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAChG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAyBlF,qBAYa,yBAAyB;IAKpC,EAAE,EAAE,MAAM,CAAC;IAOX,kBAAkB,EAAE,MAAM,CAAC;IAQ3B,OAAO,EAAE,MAAM,CAAC;IAShB,KAAK,EAAE,MAAM,CAAC;IAOd,MAAM,EAAE,0BAA0B,CAAC;IAOnC,eAAe,EAAE,MAAM,CAAC;IAQxB,WAAW,EAAE,MAAM,CAAC;IAQpB,eAAe,EAAE,MAAM,CAAC;IAQxB,iBAAiB,EAAE,MAAM,CAAC;IAQ1B,cAAc,EAAE,MAAM,CAAC;IAQvB,cAAc,EAAE,MAAM,CAAC;IAUvB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAQ/B,iBAAiB,EAAE,MAAM,CAAC;IAS1B,aAAa,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAOpD,WAAW,EAAE,IAAI,CAAC;IAOlB,UAAU,EAAE,IAAI,CAAC;IAQjB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IAQzB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IASzB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAOhB,gBAAgB,EAAE,gBAAgB,CAAC;CACpC"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
import {
|
|
12
|
+
Check,
|
|
13
|
+
Column,
|
|
14
|
+
CreateDateColumn,
|
|
15
|
+
Entity,
|
|
16
|
+
JoinColumn,
|
|
17
|
+
ManyToOne,
|
|
18
|
+
PrimaryGeneratedColumn,
|
|
19
|
+
Unique,
|
|
20
|
+
UpdateDateColumn
|
|
21
|
+
} from "typeorm";
|
|
22
|
+
import { OrganizationUserTourEndReason } from "../enums/organization-user-tour-end-reason.enum.js";
|
|
23
|
+
import { OrganizationUserTourStatus } from "../enums/organization-user-tour-status.enum.js";
|
|
24
|
+
import { OrganizationUser } from "../organization-users/organization-user.entity.js";
|
|
25
|
+
const list = (values) => values.map((value) => `'${value}'`).join(", ");
|
|
26
|
+
const STATUSES = list(Object.values(OrganizationUserTourStatus));
|
|
27
|
+
const END_REASONS = list(Object.values(OrganizationUserTourEndReason));
|
|
28
|
+
let OrganizationUserTourState = class {
|
|
29
|
+
};
|
|
30
|
+
__decorateClass([
|
|
31
|
+
PrimaryGeneratedColumn({
|
|
32
|
+
primaryKeyConstraintName: "PK_organization_user_tour_states",
|
|
33
|
+
comment: "Identificador do resumo."
|
|
34
|
+
})
|
|
35
|
+
], OrganizationUserTourState.prototype, "id", 2);
|
|
36
|
+
__decorateClass([
|
|
37
|
+
Column({
|
|
38
|
+
name: "organization_user_id",
|
|
39
|
+
type: "int",
|
|
40
|
+
comment: "FK organization_users.id (CASCADE): de quem \xE9 o resumo."
|
|
41
|
+
})
|
|
42
|
+
], OrganizationUserTourState.prototype, "organizationUserId", 2);
|
|
43
|
+
__decorateClass([
|
|
44
|
+
Column({
|
|
45
|
+
name: "tour_key",
|
|
46
|
+
type: "varchar",
|
|
47
|
+
length: 64,
|
|
48
|
+
comment: "Chave do passo a passo no cat\xE1logo do front (ex.: perfil-campeonato)."
|
|
49
|
+
})
|
|
50
|
+
], OrganizationUserTourState.prototype, "tourKey", 2);
|
|
51
|
+
__decorateClass([
|
|
52
|
+
Column({
|
|
53
|
+
type: "varchar",
|
|
54
|
+
length: 64,
|
|
55
|
+
default: "",
|
|
56
|
+
comment: "Recorte em que o passo a passo vale. Vazio = vale para a pessoa em qualquer campeonato."
|
|
57
|
+
})
|
|
58
|
+
], OrganizationUserTourState.prototype, "scope", 2);
|
|
59
|
+
__decorateClass([
|
|
60
|
+
Column({
|
|
61
|
+
type: "varchar",
|
|
62
|
+
length: 16,
|
|
63
|
+
comment: "IN_PROGRESS, COMPLETED (n\xE3o volta atr\xE1s) ou DISMISSED."
|
|
64
|
+
})
|
|
65
|
+
], OrganizationUserTourState.prototype, "status", 2);
|
|
66
|
+
__decorateClass([
|
|
67
|
+
Column({
|
|
68
|
+
name: "last_version_seen",
|
|
69
|
+
type: "int",
|
|
70
|
+
comment: "Maior vers\xE3o do passo a passo que a pessoa j\xE1 abriu."
|
|
71
|
+
})
|
|
72
|
+
], OrganizationUserTourState.prototype, "lastVersionSeen", 2);
|
|
73
|
+
__decorateClass([
|
|
74
|
+
Column({
|
|
75
|
+
name: "times_opened",
|
|
76
|
+
type: "int",
|
|
77
|
+
default: 0,
|
|
78
|
+
comment: "Quantas vezes abriu, por qualquer caminho."
|
|
79
|
+
})
|
|
80
|
+
], OrganizationUserTourState.prototype, "timesOpened", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
Column({
|
|
83
|
+
name: "times_opened_auto",
|
|
84
|
+
type: "int",
|
|
85
|
+
default: 0,
|
|
86
|
+
comment: "Quantas vezes abriu sozinho."
|
|
87
|
+
})
|
|
88
|
+
], OrganizationUserTourState.prototype, "timesOpenedAuto", 2);
|
|
89
|
+
__decorateClass([
|
|
90
|
+
Column({
|
|
91
|
+
name: "times_opened_button",
|
|
92
|
+
type: "int",
|
|
93
|
+
default: 0,
|
|
94
|
+
comment: 'Quantas vezes a pessoa abriu pelo bot\xE3o "Ver tutorial".'
|
|
95
|
+
})
|
|
96
|
+
], OrganizationUserTourState.prototype, "timesOpenedButton", 2);
|
|
97
|
+
__decorateClass([
|
|
98
|
+
Column({
|
|
99
|
+
name: "times_completed",
|
|
100
|
+
type: "int",
|
|
101
|
+
default: 0,
|
|
102
|
+
comment: "Quantas vezes chegou ao fim."
|
|
103
|
+
})
|
|
104
|
+
], OrganizationUserTourState.prototype, "timesCompleted", 2);
|
|
105
|
+
__decorateClass([
|
|
106
|
+
Column({
|
|
107
|
+
name: "times_dismissed",
|
|
108
|
+
type: "int",
|
|
109
|
+
default: 0,
|
|
110
|
+
comment: "Quantas vezes fechou antes do fim."
|
|
111
|
+
})
|
|
112
|
+
], OrganizationUserTourState.prototype, "timesDismissed", 2);
|
|
113
|
+
__decorateClass([
|
|
114
|
+
Column({
|
|
115
|
+
name: "steps_seen_last_version",
|
|
116
|
+
type: "varchar",
|
|
117
|
+
length: 64,
|
|
118
|
+
array: true,
|
|
119
|
+
default: () => "'{}'",
|
|
120
|
+
comment: "Ids dos passos j\xE1 vistos na vers\xE3o de `last_version_seen`, sem repetir."
|
|
121
|
+
})
|
|
122
|
+
], OrganizationUserTourState.prototype, "stepsSeenLastVersion", 2);
|
|
123
|
+
__decorateClass([
|
|
124
|
+
Column({
|
|
125
|
+
name: "furthest_step_index",
|
|
126
|
+
type: "smallint",
|
|
127
|
+
default: -1,
|
|
128
|
+
comment: "Passo mais adiante j\xE1 visto na vers\xE3o de `last_version_seen`. -1 = s\xF3 a abertura."
|
|
129
|
+
})
|
|
130
|
+
], OrganizationUserTourState.prototype, "furthestStepIndex", 2);
|
|
131
|
+
__decorateClass([
|
|
132
|
+
Column({
|
|
133
|
+
name: "last_end_reason",
|
|
134
|
+
type: "varchar",
|
|
135
|
+
length: 16,
|
|
136
|
+
nullable: true,
|
|
137
|
+
comment: "Como fechou da \xFAltima vez. Nulo = nunca fechou."
|
|
138
|
+
})
|
|
139
|
+
], OrganizationUserTourState.prototype, "lastEndReason", 2);
|
|
140
|
+
__decorateClass([
|
|
141
|
+
Column({
|
|
142
|
+
name: "first_seen_at",
|
|
143
|
+
type: "timestamptz",
|
|
144
|
+
comment: "Primeira vez que abriu."
|
|
145
|
+
})
|
|
146
|
+
], OrganizationUserTourState.prototype, "firstSeenAt", 2);
|
|
147
|
+
__decorateClass([
|
|
148
|
+
Column({
|
|
149
|
+
name: "last_seen_at",
|
|
150
|
+
type: "timestamptz",
|
|
151
|
+
comment: "\xDAltima vez que abriu."
|
|
152
|
+
})
|
|
153
|
+
], OrganizationUserTourState.prototype, "lastSeenAt", 2);
|
|
154
|
+
__decorateClass([
|
|
155
|
+
Column({
|
|
156
|
+
name: "completed_at",
|
|
157
|
+
type: "timestamptz",
|
|
158
|
+
nullable: true,
|
|
159
|
+
comment: "Primeira vez que chegou ao fim. Nulo = nunca concluiu."
|
|
160
|
+
})
|
|
161
|
+
], OrganizationUserTourState.prototype, "completedAt", 2);
|
|
162
|
+
__decorateClass([
|
|
163
|
+
Column({
|
|
164
|
+
name: "dismissed_at",
|
|
165
|
+
type: "timestamptz",
|
|
166
|
+
nullable: true,
|
|
167
|
+
comment: "\xDAltima vez que fechou antes do fim."
|
|
168
|
+
})
|
|
169
|
+
], OrganizationUserTourState.prototype, "dismissedAt", 2);
|
|
170
|
+
__decorateClass([
|
|
171
|
+
Column({
|
|
172
|
+
name: "next_auto_at",
|
|
173
|
+
type: "timestamptz",
|
|
174
|
+
nullable: true,
|
|
175
|
+
comment: 'A partir de quando pode abrir sozinho de novo (7 dias depois do primeiro "Agora n\xE3o"). Nulo = s\xF3 pelo bot\xE3o.'
|
|
176
|
+
})
|
|
177
|
+
], OrganizationUserTourState.prototype, "nextAutoAt", 2);
|
|
178
|
+
__decorateClass([
|
|
179
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz", comment: "Cria\xE7\xE3o do resumo." })
|
|
180
|
+
], OrganizationUserTourState.prototype, "createdAt", 2);
|
|
181
|
+
__decorateClass([
|
|
182
|
+
UpdateDateColumn({
|
|
183
|
+
name: "updated_at",
|
|
184
|
+
type: "timestamptz",
|
|
185
|
+
comment: "\xDAltima atualiza\xE7\xE3o do resumo."
|
|
186
|
+
})
|
|
187
|
+
], OrganizationUserTourState.prototype, "updatedAt", 2);
|
|
188
|
+
__decorateClass([
|
|
189
|
+
ManyToOne(() => OrganizationUser, { onDelete: "CASCADE" }),
|
|
190
|
+
JoinColumn({
|
|
191
|
+
name: "organization_user_id",
|
|
192
|
+
foreignKeyConstraintName: "FK_organization_user_tour_states_user"
|
|
193
|
+
})
|
|
194
|
+
], OrganizationUserTourState.prototype, "organizationUser", 2);
|
|
195
|
+
OrganizationUserTourState = __decorateClass([
|
|
196
|
+
Entity("organization_user_tour_states"),
|
|
197
|
+
Unique("UQ_organization_user_tour_states_user_tour_scope", [
|
|
198
|
+
"organizationUserId",
|
|
199
|
+
"tourKey",
|
|
200
|
+
"scope"
|
|
201
|
+
]),
|
|
202
|
+
Check("CHK_organization_user_tour_states_status", `"status" IN (${STATUSES})`),
|
|
203
|
+
Check(
|
|
204
|
+
"CHK_organization_user_tour_states_last_end_reason",
|
|
205
|
+
`"last_end_reason" IS NULL OR "last_end_reason" IN (${END_REASONS})`
|
|
206
|
+
),
|
|
207
|
+
Check("CHK_organization_user_tour_states_version", `"last_version_seen" >= 1`)
|
|
208
|
+
], OrganizationUserTourState);
|
|
209
|
+
export {
|
|
210
|
+
OrganizationUserTourState
|
|
211
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PasswordReset, RefreshToken, User, UserAuthProvider, UserLocality, UserOnboardingIntent, UserVerification } from '../app-auth';
|
|
2
2
|
import { BillingAccount, BillingEvent, BillingInvoice, BillingInvoiceLineItem, BillingMatchUsage, BillingPayment, BillingPlan, BillingProduct, BillingProviderWebhookEvent, BillingSubscription, BillingSubscriptionGrant, BillingSubscriptionItem } from '../billing';
|
|
3
|
-
import { AccessAuditEvent, Organization, OrganizationInvitation, OrganizationInvitationScope, OrganizationInvitationToken, OrganizationMembership, OrganizationMembershipScope, OrganizationUser, OrganizationUserBillingInfo, PhoneNumber } from '../central-auth';
|
|
3
|
+
import { AccessAuditEvent, Organization, OrganizationInvitation, OrganizationInvitationScope, OrganizationInvitationToken, OrganizationMembership, OrganizationMembershipScope, OrganizationUser, OrganizationUserBillingInfo, OrganizationUserTourEvent, OrganizationUserTourRun, OrganizationUserTourState, PhoneNumber } from '../central-auth';
|
|
4
4
|
import { Coupon, CouponUsage } from '../coupons';
|
|
5
5
|
import { Address, City, Facility, FacilityImage, FacilityOwner, Field, FieldImage } from '../facilities';
|
|
6
6
|
import { FeedActivity, FeedActivityReaction, FeedActivitySubject, FeedArtRewarm, FeedMedia, FeedOutbox, FeedPoll, FeedPollOption, FeedPollVote, FeedPost, FeedPostAttachment, FeedPostRevision, FeedReport } from '../feed';
|
|
@@ -16,5 +16,5 @@ import { Brand, BrandIdentity, Segment, Sponsor, SponsorExposureEvent, Sponsorsh
|
|
|
16
16
|
import { PlayerTeam, Team, TeamAccessCode, TeamFollow, TeamJoinRequest, TeamKit, TeamModality, TeamProStoreEvent, TeamProSubscription, TeamSponsor, TeamTrophy } from '../teams';
|
|
17
17
|
import { CategoryBroadcastSetting, Referee, RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchKit, TournamentMatchObservation, TournamentMatchPlayerNumber, TournamentMatchReferee, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPointsAdjustment, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentRound, TournamentTeam, TournamentTeamInvitation, TournamentTeamMemberNote, TournamentTieBreakConfig } from '../tournaments';
|
|
18
18
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
19
|
-
export declare const DATABASE_ENTITIES: (typeof PasswordReset | typeof Notification | typeof User | typeof NotificationDelivery | typeof NotificationDispatchLog | typeof PushDeviceToken | typeof UserNotificationPreference | typeof TeamPlayerMergeHistory | typeof Team | typeof PlayerTeam | typeof Player | typeof TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentMatchKit | typeof TournamentMatchSubstitution | typeof TournamentMatchTimeout | typeof TournamentPenaltyShootout | typeof AccessAuditEvent | typeof OrganizationInvitationToken | typeof OrganizationInvitation | typeof CategoryBroadcastSetting | typeof Tournament | typeof TournamentMatchReferee | typeof Referee | typeof RegulationExtraction | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentCreationDraft | typeof FacilityImage | typeof Facility | typeof FieldImage | typeof Field | typeof Address | typeof TournamentFacility | typeof OrganizationUserBillingInfo | typeof City | typeof FacilityOwner | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchObservation | typeof TournamentMatchPlayerNumber | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPointsAdjustment | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentRound | typeof TournamentTeamInvitation | typeof TournamentTeamMemberNote | typeof TournamentTieBreakConfig | typeof OrganizationInvitationScope | typeof OrganizationMembership | typeof OrganizationMembershipScope | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof TeamKit | typeof TeamModality | typeof TeamSponsor | typeof TeamFollow | typeof TeamProSubscription | typeof TeamProStoreEvent | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserLocality | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionGrant | typeof BillingSubscription | typeof BillingSubscriptionItem | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingMatchUsage | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivityReaction | typeof FeedActivity | typeof FeedActivitySubject | typeof FeedArtRewarm | typeof FeedMedia | typeof FeedOutbox | typeof FeedPostAttachment | typeof FeedPost | typeof FeedPoll | typeof FeedPostRevision | typeof FeedPollOption | typeof FeedPollVote | typeof FeedReport | typeof FinanceAuditEvent | typeof FinanceEntryItem | typeof FinanceEntry | typeof FinanceLedger | typeof FriendlyBoardPreference | typeof FriendlyMatchAttendance | typeof FriendlyMatch | typeof FriendlyMatchExtra | typeof FriendlyMatchGoal | typeof FriendlyMatchMvp | typeof FriendlyMvpVote | typeof FriendlyOpenChallengeExtra | typeof FriendlyChallenge | typeof FriendlyStaffCommand | typeof FriendlyScoreEvent | typeof FriendlyChallengeExtra | typeof FriendlyHistory | typeof FriendlyRequest | typeof FriendlyStaffCommandEffect | typeof MemberTeamIdentity | typeof MemberTournamentIdentity | typeof PromotionContact | typeof Promotion | typeof PromotionCreative | typeof PromotionTarget | typeof PromotionAdvertiser | typeof PromotionEvent | typeof PromotionUserState | typeof SponsorshipAuditEvent | typeof Segment | typeof BrandIdentity | typeof Brand | typeof SponsorExposureEvent | typeof SponsorshipSettings | typeof Sponsor | typeof UserDomainEvent | typeof UserEventView)[];
|
|
19
|
+
export declare const DATABASE_ENTITIES: (typeof PasswordReset | typeof Notification | typeof User | typeof NotificationDelivery | typeof NotificationDispatchLog | typeof PushDeviceToken | typeof UserNotificationPreference | typeof TeamPlayerMergeHistory | typeof Team | typeof PlayerTeam | typeof Player | typeof TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentMatchKit | typeof TournamentMatchSubstitution | typeof TournamentMatchTimeout | typeof TournamentPenaltyShootout | typeof AccessAuditEvent | typeof OrganizationInvitationToken | typeof OrganizationInvitation | typeof CategoryBroadcastSetting | typeof Tournament | typeof TournamentMatchReferee | typeof Referee | typeof RegulationExtraction | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentCreationDraft | typeof FacilityImage | typeof Facility | typeof FieldImage | typeof Field | typeof Address | typeof TournamentFacility | typeof OrganizationUserBillingInfo | typeof City | typeof FacilityOwner | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchObservation | typeof TournamentMatchPlayerNumber | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPointsAdjustment | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentRound | typeof TournamentTeamInvitation | typeof TournamentTeamMemberNote | typeof TournamentTieBreakConfig | typeof OrganizationInvitationScope | typeof OrganizationMembership | typeof OrganizationMembershipScope | typeof OrganizationUserTourRun | typeof OrganizationUserTourEvent | typeof OrganizationUserTourState | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof TeamKit | typeof TeamModality | typeof TeamSponsor | typeof TeamFollow | typeof TeamProSubscription | typeof TeamProStoreEvent | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserLocality | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionGrant | typeof BillingSubscription | typeof BillingSubscriptionItem | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingMatchUsage | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivityReaction | typeof FeedActivity | typeof FeedActivitySubject | typeof FeedArtRewarm | typeof FeedMedia | typeof FeedOutbox | typeof FeedPostAttachment | typeof FeedPost | typeof FeedPoll | typeof FeedPostRevision | typeof FeedPollOption | typeof FeedPollVote | typeof FeedReport | typeof FinanceAuditEvent | typeof FinanceEntryItem | typeof FinanceEntry | typeof FinanceLedger | typeof FriendlyBoardPreference | typeof FriendlyMatchAttendance | typeof FriendlyMatch | typeof FriendlyMatchExtra | typeof FriendlyMatchGoal | typeof FriendlyMatchMvp | typeof FriendlyMvpVote | typeof FriendlyOpenChallengeExtra | typeof FriendlyChallenge | typeof FriendlyStaffCommand | typeof FriendlyScoreEvent | typeof FriendlyChallengeExtra | typeof FriendlyHistory | typeof FriendlyRequest | typeof FriendlyStaffCommandEffect | typeof MemberTeamIdentity | typeof MemberTournamentIdentity | typeof PromotionContact | typeof Promotion | typeof PromotionCreative | typeof PromotionTarget | typeof PromotionAdvertiser | typeof PromotionEvent | typeof PromotionUserState | typeof SponsorshipAuditEvent | typeof Segment | typeof BrandIdentity | typeof Brand | typeof SponsorExposureEvent | typeof SponsorshipSettings | typeof Sponsor | typeof UserDomainEvent | typeof UserEventView)[];
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EACL,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACX,MAAM,eAAe,C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,EACP,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,wBAAwB,EACxB,OAAO,EACP,oBAAoB,EACpB,UAAU,EACV,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAC7B,iCAAiC,EAEjC,+BAA+B,EAC/B,eAAe,EAEf,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,YAAY,CAA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iB,qrIAoK7B,CAAC"}
|
|
@@ -31,6 +31,9 @@ import {
|
|
|
31
31
|
OrganizationMembershipScope,
|
|
32
32
|
OrganizationUser,
|
|
33
33
|
OrganizationUserBillingInfo,
|
|
34
|
+
OrganizationUserTourEvent,
|
|
35
|
+
OrganizationUserTourRun,
|
|
36
|
+
OrganizationUserTourState,
|
|
34
37
|
PhoneNumber
|
|
35
38
|
} from "../central-auth/index.js";
|
|
36
39
|
import { Coupon, CouponUsage } from "../coupons/index.js";
|
|
@@ -217,6 +220,9 @@ const DATABASE_ENTITIES = [
|
|
|
217
220
|
OrganizationMembershipScope,
|
|
218
221
|
OrganizationUser,
|
|
219
222
|
OrganizationUserBillingInfo,
|
|
223
|
+
OrganizationUserTourEvent,
|
|
224
|
+
OrganizationUserTourRun,
|
|
225
|
+
OrganizationUserTourState,
|
|
220
226
|
PasswordReset,
|
|
221
227
|
Payment,
|
|
222
228
|
PaymentProvider,
|
|
@@ -2,6 +2,7 @@ export declare const SponsorExposureEventType: {
|
|
|
2
2
|
readonly ART_RENDERED: "ART_RENDERED";
|
|
3
3
|
readonly ART_SHARED: "ART_SHARED";
|
|
4
4
|
readonly ART_DOWNLOADED: "ART_DOWNLOADED";
|
|
5
|
+
readonly ART_COPIED: "ART_COPIED";
|
|
5
6
|
readonly FEED_ART_PUBLISHED: "FEED_ART_PUBLISHED";
|
|
6
7
|
};
|
|
7
8
|
export type SponsorExposureEventType = (typeof SponsorExposureEventType)[keyof typeof SponsorExposureEventType];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sponsor-exposure-event-type.d.ts","sourceRoot":"","sources":["../../../src/sponsorship/constants/sponsor-exposure-event-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sponsor-exposure-event-type.d.ts","sourceRoot":"","sources":["../../../src/sponsorship/constants/sponsor-exposure-event-type.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,wBAAwB;;;;;;CAW3B,CAAC;AAGX,MAAM,MAAM,wBAAwB,GAClC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAO3E,eAAO,MAAM,wBAAwB;;;;CAO3B,CAAC;AAGX,MAAM,MAAM,wBAAwB,GAClC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -5,6 +5,8 @@ const SponsorExposureEventType = {
|
|
|
5
5
|
ART_SHARED: "ART_SHARED",
|
|
6
6
|
/** A arte foi baixada. */
|
|
7
7
|
ART_DOWNLOADED: "ART_DOWNLOADED",
|
|
8
|
+
/** A imagem da arte foi copiada. */
|
|
9
|
+
ART_COPIED: "ART_COPIED",
|
|
8
10
|
/** A arte foi publicada no feed. */
|
|
9
11
|
FEED_ART_PUBLISHED: "FEED_ART_PUBLISHED"
|
|
10
12
|
};
|
|
@@ -55,7 +55,7 @@ __decorateClass([
|
|
|
55
55
|
Column({
|
|
56
56
|
type: "varchar",
|
|
57
57
|
length: 32,
|
|
58
|
-
comment: "ART_RENDERED, ART_SHARED, ART_DOWNLOADED ou FEED_ART_PUBLISHED."
|
|
58
|
+
comment: "ART_RENDERED, ART_SHARED, ART_DOWNLOADED, ART_COPIED ou FEED_ART_PUBLISHED."
|
|
59
59
|
})
|
|
60
60
|
], SponsorExposureEvent.prototype, "type", 2);
|
|
61
61
|
__decorateClass([
|