@contrail/entity-types 1.1.53 → 1.1.54-0
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 +1 -2
- package/lib/client.js +2 -1
- package/lib/loader.d.ts +14 -13
- package/lib/loader.js +1 -0
- package/lib/user.d.ts +2 -1
- package/lib/user.js +1 -0
- package/package.json +1 -1
- package/lib/share-links.d.ts +0 -45
- package/lib/share-links.js +0 -11
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
|
|
2
|
-
import { OrgManagedEntity } from
|
|
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
|
|
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:
|
|
76
|
-
colorsFailedUpdate:
|
|
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:
|
|
84
|
-
itemsFailedUpdate:
|
|
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:
|
|
92
|
-
projectItemsFailedUpdate:
|
|
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:
|
|
101
|
-
assortmentItemsFailedUpdate:
|
|
102
|
-
assortmentItemsFailedDelete:
|
|
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/lib/user.d.ts
CHANGED
package/lib/user.js
CHANGED
|
@@ -6,6 +6,7 @@ var UserOrgRole;
|
|
|
6
6
|
UserOrgRole["admin"] = "ADMIN";
|
|
7
7
|
UserOrgRole["member"] = "MEMBER";
|
|
8
8
|
UserOrgRole["guest"] = "GUEST";
|
|
9
|
+
UserOrgRole["viewer"] = "VIEWER";
|
|
9
10
|
})(UserOrgRole = exports.UserOrgRole || (exports.UserOrgRole = {}));
|
|
10
11
|
var SystemRole;
|
|
11
12
|
(function (SystemRole) {
|
package/package.json
CHANGED
package/lib/share-links.d.ts
DELETED
|
@@ -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
|
-
}
|
package/lib/share-links.js
DELETED
|
@@ -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 = {}));
|