@mondaydotcomorg/monday-authorization 3.5.3-feat-shaime-support-entity-attributes-in-authorization-sdk-e355942 → 3.5.3-feat-shaime-support-entity-attributes-in-authorization-sdk-127d99a
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/authorization-attributes-ms-service.d.ts +17 -22
- package/dist/authorization-attributes-ms-service.d.ts.map +1 -1
- package/dist/authorization-attributes-ms-service.js +181 -192
- package/dist/authorization-attributes-sns-service.d.ts +1 -2
- package/dist/authorization-attributes-sns-service.d.ts.map +1 -1
- package/dist/authorization-attributes-sns-service.js +1 -1
- package/dist/esm/authorization-attributes-ms-service.d.ts +17 -22
- package/dist/esm/authorization-attributes-ms-service.d.ts.map +1 -1
- package/dist/esm/authorization-attributes-ms-service.mjs +181 -192
- package/dist/esm/authorization-attributes-sns-service.d.ts +1 -2
- package/dist/esm/authorization-attributes-sns-service.d.ts.map +1 -1
- package/dist/esm/authorization-attributes-sns-service.mjs +1 -1
- package/dist/esm/prometheus-service.d.ts.map +1 -1
- package/dist/esm/resource-attributes-constants.d.ts +1 -1
- package/dist/esm/resource-attributes-constants.d.ts.map +1 -1
- package/dist/esm/resource-attributes-constants.mjs +11 -11
- package/dist/esm/types/authorization-attributes-service.interface.d.ts +1 -2
- package/dist/esm/types/authorization-attributes-service.interface.d.ts.map +1 -1
- package/dist/prometheus-service.d.ts.map +1 -1
- package/dist/resource-attributes-constants.d.ts +1 -1
- package/dist/resource-attributes-constants.d.ts.map +1 -1
- package/dist/resource-attributes-constants.js +11 -11
- package/dist/types/authorization-attributes-service.interface.d.ts +1 -2
- package/dist/types/authorization-attributes-service.interface.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/authorization-attributes-ms-service.ts +316 -331
- package/src/authorization-attributes-sns-service.ts +2 -2
- package/src/prometheus-service.ts +0 -1
- package/src/resource-attributes-constants.ts +12 -12
- package/src/types/authorization-attributes-service.interface.ts +2 -1
|
@@ -4,6 +4,8 @@ import {
|
|
|
4
4
|
ResourceAttributeAssignment,
|
|
5
5
|
ResourceAttributeOperation,
|
|
6
6
|
EntityAttributeOperation,
|
|
7
|
+
AttributeOperation,
|
|
8
|
+
EntityType,
|
|
7
9
|
} from './types/authorization-attributes-contracts';
|
|
8
10
|
import { EntityAttributeAssignment } from './entity-attribute-assignment';
|
|
9
11
|
import { Resource } from './types/general';
|
|
@@ -19,10 +21,8 @@ import {
|
|
|
19
21
|
ENTITY_SNS_DEV_TEST_NAME,
|
|
20
22
|
SnsTopicType,
|
|
21
23
|
} from './constants/sns';
|
|
22
|
-
import { AttributeOperation } from './types/authorization-attributes-contracts';
|
|
23
24
|
import type { TopicAttributesMap } from 'aws-sdk/clients/sns';
|
|
24
25
|
import { IAuthorizationAttributesService } from './types/authorization-attributes-service.interface';
|
|
25
|
-
import { EntityType } from './types/authorization-attributes-contracts';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Service class for managing resource attributes asynchronously via SNS.
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
export const RESOURCE_TYPES = {
|
|
2
|
-
ACCOUNT: 'account',
|
|
3
|
-
ACCOUNT_PRODUCT: 'account_product',
|
|
4
|
-
WORKSPACE: 'workspace',
|
|
5
|
-
BOARD: 'board',
|
|
6
|
-
ITEM: 'item',
|
|
7
|
-
TEAM: 'team',
|
|
8
|
-
OVERVIEW: 'overview',
|
|
9
|
-
DOCUMENT: 'document',
|
|
10
|
-
CRM: 'crm',
|
|
11
|
-
} as Record<string, ResourceType>;
|
|
12
|
-
|
|
13
1
|
export const RESOURCE_ATTRIBUTES_CONSTANTS = {
|
|
14
2
|
ACCOUNT_RESOURCE_ATTRIBUTES: {
|
|
15
3
|
ENABLE_MEMBERS_INVITE_FROM_NON_AUTH_DOMAIN: 'enable_members_invite_from_non_auth_domain',
|
|
@@ -33,3 +21,15 @@ export type ResourceType =
|
|
|
33
21
|
| 'overview'
|
|
34
22
|
| 'document'
|
|
35
23
|
| 'crm';
|
|
24
|
+
|
|
25
|
+
export const RESOURCE_TYPES = {
|
|
26
|
+
ACCOUNT: 'account',
|
|
27
|
+
ACCOUNT_PRODUCT: 'account_product',
|
|
28
|
+
WORKSPACE: 'workspace',
|
|
29
|
+
BOARD: 'board',
|
|
30
|
+
ITEM: 'item',
|
|
31
|
+
TEAM: 'team',
|
|
32
|
+
OVERVIEW: 'overview',
|
|
33
|
+
DOCUMENT: 'document',
|
|
34
|
+
CRM: 'crm',
|
|
35
|
+
} as Record<string, ResourceType>;
|
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
ResourceAttributeAssignment as ResourceAttributeAssignmentContract,
|
|
3
3
|
EntityAttributeAssignment as EntityAttributeAssignmentContract,
|
|
4
4
|
EntityType,
|
|
5
|
+
ResourceAttributeOperation,
|
|
6
|
+
EntityAttributeOperation,
|
|
5
7
|
} from './authorization-attributes-contracts';
|
|
6
|
-
import { ResourceAttributeOperation, EntityAttributeOperation } from './authorization-attributes-contracts';
|
|
7
8
|
import { ResourceAttributeAssignment } from '../resource-attribute-assignment';
|
|
8
9
|
import { EntityAttributeAssignment } from '../entity-attribute-assignment';
|
|
9
10
|
import { Resource } from './general';
|