evo360-types 1.3.166 → 1.3.168
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/types/evo-crm/lead/index.d.ts +8 -0
- package/dist/types/evo-crm/lead/index.js +9 -1
- package/dist/types/evo-crm/lead/index.ts +12 -0
- package/dist/types/evo-tenant/index.d.ts +15 -7
- package/dist/types/evo-tenant/index.js +15 -7
- package/dist/types/evo-tenant/index.ts +19 -8
- package/package.json +1 -1
|
@@ -2,6 +2,14 @@ export * from "../fb_collections";
|
|
|
2
2
|
import { FirestoreDocumentReference, IAddress, IContact, ITag } from "../../shared";
|
|
3
3
|
import { IProfile } from "../../evo-people";
|
|
4
4
|
import { QualificationFunnelLevel } from "../dic";
|
|
5
|
+
export declare const EvoCrmLeadPermissions: {
|
|
6
|
+
readonly List: "evo_crm_leads_read";
|
|
7
|
+
readonly Get: "evo_crm_leads_read";
|
|
8
|
+
readonly Create: "evo_crm_leads_write";
|
|
9
|
+
readonly Update: "evo_crm_leads_write";
|
|
10
|
+
readonly Delete: "evo_crm_leads_write";
|
|
11
|
+
};
|
|
12
|
+
export type EvoCrmLeadPermissions = (typeof EvoCrmLeadPermissions)[keyof typeof EvoCrmLeadPermissions];
|
|
5
13
|
export type LeadStatus = "active" | "inactive" | "draft";
|
|
6
14
|
export declare enum ILeadStatus {
|
|
7
15
|
Active = "active",
|
|
@@ -14,8 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ILeadStatus = void 0;
|
|
17
|
+
exports.ILeadStatus = exports.EvoCrmLeadPermissions = void 0;
|
|
18
18
|
__exportStar(require("../fb_collections"), exports);
|
|
19
|
+
// Permissões para o lead
|
|
20
|
+
exports.EvoCrmLeadPermissions = {
|
|
21
|
+
List: "evo_crm_leads_read",
|
|
22
|
+
Get: "evo_crm_leads_read",
|
|
23
|
+
Create: "evo_crm_leads_write",
|
|
24
|
+
Update: "evo_crm_leads_write",
|
|
25
|
+
Delete: "evo_crm_leads_write",
|
|
26
|
+
};
|
|
19
27
|
var ILeadStatus;
|
|
20
28
|
(function (ILeadStatus) {
|
|
21
29
|
ILeadStatus["Active"] = "active";
|
|
@@ -9,6 +9,18 @@ import {
|
|
|
9
9
|
import { IProfile } from "../../evo-people";
|
|
10
10
|
import { QualificationFunnelLevel } from "../dic";
|
|
11
11
|
|
|
12
|
+
// Permissões para o lead
|
|
13
|
+
export const EvoCrmLeadPermissions = {
|
|
14
|
+
List: "evo_crm_leads_read",
|
|
15
|
+
Get: "evo_crm_leads_read",
|
|
16
|
+
Create: "evo_crm_leads_write",
|
|
17
|
+
Update: "evo_crm_leads_write",
|
|
18
|
+
Delete: "evo_crm_leads_write",
|
|
19
|
+
} as const;
|
|
20
|
+
|
|
21
|
+
export type EvoCrmLeadPermissions =
|
|
22
|
+
(typeof EvoCrmLeadPermissions)[keyof typeof EvoCrmLeadPermissions];
|
|
23
|
+
|
|
12
24
|
// Lead status
|
|
13
25
|
export type LeadStatus = "active" | "inactive" | "draft";
|
|
14
26
|
export enum ILeadStatus {
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import type { FirestoreDocumentReference, IFireDoc } from "../shared";
|
|
3
|
-
export declare const
|
|
4
|
-
readonly List: "
|
|
5
|
-
readonly Get: "
|
|
6
|
-
readonly Create: "
|
|
7
|
-
readonly Update: "
|
|
8
|
-
readonly Delete: "
|
|
3
|
+
export declare const CoreTenantsPermissions: {
|
|
4
|
+
readonly List: "core_tenants_read";
|
|
5
|
+
readonly Get: "core_tenants_read";
|
|
6
|
+
readonly Create: "core_tenants_write";
|
|
7
|
+
readonly Update: "core_tenants_write";
|
|
8
|
+
readonly Delete: "core_tenants_write";
|
|
9
9
|
};
|
|
10
|
-
export type
|
|
10
|
+
export type CoreTenantsPermissions = (typeof CoreTenantsPermissions)[keyof typeof CoreTenantsPermissions];
|
|
11
|
+
export declare const CoreMyTenantsPermissions: {
|
|
12
|
+
readonly List: "core_my_tenants_read";
|
|
13
|
+
readonly Get: "core_my_tenants_read";
|
|
14
|
+
readonly Create: "core_my_tenants_write";
|
|
15
|
+
readonly Update: "core_my_tenants_write";
|
|
16
|
+
readonly Delete: "core_my_tenants_write";
|
|
17
|
+
};
|
|
18
|
+
export type CoreMyTenantsPermissions = (typeof CoreMyTenantsPermissions)[keyof typeof CoreMyTenantsPermissions];
|
|
11
19
|
export type TenantAction = "CREATE_TENANT" | "DELETE_TENANT" | "UPDATE_TENANT";
|
|
12
20
|
export declare enum ITenantAction {
|
|
13
21
|
Create_tenant = "CREATE_TENANT",
|
|
@@ -14,15 +14,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ITenantStatus = exports.ITenantLanguage = exports.ITenantAction = exports.
|
|
17
|
+
exports.ITenantStatus = exports.ITenantLanguage = exports.ITenantAction = exports.CoreMyTenantsPermissions = exports.CoreTenantsPermissions = void 0;
|
|
18
18
|
__exportStar(require("./fb_collections"), exports);
|
|
19
19
|
// Permissões para o tenant
|
|
20
|
-
exports.
|
|
21
|
-
List: "
|
|
22
|
-
Get: "
|
|
23
|
-
Create: "
|
|
24
|
-
Update: "
|
|
25
|
-
Delete: "
|
|
20
|
+
exports.CoreTenantsPermissions = {
|
|
21
|
+
List: "core_tenants_read",
|
|
22
|
+
Get: "core_tenants_read",
|
|
23
|
+
Create: "core_tenants_write",
|
|
24
|
+
Update: "core_tenants_write",
|
|
25
|
+
Delete: "core_tenants_write",
|
|
26
|
+
};
|
|
27
|
+
// Permissões para listar os tenants do usuário
|
|
28
|
+
exports.CoreMyTenantsPermissions = {
|
|
29
|
+
List: "core_my_tenants_read",
|
|
30
|
+
Get: "core_my_tenants_read",
|
|
31
|
+
Create: "core_my_tenants_write",
|
|
32
|
+
Update: "core_my_tenants_write",
|
|
33
|
+
Delete: "core_my_tenants_write",
|
|
26
34
|
};
|
|
27
35
|
var ITenantAction;
|
|
28
36
|
(function (ITenantAction) {
|
|
@@ -2,15 +2,26 @@ export * from "./fb_collections";
|
|
|
2
2
|
import type { FirestoreDocumentReference, IFireDoc } from "../shared";
|
|
3
3
|
|
|
4
4
|
// Permissões para o tenant
|
|
5
|
-
export const
|
|
6
|
-
List: "
|
|
7
|
-
Get: "
|
|
8
|
-
Create: "
|
|
9
|
-
Update: "
|
|
10
|
-
Delete: "
|
|
5
|
+
export const CoreTenantsPermissions = {
|
|
6
|
+
List: "core_tenants_read",
|
|
7
|
+
Get: "core_tenants_read",
|
|
8
|
+
Create: "core_tenants_write",
|
|
9
|
+
Update: "core_tenants_write",
|
|
10
|
+
Delete: "core_tenants_write",
|
|
11
11
|
} as const;
|
|
12
|
-
export type
|
|
13
|
-
(typeof
|
|
12
|
+
export type CoreTenantsPermissions =
|
|
13
|
+
(typeof CoreTenantsPermissions)[keyof typeof CoreTenantsPermissions];
|
|
14
|
+
|
|
15
|
+
// Permissões para listar os tenants do usuário
|
|
16
|
+
export const CoreMyTenantsPermissions = {
|
|
17
|
+
List: "core_my_tenants_read",
|
|
18
|
+
Get: "core_my_tenants_read",
|
|
19
|
+
Create: "core_my_tenants_write",
|
|
20
|
+
Update: "core_my_tenants_write",
|
|
21
|
+
Delete: "core_my_tenants_write",
|
|
22
|
+
} as const;
|
|
23
|
+
export type CoreMyTenantsPermissions =
|
|
24
|
+
(typeof CoreMyTenantsPermissions)[keyof typeof CoreMyTenantsPermissions];
|
|
14
25
|
|
|
15
26
|
// ----- TenantTypes
|
|
16
27
|
// Enum for Tenant Action - used in Activities tracking
|