@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.
Files changed (30) hide show
  1. package/dist/authorization-attributes-ms-service.d.ts +17 -22
  2. package/dist/authorization-attributes-ms-service.d.ts.map +1 -1
  3. package/dist/authorization-attributes-ms-service.js +181 -192
  4. package/dist/authorization-attributes-sns-service.d.ts +1 -2
  5. package/dist/authorization-attributes-sns-service.d.ts.map +1 -1
  6. package/dist/authorization-attributes-sns-service.js +1 -1
  7. package/dist/esm/authorization-attributes-ms-service.d.ts +17 -22
  8. package/dist/esm/authorization-attributes-ms-service.d.ts.map +1 -1
  9. package/dist/esm/authorization-attributes-ms-service.mjs +181 -192
  10. package/dist/esm/authorization-attributes-sns-service.d.ts +1 -2
  11. package/dist/esm/authorization-attributes-sns-service.d.ts.map +1 -1
  12. package/dist/esm/authorization-attributes-sns-service.mjs +1 -1
  13. package/dist/esm/prometheus-service.d.ts.map +1 -1
  14. package/dist/esm/resource-attributes-constants.d.ts +1 -1
  15. package/dist/esm/resource-attributes-constants.d.ts.map +1 -1
  16. package/dist/esm/resource-attributes-constants.mjs +11 -11
  17. package/dist/esm/types/authorization-attributes-service.interface.d.ts +1 -2
  18. package/dist/esm/types/authorization-attributes-service.interface.d.ts.map +1 -1
  19. package/dist/prometheus-service.d.ts.map +1 -1
  20. package/dist/resource-attributes-constants.d.ts +1 -1
  21. package/dist/resource-attributes-constants.d.ts.map +1 -1
  22. package/dist/resource-attributes-constants.js +11 -11
  23. package/dist/types/authorization-attributes-service.interface.d.ts +1 -2
  24. package/dist/types/authorization-attributes-service.interface.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/authorization-attributes-ms-service.ts +316 -331
  27. package/src/authorization-attributes-sns-service.ts +2 -2
  28. package/src/prometheus-service.ts +0 -1
  29. package/src/resource-attributes-constants.ts +12 -12
  30. 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,4 +1,3 @@
1
-
2
1
  let prometheus: any = null;
3
2
  let authorizationCheckResponseTimeMetric: any = null;
4
3
 
@@ -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';