@contrail/entity-types 1.1.52 → 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 CHANGED
@@ -1,3 +1,11 @@
1
+ export declare class InvalidPolicyError extends Error {
2
+ }
3
+ export declare class TimeoutError extends Error {
4
+ }
5
+ export declare class ApiError extends Error {
6
+ details: any;
7
+ constructor(message: any, details: any);
8
+ }
1
9
  export declare abstract class EntityReference {
2
10
  id: string;
3
11
  entityType: string;
@@ -53,7 +61,7 @@ export declare abstract class EntitiesClientBatchCreateOptions {
53
61
  apiVersion?: API_VERSION;
54
62
  suffix?: string;
55
63
  }
56
- declare class EntitiesClientUpdateOptions {
64
+ export declare abstract class EntitiesClientUpdateOptions {
57
65
  entityName?: string;
58
66
  object: any;
59
67
  id?: string;
@@ -94,4 +102,3 @@ export declare abstract class EntitiesClient {
94
102
  abstract delete(options: EntitiesClientDeleteOptions): any;
95
103
  abstract batchDelete(options: EntitiesClientBatchDeleteOptions): any;
96
104
  }
97
- export {};
package/lib/client.js CHANGED
@@ -1,6 +1,21 @@
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 = 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
+ class InvalidPolicyError extends Error {
5
+ }
6
+ exports.InvalidPolicyError = InvalidPolicyError;
7
+ class TimeoutError extends Error {
8
+ }
9
+ exports.TimeoutError = TimeoutError;
10
+ class ApiError extends Error {
11
+ details;
12
+ constructor(message, details) {
13
+ super(message);
14
+ this.details = details;
15
+ this.details = details;
16
+ }
17
+ }
18
+ exports.ApiError = ApiError;
4
19
  class EntityReference {
5
20
  id;
6
21
  entityType;
@@ -66,6 +81,7 @@ class EntitiesClientUpdateOptions {
66
81
  apiVersion;
67
82
  suffix;
68
83
  }
84
+ exports.EntitiesClientUpdateOptions = EntitiesClientUpdateOptions;
69
85
  class EntitiesClientBatchUpdateOptions {
70
86
  entityName;
71
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.52",
3
+ "version": "1.1.54-0",
4
4
  "description": "A types library for Vibeiq entities.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",