@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-ade64f6
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 +201 -194
- 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 +201 -194
- 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-attribute-assignment.d.ts +0 -10
- package/dist/esm/resource-attribute-assignment.d.ts.map +1 -1
- package/dist/esm/resource-attribute-assignment.mjs +0 -12
- 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-attribute-assignment.d.ts +0 -10
- package/dist/resource-attribute-assignment.d.ts.map +1 -1
- package/dist/resource-attribute-assignment.js +0 -12
- 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 +335 -332
- package/src/authorization-attributes-sns-service.ts +2 -2
- package/src/prometheus-service.ts +0 -1
- package/src/resource-attribute-assignment.ts +0 -14
- 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.
|
|
@@ -18,20 +18,6 @@ export class ResourceAttributeAssignment extends BaseAttributeAssignment<number,
|
|
|
18
18
|
this.resourceId = resourceId;
|
|
19
19
|
this.resourceType = this.type;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Converts the assignment to a plain object with camelCase keys
|
|
24
|
-
* @returns Plain object with camelCase keys: { resourceId, resourceType, key, value }
|
|
25
|
-
*/
|
|
26
|
-
toPlainObject(): { resourceId: number; resourceType: string; key: string; value: string } {
|
|
27
|
-
return {
|
|
28
|
-
resourceId: this.resourceId,
|
|
29
|
-
resourceType: this.resourceType,
|
|
30
|
-
key: this.attributeKey,
|
|
31
|
-
value: this.attributeValue,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
21
|
/**
|
|
36
22
|
* Compares two assignments for equality
|
|
37
23
|
* @param other Another ResourceAttributeAssignment instance
|
|
@@ -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';
|