@uipath/data-fabric-tool 1.204.0 → 1.205.0-preview.258
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/THIRD-PARTY-NOTICES.md +34 -3
- package/dist/entities-inline-w1hmp4bc.js +2777 -0
- package/dist/federated-payload-k7r4f1y0.js +7333 -0
- package/dist/index.js +8 -4
- package/dist/packager-tool-2wp1xwz4.js +101 -0
- package/dist/packager-tool-hd8rez6s.js +2240 -0
- package/dist/packager-tool-m0btwdsf.js +884 -0
- package/dist/packager-tool-pz3g5mpk.js +2172 -0
- package/dist/{packager-tool-6y4pvhc9.js → packager-tool-w9r3qa12.js} +7226 -15066
- package/dist/packager-tool-xnrdmg37.js +6410 -0
- package/dist/packager-tool.js +5 -1724
- package/dist/tool.js +6 -3
- package/package.json +2 -2
- package/dist/packager-tool-wq4qexcc.js +0 -239
package/dist/tool.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
metadata,
|
|
3
3
|
registerCommands
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-hd8rez6s.js";
|
|
5
|
+
import"./packager-tool-w9r3qa12.js";
|
|
5
6
|
import"./packager-tool-bndhpxxj.js";
|
|
6
|
-
import"./packager-tool-
|
|
7
|
+
import"./packager-tool-2wp1xwz4.js";
|
|
8
|
+
import"./packager-tool-xnrdmg37.js";
|
|
9
|
+
import"./packager-tool-m0btwdsf.js";
|
|
7
10
|
import"./packager-tool-1de529jm.js";
|
|
8
11
|
export {
|
|
9
12
|
metadata,
|
|
10
13
|
registerCommands
|
|
11
14
|
};
|
|
12
15
|
|
|
13
|
-
//# debugId=
|
|
16
|
+
//# debugId=7FB544816EF3D54064756E2164756E21
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/data-fabric-tool",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.205.0-preview.258",
|
|
6
6
|
"description": "Manage Data Fabric entities and records.",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "8f629ee9fa89abf94f197436a60cb3b9620f8b27"
|
|
23
23
|
}
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
// ../common/src/entity-name-rules.ts
|
|
2
|
-
var RESERVED_SQL_KEYWORDS_LOWER = new Set(["group", "order"]);
|
|
3
|
-
var ENTITY_NAME_PATTERN = /^[a-zA-Z][a-zA-Z0-9_]{2,99}$/;
|
|
4
|
-
var FIELD_NAME_PATTERN = /^[a-zA-Z][a-zA-Z0-9]{2,99}$/;
|
|
5
|
-
var RESERVED_FIELD_NAMES_LOWER = new Set([
|
|
6
|
-
"id",
|
|
7
|
-
"createdby",
|
|
8
|
-
"createtime",
|
|
9
|
-
"updatedby",
|
|
10
|
-
"updatetime",
|
|
11
|
-
"recordowner",
|
|
12
|
-
"version"
|
|
13
|
-
]);
|
|
14
|
-
var RESERVED_KEYWORDS_LOWER = new Set([
|
|
15
|
-
"abstract",
|
|
16
|
-
"as",
|
|
17
|
-
"base",
|
|
18
|
-
"bool",
|
|
19
|
-
"break",
|
|
20
|
-
"byte",
|
|
21
|
-
"case",
|
|
22
|
-
"catch",
|
|
23
|
-
"char",
|
|
24
|
-
"checked",
|
|
25
|
-
"class",
|
|
26
|
-
"const",
|
|
27
|
-
"continue",
|
|
28
|
-
"decimal",
|
|
29
|
-
"default",
|
|
30
|
-
"delegate",
|
|
31
|
-
"do",
|
|
32
|
-
"double",
|
|
33
|
-
"else",
|
|
34
|
-
"enum",
|
|
35
|
-
"event",
|
|
36
|
-
"explicit",
|
|
37
|
-
"extern",
|
|
38
|
-
"false",
|
|
39
|
-
"finally",
|
|
40
|
-
"fixed",
|
|
41
|
-
"float",
|
|
42
|
-
"for",
|
|
43
|
-
"foreach",
|
|
44
|
-
"goto",
|
|
45
|
-
"if",
|
|
46
|
-
"implicit",
|
|
47
|
-
"in",
|
|
48
|
-
"int",
|
|
49
|
-
"interface",
|
|
50
|
-
"internal",
|
|
51
|
-
"is",
|
|
52
|
-
"lock",
|
|
53
|
-
"long",
|
|
54
|
-
"namespace",
|
|
55
|
-
"new",
|
|
56
|
-
"null",
|
|
57
|
-
"object",
|
|
58
|
-
"operator",
|
|
59
|
-
"out",
|
|
60
|
-
"override",
|
|
61
|
-
"params",
|
|
62
|
-
"private",
|
|
63
|
-
"protected",
|
|
64
|
-
"public",
|
|
65
|
-
"readonly",
|
|
66
|
-
"ref",
|
|
67
|
-
"return",
|
|
68
|
-
"sbyte",
|
|
69
|
-
"sealed",
|
|
70
|
-
"short",
|
|
71
|
-
"sizeof",
|
|
72
|
-
"stackalloc",
|
|
73
|
-
"static",
|
|
74
|
-
"string",
|
|
75
|
-
"struct",
|
|
76
|
-
"switch",
|
|
77
|
-
"this",
|
|
78
|
-
"throw",
|
|
79
|
-
"true",
|
|
80
|
-
"try",
|
|
81
|
-
"typeof",
|
|
82
|
-
"uint",
|
|
83
|
-
"ulong",
|
|
84
|
-
"unchecked",
|
|
85
|
-
"unsafe",
|
|
86
|
-
"ushort",
|
|
87
|
-
"using",
|
|
88
|
-
"virtual",
|
|
89
|
-
"void",
|
|
90
|
-
"volatile",
|
|
91
|
-
"while",
|
|
92
|
-
"addhandler",
|
|
93
|
-
"addressof",
|
|
94
|
-
"alias",
|
|
95
|
-
"and",
|
|
96
|
-
"andalso",
|
|
97
|
-
"boolean",
|
|
98
|
-
"byref",
|
|
99
|
-
"byval",
|
|
100
|
-
"call",
|
|
101
|
-
"cbool",
|
|
102
|
-
"cbyte",
|
|
103
|
-
"cchar",
|
|
104
|
-
"cdate",
|
|
105
|
-
"cdbl",
|
|
106
|
-
"cdec",
|
|
107
|
-
"cint",
|
|
108
|
-
"clng",
|
|
109
|
-
"cobj",
|
|
110
|
-
"csbyte",
|
|
111
|
-
"cshort",
|
|
112
|
-
"csng",
|
|
113
|
-
"cstr",
|
|
114
|
-
"ctype",
|
|
115
|
-
"cuint",
|
|
116
|
-
"culng",
|
|
117
|
-
"cushort",
|
|
118
|
-
"date",
|
|
119
|
-
"declare",
|
|
120
|
-
"dim",
|
|
121
|
-
"directcast",
|
|
122
|
-
"each",
|
|
123
|
-
"elseif",
|
|
124
|
-
"end",
|
|
125
|
-
"endif",
|
|
126
|
-
"erase",
|
|
127
|
-
"error",
|
|
128
|
-
"exit",
|
|
129
|
-
"friend",
|
|
130
|
-
"function",
|
|
131
|
-
"get",
|
|
132
|
-
"gettype",
|
|
133
|
-
"getxmlnamespace",
|
|
134
|
-
"global",
|
|
135
|
-
"gosub",
|
|
136
|
-
"goto",
|
|
137
|
-
"handles",
|
|
138
|
-
"implements",
|
|
139
|
-
"imports",
|
|
140
|
-
"inherits",
|
|
141
|
-
"integer",
|
|
142
|
-
"isnot",
|
|
143
|
-
"let",
|
|
144
|
-
"lib",
|
|
145
|
-
"like",
|
|
146
|
-
"loop",
|
|
147
|
-
"me",
|
|
148
|
-
"mod",
|
|
149
|
-
"module",
|
|
150
|
-
"mustinherit",
|
|
151
|
-
"mustoverride",
|
|
152
|
-
"mybase",
|
|
153
|
-
"myclass",
|
|
154
|
-
"narrowing",
|
|
155
|
-
"next",
|
|
156
|
-
"not",
|
|
157
|
-
"nothing",
|
|
158
|
-
"notinheritable",
|
|
159
|
-
"notoverridable",
|
|
160
|
-
"of",
|
|
161
|
-
"on",
|
|
162
|
-
"option",
|
|
163
|
-
"optional",
|
|
164
|
-
"or",
|
|
165
|
-
"orelse",
|
|
166
|
-
"overloads",
|
|
167
|
-
"overridable",
|
|
168
|
-
"overrides",
|
|
169
|
-
"paramarray",
|
|
170
|
-
"partial",
|
|
171
|
-
"property",
|
|
172
|
-
"raiseevent",
|
|
173
|
-
"redim",
|
|
174
|
-
"rem",
|
|
175
|
-
"removehandler",
|
|
176
|
-
"resume",
|
|
177
|
-
"select",
|
|
178
|
-
"set",
|
|
179
|
-
"shadows",
|
|
180
|
-
"shared",
|
|
181
|
-
"single",
|
|
182
|
-
"step",
|
|
183
|
-
"stop",
|
|
184
|
-
"structure",
|
|
185
|
-
"sub",
|
|
186
|
-
"synclock",
|
|
187
|
-
"then",
|
|
188
|
-
"to",
|
|
189
|
-
"trycast",
|
|
190
|
-
"uinteger",
|
|
191
|
-
"ushort",
|
|
192
|
-
"variant",
|
|
193
|
-
"wend",
|
|
194
|
-
"when",
|
|
195
|
-
"widening",
|
|
196
|
-
"with",
|
|
197
|
-
"withevents",
|
|
198
|
-
"writeonly",
|
|
199
|
-
"xor"
|
|
200
|
-
]);
|
|
201
|
-
function findReservedNameError(name, kind) {
|
|
202
|
-
if (kind === "field" && RESERVED_FIELD_NAMES_LOWER.has(name.toLowerCase())) {
|
|
203
|
-
return {
|
|
204
|
-
message: `Field name '${name}' is reserved`,
|
|
205
|
-
instructions: "The following field names are reserved by the platform (case-insensitive): Id, CreatedBy, CreateTime, UpdatedBy, UpdateTime, RecordOwner, Version. Pick a different name."
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
if (RESERVED_KEYWORDS_LOWER.has(name.toLowerCase())) {
|
|
209
|
-
return {
|
|
210
|
-
message: `${kind === "entity" ? "Entity" : kind === "field" ? "Field" : "Choice set"} name '${name}' is a reserved C# or VB keyword`,
|
|
211
|
-
instructions: "Reserved keywords are rejected with RESERVED_LANGUAGE_KEYWORDS. Pick a domain-specific rename, for example 'Case' -> 'WorkItem', 'Class' -> 'Category', 'New' -> 'IsNew'."
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
if (kind === "entity" && RESERVED_SQL_KEYWORDS_LOWER.has(name.toLowerCase())) {
|
|
215
|
-
return {
|
|
216
|
-
message: `Entity name '${name}' is a reserved SQL keyword`,
|
|
217
|
-
instructions: "The platform rejects 'Order' and 'Group' as entity names. Pick a domain-specific name such as 'PurchaseOrder' or 'TeamGroup'."
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
return null;
|
|
221
|
-
}
|
|
222
|
-
function validateName(name, kind) {
|
|
223
|
-
const reserved = findReservedNameError(name, kind);
|
|
224
|
-
if (reserved) {
|
|
225
|
-
return reserved;
|
|
226
|
-
}
|
|
227
|
-
const pattern = kind === "field" ? FIELD_NAME_PATTERN : ENTITY_NAME_PATTERN;
|
|
228
|
-
if (!pattern.test(name)) {
|
|
229
|
-
return {
|
|
230
|
-
message: `Invalid ${kind} name '${name}'`,
|
|
231
|
-
instructions: kind === "field" ? "Field names must start with a letter, contain only letters and digits (no underscores), and be 3-100 characters long." : "Names must start with a letter, contain only letters, digits, and underscores, and be 3-100 characters long."
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
return null;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export { findReservedNameError, validateName };
|
|
238
|
-
|
|
239
|
-
//# debugId=2949ADD3AAFCDDA764756E2164756E21
|