@contrail/entity-types 1.1.53 → 1.1.54

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/lib/client.d.ts CHANGED
@@ -61,7 +61,7 @@ export declare abstract class EntitiesClientBatchCreateOptions {
61
61
  apiVersion?: API_VERSION;
62
62
  suffix?: string;
63
63
  }
64
- declare class EntitiesClientUpdateOptions {
64
+ export declare abstract class EntitiesClientUpdateOptions {
65
65
  entityName?: string;
66
66
  object: any;
67
67
  id?: string;
@@ -102,4 +102,3 @@ export declare abstract class EntitiesClient {
102
102
  abstract delete(options: EntitiesClientDeleteOptions): any;
103
103
  abstract batchDelete(options: EntitiesClientBatchDeleteOptions): any;
104
104
  }
105
- export {};
package/lib/client.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EntitiesClient = exports.EntitiesClientBatchDeleteOptions = exports.EntitiesClientDeleteOptions = exports.EntitiesClientBatchUpdateOptions = exports.EntitiesClientBatchCreateOptions = exports.EntitiesClientCreateOptions = exports.EntitiesClientGetOptions = exports.DEFAULT_API_VERSION = exports.API_VERSION = exports.SortOrderOptions = exports.EntityReference = exports.ApiError = exports.TimeoutError = exports.InvalidPolicyError = void 0;
3
+ exports.EntitiesClient = exports.EntitiesClientBatchDeleteOptions = exports.EntitiesClientDeleteOptions = exports.EntitiesClientBatchUpdateOptions = exports.EntitiesClientUpdateOptions = exports.EntitiesClientBatchCreateOptions = exports.EntitiesClientCreateOptions = exports.EntitiesClientGetOptions = exports.DEFAULT_API_VERSION = exports.API_VERSION = exports.SortOrderOptions = exports.EntityReference = exports.ApiError = exports.TimeoutError = exports.InvalidPolicyError = void 0;
4
4
  class InvalidPolicyError extends Error {
5
5
  }
6
6
  exports.InvalidPolicyError = InvalidPolicyError;
@@ -81,6 +81,7 @@ class EntitiesClientUpdateOptions {
81
81
  apiVersion;
82
82
  suffix;
83
83
  }
84
+ exports.EntitiesClientUpdateOptions = EntitiesClientUpdateOptions;
84
85
  class EntitiesClientBatchUpdateOptions {
85
86
  entityName;
86
87
  objects;
package/lib/loader.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { LogLevel } from "./log-level";
2
- import { OrgManagedEntity } from "./org-managed-entity";
1
+ import { LogLevel } from './log-level';
2
+ import { OrgManagedEntity } from './org-managed-entity';
3
3
  export declare class ColumnDefinition {
4
4
  fromProperty?: string;
5
5
  toProperty: string;
@@ -41,7 +41,8 @@ export declare enum LoadType {
41
41
  ASSORTMENT = "ASSORTMENT",
42
42
  COLOR = "COLOR",
43
43
  CUSTOM_ENTITY = "CUSTOM_ENTITY",
44
- SIZE_RANGE_TEMPLATE = "SIZE_RANGE_TEMPLATE"
44
+ SIZE_RANGE_TEMPLATE = "SIZE_RANGE_TEMPLATE",
45
+ PROJECT = "PROJECT"
45
46
  }
46
47
  export interface LoadResult {
47
48
  colorsLoadResult?: ColorLoadResult;
@@ -50,7 +51,7 @@ export interface LoadResult {
50
51
  assortmentItemsLoadResult?: AssortmentItemsLoadResult;
51
52
  transformErrors: any[];
52
53
  }
53
- export interface rowLoadError {
54
+ export interface RowLoadError {
54
55
  data: any;
55
56
  error: any;
56
57
  }
@@ -72,24 +73,24 @@ export interface ColorLoadResult {
72
73
  colorsCreated: any[];
73
74
  colorsUpdated: any[];
74
75
  colorsUnchanged: any[];
75
- colorsFailedCreate: rowLoadError[];
76
- colorsFailedUpdate: rowLoadError[];
76
+ colorsFailedCreate: RowLoadError[];
77
+ colorsFailedUpdate: RowLoadError[];
77
78
  failed: boolean;
78
79
  }
79
80
  export interface ItemsLoadResult {
80
81
  itemsCreated: any[];
81
82
  itemsUpdated: any[];
82
83
  itemsUnchanged: any[];
83
- itemsFailedCreate: rowLoadError[];
84
- itemsFailedUpdate: rowLoadError[];
84
+ itemsFailedCreate: RowLoadError[];
85
+ itemsFailedUpdate: RowLoadError[];
85
86
  failed: boolean;
86
87
  }
87
88
  export interface ProjectItemsLoadResult {
88
89
  projectItemsCreated: any[];
89
90
  projectItemsUpdated: any[];
90
91
  projectItemsUnchanged: any[];
91
- projectItemsFailedCreate: rowLoadError[];
92
- projectItemsFailedUpdate: rowLoadError[];
92
+ projectItemsFailedCreate: RowLoadError[];
93
+ projectItemsFailedUpdate: RowLoadError[];
93
94
  failed: boolean;
94
95
  }
95
96
  export interface AssortmentItemsLoadResult {
@@ -97,9 +98,9 @@ export interface AssortmentItemsLoadResult {
97
98
  assortmentItemsUpdated: any[];
98
99
  assortmentItemsUnchanged: any[];
99
100
  assortmentItemsDeleted: any[];
100
- assortmentItemsFailedCreate: rowLoadError[];
101
- assortmentItemsFailedUpdate: rowLoadError[];
102
- assortmentItemsFailedDelete: rowLoadError[];
101
+ assortmentItemsFailedCreate: RowLoadError[];
102
+ assortmentItemsFailedUpdate: RowLoadError[];
103
+ assortmentItemsFailedDelete: RowLoadError[];
103
104
  failed: boolean;
104
105
  }
105
106
  export interface PreprocessingStepStoredResultSummary {
package/lib/loader.js CHANGED
@@ -41,6 +41,7 @@ var LoadType;
41
41
  LoadType["COLOR"] = "COLOR";
42
42
  LoadType["CUSTOM_ENTITY"] = "CUSTOM_ENTITY";
43
43
  LoadType["SIZE_RANGE_TEMPLATE"] = "SIZE_RANGE_TEMPLATE";
44
+ LoadType["PROJECT"] = "PROJECT";
44
45
  })(LoadType = exports.LoadType || (exports.LoadType = {}));
45
46
  class LoaderProcess {
46
47
  id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/entity-types",
3
- "version": "1.1.53",
3
+ "version": "1.1.54",
4
4
  "description": "A types library for Vibeiq entities.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -23,4 +23,4 @@
23
23
  "typedoc-plugin-extras": "^3.0.0",
24
24
  "typescript": "^4.2"
25
25
  }
26
- }
26
+ }
@@ -1,45 +0,0 @@
1
- import { OrgManagedEntity } from "./org-managed-entity";
2
- export declare enum SharedLinkAccessLevel {
3
- RESTRICTED = "RESTRICTED",
4
- VIEW = "VIEW",
5
- COMMENT = "COMMENT",
6
- EDIT = "EDIT",
7
- MANAGE = "MANAGE"
8
- }
9
- export interface SharedLinkPrincipal extends OrgManagedEntity {
10
- id: string;
11
- createdOn?: Date;
12
- updatedOn?: Date;
13
- createdBy?: string;
14
- updatedBy?: string;
15
- createdById?: string;
16
- updatedById?: string;
17
- orgId?: string;
18
- orgSlug?: string;
19
- userEmail?: string;
20
- principalReference: string;
21
- principal?: any;
22
- sharedLinkId: string;
23
- expiresOn?: string;
24
- accessLevel?: SharedLinkAccessLevel;
25
- }
26
- export interface SharedLink extends OrgManagedEntity {
27
- id: string;
28
- createdOn?: Date;
29
- updatedOn?: Date;
30
- createdBy?: string;
31
- updatedBy?: string;
32
- createdById?: string;
33
- updatedById?: string;
34
- orgId?: string;
35
- orgSlug?: string;
36
- shareType?: string;
37
- contextType: string;
38
- contextId: string;
39
- contextReference?: string;
40
- expires?: Date;
41
- deactivated?: boolean;
42
- accessLevel?: SharedLinkAccessLevel;
43
- sharedLinkPrincipals?: SharedLinkPrincipal[];
44
- currentUserAccessLevel?: SharedLinkAccessLevel;
45
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SharedLinkAccessLevel = void 0;
4
- var SharedLinkAccessLevel;
5
- (function (SharedLinkAccessLevel) {
6
- SharedLinkAccessLevel["RESTRICTED"] = "RESTRICTED";
7
- SharedLinkAccessLevel["VIEW"] = "VIEW";
8
- SharedLinkAccessLevel["COMMENT"] = "COMMENT";
9
- SharedLinkAccessLevel["EDIT"] = "EDIT";
10
- SharedLinkAccessLevel["MANAGE"] = "MANAGE";
11
- })(SharedLinkAccessLevel = exports.SharedLinkAccessLevel || (exports.SharedLinkAccessLevel = {}));