@contrail/entity-types 1.4.0 → 1.4.2
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/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +64 -0
- package/docs/assets/icons.js +15 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +59 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1414 -0
- package/docs/classes/ApiError.html +14 -0
- package/docs/classes/AssortmentSplit.html +7 -0
- package/docs/classes/ColumnDefinition.html +7 -0
- package/docs/classes/ConditionalValues.html +5 -0
- package/docs/classes/EntitiesClient.html +26 -0
- package/docs/classes/EntitiesClientBatchCreateOptions.html +12 -0
- package/docs/classes/EntitiesClientBatchDeleteOptions.html +13 -0
- package/docs/classes/EntitiesClientBatchUpdateOptions.html +12 -0
- package/docs/classes/EntitiesClientCreateOptions.html +20 -0
- package/docs/classes/EntitiesClientDeleteOptions.html +17 -0
- package/docs/classes/EntitiesClientGetOptions.html +39 -0
- package/docs/classes/EntitiesClientUpdateOptions.html +25 -0
- package/docs/classes/EntityReference.html +7 -0
- package/docs/classes/InvalidPolicyError.html +13 -0
- package/docs/classes/LoaderProcess.html +44 -0
- package/docs/classes/TimeoutError.html +13 -0
- package/docs/classes/ValueToAssortment.html +6 -0
- package/docs/enums/API_VERSION.html +7 -0
- package/docs/enums/AppAccessGrantScope.html +3 -0
- package/docs/enums/AppExtensionType.html +6 -0
- package/docs/enums/AppExtensionUserApps.html +7 -0
- package/docs/enums/AppOrgStatus.html +7 -0
- package/docs/enums/AppVersionStatus.html +8 -0
- package/docs/enums/AssortmentType.html +7 -0
- package/docs/enums/EntityType.html +7 -0
- package/docs/enums/IssueType.html +11 -0
- package/docs/enums/LoadStatus.html +7 -0
- package/docs/enums/LoadType.html +9 -0
- package/docs/enums/LoaderFailureArea.html +7 -0
- package/docs/enums/LogLevel.html +8 -0
- package/docs/enums/NodeRuntime.html +4 -0
- package/docs/enums/PropertyType.html +27 -0
- package/docs/enums/SharedLinkAccessLevel.html +7 -0
- package/docs/enums/SortOrderOptions.html +5 -0
- package/docs/enums/SubscriptionChannel.html +5 -0
- package/docs/enums/SubscriptionType.html +9 -0
- package/docs/enums/UserOrgRole.html +5 -0
- package/docs/enums/WorkspacePrincipalRole.html +5 -0
- package/docs/enums/WorkspaceType.html +5 -0
- package/docs/functions/isValidNodeRuntime.html +2 -0
- package/docs/home-hero.svg +11 -0
- package/docs/index.html +5 -0
- package/docs/interfaces/App.html +26 -0
- package/docs/interfaces/AppAccessGrant.html +15 -0
- package/docs/interfaces/AppApiKey.html +15 -0
- package/docs/interfaces/AppCodePackage.html +16 -0
- package/docs/interfaces/AppExtension.html +20 -0
- package/docs/interfaces/AppExtensionDefinition.html +19 -0
- package/docs/interfaces/AppOrg.html +17 -0
- package/docs/interfaces/AppVersion.html +22 -0
- package/docs/interfaces/Asset.html +25 -0
- package/docs/interfaces/Assortment.html +32 -0
- package/docs/interfaces/AssortmentItem.html +27 -0
- package/docs/interfaces/AssortmentSummary.html +16 -0
- package/docs/interfaces/Color.html +19 -0
- package/docs/interfaces/ColumnIssueDetails.html +6 -0
- package/docs/interfaces/CompositePlansSummary.html +16 -0
- package/docs/interfaces/ConfigProperty.html +6 -0
- package/docs/interfaces/Content.html +29 -0
- package/docs/interfaces/ContentHolderContent.html +12 -0
- package/docs/interfaces/EntityLoadResult.html +10 -0
- package/docs/interfaces/ExternalLink.html +7 -0
- package/docs/interfaces/ExternalLinkExtraAttribute.html +4 -0
- package/docs/interfaces/File.html +20 -0
- package/docs/interfaces/GeneralIssueDetails.html +4 -0
- package/docs/interfaces/Group.html +14 -0
- package/docs/interfaces/GroupPrincipal.html +16 -0
- package/docs/interfaces/Item.html +25 -0
- package/docs/interfaces/LoadResult.html +13 -0
- package/docs/interfaces/LoaderConfiguration.html +16 -0
- package/docs/interfaces/LoaderNumbersSummary.html +14 -0
- package/docs/interfaces/Org.html +13 -0
- package/docs/interfaces/PreprocessingStepStoredResultSummary.html +6 -0
- package/docs/interfaces/ProcessedData.html +9 -0
- package/docs/interfaces/ProcessingIssues.html +4 -0
- package/docs/interfaces/Project.html +11 -0
- package/docs/interfaces/ProjectItem.html +18 -0
- package/docs/interfaces/PropertyTypeMetaData.html +5 -0
- package/docs/interfaces/RowLoadError.html +4 -0
- package/docs/interfaces/SharedLink.html +22 -0
- package/docs/interfaces/SharedLinkPrincipal.html +18 -0
- package/docs/interfaces/SortOption.html +4 -0
- package/docs/interfaces/Subscription.html +18 -0
- package/docs/interfaces/TriggerKeyDefinition.html +6 -0
- package/docs/interfaces/User.html +14 -0
- package/docs/interfaces/UserOrg.html +19 -0
- package/docs/interfaces/Workspace.html +29 -0
- package/docs/interfaces/WorkspacePrincipal.html +21 -0
- package/docs/modules.html +94 -0
- package/docs/types/BatchFetchResponse.html +2 -0
- package/docs/types/SubscriptionMatrix.html +2 -0
- package/docs/variables/BOARD_APP_SUBSCRIBED_TO_CONST.html +2 -0
- package/docs/variables/DEFAULT_API_VERSION.html +2 -0
- package/docs/variables/PLAN_APP_SUBSCRIBED_TO_CONST.html +2 -0
- package/docs/variables/SHOWCASE_APP_SUBSCRIBED_TO_CONST.html +2 -0
- package/lib/app-access-grant.d.ts +15 -15
- package/lib/app-access-grant.js +7 -7
- package/lib/app-api-key.d.ts +15 -15
- package/lib/app-api-key.js +2 -2
- package/lib/app-code-package.d.ts +17 -17
- package/lib/app-code-package.js +2 -2
- package/lib/app-extension-definition.d.ts +34 -34
- package/lib/app-extension-definition.js +18 -18
- package/lib/app-extension.d.ts +23 -23
- package/lib/app-extension.js +2 -2
- package/lib/app-org.d.ts +20 -20
- package/lib/app-org.js +11 -11
- package/lib/app-version.d.ts +57 -57
- package/lib/app-version.js +21 -21
- package/lib/app.d.ts +25 -25
- package/lib/app.js +2 -2
- package/lib/asset.d.ts +16 -16
- package/lib/asset.js +2 -2
- package/lib/assortment-item.d.ts +27 -27
- package/lib/assortment-item.js +2 -2
- package/lib/assortment-summary.d.ts +15 -15
- package/lib/assortment-summary.js +2 -2
- package/lib/assortment.d.ts +39 -39
- package/lib/assortment.js +11 -11
- package/lib/base-managed-entity.d.ts +8 -8
- package/lib/base-managed-entity.js +2 -2
- package/lib/batch-fetch-response.d.ts +11 -11
- package/lib/batch-fetch-response.js +2 -2
- package/lib/client.d.ts +107 -107
- package/lib/client.js +114 -114
- package/lib/color.d.ts +14 -14
- package/lib/color.js +2 -2
- package/lib/composite-plans-summary.d.ts +15 -15
- package/lib/composite-plans-summary.js +2 -2
- package/lib/content-custom-size.d.ts +14 -14
- package/lib/content-custom-size.js +2 -2
- package/lib/content.d.ts +25 -23
- package/lib/content.js +2 -2
- package/lib/contentholder-content.d.ts +5 -5
- package/lib/contentholder-content.js +2 -2
- package/lib/file.d.ts +13 -13
- package/lib/file.js +2 -2
- package/lib/index.d.ts +35 -35
- package/lib/index.js +51 -51
- package/lib/item.d.ts +20 -20
- package/lib/item.js +2 -2
- package/lib/loader.d.ts +182 -182
- package/lib/loader.js +115 -115
- package/lib/log-level.d.ts +8 -8
- package/lib/log-level.js +12 -12
- package/lib/org-managed-entity.d.ts +5 -5
- package/lib/org-managed-entity.js +2 -2
- package/lib/org.d.ts +11 -11
- package/lib/org.js +2 -2
- package/lib/project-configuration.d.ts +39 -39
- package/lib/project-configuration.js +9 -9
- package/lib/project-item.d.ts +9 -9
- package/lib/project-item.js +2 -2
- package/lib/project.d.ts +4 -4
- package/lib/project.js +2 -2
- package/lib/property-type.d.ts +32 -32
- package/lib/property-type.js +31 -31
- package/lib/shared-links.d.ts +46 -46
- package/lib/shared-links.js +11 -11
- package/lib/subscription.d.ts +38 -38
- package/lib/subscription.js +22 -22
- package/lib/type-managed-entity.d.ts +8 -8
- package/lib/type-managed-entity.js +2 -2
- package/lib/user.d.ts +79 -79
- package/lib/user.js +20 -20
- package/lib/workspace-managed-entity.d.ts +5 -5
- package/lib/workspace-managed-entity.js +2 -2
- package/lib/workspace-principal.d.ts +24 -24
- package/lib/workspace-principal.js +9 -9
- package/lib/workspace.d.ts +32 -32
- package/lib/workspace.js +9 -9
- package/package.json +1 -1
package/lib/item.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { TypeManagedEntity } from './type-managed-entity';
|
|
2
|
-
export interface Item extends TypeManagedEntity {
|
|
3
|
-
itemFamilyId?: string;
|
|
4
|
-
itemFamily?: Item;
|
|
5
|
-
itemOptions?: {
|
|
6
|
-
[key: string]: Array<Item>;
|
|
7
|
-
};
|
|
8
|
-
name: string;
|
|
9
|
-
primaryViewableId?: string;
|
|
10
|
-
federatedId?: string;
|
|
11
|
-
assortmentItems?: any[];
|
|
12
|
-
assortmentAtts?: {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
};
|
|
15
|
-
optionGroup?: string;
|
|
16
|
-
optionName?: string;
|
|
17
|
-
isPrimary?: boolean;
|
|
18
|
-
roles?: Array<string>;
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
}
|
|
1
|
+
import { TypeManagedEntity } from './type-managed-entity';
|
|
2
|
+
export interface Item extends TypeManagedEntity {
|
|
3
|
+
itemFamilyId?: string;
|
|
4
|
+
itemFamily?: Item;
|
|
5
|
+
itemOptions?: {
|
|
6
|
+
[key: string]: Array<Item>;
|
|
7
|
+
};
|
|
8
|
+
name: string;
|
|
9
|
+
primaryViewableId?: string;
|
|
10
|
+
federatedId?: string;
|
|
11
|
+
assortmentItems?: any[];
|
|
12
|
+
assortmentAtts?: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
optionGroup?: string;
|
|
16
|
+
optionName?: string;
|
|
17
|
+
isPrimary?: boolean;
|
|
18
|
+
roles?: Array<string>;
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}
|
package/lib/item.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lib/loader.d.ts
CHANGED
|
@@ -1,182 +1,182 @@
|
|
|
1
|
-
import { LogLevel } from './log-level';
|
|
2
|
-
import { OrgManagedEntity } from './org-managed-entity';
|
|
3
|
-
export declare class ColumnDefinition {
|
|
4
|
-
fromProperty?: string;
|
|
5
|
-
toProperty: string;
|
|
6
|
-
conditions?: ConditionalValues[];
|
|
7
|
-
default?: any;
|
|
8
|
-
}
|
|
9
|
-
export declare class ConditionalValues {
|
|
10
|
-
conditional: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}
|
|
13
|
-
export declare class AssortmentSplit {
|
|
14
|
-
partialAssortmentUpdate?: boolean;
|
|
15
|
-
dropField?: string;
|
|
16
|
-
fieldToSplitOn: string;
|
|
17
|
-
values: ValueToAssortment[];
|
|
18
|
-
}
|
|
19
|
-
export declare class ValueToAssortment {
|
|
20
|
-
value: string;
|
|
21
|
-
assortmentId?: string;
|
|
22
|
-
assortmentIdentifier?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface LoaderConfiguration extends OrgManagedEntity {
|
|
25
|
-
name?: string;
|
|
26
|
-
federatedMappings?: any;
|
|
27
|
-
conditionalColumns?: ColumnDefinition[];
|
|
28
|
-
assortmentSplit?: AssortmentSplit;
|
|
29
|
-
workspaceIdentifier?: string;
|
|
30
|
-
propertiesToRemove?: string[];
|
|
31
|
-
}
|
|
32
|
-
export declare enum LoadStatus {
|
|
33
|
-
ACTIVE = "ACTIVE",
|
|
34
|
-
PENDING = "PENDING",
|
|
35
|
-
FAILED = "FAILED",
|
|
36
|
-
COMPLETE = "COMPLETE",
|
|
37
|
-
CANCELED = "CANCELED"
|
|
38
|
-
}
|
|
39
|
-
export declare enum LoadType {
|
|
40
|
-
ITEM = "ITEM",
|
|
41
|
-
PROJECT_ITEM = "PROJECT_ITEM",
|
|
42
|
-
ASSORTMENT = "ASSORTMENT",
|
|
43
|
-
COLOR = "COLOR",
|
|
44
|
-
CUSTOM_ENTITY = "CUSTOM_ENTITY",
|
|
45
|
-
SIZE_RANGE_TEMPLATE = "SIZE_RANGE_TEMPLATE",
|
|
46
|
-
PROJECT = "PROJECT"
|
|
47
|
-
}
|
|
48
|
-
export interface LoadResult {
|
|
49
|
-
colorsLoadResult?: EntityLoadResult;
|
|
50
|
-
customEntitiesLoadResult?: EntityLoadResult;
|
|
51
|
-
itemsLoadResult?: EntityLoadResult;
|
|
52
|
-
projectItemsLoadResult?: EntityLoadResult;
|
|
53
|
-
assortmentItemsLoadResult?: EntityLoadResult;
|
|
54
|
-
transformErrors: any[];
|
|
55
|
-
transformWarnings?: any[];
|
|
56
|
-
generalErrors?: GeneralIssueDetails[];
|
|
57
|
-
generalWarnings?: GeneralIssueDetails[];
|
|
58
|
-
systemErrors?: GeneralIssueDetails[];
|
|
59
|
-
failureArea?: LoaderFailureArea;
|
|
60
|
-
}
|
|
61
|
-
export interface RowLoadError {
|
|
62
|
-
data: any;
|
|
63
|
-
error: any;
|
|
64
|
-
}
|
|
65
|
-
export interface LoaderNumbersSummary {
|
|
66
|
-
numberFamiliesLoaded: number;
|
|
67
|
-
numberOptionsLoaded: number;
|
|
68
|
-
numberProjectItemsLoaded: number;
|
|
69
|
-
numberAssortmentItemsLoaded: number;
|
|
70
|
-
numberColorsLoaded: number;
|
|
71
|
-
numberImagesLoaded: number;
|
|
72
|
-
numberFamiliesFailed: number;
|
|
73
|
-
numberOptionsFailed: number;
|
|
74
|
-
numberProjectItemsFailed: number;
|
|
75
|
-
numberAssortmentItemsFailed: number;
|
|
76
|
-
numberColorsFailed: number;
|
|
77
|
-
numberImagesFailed: number;
|
|
78
|
-
}
|
|
79
|
-
export interface ProcessingIssues {
|
|
80
|
-
rowNumber: number;
|
|
81
|
-
columnIssues: ColumnIssueDetails[];
|
|
82
|
-
}
|
|
83
|
-
export interface ColumnIssueDetails {
|
|
84
|
-
columnName: string;
|
|
85
|
-
message: string;
|
|
86
|
-
issueType: IssueType;
|
|
87
|
-
data: string;
|
|
88
|
-
}
|
|
89
|
-
export interface GeneralIssueDetails {
|
|
90
|
-
message: string;
|
|
91
|
-
issueType: IssueType;
|
|
92
|
-
}
|
|
93
|
-
export interface EntityLoadResult {
|
|
94
|
-
created: any[];
|
|
95
|
-
updated: any[];
|
|
96
|
-
unchanged: any[];
|
|
97
|
-
deleted: any[];
|
|
98
|
-
failedCreate: RowLoadError[];
|
|
99
|
-
failedUpdate: RowLoadError[];
|
|
100
|
-
failedDelete: RowLoadError[];
|
|
101
|
-
failed: boolean;
|
|
102
|
-
}
|
|
103
|
-
export interface PreprocessingStepStoredResultSummary {
|
|
104
|
-
preprocessingStepName: string;
|
|
105
|
-
fileId: string;
|
|
106
|
-
numberOfWarnings: number;
|
|
107
|
-
numberOfErrors: number;
|
|
108
|
-
}
|
|
109
|
-
export interface ProcessedData {
|
|
110
|
-
csvRows: any[];
|
|
111
|
-
transformationErrors: ProcessingIssues[];
|
|
112
|
-
transformationWarnings: ProcessingIssues[];
|
|
113
|
-
generalErrors: GeneralIssueDetails[];
|
|
114
|
-
generalWarnings: GeneralIssueDetails[];
|
|
115
|
-
systemErrors: GeneralIssueDetails[];
|
|
116
|
-
failureArea: LoaderFailureArea;
|
|
117
|
-
}
|
|
118
|
-
export declare class LoaderProcess implements OrgManagedEntity {
|
|
119
|
-
id: string;
|
|
120
|
-
createdOn?: Date;
|
|
121
|
-
updatedOn?: Date;
|
|
122
|
-
createdById?: string;
|
|
123
|
-
updatedById?: string;
|
|
124
|
-
createdBy?: any;
|
|
125
|
-
updatedBy?: any;
|
|
126
|
-
orgId?: string;
|
|
127
|
-
loaderConfigurationId?: string;
|
|
128
|
-
name?: string;
|
|
129
|
-
endedOn?: Date;
|
|
130
|
-
status: LoadStatus;
|
|
131
|
-
logLevel?: LogLevel;
|
|
132
|
-
processLogs?: string;
|
|
133
|
-
processLogS3File?: string;
|
|
134
|
-
processLogS3FileDownloadLink?: string;
|
|
135
|
-
logsFileId?: string;
|
|
136
|
-
logFileDownloadLink?: string;
|
|
137
|
-
loadProcessResult?: LoadResult;
|
|
138
|
-
loadProcessResultFileId?: string;
|
|
139
|
-
loadProcessResultDownloadLink?: string;
|
|
140
|
-
preprocessingStepResults?: PreprocessingStepStoredResultSummary[];
|
|
141
|
-
processDurationSeconds?: number;
|
|
142
|
-
loadFileId: string;
|
|
143
|
-
loadType: LoadType[];
|
|
144
|
-
federatedMappings?: any;
|
|
145
|
-
conditionalColumns?: ColumnDefinition[];
|
|
146
|
-
assortmentSplit?: AssortmentSplit;
|
|
147
|
-
partialAssortmentUpdate?: boolean;
|
|
148
|
-
assortmentItemDropField?: string;
|
|
149
|
-
workspaceIdentifier?: string;
|
|
150
|
-
propertiesToRemove?: string[];
|
|
151
|
-
badRowsCount?: number;
|
|
152
|
-
uploadErrorCount?: number;
|
|
153
|
-
hasErrors?: boolean;
|
|
154
|
-
parallelWorkerCount?: number;
|
|
155
|
-
messageGroupId?: string;
|
|
156
|
-
isPartialFailure?: boolean;
|
|
157
|
-
}
|
|
158
|
-
export declare enum IssueType {
|
|
159
|
-
CONFIG = "CONFIG",
|
|
160
|
-
INVALID_DATA = "INVALID_DATA",
|
|
161
|
-
MISSING_DATA = "MISSING_DATA",
|
|
162
|
-
DUPLICATE_FEDERATED_ID = "DUPLICATE_FEDERATED_ID",
|
|
163
|
-
SYSTEM_ERROR = "SYSTEM_ERROR",
|
|
164
|
-
HEADER_MISMATCH = "HEADER_MISMATCH",
|
|
165
|
-
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
166
|
-
PERMISSION_DENIED = "PERMISSION_DENIED",
|
|
167
|
-
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
168
|
-
}
|
|
169
|
-
export declare enum LoaderFailureArea {
|
|
170
|
-
PARSING_CSV = "PARSING_CSV",
|
|
171
|
-
TRANSFORMING_DATA = "TRANSFORMING_DATA",
|
|
172
|
-
UPLOADING_DATA = "UPLOADING_DATA",
|
|
173
|
-
VALIDATING_DATA = "VALIDATING_DATA",
|
|
174
|
-
NONE = "NONE"
|
|
175
|
-
}
|
|
176
|
-
export declare enum EntityType {
|
|
177
|
-
COLOR = "color",
|
|
178
|
-
CUSTOM_ENTITY = "custom-entity",
|
|
179
|
-
ITEM = "item",
|
|
180
|
-
PROJECT_ITEM = "project-item",
|
|
181
|
-
ASSORTMENT = "assortment-item"
|
|
182
|
-
}
|
|
1
|
+
import { LogLevel } from './log-level';
|
|
2
|
+
import { OrgManagedEntity } from './org-managed-entity';
|
|
3
|
+
export declare class ColumnDefinition {
|
|
4
|
+
fromProperty?: string;
|
|
5
|
+
toProperty: string;
|
|
6
|
+
conditions?: ConditionalValues[];
|
|
7
|
+
default?: any;
|
|
8
|
+
}
|
|
9
|
+
export declare class ConditionalValues {
|
|
10
|
+
conditional: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class AssortmentSplit {
|
|
14
|
+
partialAssortmentUpdate?: boolean;
|
|
15
|
+
dropField?: string;
|
|
16
|
+
fieldToSplitOn: string;
|
|
17
|
+
values: ValueToAssortment[];
|
|
18
|
+
}
|
|
19
|
+
export declare class ValueToAssortment {
|
|
20
|
+
value: string;
|
|
21
|
+
assortmentId?: string;
|
|
22
|
+
assortmentIdentifier?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface LoaderConfiguration extends OrgManagedEntity {
|
|
25
|
+
name?: string;
|
|
26
|
+
federatedMappings?: any;
|
|
27
|
+
conditionalColumns?: ColumnDefinition[];
|
|
28
|
+
assortmentSplit?: AssortmentSplit;
|
|
29
|
+
workspaceIdentifier?: string;
|
|
30
|
+
propertiesToRemove?: string[];
|
|
31
|
+
}
|
|
32
|
+
export declare enum LoadStatus {
|
|
33
|
+
ACTIVE = "ACTIVE",
|
|
34
|
+
PENDING = "PENDING",
|
|
35
|
+
FAILED = "FAILED",
|
|
36
|
+
COMPLETE = "COMPLETE",
|
|
37
|
+
CANCELED = "CANCELED"
|
|
38
|
+
}
|
|
39
|
+
export declare enum LoadType {
|
|
40
|
+
ITEM = "ITEM",
|
|
41
|
+
PROJECT_ITEM = "PROJECT_ITEM",
|
|
42
|
+
ASSORTMENT = "ASSORTMENT",
|
|
43
|
+
COLOR = "COLOR",
|
|
44
|
+
CUSTOM_ENTITY = "CUSTOM_ENTITY",
|
|
45
|
+
SIZE_RANGE_TEMPLATE = "SIZE_RANGE_TEMPLATE",
|
|
46
|
+
PROJECT = "PROJECT"
|
|
47
|
+
}
|
|
48
|
+
export interface LoadResult {
|
|
49
|
+
colorsLoadResult?: EntityLoadResult;
|
|
50
|
+
customEntitiesLoadResult?: EntityLoadResult;
|
|
51
|
+
itemsLoadResult?: EntityLoadResult;
|
|
52
|
+
projectItemsLoadResult?: EntityLoadResult;
|
|
53
|
+
assortmentItemsLoadResult?: EntityLoadResult;
|
|
54
|
+
transformErrors: any[];
|
|
55
|
+
transformWarnings?: any[];
|
|
56
|
+
generalErrors?: GeneralIssueDetails[];
|
|
57
|
+
generalWarnings?: GeneralIssueDetails[];
|
|
58
|
+
systemErrors?: GeneralIssueDetails[];
|
|
59
|
+
failureArea?: LoaderFailureArea;
|
|
60
|
+
}
|
|
61
|
+
export interface RowLoadError {
|
|
62
|
+
data: any;
|
|
63
|
+
error: any;
|
|
64
|
+
}
|
|
65
|
+
export interface LoaderNumbersSummary {
|
|
66
|
+
numberFamiliesLoaded: number;
|
|
67
|
+
numberOptionsLoaded: number;
|
|
68
|
+
numberProjectItemsLoaded: number;
|
|
69
|
+
numberAssortmentItemsLoaded: number;
|
|
70
|
+
numberColorsLoaded: number;
|
|
71
|
+
numberImagesLoaded: number;
|
|
72
|
+
numberFamiliesFailed: number;
|
|
73
|
+
numberOptionsFailed: number;
|
|
74
|
+
numberProjectItemsFailed: number;
|
|
75
|
+
numberAssortmentItemsFailed: number;
|
|
76
|
+
numberColorsFailed: number;
|
|
77
|
+
numberImagesFailed: number;
|
|
78
|
+
}
|
|
79
|
+
export interface ProcessingIssues {
|
|
80
|
+
rowNumber: number;
|
|
81
|
+
columnIssues: ColumnIssueDetails[];
|
|
82
|
+
}
|
|
83
|
+
export interface ColumnIssueDetails {
|
|
84
|
+
columnName: string;
|
|
85
|
+
message: string;
|
|
86
|
+
issueType: IssueType;
|
|
87
|
+
data: string;
|
|
88
|
+
}
|
|
89
|
+
export interface GeneralIssueDetails {
|
|
90
|
+
message: string;
|
|
91
|
+
issueType: IssueType;
|
|
92
|
+
}
|
|
93
|
+
export interface EntityLoadResult {
|
|
94
|
+
created: any[];
|
|
95
|
+
updated: any[];
|
|
96
|
+
unchanged: any[];
|
|
97
|
+
deleted: any[];
|
|
98
|
+
failedCreate: RowLoadError[];
|
|
99
|
+
failedUpdate: RowLoadError[];
|
|
100
|
+
failedDelete: RowLoadError[];
|
|
101
|
+
failed: boolean;
|
|
102
|
+
}
|
|
103
|
+
export interface PreprocessingStepStoredResultSummary {
|
|
104
|
+
preprocessingStepName: string;
|
|
105
|
+
fileId: string;
|
|
106
|
+
numberOfWarnings: number;
|
|
107
|
+
numberOfErrors: number;
|
|
108
|
+
}
|
|
109
|
+
export interface ProcessedData {
|
|
110
|
+
csvRows: any[];
|
|
111
|
+
transformationErrors: ProcessingIssues[];
|
|
112
|
+
transformationWarnings: ProcessingIssues[];
|
|
113
|
+
generalErrors: GeneralIssueDetails[];
|
|
114
|
+
generalWarnings: GeneralIssueDetails[];
|
|
115
|
+
systemErrors: GeneralIssueDetails[];
|
|
116
|
+
failureArea: LoaderFailureArea;
|
|
117
|
+
}
|
|
118
|
+
export declare class LoaderProcess implements OrgManagedEntity {
|
|
119
|
+
id: string;
|
|
120
|
+
createdOn?: Date;
|
|
121
|
+
updatedOn?: Date;
|
|
122
|
+
createdById?: string;
|
|
123
|
+
updatedById?: string;
|
|
124
|
+
createdBy?: any;
|
|
125
|
+
updatedBy?: any;
|
|
126
|
+
orgId?: string;
|
|
127
|
+
loaderConfigurationId?: string;
|
|
128
|
+
name?: string;
|
|
129
|
+
endedOn?: Date;
|
|
130
|
+
status: LoadStatus;
|
|
131
|
+
logLevel?: LogLevel;
|
|
132
|
+
processLogs?: string;
|
|
133
|
+
processLogS3File?: string;
|
|
134
|
+
processLogS3FileDownloadLink?: string;
|
|
135
|
+
logsFileId?: string;
|
|
136
|
+
logFileDownloadLink?: string;
|
|
137
|
+
loadProcessResult?: LoadResult;
|
|
138
|
+
loadProcessResultFileId?: string;
|
|
139
|
+
loadProcessResultDownloadLink?: string;
|
|
140
|
+
preprocessingStepResults?: PreprocessingStepStoredResultSummary[];
|
|
141
|
+
processDurationSeconds?: number;
|
|
142
|
+
loadFileId: string;
|
|
143
|
+
loadType: LoadType[];
|
|
144
|
+
federatedMappings?: any;
|
|
145
|
+
conditionalColumns?: ColumnDefinition[];
|
|
146
|
+
assortmentSplit?: AssortmentSplit;
|
|
147
|
+
partialAssortmentUpdate?: boolean;
|
|
148
|
+
assortmentItemDropField?: string;
|
|
149
|
+
workspaceIdentifier?: string;
|
|
150
|
+
propertiesToRemove?: string[];
|
|
151
|
+
badRowsCount?: number;
|
|
152
|
+
uploadErrorCount?: number;
|
|
153
|
+
hasErrors?: boolean;
|
|
154
|
+
parallelWorkerCount?: number;
|
|
155
|
+
messageGroupId?: string;
|
|
156
|
+
isPartialFailure?: boolean;
|
|
157
|
+
}
|
|
158
|
+
export declare enum IssueType {
|
|
159
|
+
CONFIG = "CONFIG",
|
|
160
|
+
INVALID_DATA = "INVALID_DATA",
|
|
161
|
+
MISSING_DATA = "MISSING_DATA",
|
|
162
|
+
DUPLICATE_FEDERATED_ID = "DUPLICATE_FEDERATED_ID",
|
|
163
|
+
SYSTEM_ERROR = "SYSTEM_ERROR",
|
|
164
|
+
HEADER_MISMATCH = "HEADER_MISMATCH",
|
|
165
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
166
|
+
PERMISSION_DENIED = "PERMISSION_DENIED",
|
|
167
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
168
|
+
}
|
|
169
|
+
export declare enum LoaderFailureArea {
|
|
170
|
+
PARSING_CSV = "PARSING_CSV",
|
|
171
|
+
TRANSFORMING_DATA = "TRANSFORMING_DATA",
|
|
172
|
+
UPLOADING_DATA = "UPLOADING_DATA",
|
|
173
|
+
VALIDATING_DATA = "VALIDATING_DATA",
|
|
174
|
+
NONE = "NONE"
|
|
175
|
+
}
|
|
176
|
+
export declare enum EntityType {
|
|
177
|
+
COLOR = "color",
|
|
178
|
+
CUSTOM_ENTITY = "custom-entity",
|
|
179
|
+
ITEM = "item",
|
|
180
|
+
PROJECT_ITEM = "project-item",
|
|
181
|
+
ASSORTMENT = "assortment-item"
|
|
182
|
+
}
|
package/lib/loader.js
CHANGED
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EntityType = exports.LoaderFailureArea = exports.IssueType = exports.LoaderProcess = exports.LoadType = exports.LoadStatus = exports.ValueToAssortment = exports.AssortmentSplit = exports.ConditionalValues = exports.ColumnDefinition = void 0;
|
|
4
|
-
class ColumnDefinition {
|
|
5
|
-
fromProperty;
|
|
6
|
-
toProperty;
|
|
7
|
-
conditions;
|
|
8
|
-
default;
|
|
9
|
-
}
|
|
10
|
-
exports.ColumnDefinition = ColumnDefinition;
|
|
11
|
-
class ConditionalValues {
|
|
12
|
-
conditional;
|
|
13
|
-
value;
|
|
14
|
-
}
|
|
15
|
-
exports.ConditionalValues = ConditionalValues;
|
|
16
|
-
class AssortmentSplit {
|
|
17
|
-
partialAssortmentUpdate;
|
|
18
|
-
dropField;
|
|
19
|
-
fieldToSplitOn;
|
|
20
|
-
values;
|
|
21
|
-
}
|
|
22
|
-
exports.AssortmentSplit = AssortmentSplit;
|
|
23
|
-
class ValueToAssortment {
|
|
24
|
-
value;
|
|
25
|
-
assortmentId;
|
|
26
|
-
assortmentIdentifier;
|
|
27
|
-
}
|
|
28
|
-
exports.ValueToAssortment = ValueToAssortment;
|
|
29
|
-
var LoadStatus;
|
|
30
|
-
(function (LoadStatus) {
|
|
31
|
-
LoadStatus["ACTIVE"] = "ACTIVE";
|
|
32
|
-
LoadStatus["PENDING"] = "PENDING";
|
|
33
|
-
LoadStatus["FAILED"] = "FAILED";
|
|
34
|
-
LoadStatus["COMPLETE"] = "COMPLETE";
|
|
35
|
-
LoadStatus["CANCELED"] = "CANCELED";
|
|
36
|
-
})(LoadStatus = exports.LoadStatus || (exports.LoadStatus = {}));
|
|
37
|
-
var LoadType;
|
|
38
|
-
(function (LoadType) {
|
|
39
|
-
LoadType["ITEM"] = "ITEM";
|
|
40
|
-
LoadType["PROJECT_ITEM"] = "PROJECT_ITEM";
|
|
41
|
-
LoadType["ASSORTMENT"] = "ASSORTMENT";
|
|
42
|
-
LoadType["COLOR"] = "COLOR";
|
|
43
|
-
LoadType["CUSTOM_ENTITY"] = "CUSTOM_ENTITY";
|
|
44
|
-
LoadType["SIZE_RANGE_TEMPLATE"] = "SIZE_RANGE_TEMPLATE";
|
|
45
|
-
LoadType["PROJECT"] = "PROJECT";
|
|
46
|
-
})(LoadType = exports.LoadType || (exports.LoadType = {}));
|
|
47
|
-
class LoaderProcess {
|
|
48
|
-
id;
|
|
49
|
-
createdOn;
|
|
50
|
-
updatedOn;
|
|
51
|
-
createdById;
|
|
52
|
-
updatedById;
|
|
53
|
-
createdBy;
|
|
54
|
-
updatedBy;
|
|
55
|
-
orgId;
|
|
56
|
-
loaderConfigurationId;
|
|
57
|
-
name;
|
|
58
|
-
endedOn;
|
|
59
|
-
status;
|
|
60
|
-
logLevel;
|
|
61
|
-
processLogs;
|
|
62
|
-
processLogS3File;
|
|
63
|
-
processLogS3FileDownloadLink;
|
|
64
|
-
logsFileId;
|
|
65
|
-
logFileDownloadLink;
|
|
66
|
-
loadProcessResult;
|
|
67
|
-
loadProcessResultFileId;
|
|
68
|
-
loadProcessResultDownloadLink;
|
|
69
|
-
preprocessingStepResults;
|
|
70
|
-
processDurationSeconds;
|
|
71
|
-
loadFileId;
|
|
72
|
-
loadType;
|
|
73
|
-
federatedMappings;
|
|
74
|
-
conditionalColumns;
|
|
75
|
-
assortmentSplit;
|
|
76
|
-
partialAssortmentUpdate;
|
|
77
|
-
assortmentItemDropField;
|
|
78
|
-
workspaceIdentifier;
|
|
79
|
-
propertiesToRemove;
|
|
80
|
-
badRowsCount;
|
|
81
|
-
uploadErrorCount;
|
|
82
|
-
hasErrors;
|
|
83
|
-
parallelWorkerCount;
|
|
84
|
-
messageGroupId;
|
|
85
|
-
isPartialFailure;
|
|
86
|
-
}
|
|
87
|
-
exports.LoaderProcess = LoaderProcess;
|
|
88
|
-
var IssueType;
|
|
89
|
-
(function (IssueType) {
|
|
90
|
-
IssueType["CONFIG"] = "CONFIG";
|
|
91
|
-
IssueType["INVALID_DATA"] = "INVALID_DATA";
|
|
92
|
-
IssueType["MISSING_DATA"] = "MISSING_DATA";
|
|
93
|
-
IssueType["DUPLICATE_FEDERATED_ID"] = "DUPLICATE_FEDERATED_ID";
|
|
94
|
-
IssueType["SYSTEM_ERROR"] = "SYSTEM_ERROR";
|
|
95
|
-
IssueType["HEADER_MISMATCH"] = "HEADER_MISMATCH";
|
|
96
|
-
IssueType["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
97
|
-
IssueType["PERMISSION_DENIED"] = "PERMISSION_DENIED";
|
|
98
|
-
IssueType["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
99
|
-
})(IssueType = exports.IssueType || (exports.IssueType = {}));
|
|
100
|
-
var LoaderFailureArea;
|
|
101
|
-
(function (LoaderFailureArea) {
|
|
102
|
-
LoaderFailureArea["PARSING_CSV"] = "PARSING_CSV";
|
|
103
|
-
LoaderFailureArea["TRANSFORMING_DATA"] = "TRANSFORMING_DATA";
|
|
104
|
-
LoaderFailureArea["UPLOADING_DATA"] = "UPLOADING_DATA";
|
|
105
|
-
LoaderFailureArea["VALIDATING_DATA"] = "VALIDATING_DATA";
|
|
106
|
-
LoaderFailureArea["NONE"] = "NONE";
|
|
107
|
-
})(LoaderFailureArea = exports.LoaderFailureArea || (exports.LoaderFailureArea = {}));
|
|
108
|
-
var EntityType;
|
|
109
|
-
(function (EntityType) {
|
|
110
|
-
EntityType["COLOR"] = "color";
|
|
111
|
-
EntityType["CUSTOM_ENTITY"] = "custom-entity";
|
|
112
|
-
EntityType["ITEM"] = "item";
|
|
113
|
-
EntityType["PROJECT_ITEM"] = "project-item";
|
|
114
|
-
EntityType["ASSORTMENT"] = "assortment-item";
|
|
115
|
-
})(EntityType = exports.EntityType || (exports.EntityType = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityType = exports.LoaderFailureArea = exports.IssueType = exports.LoaderProcess = exports.LoadType = exports.LoadStatus = exports.ValueToAssortment = exports.AssortmentSplit = exports.ConditionalValues = exports.ColumnDefinition = void 0;
|
|
4
|
+
class ColumnDefinition {
|
|
5
|
+
fromProperty;
|
|
6
|
+
toProperty;
|
|
7
|
+
conditions;
|
|
8
|
+
default;
|
|
9
|
+
}
|
|
10
|
+
exports.ColumnDefinition = ColumnDefinition;
|
|
11
|
+
class ConditionalValues {
|
|
12
|
+
conditional;
|
|
13
|
+
value;
|
|
14
|
+
}
|
|
15
|
+
exports.ConditionalValues = ConditionalValues;
|
|
16
|
+
class AssortmentSplit {
|
|
17
|
+
partialAssortmentUpdate;
|
|
18
|
+
dropField;
|
|
19
|
+
fieldToSplitOn;
|
|
20
|
+
values;
|
|
21
|
+
}
|
|
22
|
+
exports.AssortmentSplit = AssortmentSplit;
|
|
23
|
+
class ValueToAssortment {
|
|
24
|
+
value;
|
|
25
|
+
assortmentId;
|
|
26
|
+
assortmentIdentifier;
|
|
27
|
+
}
|
|
28
|
+
exports.ValueToAssortment = ValueToAssortment;
|
|
29
|
+
var LoadStatus;
|
|
30
|
+
(function (LoadStatus) {
|
|
31
|
+
LoadStatus["ACTIVE"] = "ACTIVE";
|
|
32
|
+
LoadStatus["PENDING"] = "PENDING";
|
|
33
|
+
LoadStatus["FAILED"] = "FAILED";
|
|
34
|
+
LoadStatus["COMPLETE"] = "COMPLETE";
|
|
35
|
+
LoadStatus["CANCELED"] = "CANCELED";
|
|
36
|
+
})(LoadStatus = exports.LoadStatus || (exports.LoadStatus = {}));
|
|
37
|
+
var LoadType;
|
|
38
|
+
(function (LoadType) {
|
|
39
|
+
LoadType["ITEM"] = "ITEM";
|
|
40
|
+
LoadType["PROJECT_ITEM"] = "PROJECT_ITEM";
|
|
41
|
+
LoadType["ASSORTMENT"] = "ASSORTMENT";
|
|
42
|
+
LoadType["COLOR"] = "COLOR";
|
|
43
|
+
LoadType["CUSTOM_ENTITY"] = "CUSTOM_ENTITY";
|
|
44
|
+
LoadType["SIZE_RANGE_TEMPLATE"] = "SIZE_RANGE_TEMPLATE";
|
|
45
|
+
LoadType["PROJECT"] = "PROJECT";
|
|
46
|
+
})(LoadType = exports.LoadType || (exports.LoadType = {}));
|
|
47
|
+
class LoaderProcess {
|
|
48
|
+
id;
|
|
49
|
+
createdOn;
|
|
50
|
+
updatedOn;
|
|
51
|
+
createdById;
|
|
52
|
+
updatedById;
|
|
53
|
+
createdBy;
|
|
54
|
+
updatedBy;
|
|
55
|
+
orgId;
|
|
56
|
+
loaderConfigurationId;
|
|
57
|
+
name;
|
|
58
|
+
endedOn;
|
|
59
|
+
status;
|
|
60
|
+
logLevel;
|
|
61
|
+
processLogs;
|
|
62
|
+
processLogS3File;
|
|
63
|
+
processLogS3FileDownloadLink;
|
|
64
|
+
logsFileId;
|
|
65
|
+
logFileDownloadLink;
|
|
66
|
+
loadProcessResult;
|
|
67
|
+
loadProcessResultFileId;
|
|
68
|
+
loadProcessResultDownloadLink;
|
|
69
|
+
preprocessingStepResults;
|
|
70
|
+
processDurationSeconds;
|
|
71
|
+
loadFileId;
|
|
72
|
+
loadType;
|
|
73
|
+
federatedMappings;
|
|
74
|
+
conditionalColumns;
|
|
75
|
+
assortmentSplit;
|
|
76
|
+
partialAssortmentUpdate;
|
|
77
|
+
assortmentItemDropField;
|
|
78
|
+
workspaceIdentifier;
|
|
79
|
+
propertiesToRemove;
|
|
80
|
+
badRowsCount;
|
|
81
|
+
uploadErrorCount;
|
|
82
|
+
hasErrors;
|
|
83
|
+
parallelWorkerCount;
|
|
84
|
+
messageGroupId;
|
|
85
|
+
isPartialFailure;
|
|
86
|
+
}
|
|
87
|
+
exports.LoaderProcess = LoaderProcess;
|
|
88
|
+
var IssueType;
|
|
89
|
+
(function (IssueType) {
|
|
90
|
+
IssueType["CONFIG"] = "CONFIG";
|
|
91
|
+
IssueType["INVALID_DATA"] = "INVALID_DATA";
|
|
92
|
+
IssueType["MISSING_DATA"] = "MISSING_DATA";
|
|
93
|
+
IssueType["DUPLICATE_FEDERATED_ID"] = "DUPLICATE_FEDERATED_ID";
|
|
94
|
+
IssueType["SYSTEM_ERROR"] = "SYSTEM_ERROR";
|
|
95
|
+
IssueType["HEADER_MISMATCH"] = "HEADER_MISMATCH";
|
|
96
|
+
IssueType["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
97
|
+
IssueType["PERMISSION_DENIED"] = "PERMISSION_DENIED";
|
|
98
|
+
IssueType["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
99
|
+
})(IssueType = exports.IssueType || (exports.IssueType = {}));
|
|
100
|
+
var LoaderFailureArea;
|
|
101
|
+
(function (LoaderFailureArea) {
|
|
102
|
+
LoaderFailureArea["PARSING_CSV"] = "PARSING_CSV";
|
|
103
|
+
LoaderFailureArea["TRANSFORMING_DATA"] = "TRANSFORMING_DATA";
|
|
104
|
+
LoaderFailureArea["UPLOADING_DATA"] = "UPLOADING_DATA";
|
|
105
|
+
LoaderFailureArea["VALIDATING_DATA"] = "VALIDATING_DATA";
|
|
106
|
+
LoaderFailureArea["NONE"] = "NONE";
|
|
107
|
+
})(LoaderFailureArea = exports.LoaderFailureArea || (exports.LoaderFailureArea = {}));
|
|
108
|
+
var EntityType;
|
|
109
|
+
(function (EntityType) {
|
|
110
|
+
EntityType["COLOR"] = "color";
|
|
111
|
+
EntityType["CUSTOM_ENTITY"] = "custom-entity";
|
|
112
|
+
EntityType["ITEM"] = "item";
|
|
113
|
+
EntityType["PROJECT_ITEM"] = "project-item";
|
|
114
|
+
EntityType["ASSORTMENT"] = "assortment-item";
|
|
115
|
+
})(EntityType = exports.EntityType || (exports.EntityType = {}));
|
package/lib/log-level.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare enum LogLevel {
|
|
2
|
-
FATAL = 0,
|
|
3
|
-
ERROR = 1,
|
|
4
|
-
WARN = 2,
|
|
5
|
-
INFO = 3,
|
|
6
|
-
LOG = 4,
|
|
7
|
-
DEBUG = 5
|
|
8
|
-
}
|
|
1
|
+
export declare enum LogLevel {
|
|
2
|
+
FATAL = 0,
|
|
3
|
+
ERROR = 1,
|
|
4
|
+
WARN = 2,
|
|
5
|
+
INFO = 3,
|
|
6
|
+
LOG = 4,
|
|
7
|
+
DEBUG = 5
|
|
8
|
+
}
|