@mondaydotcomorg/monday-authorization 3.0.0-feature-bashanye-create-custom-roles-sdk.094a966 → 3.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"authorization-attributes-service.d.ts","sourceRoot":"","sources":["../src/authorization-attributes-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EAAoB,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAW3C,qBAAa,8BAA8B;IACzC,OAAO,CAAC,MAAM,CAAC,OAAO,CAA8B;IACpD,OAAO,CAAC,MAAM,CAAC,SAAS,CAGb;IACX,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,YAAY,CAAkC;IACtD,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;OAIG;gBACS,UAAU,CAAC,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC;IAqBnF;;;;;;OAMG;IACG,wBAAwB,CAC5B,SAAS,EAAE,MAAM,EACjB,4BAA4B,EAAE,2BAA2B,EAAE,GAC1D,OAAO,CAAC,yBAAyB,CAAC;IA6BrC;;;;;;OAMG;IACG,wBAAwB,CAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,MAAM,EAAE,GACtB,OAAO,CAAC,yBAAyB,CAAC;IAkCrC;;;;;;;UAOM;IACA,6BAA6B,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,sBAAsB,EAAE,MAAM,EAC9B,2BAA2B,EAAE,2BAA2B,EAAE,GACzD,OAAO,CAAC,2BAA2B,EAAE,CAAC;YAY3B,oBAAoB;IA4BlC,OAAO,CAAC,MAAM,CAAC,cAAc;IAe7B;;;;;;;OAOG;IACG,kCAAkC,IAAI,OAAO,CAAC,OAAO,CAAC;CAoB7D"}
1
+ {"version":3,"file":"authorization-attributes-service.d.ts","sourceRoot":"","sources":["../src/authorization-attributes-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EAAoB,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAwB3C,qBAAa,8BAA8B;IACzC,OAAO,CAAC,MAAM,CAAC,OAAO,CAA8B;IACpD,OAAO,CAAC,MAAM,CAAC,SAAS,CAGb;IACX,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,YAAY,CAAkC;IACtD,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;OAIG;gBACS,UAAU,CAAC,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC;IAqBnF;;;;;;OAMG;IACG,wBAAwB,CAC5B,SAAS,EAAE,MAAM,EACjB,4BAA4B,EAAE,2BAA2B,EAAE,GAC1D,OAAO,CAAC,yBAAyB,CAAC;IA6BrC;;;;;;OAMG;IACG,wBAAwB,CAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,MAAM,EAAE,GACtB,OAAO,CAAC,yBAAyB,CAAC;IAkCrC;;;;;;;UAOM;IACA,6BAA6B,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,sBAAsB,EAAE,MAAM,EAC9B,2BAA2B,EAAE,2BAA2B,EAAE,GACzD,OAAO,CAAC,2BAA2B,EAAE,CAAC;YAY3B,oBAAoB;IA4BlC,OAAO,CAAC,MAAM,CAAC,cAAc;IAe7B;;;;;;;OAOG;IACG,kCAAkC,IAAI,OAAO,CAAC,OAAO,CAAC;CAoB7D"}
@@ -13,6 +13,19 @@ const _interopDefault = e => e && e.__esModule ? e : { default: e };
13
13
 
14
14
  const chunk__default = /*#__PURE__*/_interopDefault(chunk);
15
15
 
16
+ function getDefaultFetchOptions() {
17
+ return {
18
+ retryPolicy: {
19
+ useRetries: true,
20
+ maxRetries: 3,
21
+ retryDelayMS: 10,
22
+ },
23
+ logPolicy: {
24
+ logErrors: 'error',
25
+ logRequests: 'info',
26
+ },
27
+ };
28
+ }
16
29
  class AuthorizationAttributesService {
17
30
  static LOG_TAG = 'authorization_attributes';
18
31
  static API_PATHS = {
@@ -35,11 +48,11 @@ class AuthorizationAttributesService {
35
48
  }
36
49
  }
37
50
  if (!fetchOptions) {
38
- fetchOptions = constants.DEFAULT_FETCH_OPTIONS;
51
+ fetchOptions = getDefaultFetchOptions();
39
52
  }
40
53
  else {
41
54
  fetchOptions = {
42
- ...constants.DEFAULT_FETCH_OPTIONS,
55
+ ...getDefaultFetchOptions(),
43
56
  ...fetchOptions,
44
57
  };
45
58
  }
@@ -1,9 +1,6 @@
1
- import { RecursivePartial } from '@mondaydotcomorg/monday-fetch-api';
2
- import { FetcherConfig } from '@mondaydotcomorg/trident-backend-api';
3
1
  export declare const APP_NAME = "authorization";
4
2
  export declare const ERROR_MESSAGES: {
5
3
  readonly HTTP_CLIENT_NOT_INITIALIZED: "MondayAuthorization: HTTP client is not initialized";
6
4
  readonly REQUEST_FAILED: (method: string, status: number, reason: string) => string;
7
5
  };
8
- export declare const DEFAULT_FETCH_OPTIONS: RecursivePartial<FetcherConfig>;
9
6
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,eAAO,MAAM,QAAQ,kBAAkB,CAAC;AAExC,eAAO,MAAM,cAAc;;sCAEA,MAAM,UAAU,MAAM,UAAU,MAAM;CAEvD,CAAC;AAEX,eAAO,MAAM,qBAAqB,EAAE,gBAAgB,CAAC,aAAa,CAUjE,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,kBAAkB,CAAC;AAExC,eAAO,MAAM,cAAc;;sCAEA,MAAM,UAAU,MAAM,UAAU,MAAM;CAEvD,CAAC"}
package/dist/constants.js CHANGED
@@ -5,18 +5,6 @@ const ERROR_MESSAGES = {
5
5
  HTTP_CLIENT_NOT_INITIALIZED: 'MondayAuthorization: HTTP client is not initialized',
6
6
  REQUEST_FAILED: (method, status, reason) => `MondayAuthorization: [${method}] request failed with status ${status} with reason: ${reason}`,
7
7
  };
8
- const DEFAULT_FETCH_OPTIONS = {
9
- retryPolicy: {
10
- useRetries: true,
11
- maxRetries: 3,
12
- retryDelayMS: 10,
13
- },
14
- logPolicy: {
15
- logErrors: 'error',
16
- logRequests: 'info',
17
- },
18
- };
19
8
 
20
9
  exports.APP_NAME = APP_NAME;
21
- exports.DEFAULT_FETCH_OPTIONS = DEFAULT_FETCH_OPTIONS;
22
10
  exports.ERROR_MESSAGES = ERROR_MESSAGES;
@@ -1 +1 @@
1
- {"version":3,"file":"authorization-attributes-service.d.ts","sourceRoot":"","sources":["../../src/authorization-attributes-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EAAoB,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAW3C,qBAAa,8BAA8B;IACzC,OAAO,CAAC,MAAM,CAAC,OAAO,CAA8B;IACpD,OAAO,CAAC,MAAM,CAAC,SAAS,CAGb;IACX,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,YAAY,CAAkC;IACtD,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;OAIG;gBACS,UAAU,CAAC,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC;IAqBnF;;;;;;OAMG;IACG,wBAAwB,CAC5B,SAAS,EAAE,MAAM,EACjB,4BAA4B,EAAE,2BAA2B,EAAE,GAC1D,OAAO,CAAC,yBAAyB,CAAC;IA6BrC;;;;;;OAMG;IACG,wBAAwB,CAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,MAAM,EAAE,GACtB,OAAO,CAAC,yBAAyB,CAAC;IAkCrC;;;;;;;UAOM;IACA,6BAA6B,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,sBAAsB,EAAE,MAAM,EAC9B,2BAA2B,EAAE,2BAA2B,EAAE,GACzD,OAAO,CAAC,2BAA2B,EAAE,CAAC;YAY3B,oBAAoB;IA4BlC,OAAO,CAAC,MAAM,CAAC,cAAc;IAe7B;;;;;;;OAOG;IACG,kCAAkC,IAAI,OAAO,CAAC,OAAO,CAAC;CAoB7D"}
1
+ {"version":3,"file":"authorization-attributes-service.d.ts","sourceRoot":"","sources":["../../src/authorization-attributes-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EAAoB,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAwB3C,qBAAa,8BAA8B;IACzC,OAAO,CAAC,MAAM,CAAC,OAAO,CAA8B;IACpD,OAAO,CAAC,MAAM,CAAC,SAAS,CAGb;IACX,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,YAAY,CAAkC;IACtD,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;OAIG;gBACS,UAAU,CAAC,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC;IAqBnF;;;;;;OAMG;IACG,wBAAwB,CAC5B,SAAS,EAAE,MAAM,EACjB,4BAA4B,EAAE,2BAA2B,EAAE,GAC1D,OAAO,CAAC,yBAAyB,CAAC;IA6BrC;;;;;;OAMG;IACG,wBAAwB,CAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,MAAM,EAAE,GACtB,OAAO,CAAC,yBAAyB,CAAC;IAkCrC;;;;;;;UAOM;IACA,6BAA6B,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,sBAAsB,EAAE,MAAM,EAC9B,2BAA2B,EAAE,2BAA2B,EAAE,GACzD,OAAO,CAAC,2BAA2B,EAAE,CAAC;YAY3B,oBAAoB;IA4BlC,OAAO,CAAC,MAAM,CAAC,cAAc;IAe7B;;;;;;;OAOG;IACG,kCAAkC,IAAI,OAAO,CAAC,OAAO,CAAC;CAoB7D"}
@@ -5,8 +5,21 @@ import { HttpFetcherError } from '@mondaydotcomorg/monday-fetch-api';
5
5
  import { logger } from './authorization-internal-service.mjs';
6
6
  import { getAttributionsFromApi } from './attributions-service.mjs';
7
7
  import { ASYNC_RESOURCE_ATTRIBUTES_MAX_OPERATIONS_PER_MESSAGE, RESOURCE_ATTRIBUTES_SNS_ARN_SECRET_NAME, RESOURCE_ATTRIBUTES_SNS_UPDATE_OPERATION_MESSAGE_KIND } from './constants/sns.mjs';
8
- import { ERROR_MESSAGES, DEFAULT_FETCH_OPTIONS, APP_NAME } from './constants.mjs';
8
+ import { ERROR_MESSAGES, APP_NAME } from './constants.mjs';
9
9
 
10
+ function getDefaultFetchOptions() {
11
+ return {
12
+ retryPolicy: {
13
+ useRetries: true,
14
+ maxRetries: 3,
15
+ retryDelayMS: 10,
16
+ },
17
+ logPolicy: {
18
+ logErrors: 'error',
19
+ logRequests: 'info',
20
+ },
21
+ };
22
+ }
10
23
  class AuthorizationAttributesService {
11
24
  static LOG_TAG = 'authorization_attributes';
12
25
  static API_PATHS = {
@@ -29,11 +42,11 @@ class AuthorizationAttributesService {
29
42
  }
30
43
  }
31
44
  if (!fetchOptions) {
32
- fetchOptions = DEFAULT_FETCH_OPTIONS;
45
+ fetchOptions = getDefaultFetchOptions();
33
46
  }
34
47
  else {
35
48
  fetchOptions = {
36
- ...DEFAULT_FETCH_OPTIONS,
49
+ ...getDefaultFetchOptions(),
37
50
  ...fetchOptions,
38
51
  };
39
52
  }
@@ -1,9 +1,6 @@
1
- import { RecursivePartial } from '@mondaydotcomorg/monday-fetch-api';
2
- import { FetcherConfig } from '@mondaydotcomorg/trident-backend-api';
3
1
  export declare const APP_NAME = "authorization";
4
2
  export declare const ERROR_MESSAGES: {
5
3
  readonly HTTP_CLIENT_NOT_INITIALIZED: "MondayAuthorization: HTTP client is not initialized";
6
4
  readonly REQUEST_FAILED: (method: string, status: number, reason: string) => string;
7
5
  };
8
- export declare const DEFAULT_FETCH_OPTIONS: RecursivePartial<FetcherConfig>;
9
6
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,eAAO,MAAM,QAAQ,kBAAkB,CAAC;AAExC,eAAO,MAAM,cAAc;;sCAEA,MAAM,UAAU,MAAM,UAAU,MAAM;CAEvD,CAAC;AAEX,eAAO,MAAM,qBAAqB,EAAE,gBAAgB,CAAC,aAAa,CAUjE,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,kBAAkB,CAAC;AAExC,eAAO,MAAM,cAAc;;sCAEA,MAAM,UAAU,MAAM,UAAU,MAAM;CAEvD,CAAC"}
@@ -3,16 +3,5 @@ const ERROR_MESSAGES = {
3
3
  HTTP_CLIENT_NOT_INITIALIZED: 'MondayAuthorization: HTTP client is not initialized',
4
4
  REQUEST_FAILED: (method, status, reason) => `MondayAuthorization: [${method}] request failed with status ${status} with reason: ${reason}`,
5
5
  };
6
- const DEFAULT_FETCH_OPTIONS = {
7
- retryPolicy: {
8
- useRetries: true,
9
- maxRetries: 3,
10
- retryDelayMS: 10,
11
- },
12
- logPolicy: {
13
- logErrors: 'error',
14
- logRequests: 'info',
15
- },
16
- };
17
6
 
18
- export { APP_NAME, DEFAULT_FETCH_OPTIONS, ERROR_MESSAGES };
7
+ export { APP_NAME, ERROR_MESSAGES };
@@ -10,9 +10,7 @@ export declare function init(options?: InitOptions): Promise<void>;
10
10
  export { authorizationCheckMiddleware, getAuthorizationMiddleware, skipAuthorizationMiddleware, } from './authorization-middleware';
11
11
  export { AuthorizationService, AuthorizeResponse } from './authorization-service';
12
12
  export { AuthorizationAttributesService } from './authorization-attributes-service';
13
- export { RolesService } from './roles-service';
14
13
  export { AuthorizationObject, Resource, BaseRequest, ResourceGetter, ContextGetter } from './types/general';
15
14
  export { Translation, ScopedAction, ScopedActionResponseObject, ScopedActionPermit, } from './types/scoped-actions-contracts';
16
- export { CustomRole, BasicRole, RoleType, RoleCreateRequest, RoleUpdateRequest, RolesResponse } from './types/roles';
17
15
  export { TestKit };
18
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGnE,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,sCAAsC,CAAC,EAAE,MAAM,CAAC;CACjD;AAED,wBAAsB,IAAI,CAAC,OAAO,GAAE,WAAgB,iBAcnD;AAED,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EACL,WAAW,EACX,YAAY,EACZ,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAErH,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGnE,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,sCAAsC,CAAC,EAAE,MAAM,CAAC;CACjD;AAED,wBAAsB,IAAI,CAAC,OAAO,GAAE,WAAgB,iBAcnD;AAED,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EACL,WAAW,EACX,YAAY,EACZ,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -5,8 +5,6 @@ import * as testKit_index from './testKit/index.mjs';
5
5
  export { testKit_index as TestKit };
6
6
  export { authorizationCheckMiddleware, getAuthorizationMiddleware, skipAuthorizationMiddleware } from './authorization-middleware.mjs';
7
7
  export { AuthorizationAttributesService } from './authorization-attributes-service.mjs';
8
- export { RolesService } from './roles-service.mjs';
9
- export { RoleType } from './types/roles.mjs';
10
8
 
11
9
  async function init(options = {}) {
12
10
  if (options.prometheus) {
package/dist/index.d.ts CHANGED
@@ -10,9 +10,7 @@ export declare function init(options?: InitOptions): Promise<void>;
10
10
  export { authorizationCheckMiddleware, getAuthorizationMiddleware, skipAuthorizationMiddleware, } from './authorization-middleware';
11
11
  export { AuthorizationService, AuthorizeResponse } from './authorization-service';
12
12
  export { AuthorizationAttributesService } from './authorization-attributes-service';
13
- export { RolesService } from './roles-service';
14
13
  export { AuthorizationObject, Resource, BaseRequest, ResourceGetter, ContextGetter } from './types/general';
15
14
  export { Translation, ScopedAction, ScopedActionResponseObject, ScopedActionPermit, } from './types/scoped-actions-contracts';
16
- export { CustomRole, BasicRole, RoleType, RoleCreateRequest, RoleUpdateRequest, RolesResponse } from './types/roles';
17
15
  export { TestKit };
18
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGnE,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,sCAAsC,CAAC,EAAE,MAAM,CAAC;CACjD;AAED,wBAAsB,IAAI,CAAC,OAAO,GAAE,WAAgB,iBAcnD;AAED,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EACL,WAAW,EACX,YAAY,EACZ,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAErH,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGnE,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,sCAAsC,CAAC,EAAE,MAAM,CAAC;CACjD;AAED,wBAAsB,IAAI,CAAC,OAAO,GAAE,WAAgB,iBAcnD;AAED,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EACL,WAAW,EACX,YAAY,EACZ,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -5,8 +5,6 @@ const authorizationService = require('./authorization-service.js');
5
5
  const testKit_index = require('./testKit/index.js');
6
6
  const authorizationMiddleware = require('./authorization-middleware.js');
7
7
  const authorizationAttributesService = require('./authorization-attributes-service.js');
8
- const rolesService = require('./roles-service.js');
9
- const types_roles = require('./types/roles.js');
10
8
 
11
9
  async function init(options = {}) {
12
10
  if (options.prometheus) {
@@ -28,9 +26,4 @@ exports.authorizationCheckMiddleware = authorizationMiddleware.authorizationChec
28
26
  exports.getAuthorizationMiddleware = authorizationMiddleware.getAuthorizationMiddleware;
29
27
  exports.skipAuthorizationMiddleware = authorizationMiddleware.skipAuthorizationMiddleware;
30
28
  exports.AuthorizationAttributesService = authorizationAttributesService.AuthorizationAttributesService;
31
- exports.RolesService = rolesService.RolesService;
32
- Object.defineProperty(exports, 'RoleType', {
33
- enumerable: true,
34
- get: () => types_roles.RoleType
35
- });
36
29
  exports.init = init;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondaydotcomorg/monday-authorization",
3
- "version": "3.0.0-feature-bashanye-create-custom-roles-sdk.094a966",
3
+ "version": "3.0.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "BSD-3-Clause",
@@ -1,25 +0,0 @@
1
- import { FetcherConfig, HttpClient } from '@mondaydotcomorg/trident-backend-api';
2
- import { RecursivePartial } from '@mondaydotcomorg/monday-fetch-api';
3
- import { RoleCreateRequest, RolesResponse, RoleUpdateRequest } from './types/roles';
4
- export declare class RolesService {
5
- private httpClient;
6
- private fetchOptions;
7
- private attributionHeaders;
8
- /**
9
- * Public constructor to create the AuthorizationAttributesService instance.
10
- * @param httpClient The HTTP client to use for API requests, if not provided, the default HTTP client from Api will be used.
11
- * @param fetchOptions The fetch options to use for API requests, if not provided, the default fetch options will be used.
12
- */
13
- constructor(httpClient?: HttpClient, fetchOptions?: RecursivePartial<FetcherConfig>);
14
- /**
15
- * Get all roles for an account
16
- * @param accountId - The account ID
17
- * @returns - The roles for the account, both basic and custom roles. Note that basic role ids are returned in A style and not B style.
18
- */
19
- getRoles(accountId: number, resourceTypes: string[]): Promise<RolesResponse>;
20
- createCustomRole(accountId: number, roles: RoleCreateRequest[]): Promise<RolesResponse>;
21
- deleteCustomRole(accountId: number, roleIds: number[]): Promise<RolesResponse>;
22
- updateCustomRole(accountId: number, updateRequests: RoleUpdateRequest[]): Promise<RolesResponse>;
23
- private sendRoleRequest;
24
- }
25
- //# sourceMappingURL=roles-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roles-service.d.ts","sourceRoot":"","sources":["../../src/roles-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAoB,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOlF,qBAAa,YAAY;IACvB,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,YAAY,CAAkC;IACtD,OAAO,CAAC,kBAAkB,CAA4B;IAEtD;;;;OAIG;gBACS,UAAU,CAAC,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC;IAqBnF;;;;OAIG;IACG,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC;IAI5E,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC;IAUvF,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC;IAM9E,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC;YAMxF,eAAe;CAiC9B"}
@@ -1,91 +0,0 @@
1
- import { Api } from '@mondaydotcomorg/trident-backend-api';
2
- import { HttpFetcherError } from '@mondaydotcomorg/monday-fetch-api';
3
- import { getAttributionsFromApi } from './attributions-service.mjs';
4
- import { ERROR_MESSAGES, DEFAULT_FETCH_OPTIONS, APP_NAME } from './constants.mjs';
5
-
6
- const API_PATH = '/roles/account/{accountId}';
7
- const A_STYLE_NAME = 'A';
8
- class RolesService {
9
- httpClient;
10
- fetchOptions;
11
- attributionHeaders;
12
- /**
13
- * Public constructor to create the AuthorizationAttributesService instance.
14
- * @param httpClient The HTTP client to use for API requests, if not provided, the default HTTP client from Api will be used.
15
- * @param fetchOptions The fetch options to use for API requests, if not provided, the default fetch options will be used.
16
- */
17
- constructor(httpClient, fetchOptions) {
18
- if (!httpClient) {
19
- httpClient = Api.getPart('httpClient');
20
- if (!httpClient) {
21
- throw new Error(ERROR_MESSAGES.HTTP_CLIENT_NOT_INITIALIZED);
22
- }
23
- }
24
- if (!fetchOptions) {
25
- fetchOptions = DEFAULT_FETCH_OPTIONS;
26
- }
27
- else {
28
- fetchOptions = {
29
- ...DEFAULT_FETCH_OPTIONS,
30
- ...fetchOptions,
31
- };
32
- }
33
- this.httpClient = httpClient;
34
- this.fetchOptions = fetchOptions;
35
- this.attributionHeaders = getAttributionsFromApi();
36
- }
37
- /**
38
- * Get all roles for an account
39
- * @param accountId - The account ID
40
- * @returns - The roles for the account, both basic and custom roles. Note that basic role ids are returned in A style and not B style.
41
- */
42
- async getRoles(accountId, resourceTypes) {
43
- return await this.sendRoleRequest('GET', accountId, {}, { resourceTypes });
44
- }
45
- async createCustomRole(accountId, roles) {
46
- if (roles.length === 0) {
47
- throw new Error('Roles array cannot be empty');
48
- }
49
- return await this.sendRoleRequest('PUT', accountId, {
50
- customRoles: roles,
51
- });
52
- }
53
- async deleteCustomRole(accountId, roleIds) {
54
- return await this.sendRoleRequest('DELETE', accountId, {
55
- ids: roleIds,
56
- });
57
- }
58
- async updateCustomRole(accountId, updateRequests) {
59
- return await this.sendRoleRequest('PATCH', accountId, {
60
- customRoles: updateRequests,
61
- });
62
- }
63
- async sendRoleRequest(method, accountId, body, additionalQueryParams = {}) {
64
- try {
65
- return await this.httpClient.fetch({
66
- url: {
67
- appName: APP_NAME,
68
- path: API_PATH.replace('{accountId}', accountId.toString()),
69
- },
70
- query: {
71
- style: A_STYLE_NAME,
72
- ...additionalQueryParams,
73
- },
74
- method,
75
- headers: {
76
- 'Content-Type': 'application/json',
77
- ...this.attributionHeaders,
78
- },
79
- body: body ? body : undefined,
80
- }, this.fetchOptions);
81
- }
82
- catch (err) {
83
- if (err instanceof HttpFetcherError) {
84
- throw new Error(ERROR_MESSAGES.REQUEST_FAILED('sendRoleRequest', err.status, err.message));
85
- }
86
- throw err;
87
- }
88
- }
89
- }
90
-
91
- export { RolesService };
@@ -1,38 +0,0 @@
1
- export declare enum RoleType {
2
- CUSTOM = "custom_role",
3
- BASIC = "basic_role"
4
- }
5
- export interface CustomRole {
6
- id?: number;
7
- name: string;
8
- resourceType: string;
9
- resourceId: number;
10
- basicRoleId: number;
11
- basicRoleType: RoleType;
12
- }
13
- export interface BasicRole {
14
- id: number;
15
- resourceType: string;
16
- roleType: string;
17
- name: string;
18
- }
19
- export interface RolesResponse {
20
- customRoles: CustomRole[];
21
- basicRoles?: BasicRole[];
22
- }
23
- export interface RoleCreateRequest {
24
- name: string;
25
- resourceType: string;
26
- resourceId: number;
27
- sourceRole: {
28
- id: number;
29
- type: RoleType;
30
- };
31
- }
32
- export interface RoleUpdateRequest {
33
- id: number;
34
- updatedAttributes: {
35
- name: string;
36
- };
37
- }
38
- //# sourceMappingURL=roles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/types/roles.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,MAAM,gBAAgB;IACtB,KAAK,eAAe;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,QAAQ,CAAC;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,QAAQ,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH"}
@@ -1,7 +0,0 @@
1
- var RoleType;
2
- (function (RoleType) {
3
- RoleType["CUSTOM"] = "custom_role";
4
- RoleType["BASIC"] = "basic_role";
5
- })(RoleType || (RoleType = {}));
6
-
7
- export { RoleType };
@@ -1,25 +0,0 @@
1
- import { FetcherConfig, HttpClient } from '@mondaydotcomorg/trident-backend-api';
2
- import { RecursivePartial } from '@mondaydotcomorg/monday-fetch-api';
3
- import { RoleCreateRequest, RolesResponse, RoleUpdateRequest } from './types/roles';
4
- export declare class RolesService {
5
- private httpClient;
6
- private fetchOptions;
7
- private attributionHeaders;
8
- /**
9
- * Public constructor to create the AuthorizationAttributesService instance.
10
- * @param httpClient The HTTP client to use for API requests, if not provided, the default HTTP client from Api will be used.
11
- * @param fetchOptions The fetch options to use for API requests, if not provided, the default fetch options will be used.
12
- */
13
- constructor(httpClient?: HttpClient, fetchOptions?: RecursivePartial<FetcherConfig>);
14
- /**
15
- * Get all roles for an account
16
- * @param accountId - The account ID
17
- * @returns - The roles for the account, both basic and custom roles. Note that basic role ids are returned in A style and not B style.
18
- */
19
- getRoles(accountId: number, resourceTypes: string[]): Promise<RolesResponse>;
20
- createCustomRole(accountId: number, roles: RoleCreateRequest[]): Promise<RolesResponse>;
21
- deleteCustomRole(accountId: number, roleIds: number[]): Promise<RolesResponse>;
22
- updateCustomRole(accountId: number, updateRequests: RoleUpdateRequest[]): Promise<RolesResponse>;
23
- private sendRoleRequest;
24
- }
25
- //# sourceMappingURL=roles-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roles-service.d.ts","sourceRoot":"","sources":["../src/roles-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAoB,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOlF,qBAAa,YAAY;IACvB,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,YAAY,CAAkC;IACtD,OAAO,CAAC,kBAAkB,CAA4B;IAEtD;;;;OAIG;gBACS,UAAU,CAAC,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC;IAqBnF;;;;OAIG;IACG,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC;IAI5E,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC;IAUvF,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC;IAM9E,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC;YAMxF,eAAe;CAiC9B"}
@@ -1,93 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const tridentBackendApi = require('@mondaydotcomorg/trident-backend-api');
4
- const mondayFetchApi = require('@mondaydotcomorg/monday-fetch-api');
5
- const attributionsService = require('./attributions-service.js');
6
- const constants = require('./constants.js');
7
-
8
- const API_PATH = '/roles/account/{accountId}';
9
- const A_STYLE_NAME = 'A';
10
- class RolesService {
11
- httpClient;
12
- fetchOptions;
13
- attributionHeaders;
14
- /**
15
- * Public constructor to create the AuthorizationAttributesService instance.
16
- * @param httpClient The HTTP client to use for API requests, if not provided, the default HTTP client from Api will be used.
17
- * @param fetchOptions The fetch options to use for API requests, if not provided, the default fetch options will be used.
18
- */
19
- constructor(httpClient, fetchOptions) {
20
- if (!httpClient) {
21
- httpClient = tridentBackendApi.Api.getPart('httpClient');
22
- if (!httpClient) {
23
- throw new Error(constants.ERROR_MESSAGES.HTTP_CLIENT_NOT_INITIALIZED);
24
- }
25
- }
26
- if (!fetchOptions) {
27
- fetchOptions = constants.DEFAULT_FETCH_OPTIONS;
28
- }
29
- else {
30
- fetchOptions = {
31
- ...constants.DEFAULT_FETCH_OPTIONS,
32
- ...fetchOptions,
33
- };
34
- }
35
- this.httpClient = httpClient;
36
- this.fetchOptions = fetchOptions;
37
- this.attributionHeaders = attributionsService.getAttributionsFromApi();
38
- }
39
- /**
40
- * Get all roles for an account
41
- * @param accountId - The account ID
42
- * @returns - The roles for the account, both basic and custom roles. Note that basic role ids are returned in A style and not B style.
43
- */
44
- async getRoles(accountId, resourceTypes) {
45
- return await this.sendRoleRequest('GET', accountId, {}, { resourceTypes });
46
- }
47
- async createCustomRole(accountId, roles) {
48
- if (roles.length === 0) {
49
- throw new Error('Roles array cannot be empty');
50
- }
51
- return await this.sendRoleRequest('PUT', accountId, {
52
- customRoles: roles,
53
- });
54
- }
55
- async deleteCustomRole(accountId, roleIds) {
56
- return await this.sendRoleRequest('DELETE', accountId, {
57
- ids: roleIds,
58
- });
59
- }
60
- async updateCustomRole(accountId, updateRequests) {
61
- return await this.sendRoleRequest('PATCH', accountId, {
62
- customRoles: updateRequests,
63
- });
64
- }
65
- async sendRoleRequest(method, accountId, body, additionalQueryParams = {}) {
66
- try {
67
- return await this.httpClient.fetch({
68
- url: {
69
- appName: constants.APP_NAME,
70
- path: API_PATH.replace('{accountId}', accountId.toString()),
71
- },
72
- query: {
73
- style: A_STYLE_NAME,
74
- ...additionalQueryParams,
75
- },
76
- method,
77
- headers: {
78
- 'Content-Type': 'application/json',
79
- ...this.attributionHeaders,
80
- },
81
- body: body ? body : undefined,
82
- }, this.fetchOptions);
83
- }
84
- catch (err) {
85
- if (err instanceof mondayFetchApi.HttpFetcherError) {
86
- throw new Error(constants.ERROR_MESSAGES.REQUEST_FAILED('sendRoleRequest', err.status, err.message));
87
- }
88
- throw err;
89
- }
90
- }
91
- }
92
-
93
- exports.RolesService = RolesService;
@@ -1,38 +0,0 @@
1
- export declare enum RoleType {
2
- CUSTOM = "custom_role",
3
- BASIC = "basic_role"
4
- }
5
- export interface CustomRole {
6
- id?: number;
7
- name: string;
8
- resourceType: string;
9
- resourceId: number;
10
- basicRoleId: number;
11
- basicRoleType: RoleType;
12
- }
13
- export interface BasicRole {
14
- id: number;
15
- resourceType: string;
16
- roleType: string;
17
- name: string;
18
- }
19
- export interface RolesResponse {
20
- customRoles: CustomRole[];
21
- basicRoles?: BasicRole[];
22
- }
23
- export interface RoleCreateRequest {
24
- name: string;
25
- resourceType: string;
26
- resourceId: number;
27
- sourceRole: {
28
- id: number;
29
- type: RoleType;
30
- };
31
- }
32
- export interface RoleUpdateRequest {
33
- id: number;
34
- updatedAttributes: {
35
- name: string;
36
- };
37
- }
38
- //# sourceMappingURL=roles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/types/roles.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,MAAM,gBAAgB;IACtB,KAAK,eAAe;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,QAAQ,CAAC;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,QAAQ,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH"}
@@ -1,7 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- exports.RoleType = void 0;
4
- (function (RoleType) {
5
- RoleType["CUSTOM"] = "custom_role";
6
- RoleType["BASIC"] = "basic_role";
7
- })(exports.RoleType || (exports.RoleType = {}));