@uniformdev/mesh-sdk 19.159.0 → 19.159.1-alpha.27

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/index.d.mts CHANGED
@@ -30,7 +30,7 @@ interface paths$1 {
30
30
  logoIconUrl?: string;
31
31
  badgeIconUrl?: string;
32
32
  /** @enum {string} */
33
- category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
33
+ category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown";
34
34
  public?: boolean;
35
35
  scopes?: string[];
36
36
  baseLocationUrl?: string;
@@ -199,7 +199,7 @@ interface paths$1 {
199
199
  logoIconUrl?: string;
200
200
  badgeIconUrl?: string;
201
201
  /** @enum {string} */
202
- category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
202
+ category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown";
203
203
  public?: boolean;
204
204
  scopes?: string[];
205
205
  baseLocationUrl?: string;
@@ -368,7 +368,7 @@ interface paths$1 {
368
368
  logoIconUrl?: string;
369
369
  badgeIconUrl?: string;
370
370
  /** @enum {string} */
371
- category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
371
+ category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown";
372
372
  scopes?: string[];
373
373
  baseLocationUrl?: string;
374
374
  locations: {
@@ -784,7 +784,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
784
784
  displayName: string;
785
785
  logoIconUrl?: string | undefined;
786
786
  badgeIconUrl?: string | undefined;
787
- category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown" | undefined;
787
+ category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown" | undefined;
788
788
  public?: boolean | undefined;
789
789
  scopes?: string[] | undefined;
790
790
  baseLocationUrl?: string | undefined;
@@ -1401,15 +1401,17 @@ type CanvasEditorToolsLocationMetadata<TIntegrationConfiguration = unknown> = Co
1401
1401
  type CanvasEditorToolsReferenceData = {
1402
1402
  name: string;
1403
1403
  };
1404
+ type CanvasEditorEntityType = 'composition' | 'componentPattern' | 'compositionDefaults' | 'entry' | 'entryPattern' | 'asset';
1404
1405
  type CanvasEditorToolsData = {
1405
1406
  patternNamesIndex?: Record<string, CanvasEditorToolsReferenceData>;
1406
1407
  entryNamesIndex?: Record<string, CanvasEditorToolsReferenceData>;
1408
+ entityType: CanvasEditorEntityType;
1407
1409
  } & ({
1408
1410
  rootEntity: RootComponentInstance;
1409
- type: 'composition';
1411
+ entityType: 'composition' | 'componentPattern' | 'compositionDefaults';
1410
1412
  } | {
1411
1413
  rootEntity: EntryData;
1412
- type: 'entry';
1414
+ entityType: 'entry' | 'entryPattern';
1413
1415
  });
1414
1416
  type CanvasEditorToolsLocation = MeshLocationCore<CanvasEditorToolsData, CanvasEditorToolsLocationMetadata, CanvasEditorToolsData, 'canvasEditorTools'> & GetDataResourceLocation;
1415
1417
 
@@ -1522,4 +1524,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
1522
1524
  */
1523
1525
  declare const hasRole: (role: string, user: UniformUser) => boolean;
1524
1526
 
1525
- export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, hasPermissions, hasRole, initializeUniformMeshSDK };
1527
+ export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, hasPermissions, hasRole, initializeUniformMeshSDK };
package/dist/index.d.ts CHANGED
@@ -30,7 +30,7 @@ interface paths$1 {
30
30
  logoIconUrl?: string;
31
31
  badgeIconUrl?: string;
32
32
  /** @enum {string} */
33
- category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
33
+ category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown";
34
34
  public?: boolean;
35
35
  scopes?: string[];
36
36
  baseLocationUrl?: string;
@@ -199,7 +199,7 @@ interface paths$1 {
199
199
  logoIconUrl?: string;
200
200
  badgeIconUrl?: string;
201
201
  /** @enum {string} */
202
- category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
202
+ category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown";
203
203
  public?: boolean;
204
204
  scopes?: string[];
205
205
  baseLocationUrl?: string;
@@ -368,7 +368,7 @@ interface paths$1 {
368
368
  logoIconUrl?: string;
369
369
  badgeIconUrl?: string;
370
370
  /** @enum {string} */
371
- category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown";
371
+ category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown";
372
372
  scopes?: string[];
373
373
  baseLocationUrl?: string;
374
374
  locations: {
@@ -784,7 +784,7 @@ declare class IntegrationDefinitionClient extends ApiClient<DefClientOptions> {
784
784
  displayName: string;
785
785
  logoIconUrl?: string | undefined;
786
786
  badgeIconUrl?: string | undefined;
787
- category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "uniform" | "ai" | "unknown" | undefined;
787
+ category?: "analytics" | "cdn" | "classic" | "commerce" | "content" | "comingSoon" | "data" | "deprecated" | "email" | "framework" | "search" | "starters" | "translation" | "uniform" | "ai" | "unknown" | undefined;
788
788
  public?: boolean | undefined;
789
789
  scopes?: string[] | undefined;
790
790
  baseLocationUrl?: string | undefined;
@@ -1401,15 +1401,17 @@ type CanvasEditorToolsLocationMetadata<TIntegrationConfiguration = unknown> = Co
1401
1401
  type CanvasEditorToolsReferenceData = {
1402
1402
  name: string;
1403
1403
  };
1404
+ type CanvasEditorEntityType = 'composition' | 'componentPattern' | 'compositionDefaults' | 'entry' | 'entryPattern' | 'asset';
1404
1405
  type CanvasEditorToolsData = {
1405
1406
  patternNamesIndex?: Record<string, CanvasEditorToolsReferenceData>;
1406
1407
  entryNamesIndex?: Record<string, CanvasEditorToolsReferenceData>;
1408
+ entityType: CanvasEditorEntityType;
1407
1409
  } & ({
1408
1410
  rootEntity: RootComponentInstance;
1409
- type: 'composition';
1411
+ entityType: 'composition' | 'componentPattern' | 'compositionDefaults';
1410
1412
  } | {
1411
1413
  rootEntity: EntryData;
1412
- type: 'entry';
1414
+ entityType: 'entry' | 'entryPattern';
1413
1415
  });
1414
1416
  type CanvasEditorToolsLocation = MeshLocationCore<CanvasEditorToolsData, CanvasEditorToolsLocationMetadata, CanvasEditorToolsData, 'canvasEditorTools'> & GetDataResourceLocation;
1415
1417
 
@@ -1522,4 +1524,4 @@ declare const hasPermissions: (permissions: MeshLocationUserPermissions | MeshLo
1522
1524
  */
1523
1525
  declare const hasRole: (role: string, user: UniformUser) => boolean;
1524
1526
 
1525
- export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, hasPermissions, hasRole, initializeUniformMeshSDK };
1527
+ export { type AIGenerateLocation, type AIGenerateLocationMetadata, type AIPromptMetadataLocation, type AssetLibraryLocation, type AssetLibraryLocationMetadata, type AssetParameterLocation, type AssetParameterLocationMetadata, type BindableTypes, type CSSHeight, type CanvasEditorEntityType, type CanvasEditorToolsData, type CanvasEditorToolsLocation, type CanvasEditorToolsLocationMetadata, type CloseDialogMessage, type CloseLocationDialogOptions, type CommonMetadata, type DataConnectorInfo, type DataResourceLocation, type DataResourceLocationMetadata, type DataSourceLocation, type DataSourceLocationMetadata, type DataSourceLocationValue, type DataTypeLocation, type DataTypeLocationMetadata, type DataTypeLocationValue, type DialogContext, type DialogOptions, type DialogParamValue, type DialogParams, type DialogResponseData, type DialogResponseHandler, type DialogResponseHandlers, type DialogType, type DynamicInput, type DynamicInputs, type EditConnectedDataMessage, type EditConnectedDataResponse, type EditConnectedDataResponseCancellationContext, type GetDataResourceLocation, type GetDataResourceMessage, IntegrationDefinitionClient, type IntegrationDefinitionDeleteParameters, type IntegrationDefinitionGetParameters, type IntegrationDefinitionGetResponse, type IntegrationDefinitionPutParameters, type IntegrationDefinitionPutResponse, IntegrationInstallationClient, type IntegrationInstallationDeleteParameters, type IntegrationInstallationGetParameters, type IntegrationInstallationGetResponse, type IntegrationInstallationPutParameters, type LocationDialogResponse, type MeshContextData, type MeshLocation, type MeshLocationCore, type MeshLocationTypes, type MeshLocationUserPermissions, type MeshSDKEventInterface, type OpenConfirmationDialogOptions, type OpenConfirmationDialogResult, type OpenDialogMessage, type OpenDialogResult, type OpenLocationDialogOptions, type ParamTypeConfigLocation, type ParamTypeConfigLocationMetadata, type ParamTypeLocation, type ParamTypeLocationMetadata, type PromptSettingsLocationMetadata, type SdkWindow, type SetLocationFunction, type SetValueMessage, type SetValueOptions, type SettingsLocation, type SettingsLocationMetadata, type UniformMeshSDK, type UniformMeshSDKEvents, type UniformUser, type ValidationResult, hasPermissions, hasRole, initializeUniformMeshSDK };
package/dist/index.esm.js CHANGED
@@ -1,16 +1,9 @@
1
- var __accessCheck = (obj, member, msg) => {
2
- if (!member.has(obj))
3
- throw TypeError("Cannot " + msg);
4
- };
5
- var __privateGet = (obj, member, getter) => {
6
- __accessCheck(obj, member, "read from private field");
7
- return getter ? getter.call(obj) : member.get(obj);
8
- };
9
- var __privateAdd = (obj, member, value) => {
10
- if (member.has(obj))
11
- throw TypeError("Cannot add the same private member more than once");
12
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
1
+ var __typeError = (msg) => {
2
+ throw TypeError(msg);
13
3
  };
4
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
5
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
6
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
14
7
 
15
8
  // src/clients/IntegrationDefinitionClient.ts
16
9
  import { ApiClient } from "@uniformdev/context/api";
@@ -788,8 +781,7 @@ async function initializeUniformMeshSDK({
788
781
 
789
782
  // src/user.ts
790
783
  var hasPermissions = (permissions, user) => {
791
- if (user.isAdmin)
792
- return true;
784
+ if (user.isAdmin) return true;
793
785
  if (Array.isArray(permissions)) {
794
786
  return permissions.every((permission) => user.permissions.includes(permission));
795
787
  } else {
@@ -797,8 +789,7 @@ var hasPermissions = (permissions, user) => {
797
789
  }
798
790
  };
799
791
  var hasRole = (role, user) => {
800
- if (user.isAdmin)
801
- return true;
792
+ if (user.isAdmin) return true;
802
793
  return user.roles.some((userRole) => userRole.name === role || userRole.id === role);
803
794
  };
804
795
  export {
package/dist/index.js CHANGED
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __typeError = (msg) => {
9
+ throw TypeError(msg);
10
+ };
8
11
  var __export = (target, all) => {
9
12
  for (var name in all)
10
13
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -26,19 +29,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
29
  mod
27
30
  ));
28
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var __accessCheck = (obj, member, msg) => {
30
- if (!member.has(obj))
31
- throw TypeError("Cannot " + msg);
32
- };
33
- var __privateGet = (obj, member, getter) => {
34
- __accessCheck(obj, member, "read from private field");
35
- return getter ? getter.call(obj) : member.get(obj);
36
- };
37
- var __privateAdd = (obj, member, value) => {
38
- if (member.has(obj))
39
- throw TypeError("Cannot add the same private member more than once");
40
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
41
- };
32
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
33
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
34
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
42
35
 
43
36
  // src/index.ts
44
37
  var src_exports = {};
@@ -827,8 +820,7 @@ async function initializeUniformMeshSDK({
827
820
 
828
821
  // src/user.ts
829
822
  var hasPermissions = (permissions, user) => {
830
- if (user.isAdmin)
831
- return true;
823
+ if (user.isAdmin) return true;
832
824
  if (Array.isArray(permissions)) {
833
825
  return permissions.every((permission) => user.permissions.includes(permission));
834
826
  } else {
@@ -836,8 +828,7 @@ var hasPermissions = (permissions, user) => {
836
828
  }
837
829
  };
838
830
  var hasRole = (role, user) => {
839
- if (user.isAdmin)
840
- return true;
831
+ if (user.isAdmin) return true;
841
832
  return user.roles.some((userRole) => userRole.name === role || userRole.id === role);
842
833
  };
843
834
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -1,16 +1,9 @@
1
- var __accessCheck = (obj, member, msg) => {
2
- if (!member.has(obj))
3
- throw TypeError("Cannot " + msg);
4
- };
5
- var __privateGet = (obj, member, getter) => {
6
- __accessCheck(obj, member, "read from private field");
7
- return getter ? getter.call(obj) : member.get(obj);
8
- };
9
- var __privateAdd = (obj, member, value) => {
10
- if (member.has(obj))
11
- throw TypeError("Cannot add the same private member more than once");
12
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
1
+ var __typeError = (msg) => {
2
+ throw TypeError(msg);
13
3
  };
4
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
5
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
6
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
14
7
 
15
8
  // src/clients/IntegrationDefinitionClient.ts
16
9
  import { ApiClient } from "@uniformdev/context/api";
@@ -788,8 +781,7 @@ async function initializeUniformMeshSDK({
788
781
 
789
782
  // src/user.ts
790
783
  var hasPermissions = (permissions, user) => {
791
- if (user.isAdmin)
792
- return true;
784
+ if (user.isAdmin) return true;
793
785
  if (Array.isArray(permissions)) {
794
786
  return permissions.every((permission) => user.permissions.includes(permission));
795
787
  } else {
@@ -797,8 +789,7 @@ var hasPermissions = (permissions, user) => {
797
789
  }
798
790
  };
799
791
  var hasRole = (role, user) => {
800
- if (user.isAdmin)
801
- return true;
792
+ if (user.isAdmin) return true;
802
793
  return user.roles.some((userRole) => userRole.name === role || userRole.id === role);
803
794
  };
804
795
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/mesh-sdk",
3
- "version": "19.159.0",
3
+ "version": "19.159.1-alpha.27+344f3d36db",
4
4
  "description": "Uniform Mesh Framework SDK",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -33,14 +33,14 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@uniformdev/canvas": "19.159.0",
37
- "@uniformdev/context": "19.159.0",
38
- "@uniformdev/project-map": "19.159.0",
36
+ "@uniformdev/canvas": "19.159.1-alpha.27+344f3d36db",
37
+ "@uniformdev/context": "19.159.1-alpha.27+344f3d36db",
38
+ "@uniformdev/project-map": "19.159.1-alpha.27+344f3d36db",
39
39
  "imagesloaded": "^5.0.0",
40
40
  "mitt": "^3.0.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/imagesloaded": "^4.1.2"
44
44
  },
45
- "gitHead": "49ed8744113d885f24c96d819a6e1dd1896b6ce0"
45
+ "gitHead": "344f3d36dba87d4e2340a1687c20b163be1d2c83"
46
46
  }