freemium-survey-components 2.0.144 → 2.0.146

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.
@@ -792,7 +792,7 @@ export type ValidatingQuestions = {
792
792
  fileUploadErrors: Record<string, string>;
793
793
  contactFormErrors: Record<string, Record<string, string>>;
794
794
  };
795
- export type RoleType = 'OWNER' | 'ADMIN' | 'ANALYST' | 'VIEWER';
795
+ export type RoleType = 'OWNER' | 'ADMIN' | 'ANALYST' | 'VIEWER' | 'CUSTOM';
796
796
  export type SurveyServAuthAccountType = {
797
797
  id?: string | null;
798
798
  timezone?: string | null;
@@ -973,6 +973,7 @@ export interface SurveyServResponseType {
973
973
  }
974
974
  export type PreviewChannelType = 'whatsapp' | 'email' | 'instagram';
975
975
  export type ThemeType = 'light' | 'dark';
976
+ export type AccessTypes = 'survey:read' | 'survey:write' | 'analytics:read' | 'contact:read' | 'contact:write' | 'contact-impexp:write' | 'response:read' | 'response:write' | 'response-impexp:write' | 'response-edit:write' | 'workflow:read' | 'workflow:write' | 'dashboard:read' | 'settings:read' | 'account-transfer:write';
976
977
  export type ExportedComponentType = {
977
978
  goToRoute: GoToRouteType;
978
979
  hostParams: HostParamsType & {
@@ -998,6 +999,7 @@ export type ExportedComponentType = {
998
999
  collectorId?: string;
999
1000
  };
1000
1001
  role: RoleType;
1002
+ access: AccessTypes[];
1001
1003
  setBreadcrumbData: SetBreadcrumbDataType;
1002
1004
  queryParams: ComponentQParamsType & {
1003
1005
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "2.0.144",
3
+ "version": "2.0.146",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",