@ptkl/sdk 1.6.2 → 1.6.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptkl/sdk",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "scripts": {
5
5
  "build": "rollup -c",
6
6
  "build:monaco": "npm run build && node scripts/generate-monaco-types.cjs",
@@ -1,4 +1,5 @@
1
1
  export type { PlatformFunctions, PlatformFunction, FunctionInput, FunctionOutput, FunctionCallParams, ComponentModels, ComponentFunctions, ComponentModel, ComponentFunctionInput, ComponentFunctionOutput, } from '../types/functions';
2
+ export type { Settings, SettingsField, FieldRoles, FieldConstraints, Context, Preset, PresetContext, Filters, Extension, Policy, SetupData, Model, } from '../types/component';
2
3
  export { default as Component } from './component';
3
4
  export { default as Platform } from './platform';
4
5
  export { default as Functions } from './functions';
@@ -272,22 +272,22 @@ type FieldConstraints = {
272
272
  };
273
273
  relation?: {
274
274
  label?: string;
275
- searchOn?: string[];
275
+ searchOn?: string[] | null;
276
276
  };
277
277
  };
278
278
  type SettingsField = {
279
279
  name: string;
280
- label: Record<string, any>;
280
+ label: Record<string, any> | null;
281
281
  key: string;
282
282
  type: string;
283
- description?: Record<string, any>;
283
+ description?: Record<string, any> | null;
284
284
  module?: string;
285
285
  group?: string;
286
286
  sortOrder?: number;
287
287
  visible?: boolean;
288
288
  protected?: boolean;
289
- roles?: FieldRoles;
290
- context?: Context[];
289
+ roles?: FieldRoles | null;
290
+ context?: Context[] | null;
291
291
  constraints?: FieldConstraints;
292
292
  relation?: {
293
293
  foreign?: string;
@@ -303,14 +303,14 @@ type SettingsField = {
303
303
  provided_template_component?: string;
304
304
  component_template?: string;
305
305
  template?: string;
306
- permissions?: string[];
306
+ permissions?: string[] | null;
307
307
  };
308
308
  type Filters = {
309
309
  filter?: string;
310
- filterOn?: string[];
310
+ filterOn?: string[] | null;
311
311
  dateField?: string;
312
- dateFrom?: string;
313
- dateTo?: string;
312
+ dateFrom?: string | null;
313
+ dateTo?: string | null;
314
314
  $adv?: Record<string, any>;
315
315
  };
316
316
  type PresetContext = {
@@ -321,7 +321,7 @@ type PresetContext = {
321
321
  };
322
322
  type Preset = {
323
323
  name: string;
324
- roles: string[];
324
+ roles?: string[];
325
325
  context: PresetContext;
326
326
  };
327
327
  type Function = {
@@ -386,16 +386,16 @@ type Settings = {
386
386
  };
387
387
  fields?: SettingsField[];
388
388
  model?: {
389
- events?: Record<string, any>[];
390
- unique_indexes_combinations?: string[][];
389
+ events?: Record<string, any>[] | null;
390
+ unique_indexes_combinations?: string[][] | null;
391
391
  };
392
- presets?: Preset[];
393
- templates?: Record<string, any>[];
392
+ presets?: Preset[] | null;
393
+ templates?: Record<string, any>[] | null;
394
394
  templates_dist?: TemplatesDist;
395
- config?: Record<string, any>;
396
- functions?: Function[];
397
- extensions?: Extension[];
398
- policies?: Policy[];
395
+ config?: Record<string, any> | null;
396
+ functions?: Function[] | null;
397
+ extensions?: Extension[] | null;
398
+ policies?: Policy[] | null;
399
399
  };
400
400
  type SetupData = {
401
401
  name: string;
@@ -55,6 +55,7 @@ export interface RoleModel {
55
55
  permissions: string[];
56
56
  workspaces: string[];
57
57
  level: number;
58
+ tags: string[];
58
59
  }
59
60
  export interface Permission {
60
61
  uuid: string;
@@ -1,3 +1,4 @@
1
+ export type { Settings, SettingsField, FieldRoles, FieldConstraints, Context, Preset, PresetContext, Filters, Extension, Policy, SetupData, Model, } from '../types/component';
1
2
  export { default as Component } from './component';
2
3
  export { default as Platform } from './platform';
3
4
  export { default as Functions } from './functions';
@@ -272,22 +272,22 @@ type FieldConstraints = {
272
272
  };
273
273
  relation?: {
274
274
  label?: string;
275
- searchOn?: string[];
275
+ searchOn?: string[] | null;
276
276
  };
277
277
  };
278
278
  type SettingsField = {
279
279
  name: string;
280
- label: Record<string, any>;
280
+ label: Record<string, any> | null;
281
281
  key: string;
282
282
  type: string;
283
- description?: Record<string, any>;
283
+ description?: Record<string, any> | null;
284
284
  module?: string;
285
285
  group?: string;
286
286
  sortOrder?: number;
287
287
  visible?: boolean;
288
288
  protected?: boolean;
289
- roles?: FieldRoles;
290
- context?: Context[];
289
+ roles?: FieldRoles | null;
290
+ context?: Context[] | null;
291
291
  constraints?: FieldConstraints;
292
292
  relation?: {
293
293
  foreign?: string;
@@ -303,14 +303,14 @@ type SettingsField = {
303
303
  provided_template_component?: string;
304
304
  component_template?: string;
305
305
  template?: string;
306
- permissions?: string[];
306
+ permissions?: string[] | null;
307
307
  };
308
308
  type Filters = {
309
309
  filter?: string;
310
- filterOn?: string[];
310
+ filterOn?: string[] | null;
311
311
  dateField?: string;
312
- dateFrom?: string;
313
- dateTo?: string;
312
+ dateFrom?: string | null;
313
+ dateTo?: string | null;
314
314
  $adv?: Record<string, any>;
315
315
  };
316
316
  type PresetContext = {
@@ -321,7 +321,7 @@ type PresetContext = {
321
321
  };
322
322
  type Preset = {
323
323
  name: string;
324
- roles: string[];
324
+ roles?: string[];
325
325
  context: PresetContext;
326
326
  };
327
327
  type Function = {
@@ -386,16 +386,16 @@ type Settings = {
386
386
  };
387
387
  fields?: SettingsField[];
388
388
  model?: {
389
- events?: Record<string, any>[];
390
- unique_indexes_combinations?: string[][];
389
+ events?: Record<string, any>[] | null;
390
+ unique_indexes_combinations?: string[][] | null;
391
391
  };
392
- presets?: Preset[];
393
- templates?: Record<string, any>[];
392
+ presets?: Preset[] | null;
393
+ templates?: Record<string, any>[] | null;
394
394
  templates_dist?: TemplatesDist;
395
- config?: Record<string, any>;
396
- functions?: Function[];
397
- extensions?: Extension[];
398
- policies?: Policy[];
395
+ config?: Record<string, any> | null;
396
+ functions?: Function[] | null;
397
+ extensions?: Extension[] | null;
398
+ policies?: Policy[] | null;
399
399
  };
400
400
  type SetupData = {
401
401
  name: string;
@@ -46,6 +46,7 @@ export interface EditRoleRequest {
46
46
  permissions: string[];
47
47
  workspaces: string[];
48
48
  level: number;
49
+ tags: string[];
49
50
  }
50
51
  export interface CreateRoleRequest extends EditRoleRequest {
51
52
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptkl/sdk",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "scripts": {
5
5
  "build": "rollup -c",
6
6
  "build:monaco": "npm run build && node scripts/generate-monaco-types.cjs",