@mondaydotcomorg/monday-authorization 1.2.14 → 1.2.16

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,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
- const chunk = require('lodash/chunk');
3
+ const chunk = require('lodash/chunk.js');
4
4
  const mondayFetch = require('@mondaydotcomorg/monday-fetch');
5
5
  const tridentBackendApi = require('@mondaydotcomorg/trident-backend-api');
6
6
  const mondaySns = require('@mondaydotcomorg/monday-sns');
@@ -16,6 +16,10 @@ export declare class AuthorizationService {
16
16
  */
17
17
  static isAuthorized(accountId: number, userId: number, resources: Resource[], action: Action): Promise<AuthorizeResponse>;
18
18
  static isAuthorized(accountId: number, userId: number, authorizationRequestObjects: AuthorizationObject[]): Promise<AuthorizeResponse>;
19
+ /**
20
+ * @deprecated - Please use Ignite instead: https://github.com/DaPulse/ignite-monorepo/blob/master/packages/ignite-sdk/README.md
21
+ * @sunsetDate 2024-12-31
22
+ */
19
23
  static isUserGrantedWithFeature(accountId: number, userId: number, featureName: string, options?: {
20
24
  shouldSkipCache?: boolean;
21
25
  }): Promise<boolean>;
@@ -33,6 +33,10 @@ class AuthorizationService {
33
33
  throw new Error('isAuthorized accepts either 3 or 4 arguments');
34
34
  }
35
35
  }
36
+ /**
37
+ * @deprecated - Please use Ignite instead: https://github.com/DaPulse/ignite-monorepo/blob/master/packages/ignite-sdk/README.md
38
+ * @sunsetDate 2024-12-31
39
+ */
36
40
  static async isUserGrantedWithFeature(accountId, userId, featureName, options = {}) {
37
41
  const cachedKey = this.getCachedKeyName(userId, featureName);
38
42
  const shouldSkipCache = options.shouldSkipCache ?? false;
@@ -1,4 +1,4 @@
1
- import chunk from 'lodash/chunk';
1
+ import chunk from 'lodash/chunk.js';
2
2
  import { fetch } from '@mondaydotcomorg/monday-fetch';
3
3
  import { Api } from '@mondaydotcomorg/trident-backend-api';
4
4
  import { sendToSns, getTopicAttributes } from '@mondaydotcomorg/monday-sns';
@@ -16,6 +16,10 @@ export declare class AuthorizationService {
16
16
  */
17
17
  static isAuthorized(accountId: number, userId: number, resources: Resource[], action: Action): Promise<AuthorizeResponse>;
18
18
  static isAuthorized(accountId: number, userId: number, authorizationRequestObjects: AuthorizationObject[]): Promise<AuthorizeResponse>;
19
+ /**
20
+ * @deprecated - Please use Ignite instead: https://github.com/DaPulse/ignite-monorepo/blob/master/packages/ignite-sdk/README.md
21
+ * @sunsetDate 2024-12-31
22
+ */
19
23
  static isUserGrantedWithFeature(accountId: number, userId: number, featureName: string, options?: {
20
24
  shouldSkipCache?: boolean;
21
25
  }): Promise<boolean>;
@@ -25,6 +25,10 @@ class AuthorizationService {
25
25
  throw new Error('isAuthorized accepts either 3 or 4 arguments');
26
26
  }
27
27
  }
28
+ /**
29
+ * @deprecated - Please use Ignite instead: https://github.com/DaPulse/ignite-monorepo/blob/master/packages/ignite-sdk/README.md
30
+ * @sunsetDate 2024-12-31
31
+ */
28
32
  static async isUserGrantedWithFeature(accountId, userId, featureName, options = {}) {
29
33
  const cachedKey = this.getCachedKeyName(userId, featureName);
30
34
  const shouldSkipCache = options.shouldSkipCache ?? false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondaydotcomorg/monday-authorization",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "BSD-3-Clause",
@@ -53,5 +53,5 @@
53
53
  "esmMjsRename": true
54
54
  }
55
55
  },
56
- "gitHead": "ea9003745800084822937da597ad9782f212186f"
56
+ "gitHead": "6911126c13c18b9c3218706f0817165c0c3c2331"
57
57
  }