@uipath/data-fabric-tool 1.206.0-preview.306 → 1.207.0-preview.307
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/choice-sets-inline-1gv2mydg.js +173 -0
- package/dist/{entities-inline-6cz4y6gd.js → entities-inline-k0qggbgm.js} +429 -824
- package/dist/{federated-payload-1dcd1mck.js → federated-payload-d82r8jsd.js} +309 -7
- package/dist/index.js +9 -6
- package/dist/{packager-tool-8h3n7zh5.js → packager-tool-0whbpj17.js} +255 -248
- package/dist/packager-tool-34pcyhns.js +11 -0
- package/dist/packager-tool-3wzz1wn4.js +37 -0
- package/dist/{packager-tool-0j0r03b9.js → packager-tool-4amqsjff.js} +46 -1077
- package/dist/packager-tool-745zeysc.js +52 -0
- package/dist/{packager-tool-jy2jp2xx.js → packager-tool-7gac4cbd.js} +384 -97
- package/dist/packager-tool-kt0mxbv8.js +1455 -0
- package/dist/{packager-tool-gj7vsn2f.js → packager-tool-skeew4e3.js} +2741 -2566
- package/dist/{packager-tool-b1anyew3.js → packager-tool-spr308qr.js} +13043 -13001
- package/dist/packager-tool-yxv0qfms.js +64 -0
- package/dist/packager-tool-zwqkr7z9.js +2197 -0
- package/dist/packager-tool.js +5 -3
- package/dist/sdk-client-d91ez016.js +13 -0
- package/dist/tool.js +9 -6
- package/package.json +2 -2
- package/dist/packager-tool-cbbznax3.js +0 -101
|
@@ -2,6 +2,245 @@ import {
|
|
|
2
2
|
__require
|
|
3
3
|
} from "./packager-tool-epsr41wx.js";
|
|
4
4
|
|
|
5
|
+
// ../common/src/entity-name-rules.ts
|
|
6
|
+
var RESERVED_SQL_KEYWORDS_LOWER = new Set(["group", "order"]);
|
|
7
|
+
var ENTITY_NAME_PATTERN = /^[a-zA-Z][a-zA-Z0-9_]{2,99}$/;
|
|
8
|
+
var FIELD_NAME_PATTERN = /^[a-zA-Z][a-zA-Z0-9]{2,99}$/;
|
|
9
|
+
var RESERVED_FIELD_NAMES_LOWER = new Set([
|
|
10
|
+
"id",
|
|
11
|
+
"createdby",
|
|
12
|
+
"createtime",
|
|
13
|
+
"updatedby",
|
|
14
|
+
"updatetime",
|
|
15
|
+
"recordowner",
|
|
16
|
+
"version"
|
|
17
|
+
]);
|
|
18
|
+
var RESERVED_KEYWORDS_LOWER = new Set([
|
|
19
|
+
"abstract",
|
|
20
|
+
"as",
|
|
21
|
+
"base",
|
|
22
|
+
"bool",
|
|
23
|
+
"break",
|
|
24
|
+
"byte",
|
|
25
|
+
"case",
|
|
26
|
+
"catch",
|
|
27
|
+
"char",
|
|
28
|
+
"checked",
|
|
29
|
+
"class",
|
|
30
|
+
"const",
|
|
31
|
+
"continue",
|
|
32
|
+
"decimal",
|
|
33
|
+
"default",
|
|
34
|
+
"delegate",
|
|
35
|
+
"do",
|
|
36
|
+
"double",
|
|
37
|
+
"else",
|
|
38
|
+
"enum",
|
|
39
|
+
"event",
|
|
40
|
+
"explicit",
|
|
41
|
+
"extern",
|
|
42
|
+
"false",
|
|
43
|
+
"finally",
|
|
44
|
+
"fixed",
|
|
45
|
+
"float",
|
|
46
|
+
"for",
|
|
47
|
+
"foreach",
|
|
48
|
+
"goto",
|
|
49
|
+
"if",
|
|
50
|
+
"implicit",
|
|
51
|
+
"in",
|
|
52
|
+
"int",
|
|
53
|
+
"interface",
|
|
54
|
+
"internal",
|
|
55
|
+
"is",
|
|
56
|
+
"lock",
|
|
57
|
+
"long",
|
|
58
|
+
"namespace",
|
|
59
|
+
"new",
|
|
60
|
+
"null",
|
|
61
|
+
"object",
|
|
62
|
+
"operator",
|
|
63
|
+
"out",
|
|
64
|
+
"override",
|
|
65
|
+
"params",
|
|
66
|
+
"private",
|
|
67
|
+
"protected",
|
|
68
|
+
"public",
|
|
69
|
+
"readonly",
|
|
70
|
+
"ref",
|
|
71
|
+
"return",
|
|
72
|
+
"sbyte",
|
|
73
|
+
"sealed",
|
|
74
|
+
"short",
|
|
75
|
+
"sizeof",
|
|
76
|
+
"stackalloc",
|
|
77
|
+
"static",
|
|
78
|
+
"string",
|
|
79
|
+
"struct",
|
|
80
|
+
"switch",
|
|
81
|
+
"this",
|
|
82
|
+
"throw",
|
|
83
|
+
"true",
|
|
84
|
+
"try",
|
|
85
|
+
"typeof",
|
|
86
|
+
"uint",
|
|
87
|
+
"ulong",
|
|
88
|
+
"unchecked",
|
|
89
|
+
"unsafe",
|
|
90
|
+
"ushort",
|
|
91
|
+
"using",
|
|
92
|
+
"virtual",
|
|
93
|
+
"void",
|
|
94
|
+
"volatile",
|
|
95
|
+
"while",
|
|
96
|
+
"addhandler",
|
|
97
|
+
"addressof",
|
|
98
|
+
"alias",
|
|
99
|
+
"and",
|
|
100
|
+
"andalso",
|
|
101
|
+
"boolean",
|
|
102
|
+
"byref",
|
|
103
|
+
"byval",
|
|
104
|
+
"call",
|
|
105
|
+
"cbool",
|
|
106
|
+
"cbyte",
|
|
107
|
+
"cchar",
|
|
108
|
+
"cdate",
|
|
109
|
+
"cdbl",
|
|
110
|
+
"cdec",
|
|
111
|
+
"cint",
|
|
112
|
+
"clng",
|
|
113
|
+
"cobj",
|
|
114
|
+
"csbyte",
|
|
115
|
+
"cshort",
|
|
116
|
+
"csng",
|
|
117
|
+
"cstr",
|
|
118
|
+
"ctype",
|
|
119
|
+
"cuint",
|
|
120
|
+
"culng",
|
|
121
|
+
"cushort",
|
|
122
|
+
"date",
|
|
123
|
+
"declare",
|
|
124
|
+
"dim",
|
|
125
|
+
"directcast",
|
|
126
|
+
"each",
|
|
127
|
+
"elseif",
|
|
128
|
+
"end",
|
|
129
|
+
"endif",
|
|
130
|
+
"erase",
|
|
131
|
+
"error",
|
|
132
|
+
"exit",
|
|
133
|
+
"friend",
|
|
134
|
+
"function",
|
|
135
|
+
"get",
|
|
136
|
+
"gettype",
|
|
137
|
+
"getxmlnamespace",
|
|
138
|
+
"global",
|
|
139
|
+
"gosub",
|
|
140
|
+
"goto",
|
|
141
|
+
"handles",
|
|
142
|
+
"implements",
|
|
143
|
+
"imports",
|
|
144
|
+
"inherits",
|
|
145
|
+
"integer",
|
|
146
|
+
"isnot",
|
|
147
|
+
"let",
|
|
148
|
+
"lib",
|
|
149
|
+
"like",
|
|
150
|
+
"loop",
|
|
151
|
+
"me",
|
|
152
|
+
"mod",
|
|
153
|
+
"module",
|
|
154
|
+
"mustinherit",
|
|
155
|
+
"mustoverride",
|
|
156
|
+
"mybase",
|
|
157
|
+
"myclass",
|
|
158
|
+
"narrowing",
|
|
159
|
+
"next",
|
|
160
|
+
"not",
|
|
161
|
+
"nothing",
|
|
162
|
+
"notinheritable",
|
|
163
|
+
"notoverridable",
|
|
164
|
+
"of",
|
|
165
|
+
"on",
|
|
166
|
+
"option",
|
|
167
|
+
"optional",
|
|
168
|
+
"or",
|
|
169
|
+
"orelse",
|
|
170
|
+
"overloads",
|
|
171
|
+
"overridable",
|
|
172
|
+
"overrides",
|
|
173
|
+
"paramarray",
|
|
174
|
+
"partial",
|
|
175
|
+
"property",
|
|
176
|
+
"raiseevent",
|
|
177
|
+
"redim",
|
|
178
|
+
"rem",
|
|
179
|
+
"removehandler",
|
|
180
|
+
"resume",
|
|
181
|
+
"select",
|
|
182
|
+
"set",
|
|
183
|
+
"shadows",
|
|
184
|
+
"shared",
|
|
185
|
+
"single",
|
|
186
|
+
"step",
|
|
187
|
+
"stop",
|
|
188
|
+
"structure",
|
|
189
|
+
"sub",
|
|
190
|
+
"synclock",
|
|
191
|
+
"then",
|
|
192
|
+
"to",
|
|
193
|
+
"trycast",
|
|
194
|
+
"uinteger",
|
|
195
|
+
"ushort",
|
|
196
|
+
"variant",
|
|
197
|
+
"wend",
|
|
198
|
+
"when",
|
|
199
|
+
"widening",
|
|
200
|
+
"with",
|
|
201
|
+
"withevents",
|
|
202
|
+
"writeonly",
|
|
203
|
+
"xor"
|
|
204
|
+
]);
|
|
205
|
+
function findReservedNameError(name, kind) {
|
|
206
|
+
if (kind === "field" && RESERVED_FIELD_NAMES_LOWER.has(name.toLowerCase())) {
|
|
207
|
+
return {
|
|
208
|
+
message: `Field name '${name}' is reserved`,
|
|
209
|
+
instructions: "The following field names are reserved by the platform (case-insensitive): Id, CreatedBy, CreateTime, UpdatedBy, UpdateTime, RecordOwner, Version. Pick a different name."
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
if (RESERVED_KEYWORDS_LOWER.has(name.toLowerCase())) {
|
|
213
|
+
return {
|
|
214
|
+
message: `${kind === "entity" ? "Entity" : kind === "field" ? "Field" : "Choice set"} name '${name}' is a reserved C# or VB keyword`,
|
|
215
|
+
instructions: "Reserved keywords are rejected with RESERVED_LANGUAGE_KEYWORDS. Pick a domain-specific rename, for example 'Case' -> 'WorkItem', 'Class' -> 'Category', 'New' -> 'IsNew'."
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
if (kind === "entity" && RESERVED_SQL_KEYWORDS_LOWER.has(name.toLowerCase())) {
|
|
219
|
+
return {
|
|
220
|
+
message: `Entity name '${name}' is a reserved SQL keyword`,
|
|
221
|
+
instructions: "The platform rejects 'Order' and 'Group' as entity names. Pick a domain-specific name such as 'PurchaseOrder' or 'TeamGroup'."
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
return null;
|
|
225
|
+
}
|
|
226
|
+
function validateNameFormat(name, kind) {
|
|
227
|
+
const pattern = kind === "field" ? FIELD_NAME_PATTERN : ENTITY_NAME_PATTERN;
|
|
228
|
+
if (pattern.test(name)) {
|
|
229
|
+
return null;
|
|
230
|
+
}
|
|
231
|
+
return {
|
|
232
|
+
message: `Invalid ${kind} name '${name}'`,
|
|
233
|
+
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."
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
function validateName(name, kind) {
|
|
237
|
+
const reserved = findReservedNameError(name, kind);
|
|
238
|
+
if (reserved) {
|
|
239
|
+
return reserved;
|
|
240
|
+
}
|
|
241
|
+
return validateNameFormat(name, kind);
|
|
242
|
+
}
|
|
243
|
+
|
|
5
244
|
// ../common/src/telemetry/telemetry-dimensions.ts
|
|
6
245
|
var BaseDimensions = {
|
|
7
246
|
ApplicationName: "ApplicationName",
|
|
@@ -44,13 +283,15 @@ var ProjectDimensions = {
|
|
|
44
283
|
SolutionKey: "SolutionKey",
|
|
45
284
|
SolutionProjectKey: "SolutionProjectKey",
|
|
46
285
|
SolutionIdentityStatus: "SolutionIdentityStatus",
|
|
47
|
-
PreviousSolutionKey: "PreviousSolutionKey"
|
|
286
|
+
PreviousSolutionKey: "PreviousSolutionKey",
|
|
287
|
+
PreviousProjectKey: "PreviousProjectKey"
|
|
48
288
|
};
|
|
49
289
|
var GUID_KEY_DIMENSIONS = new Set([
|
|
50
290
|
ProjectDimensions.ProjectKey,
|
|
51
291
|
ProjectDimensions.SolutionKey,
|
|
52
292
|
ProjectDimensions.SolutionProjectKey,
|
|
53
|
-
ProjectDimensions.PreviousSolutionKey
|
|
293
|
+
ProjectDimensions.PreviousSolutionKey,
|
|
294
|
+
ProjectDimensions.PreviousProjectKey
|
|
54
295
|
]);
|
|
55
296
|
var ShipDimensions = {
|
|
56
297
|
ShipKind: "ShipKind",
|
|
@@ -204,9 +445,7 @@ async function withinProjectIdentityBudget(work, onTimeout) {
|
|
|
204
445
|
}
|
|
205
446
|
}
|
|
206
447
|
|
|
207
|
-
// ../common/src/
|
|
208
|
-
var PSEUDONYM_DOMAIN = "uipath-cli/telemetry/pseudonym/v1:";
|
|
209
|
-
var PSEUDONYM_HEX_LENGTH = 32;
|
|
448
|
+
// ../common/src/sha256.ts
|
|
210
449
|
var SHA256_K = new Uint32Array([
|
|
211
450
|
1116352408,
|
|
212
451
|
1899447441,
|
|
@@ -286,7 +525,7 @@ var SHA256_INITIAL_STATE = new Uint32Array([
|
|
|
286
525
|
function rotr(value, bits) {
|
|
287
526
|
return (value >>> bits | value << 32 - bits) >>> 0;
|
|
288
527
|
}
|
|
289
|
-
function
|
|
528
|
+
function sha256Words(input) {
|
|
290
529
|
const bytes = new TextEncoder().encode(input);
|
|
291
530
|
const paddedLength = bytes.length + 9 + 63 >> 6 << 6;
|
|
292
531
|
const buffer = new Uint8Array(paddedLength);
|
|
@@ -342,12 +581,19 @@ function sha256Hex(input) {
|
|
|
342
581
|
state[6] = state[6] + g >>> 0;
|
|
343
582
|
state[7] = state[7] + h >>> 0;
|
|
344
583
|
}
|
|
584
|
+
return state;
|
|
585
|
+
}
|
|
586
|
+
function sha256Hex(input) {
|
|
345
587
|
let hex = "";
|
|
346
|
-
for (const word of
|
|
588
|
+
for (const word of sha256Words(input)) {
|
|
347
589
|
hex += word.toString(16).padStart(8, "0");
|
|
348
590
|
}
|
|
349
591
|
return hex;
|
|
350
592
|
}
|
|
593
|
+
|
|
594
|
+
// ../common/src/telemetry/pseudonymize.ts
|
|
595
|
+
var PSEUDONYM_DOMAIN = "uipath-cli/telemetry/pseudonym/v1:";
|
|
596
|
+
var PSEUDONYM_HEX_LENGTH = 32;
|
|
351
597
|
function resolveSha256Hex() {
|
|
352
598
|
try {
|
|
353
599
|
const nodeCrypto = __require("node:crypto");
|
|
@@ -743,245 +989,6 @@ function settlePromiseLike(thenable) {
|
|
|
743
989
|
return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error) => [toError(error), undefined]);
|
|
744
990
|
}
|
|
745
991
|
|
|
746
|
-
// ../common/src/entity-name-rules.ts
|
|
747
|
-
var RESERVED_SQL_KEYWORDS_LOWER = new Set(["group", "order"]);
|
|
748
|
-
var ENTITY_NAME_PATTERN = /^[a-zA-Z][a-zA-Z0-9_]{2,99}$/;
|
|
749
|
-
var FIELD_NAME_PATTERN = /^[a-zA-Z][a-zA-Z0-9]{2,99}$/;
|
|
750
|
-
var RESERVED_FIELD_NAMES_LOWER = new Set([
|
|
751
|
-
"id",
|
|
752
|
-
"createdby",
|
|
753
|
-
"createtime",
|
|
754
|
-
"updatedby",
|
|
755
|
-
"updatetime",
|
|
756
|
-
"recordowner",
|
|
757
|
-
"version"
|
|
758
|
-
]);
|
|
759
|
-
var RESERVED_KEYWORDS_LOWER = new Set([
|
|
760
|
-
"abstract",
|
|
761
|
-
"as",
|
|
762
|
-
"base",
|
|
763
|
-
"bool",
|
|
764
|
-
"break",
|
|
765
|
-
"byte",
|
|
766
|
-
"case",
|
|
767
|
-
"catch",
|
|
768
|
-
"char",
|
|
769
|
-
"checked",
|
|
770
|
-
"class",
|
|
771
|
-
"const",
|
|
772
|
-
"continue",
|
|
773
|
-
"decimal",
|
|
774
|
-
"default",
|
|
775
|
-
"delegate",
|
|
776
|
-
"do",
|
|
777
|
-
"double",
|
|
778
|
-
"else",
|
|
779
|
-
"enum",
|
|
780
|
-
"event",
|
|
781
|
-
"explicit",
|
|
782
|
-
"extern",
|
|
783
|
-
"false",
|
|
784
|
-
"finally",
|
|
785
|
-
"fixed",
|
|
786
|
-
"float",
|
|
787
|
-
"for",
|
|
788
|
-
"foreach",
|
|
789
|
-
"goto",
|
|
790
|
-
"if",
|
|
791
|
-
"implicit",
|
|
792
|
-
"in",
|
|
793
|
-
"int",
|
|
794
|
-
"interface",
|
|
795
|
-
"internal",
|
|
796
|
-
"is",
|
|
797
|
-
"lock",
|
|
798
|
-
"long",
|
|
799
|
-
"namespace",
|
|
800
|
-
"new",
|
|
801
|
-
"null",
|
|
802
|
-
"object",
|
|
803
|
-
"operator",
|
|
804
|
-
"out",
|
|
805
|
-
"override",
|
|
806
|
-
"params",
|
|
807
|
-
"private",
|
|
808
|
-
"protected",
|
|
809
|
-
"public",
|
|
810
|
-
"readonly",
|
|
811
|
-
"ref",
|
|
812
|
-
"return",
|
|
813
|
-
"sbyte",
|
|
814
|
-
"sealed",
|
|
815
|
-
"short",
|
|
816
|
-
"sizeof",
|
|
817
|
-
"stackalloc",
|
|
818
|
-
"static",
|
|
819
|
-
"string",
|
|
820
|
-
"struct",
|
|
821
|
-
"switch",
|
|
822
|
-
"this",
|
|
823
|
-
"throw",
|
|
824
|
-
"true",
|
|
825
|
-
"try",
|
|
826
|
-
"typeof",
|
|
827
|
-
"uint",
|
|
828
|
-
"ulong",
|
|
829
|
-
"unchecked",
|
|
830
|
-
"unsafe",
|
|
831
|
-
"ushort",
|
|
832
|
-
"using",
|
|
833
|
-
"virtual",
|
|
834
|
-
"void",
|
|
835
|
-
"volatile",
|
|
836
|
-
"while",
|
|
837
|
-
"addhandler",
|
|
838
|
-
"addressof",
|
|
839
|
-
"alias",
|
|
840
|
-
"and",
|
|
841
|
-
"andalso",
|
|
842
|
-
"boolean",
|
|
843
|
-
"byref",
|
|
844
|
-
"byval",
|
|
845
|
-
"call",
|
|
846
|
-
"cbool",
|
|
847
|
-
"cbyte",
|
|
848
|
-
"cchar",
|
|
849
|
-
"cdate",
|
|
850
|
-
"cdbl",
|
|
851
|
-
"cdec",
|
|
852
|
-
"cint",
|
|
853
|
-
"clng",
|
|
854
|
-
"cobj",
|
|
855
|
-
"csbyte",
|
|
856
|
-
"cshort",
|
|
857
|
-
"csng",
|
|
858
|
-
"cstr",
|
|
859
|
-
"ctype",
|
|
860
|
-
"cuint",
|
|
861
|
-
"culng",
|
|
862
|
-
"cushort",
|
|
863
|
-
"date",
|
|
864
|
-
"declare",
|
|
865
|
-
"dim",
|
|
866
|
-
"directcast",
|
|
867
|
-
"each",
|
|
868
|
-
"elseif",
|
|
869
|
-
"end",
|
|
870
|
-
"endif",
|
|
871
|
-
"erase",
|
|
872
|
-
"error",
|
|
873
|
-
"exit",
|
|
874
|
-
"friend",
|
|
875
|
-
"function",
|
|
876
|
-
"get",
|
|
877
|
-
"gettype",
|
|
878
|
-
"getxmlnamespace",
|
|
879
|
-
"global",
|
|
880
|
-
"gosub",
|
|
881
|
-
"goto",
|
|
882
|
-
"handles",
|
|
883
|
-
"implements",
|
|
884
|
-
"imports",
|
|
885
|
-
"inherits",
|
|
886
|
-
"integer",
|
|
887
|
-
"isnot",
|
|
888
|
-
"let",
|
|
889
|
-
"lib",
|
|
890
|
-
"like",
|
|
891
|
-
"loop",
|
|
892
|
-
"me",
|
|
893
|
-
"mod",
|
|
894
|
-
"module",
|
|
895
|
-
"mustinherit",
|
|
896
|
-
"mustoverride",
|
|
897
|
-
"mybase",
|
|
898
|
-
"myclass",
|
|
899
|
-
"narrowing",
|
|
900
|
-
"next",
|
|
901
|
-
"not",
|
|
902
|
-
"nothing",
|
|
903
|
-
"notinheritable",
|
|
904
|
-
"notoverridable",
|
|
905
|
-
"of",
|
|
906
|
-
"on",
|
|
907
|
-
"option",
|
|
908
|
-
"optional",
|
|
909
|
-
"or",
|
|
910
|
-
"orelse",
|
|
911
|
-
"overloads",
|
|
912
|
-
"overridable",
|
|
913
|
-
"overrides",
|
|
914
|
-
"paramarray",
|
|
915
|
-
"partial",
|
|
916
|
-
"property",
|
|
917
|
-
"raiseevent",
|
|
918
|
-
"redim",
|
|
919
|
-
"rem",
|
|
920
|
-
"removehandler",
|
|
921
|
-
"resume",
|
|
922
|
-
"select",
|
|
923
|
-
"set",
|
|
924
|
-
"shadows",
|
|
925
|
-
"shared",
|
|
926
|
-
"single",
|
|
927
|
-
"step",
|
|
928
|
-
"stop",
|
|
929
|
-
"structure",
|
|
930
|
-
"sub",
|
|
931
|
-
"synclock",
|
|
932
|
-
"then",
|
|
933
|
-
"to",
|
|
934
|
-
"trycast",
|
|
935
|
-
"uinteger",
|
|
936
|
-
"ushort",
|
|
937
|
-
"variant",
|
|
938
|
-
"wend",
|
|
939
|
-
"when",
|
|
940
|
-
"widening",
|
|
941
|
-
"with",
|
|
942
|
-
"withevents",
|
|
943
|
-
"writeonly",
|
|
944
|
-
"xor"
|
|
945
|
-
]);
|
|
946
|
-
function findReservedNameError(name, kind) {
|
|
947
|
-
if (kind === "field" && RESERVED_FIELD_NAMES_LOWER.has(name.toLowerCase())) {
|
|
948
|
-
return {
|
|
949
|
-
message: `Field name '${name}' is reserved`,
|
|
950
|
-
instructions: "The following field names are reserved by the platform (case-insensitive): Id, CreatedBy, CreateTime, UpdatedBy, UpdateTime, RecordOwner, Version. Pick a different name."
|
|
951
|
-
};
|
|
952
|
-
}
|
|
953
|
-
if (RESERVED_KEYWORDS_LOWER.has(name.toLowerCase())) {
|
|
954
|
-
return {
|
|
955
|
-
message: `${kind === "entity" ? "Entity" : kind === "field" ? "Field" : "Choice set"} name '${name}' is a reserved C# or VB keyword`,
|
|
956
|
-
instructions: "Reserved keywords are rejected with RESERVED_LANGUAGE_KEYWORDS. Pick a domain-specific rename, for example 'Case' -> 'WorkItem', 'Class' -> 'Category', 'New' -> 'IsNew'."
|
|
957
|
-
};
|
|
958
|
-
}
|
|
959
|
-
if (kind === "entity" && RESERVED_SQL_KEYWORDS_LOWER.has(name.toLowerCase())) {
|
|
960
|
-
return {
|
|
961
|
-
message: `Entity name '${name}' is a reserved SQL keyword`,
|
|
962
|
-
instructions: "The platform rejects 'Order' and 'Group' as entity names. Pick a domain-specific name such as 'PurchaseOrder' or 'TeamGroup'."
|
|
963
|
-
};
|
|
964
|
-
}
|
|
965
|
-
return null;
|
|
966
|
-
}
|
|
967
|
-
function validateNameFormat(name, kind) {
|
|
968
|
-
const pattern = kind === "field" ? FIELD_NAME_PATTERN : ENTITY_NAME_PATTERN;
|
|
969
|
-
if (pattern.test(name)) {
|
|
970
|
-
return null;
|
|
971
|
-
}
|
|
972
|
-
return {
|
|
973
|
-
message: `Invalid ${kind} name '${name}'`,
|
|
974
|
-
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."
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
function validateName(name, kind) {
|
|
978
|
-
const reserved = findReservedNameError(name, kind);
|
|
979
|
-
if (reserved) {
|
|
980
|
-
return reserved;
|
|
981
|
-
}
|
|
982
|
-
return validateNameFormat(name, kind);
|
|
983
|
-
}
|
|
984
|
-
|
|
985
992
|
// ../common/src/entity-field-rules.ts
|
|
986
993
|
var MAX_SAFE_NUMERIC_BOUND = 9007199254740991;
|
|
987
994
|
var LENGTH_LIMIT_RANGES = {
|
|
@@ -1083,6 +1090,6 @@ function findInvalidFieldConstraints(fields) {
|
|
|
1083
1090
|
return null;
|
|
1084
1091
|
}
|
|
1085
1092
|
|
|
1086
|
-
export { BaseDimensions, CommandDimensions, ErrorDimensions, SkillsDimensions, lowercaseIdDimensionValues, projectIdentityProperties, PROJECT_IDENTITY_LOOKUP_BUDGET_MS, withinProjectIdentityBudget, singleton, recordSuppliedArgumentValues, releaseSuppliedArgumentValues, redactSpanName, redactHttpDependencyName, redactError, redactProperties, describeThrownValue, catchError
|
|
1093
|
+
export { MAX_MULTILINE_MAX_FIELDS, findInvalidFieldConstraints, findReservedNameError, validateNameFormat, validateName, BaseDimensions, CommandDimensions, ErrorDimensions, SkillsDimensions, lowercaseIdDimensionValues, projectIdentityProperties, PROJECT_IDENTITY_LOOKUP_BUDGET_MS, withinProjectIdentityBudget, singleton, recordSuppliedArgumentValues, releaseSuppliedArgumentValues, redactSpanName, redactHttpDependencyName, redactError, redactProperties, describeThrownValue, catchError };
|
|
1087
1094
|
|
|
1088
|
-
//# debugId=
|
|
1095
|
+
//# debugId=1ADD997DBC10737F64756E2164756E21
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ../packager/packager-tool-datafabric/src/reference-keys.ts
|
|
2
|
+
var LOCAL_REFERENCE_KEYS = {
|
|
3
|
+
referenceEntityName: ["RELATIONSHIP"],
|
|
4
|
+
referenceFieldName: ["RELATIONSHIP"],
|
|
5
|
+
choiceSetName: ["CHOICE_SET_SINGLE", "CHOICE_SET_MULTIPLE"]
|
|
6
|
+
};
|
|
7
|
+
var LOCAL_REFERENCE_KEY_NAMES = Object.keys(LOCAL_REFERENCE_KEYS);
|
|
8
|
+
|
|
9
|
+
export { LOCAL_REFERENCE_KEYS, LOCAL_REFERENCE_KEY_NAMES };
|
|
10
|
+
|
|
11
|
+
//# debugId=08666C50A805AFE764756E2164756E21
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getAuthContext,
|
|
3
|
+
UiPath
|
|
4
|
+
} from "./packager-tool-spr308qr.js";
|
|
5
|
+
import {
|
|
6
|
+
extractErrorMessage
|
|
7
|
+
} from "./packager-tool-skeew4e3.js";
|
|
8
|
+
import {
|
|
9
|
+
catchError
|
|
10
|
+
} from "./packager-tool-0whbpj17.js";
|
|
11
|
+
import {
|
|
12
|
+
fail
|
|
13
|
+
} from "./packager-tool-yxv0qfms.js";
|
|
14
|
+
|
|
15
|
+
// src/utils/sdk-client.ts
|
|
16
|
+
var getAuthenticatedContext2 = () => getAuthContext();
|
|
17
|
+
var createDataFabricClient = async (tenantOverride) => {
|
|
18
|
+
const ctx = await getAuthenticatedContext2();
|
|
19
|
+
return new UiPath({
|
|
20
|
+
secret: ctx.accessToken,
|
|
21
|
+
baseUrl: ctx.baseUrl,
|
|
22
|
+
orgName: ctx.organizationName,
|
|
23
|
+
tenantName: tenantOverride || ctx.tenantName
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var connectOrFail2 = async (tenantOverride) => {
|
|
27
|
+
const [clientError, sdk] = await catchError(createDataFabricClient(tenantOverride));
|
|
28
|
+
if (clientError) {
|
|
29
|
+
fail("Error connecting to Data Fabric", await extractErrorMessage(clientError));
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
return sdk;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export { getAuthenticatedContext2, connectOrFail2 };
|
|
36
|
+
|
|
37
|
+
//# debugId=63A53488E52E7C9564756E2164756E21
|