@copado/agentia-cli 0.57.0-alpha.0 → 0.58.0-alpha.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/README.md +1090 -116
- package/dist/commands/cicd/data/commit/create.d.ts +11 -0
- package/dist/commands/cicd/data/commit/create.js +41 -0
- package/dist/commands/cicd/data/commit/create.js.map +1 -0
- package/dist/commands/cicd/data/commit/list.d.ts +10 -0
- package/dist/commands/cicd/data/commit/list.js +42 -0
- package/dist/commands/cicd/data/commit/list.js.map +1 -0
- package/dist/commands/cicd/data/dataset-file/content.d.ts +10 -0
- package/dist/commands/cicd/data/dataset-file/content.js +53 -0
- package/dist/commands/cicd/data/dataset-file/content.js.map +1 -0
- package/dist/commands/cicd/data/dataset-file/list.d.ts +10 -0
- package/dist/commands/cicd/data/dataset-file/list.js +42 -0
- package/dist/commands/cicd/data/dataset-file/list.js.map +1 -0
- package/dist/commands/cicd/data/filter/add.d.ts +13 -0
- package/dist/commands/cicd/data/filter/add.js +42 -0
- package/dist/commands/cicd/data/filter/add.js.map +1 -0
- package/dist/commands/cicd/data/filter/delete.d.ts +10 -0
- package/dist/commands/cicd/data/filter/delete.js +33 -0
- package/dist/commands/cicd/data/filter/delete.js.map +1 -0
- package/dist/commands/cicd/data/filter/list.d.ts +10 -0
- package/dist/commands/cicd/data/filter/list.js +42 -0
- package/dist/commands/cicd/data/filter/list.js.map +1 -0
- package/dist/commands/cicd/data/filter/update.d.ts +14 -0
- package/dist/commands/cicd/data/filter/update.js +46 -0
- package/dist/commands/cicd/data/filter/update.js.map +1 -0
- package/dist/commands/cicd/data/formula/create.d.ts +16 -0
- package/dist/commands/cicd/data/formula/create.js +62 -0
- package/dist/commands/cicd/data/formula/create.js.map +1 -0
- package/dist/commands/cicd/data/formula/list.d.ts +10 -0
- package/dist/commands/cicd/data/formula/list.js +42 -0
- package/dist/commands/cicd/data/formula/list.js.map +1 -0
- package/dist/commands/cicd/data/formula/update.d.ts +18 -0
- package/dist/commands/cicd/data/formula/update.js +78 -0
- package/dist/commands/cicd/data/formula/update.js.map +1 -0
- package/dist/commands/cicd/data/records/match.d.ts +11 -0
- package/dist/commands/cicd/data/records/match.js +39 -0
- package/dist/commands/cicd/data/records/match.js.map +1 -0
- package/dist/commands/cicd/data/records/search.d.ts +14 -0
- package/dist/commands/cicd/data/records/search.js +65 -0
- package/dist/commands/cicd/data/records/search.js.map +1 -0
- package/dist/commands/cicd/data/sobject/fields.d.ts +13 -0
- package/dist/commands/cicd/data/sobject/fields.js +56 -0
- package/dist/commands/cicd/data/sobject/fields.js.map +1 -0
- package/dist/commands/cicd/data/sobject/relationships.d.ts +13 -0
- package/dist/commands/cicd/data/sobject/relationships.js +66 -0
- package/dist/commands/cicd/data/sobject/relationships.js.map +1 -0
- package/dist/commands/cicd/data/sync/apply.d.ts +11 -0
- package/dist/commands/cicd/data/sync/apply.js +40 -0
- package/dist/commands/cicd/data/sync/apply.js.map +1 -0
- package/dist/commands/cicd/data/sync/preview-updates.d.ts +11 -0
- package/dist/commands/cicd/data/sync/preview-updates.js +58 -0
- package/dist/commands/cicd/data/sync/preview-updates.js.map +1 -0
- package/dist/commands/cicd/data/template/convert-old.d.ts +9 -0
- package/dist/commands/cicd/data/template/convert-old.js +29 -0
- package/dist/commands/cicd/data/template/convert-old.js.map +1 -0
- package/dist/commands/cicd/data/template/create.d.ts +13 -0
- package/dist/commands/cicd/data/template/create.js +56 -0
- package/dist/commands/cicd/data/template/create.js.map +1 -0
- package/dist/commands/cicd/data/template/delete.d.ts +9 -0
- package/dist/commands/cicd/data/template/delete.js +29 -0
- package/dist/commands/cicd/data/template/delete.js.map +1 -0
- package/dist/commands/cicd/data/template/get-detail.d.ts +10 -0
- package/dist/commands/cicd/data/template/get-detail.js +29 -0
- package/dist/commands/cicd/data/template/get-detail.js.map +1 -0
- package/dist/commands/cicd/data/template/get.d.ts +10 -0
- package/dist/commands/cicd/data/template/get.js +29 -0
- package/dist/commands/cicd/data/template/get.js.map +1 -0
- package/dist/commands/cicd/data/template/list.d.ts +11 -0
- package/dist/commands/cicd/data/template/list.js +44 -0
- package/dist/commands/cicd/data/template/list.js.map +1 -0
- package/dist/commands/cicd/data/template/save-detail.d.ts +13 -0
- package/dist/commands/cicd/data/template/save-detail.js +42 -0
- package/dist/commands/cicd/data/template/save-detail.js.map +1 -0
- package/dist/commands/cicd/function/defaults.d.ts +12 -0
- package/dist/commands/cicd/function/defaults.js +31 -0
- package/dist/commands/cicd/function/defaults.js.map +1 -0
- package/dist/commands/cicd/function/delete.d.ts +11 -0
- package/dist/commands/cicd/function/delete.js +29 -0
- package/dist/commands/cicd/function/delete.js.map +1 -0
- package/dist/commands/cicd/function/get.d.ts +10 -0
- package/dist/commands/cicd/function/get.js +30 -0
- package/dist/commands/cicd/function/get.js.map +1 -0
- package/dist/commands/cicd/function/list.d.ts +10 -0
- package/dist/commands/cicd/function/list.js +36 -0
- package/dist/commands/cicd/function/list.js.map +1 -0
- package/dist/commands/cicd/function/result/get.d.ts +10 -0
- package/dist/commands/cicd/function/result/get.js +30 -0
- package/dist/commands/cicd/function/result/get.js.map +1 -0
- package/dist/commands/cicd/function/result/log/get.d.ts +17 -0
- package/dist/commands/cicd/function/result/log/get.js +41 -0
- package/dist/commands/cicd/function/result/log/get.js.map +1 -0
- package/dist/commands/cicd/function/run-local.d.ts +17 -0
- package/dist/commands/cicd/function/run-local.js +64 -0
- package/dist/commands/cicd/function/run-local.js.map +1 -0
- package/dist/commands/cicd/function/run.d.ts +16 -0
- package/dist/commands/cicd/function/run.js +42 -0
- package/dist/commands/cicd/function/run.js.map +1 -0
- package/dist/commands/cicd/function/upsert.d.ts +27 -0
- package/dist/commands/cicd/function/upsert.js +45 -0
- package/dist/commands/cicd/function/upsert.js.map +1 -0
- package/dist/lib/cicd-gateway.js +3 -2
- package/dist/lib/cicd-gateway.js.map +1 -1
- package/dist/lib/data-flags.d.ts +14 -0
- package/dist/lib/data-flags.js +61 -0
- package/dist/lib/data-flags.js.map +1 -0
- package/dist/lib/data-types.d.ts +322 -0
- package/dist/lib/data-types.js +176 -0
- package/dist/lib/data-types.js.map +1 -0
- package/dist/lib/function-flags.d.ts +69 -0
- package/dist/lib/function-flags.js +199 -0
- package/dist/lib/function-flags.js.map +1 -0
- package/dist/lib/function-local-run.d.ts +64 -0
- package/dist/lib/function-local-run.js +148 -0
- package/dist/lib/function-local-run.js.map +1 -0
- package/dist/lib/function-types.d.ts +106 -0
- package/dist/lib/function-types.js +171 -0
- package/dist/lib/function-types.js.map +1 -0
- package/dist/lib/mcp/data-tools.d.ts +159 -0
- package/dist/lib/mcp/data-tools.js +547 -0
- package/dist/lib/mcp/data-tools.js.map +1 -0
- package/dist/lib/mcp/tools.d.ts +188 -0
- package/dist/lib/mcp/tools.js +215 -0
- package/dist/lib/mcp/tools.js.map +1 -1
- package/dist/lib/salesforce-id.d.ts +9 -0
- package/dist/lib/salesforce-id.js +30 -0
- package/dist/lib/salesforce-id.js.map +1 -1
- package/dist/lib/sf-org-context.js +5 -5
- package/dist/lib/sf-org-context.js.map +1 -1
- package/oclif.manifest.json +5006 -3141
- package/package.json +28 -1
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
export declare const DATA_TEMPLATES_BASE = "/release/data-templates";
|
|
2
|
+
export type DataTemplate = {
|
|
3
|
+
actionType?: null | string;
|
|
4
|
+
active?: boolean | null;
|
|
5
|
+
createdBy?: null | string;
|
|
6
|
+
createdDate?: null | string;
|
|
7
|
+
id: string;
|
|
8
|
+
lastModified?: null | string;
|
|
9
|
+
mainObject?: null | string;
|
|
10
|
+
name: string;
|
|
11
|
+
sourceEnvironmentId?: null | string;
|
|
12
|
+
sourceOrgId?: null | string;
|
|
13
|
+
sourceOrgName?: null | string;
|
|
14
|
+
status?: null | string;
|
|
15
|
+
};
|
|
16
|
+
export type DataTemplateMainObject = {
|
|
17
|
+
apiName: string;
|
|
18
|
+
label: string;
|
|
19
|
+
};
|
|
20
|
+
export type CreateDataTemplateRequest = {
|
|
21
|
+
apiName: string;
|
|
22
|
+
credentialId: string;
|
|
23
|
+
mainObject: DataTemplateMainObject;
|
|
24
|
+
templateName: string;
|
|
25
|
+
};
|
|
26
|
+
export type TemplateAnonymizer = {
|
|
27
|
+
maintainFormat: boolean;
|
|
28
|
+
replaceValue?: undefined;
|
|
29
|
+
type: 'Scramble';
|
|
30
|
+
} | {
|
|
31
|
+
maintainFormat?: undefined;
|
|
32
|
+
replaceValue: string;
|
|
33
|
+
type: 'Replace';
|
|
34
|
+
} | {
|
|
35
|
+
maintainFormat?: undefined;
|
|
36
|
+
replaceValue?: undefined;
|
|
37
|
+
type: 'None';
|
|
38
|
+
};
|
|
39
|
+
export type TemplateColumn = {
|
|
40
|
+
anonymizerType?: TemplateAnonymizer;
|
|
41
|
+
externalId?: boolean;
|
|
42
|
+
isSelected?: boolean;
|
|
43
|
+
lookUpType?: string;
|
|
44
|
+
name: string;
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
export type ExternalIdGeneration = {
|
|
48
|
+
fields?: string[];
|
|
49
|
+
generateExternalId?: boolean;
|
|
50
|
+
needsHashing?: boolean;
|
|
51
|
+
recordMatchingFormulaId?: string;
|
|
52
|
+
recordMatchingFormulaName?: string;
|
|
53
|
+
};
|
|
54
|
+
export type TemplateRelation = {
|
|
55
|
+
fieldName?: string;
|
|
56
|
+
relationName?: string;
|
|
57
|
+
templateId: string;
|
|
58
|
+
};
|
|
59
|
+
export type AutoUpdateMode = 'ask' | 'auto' | 'manual';
|
|
60
|
+
export type V2TemplateDetail = {
|
|
61
|
+
apiName?: string;
|
|
62
|
+
attachmentOption?: string;
|
|
63
|
+
autoUpdate?: AutoUpdateMode;
|
|
64
|
+
batchSize?: number;
|
|
65
|
+
childTemplates?: TemplateRelation[];
|
|
66
|
+
columns?: TemplateColumn[];
|
|
67
|
+
continueOnError?: null | string;
|
|
68
|
+
externalIdField?: string;
|
|
69
|
+
externalIdGeneration?: ExternalIdGeneration;
|
|
70
|
+
fileOption?: string;
|
|
71
|
+
filters?: string[];
|
|
72
|
+
limit?: number;
|
|
73
|
+
matchOwner?: boolean;
|
|
74
|
+
matchRecordType?: boolean;
|
|
75
|
+
parentTemplates?: TemplateRelation[];
|
|
76
|
+
queryTemplate?: string;
|
|
77
|
+
rawFilters?: object[];
|
|
78
|
+
table?: string;
|
|
79
|
+
templateId: string;
|
|
80
|
+
templateName?: string;
|
|
81
|
+
virtualExternalIdEnabled?: boolean;
|
|
82
|
+
virtualIdGeneration?: ExternalIdGeneration;
|
|
83
|
+
};
|
|
84
|
+
export type V2Template = {
|
|
85
|
+
application?: string;
|
|
86
|
+
applicationModule?: string;
|
|
87
|
+
details?: V2TemplateDetail[];
|
|
88
|
+
mainObject?: DataTemplateMainObject;
|
|
89
|
+
schemaCredential?: string;
|
|
90
|
+
status?: string;
|
|
91
|
+
templateApiName?: string;
|
|
92
|
+
templateId?: string;
|
|
93
|
+
templateName?: string;
|
|
94
|
+
version: number;
|
|
95
|
+
};
|
|
96
|
+
export type DataTemplateSyncEntryRequest = {
|
|
97
|
+
fieldApiName: string;
|
|
98
|
+
fieldType: string;
|
|
99
|
+
mainTemplateId: string;
|
|
100
|
+
objectApiName: string;
|
|
101
|
+
operation?: string;
|
|
102
|
+
templateId: string;
|
|
103
|
+
};
|
|
104
|
+
export type DataTemplateSyncResponseEntry = DataTemplateSyncEntryRequest & {
|
|
105
|
+
errorMessage?: null | string;
|
|
106
|
+
needsAttention?: boolean;
|
|
107
|
+
synced?: boolean;
|
|
108
|
+
templateName?: null | string;
|
|
109
|
+
};
|
|
110
|
+
export type OverrideSelection = {
|
|
111
|
+
filters?: string[];
|
|
112
|
+
objectName: string;
|
|
113
|
+
queryTemplate?: string;
|
|
114
|
+
templateId: string;
|
|
115
|
+
};
|
|
116
|
+
export type DataRecordRequest = {
|
|
117
|
+
changedDateFrom?: null | string;
|
|
118
|
+
credentialId: string;
|
|
119
|
+
dataTemplateId: string;
|
|
120
|
+
detail?: null | Record<string, V2TemplateDetail>;
|
|
121
|
+
overrideSelection?: null | OverrideSelection[];
|
|
122
|
+
};
|
|
123
|
+
export type DataRecord = {
|
|
124
|
+
createdDate?: string;
|
|
125
|
+
detail?: Record<string, unknown>;
|
|
126
|
+
externalIdField?: null | string;
|
|
127
|
+
externalIdGeneration?: {
|
|
128
|
+
generated?: unknown;
|
|
129
|
+
validation?: {
|
|
130
|
+
isValid?: boolean;
|
|
131
|
+
warning?: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
id: string;
|
|
135
|
+
lastModifiedBy?: string;
|
|
136
|
+
lastModifiedDate?: string;
|
|
137
|
+
name: string;
|
|
138
|
+
templateIds?: string[];
|
|
139
|
+
type: string;
|
|
140
|
+
};
|
|
141
|
+
export type DataRecordSearchResult = {
|
|
142
|
+
currentPage?: number;
|
|
143
|
+
data: DataRecord[];
|
|
144
|
+
detail?: Record<string, V2TemplateDetail>;
|
|
145
|
+
hasMore?: boolean | null;
|
|
146
|
+
nextCursor?: null | string;
|
|
147
|
+
pageSize?: number;
|
|
148
|
+
totalPages?: number;
|
|
149
|
+
totalRecords?: number;
|
|
150
|
+
};
|
|
151
|
+
export type MatchDataRecordRequest = {
|
|
152
|
+
environmentId: string;
|
|
153
|
+
externalIdFieldValue?: null | string;
|
|
154
|
+
sourceRecord: DataRecord;
|
|
155
|
+
template: V2TemplateDetail;
|
|
156
|
+
};
|
|
157
|
+
export type RecordMatchingFormulaVm = {
|
|
158
|
+
field1?: null | string;
|
|
159
|
+
field2?: null | string;
|
|
160
|
+
field3?: null | string;
|
|
161
|
+
formula?: string;
|
|
162
|
+
hashFormula?: boolean;
|
|
163
|
+
id: string;
|
|
164
|
+
name: string;
|
|
165
|
+
objectApiName: string;
|
|
166
|
+
};
|
|
167
|
+
export type RecordMatchingFormulaRequest = {
|
|
168
|
+
fields: string[];
|
|
169
|
+
hashFormula?: boolean;
|
|
170
|
+
name: string;
|
|
171
|
+
objectApiName: string;
|
|
172
|
+
};
|
|
173
|
+
export type DataCommitApiRequest = {
|
|
174
|
+
commitMessage: string;
|
|
175
|
+
dataTemplateId: string;
|
|
176
|
+
destinationEnvironmentId: string;
|
|
177
|
+
detail: Record<string, V2TemplateDetail>;
|
|
178
|
+
fullTemplate: boolean;
|
|
179
|
+
partialRecords?: DataRecord[];
|
|
180
|
+
records?: DataRecord[];
|
|
181
|
+
sourceEnvironmentId: string;
|
|
182
|
+
sourceOrgId: string;
|
|
183
|
+
userStoryId: string;
|
|
184
|
+
};
|
|
185
|
+
export type DataCommitResponse = {
|
|
186
|
+
commitType: 'data_full' | 'data_manual';
|
|
187
|
+
jobExecution?: null | {
|
|
188
|
+
id: string;
|
|
189
|
+
};
|
|
190
|
+
link?: null | string;
|
|
191
|
+
recordsProcessed?: null | number;
|
|
192
|
+
userStoryCommit?: null | object;
|
|
193
|
+
};
|
|
194
|
+
export type UserStoryDataCommitRecord = {
|
|
195
|
+
commitMessage: string;
|
|
196
|
+
createdDate?: string;
|
|
197
|
+
datasetId?: null | string;
|
|
198
|
+
datasetName?: null | string;
|
|
199
|
+
id: string;
|
|
200
|
+
link?: null | string;
|
|
201
|
+
};
|
|
202
|
+
export type DatasetFileMetadata = {
|
|
203
|
+
contentVersionId: string;
|
|
204
|
+
fileName: string;
|
|
205
|
+
id: string;
|
|
206
|
+
lastModifiedBy?: string;
|
|
207
|
+
lastModifiedDate?: string;
|
|
208
|
+
};
|
|
209
|
+
export type DatasetFileContentResult = {
|
|
210
|
+
contentBase64: string;
|
|
211
|
+
contentVersionId: string;
|
|
212
|
+
id: string;
|
|
213
|
+
};
|
|
214
|
+
export type AdvancedFilterObjectFilter = {
|
|
215
|
+
filters?: string[];
|
|
216
|
+
isSelected?: boolean;
|
|
217
|
+
objectName: string;
|
|
218
|
+
queryTemplate?: string;
|
|
219
|
+
templateId?: string;
|
|
220
|
+
};
|
|
221
|
+
export type AdvancedFilterRequest = {
|
|
222
|
+
filterName: string;
|
|
223
|
+
objectFilters: AdvancedFilterObjectFilter[];
|
|
224
|
+
};
|
|
225
|
+
export type AdvancedFilter = AdvancedFilterRequest & {
|
|
226
|
+
uuid: string;
|
|
227
|
+
};
|
|
228
|
+
export type CommitChange = {
|
|
229
|
+
action?: string;
|
|
230
|
+
category?: string;
|
|
231
|
+
message?: string;
|
|
232
|
+
name: string;
|
|
233
|
+
rawJson?: string;
|
|
234
|
+
selections?: string[];
|
|
235
|
+
type: string;
|
|
236
|
+
};
|
|
237
|
+
export type DataTemplateUpdatePreviewRequest = {
|
|
238
|
+
changes: CommitChange[];
|
|
239
|
+
credentialId: string;
|
|
240
|
+
pipelineId: string;
|
|
241
|
+
};
|
|
242
|
+
export type DataTemplateUpdatePreview = {
|
|
243
|
+
active?: boolean;
|
|
244
|
+
autoUpdate?: AutoUpdateMode;
|
|
245
|
+
fieldApiName: string;
|
|
246
|
+
fieldType?: string;
|
|
247
|
+
mainTemplateId: string;
|
|
248
|
+
mainTemplateName?: string;
|
|
249
|
+
needsAttention?: boolean;
|
|
250
|
+
objectApiName: string;
|
|
251
|
+
operation?: null | string;
|
|
252
|
+
schemaCredentialId?: string;
|
|
253
|
+
schemaCredentialName?: string;
|
|
254
|
+
schemaEnvironmentId?: string;
|
|
255
|
+
templateId: string;
|
|
256
|
+
};
|
|
257
|
+
export type SObjectRelationships = {
|
|
258
|
+
children: Array<{
|
|
259
|
+
childSObject: string;
|
|
260
|
+
field: string;
|
|
261
|
+
relationshipName: string;
|
|
262
|
+
}>;
|
|
263
|
+
objectApiName: string;
|
|
264
|
+
objectLabel?: null | string;
|
|
265
|
+
parents: Array<{
|
|
266
|
+
field: string;
|
|
267
|
+
referenceTo: string[];
|
|
268
|
+
relationshipName: string;
|
|
269
|
+
}>;
|
|
270
|
+
};
|
|
271
|
+
export type EntityField = {
|
|
272
|
+
calculated?: boolean;
|
|
273
|
+
createable?: boolean;
|
|
274
|
+
dataType?: string;
|
|
275
|
+
externalId?: boolean;
|
|
276
|
+
filterable?: boolean;
|
|
277
|
+
isReference?: boolean;
|
|
278
|
+
label?: string;
|
|
279
|
+
name: string;
|
|
280
|
+
picklistValues?: Array<{
|
|
281
|
+
active?: boolean;
|
|
282
|
+
value: string;
|
|
283
|
+
}>;
|
|
284
|
+
referenceTo?: string[];
|
|
285
|
+
required?: boolean;
|
|
286
|
+
updateable?: boolean;
|
|
287
|
+
};
|
|
288
|
+
export type SObjectFields = {
|
|
289
|
+
fields: EntityField[];
|
|
290
|
+
objectApiName: string;
|
|
291
|
+
objectLabel?: null | string;
|
|
292
|
+
};
|
|
293
|
+
export declare function dataTemplatesListEndpoint(options?: {
|
|
294
|
+
active?: boolean;
|
|
295
|
+
fetchRelated?: boolean;
|
|
296
|
+
}): string;
|
|
297
|
+
export declare function dataTemplateEndpoint(id: string): string;
|
|
298
|
+
export declare function dataTemplateDetailEndpoint(id: string): string;
|
|
299
|
+
export declare function dataTemplateConvertOldEndpoint(id: string): string;
|
|
300
|
+
export declare function dataTemplatesSyncEndpoint(): string;
|
|
301
|
+
export declare function dataTemplatesRecordsEndpoint(): string;
|
|
302
|
+
export declare function dataTemplatesRecordsMatchEndpoint(): string;
|
|
303
|
+
export declare function dataTemplateRecordMatchingFormulasEndpoint(dataTemplateId: string): string;
|
|
304
|
+
export declare function recordMatchingFormulasByObjectEndpoint(objectApiName: string): string;
|
|
305
|
+
export declare function recordMatchingFormulaEndpoint(formulaId: string): string;
|
|
306
|
+
export declare function dataTemplatesCommitEndpoint(): string;
|
|
307
|
+
export declare function dataTemplateUpdatesEndpoint(): string;
|
|
308
|
+
export declare function advancedFiltersEndpoint(dataTemplateId: string): string;
|
|
309
|
+
export declare function advancedFilterEndpoint(dataTemplateId: string, uuid: string): string;
|
|
310
|
+
export declare function sobjectRelationshipsEndpoint(sobjectApiName: string, credentialId: string): string;
|
|
311
|
+
export declare function sobjectFieldsEndpoint(sobjectApiName: string, credentialId: string): string;
|
|
312
|
+
export declare function userStoryDataCommitsEndpoint(userStoryId: string): string;
|
|
313
|
+
export declare function datasetFilesEndpoint(userStoryDataCommitId: string): string;
|
|
314
|
+
export declare function datasetFileContentEndpoint(contentVersionId: string): string;
|
|
315
|
+
export declare function normalizeDataTemplates(response: unknown): DataTemplate[];
|
|
316
|
+
export declare function formatDataTemplateTable(templates: DataTemplate[]): string;
|
|
317
|
+
export declare function formatDataRecordTable(records: DataRecord[]): string;
|
|
318
|
+
export declare function formatUserStoryDataCommitTable(commits: UserStoryDataCommitRecord[]): string;
|
|
319
|
+
export declare function formatDatasetFileTable(files: DatasetFileMetadata[]): string;
|
|
320
|
+
export declare function formatAdvancedFilterTable(filters: AdvancedFilter[]): string;
|
|
321
|
+
export declare function formatRecordMatchingFormulaTable(formulas: RecordMatchingFormulaVm[]): string;
|
|
322
|
+
export declare function formatSyncResultTable(entries: DataTemplateSyncResponseEntry[]): string;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { cellValue, table } from './format.js';
|
|
2
|
+
export const DATA_TEMPLATES_BASE = '/release/data-templates';
|
|
3
|
+
export function dataTemplatesListEndpoint(options) {
|
|
4
|
+
const params = new URLSearchParams();
|
|
5
|
+
if (options?.fetchRelated !== undefined) {
|
|
6
|
+
params.set('fetchRelated', String(options.fetchRelated));
|
|
7
|
+
}
|
|
8
|
+
if (options?.active !== undefined) {
|
|
9
|
+
params.set('active', String(options.active));
|
|
10
|
+
}
|
|
11
|
+
const query = params.toString();
|
|
12
|
+
return query.length > 0 ? `${DATA_TEMPLATES_BASE}?${query}` : DATA_TEMPLATES_BASE;
|
|
13
|
+
}
|
|
14
|
+
export function dataTemplateEndpoint(id) {
|
|
15
|
+
return `${DATA_TEMPLATES_BASE}/${encodeURIComponent(id)}`;
|
|
16
|
+
}
|
|
17
|
+
export function dataTemplateDetailEndpoint(id) {
|
|
18
|
+
return `${dataTemplateEndpoint(id)}/detail`;
|
|
19
|
+
}
|
|
20
|
+
export function dataTemplateConvertOldEndpoint(id) {
|
|
21
|
+
return `${DATA_TEMPLATES_BASE}/convert-old/${encodeURIComponent(id)}`;
|
|
22
|
+
}
|
|
23
|
+
export function dataTemplatesSyncEndpoint() {
|
|
24
|
+
return `${DATA_TEMPLATES_BASE}/sync`;
|
|
25
|
+
}
|
|
26
|
+
export function dataTemplatesRecordsEndpoint() {
|
|
27
|
+
return `${DATA_TEMPLATES_BASE}/records`;
|
|
28
|
+
}
|
|
29
|
+
export function dataTemplatesRecordsMatchEndpoint() {
|
|
30
|
+
return `${DATA_TEMPLATES_BASE}/records/match`;
|
|
31
|
+
}
|
|
32
|
+
export function dataTemplateRecordMatchingFormulasEndpoint(dataTemplateId) {
|
|
33
|
+
return `${dataTemplateEndpoint(dataTemplateId)}/record-matching-formulas`;
|
|
34
|
+
}
|
|
35
|
+
export function recordMatchingFormulasByObjectEndpoint(objectApiName) {
|
|
36
|
+
return `${DATA_TEMPLATES_BASE}/record-matching-formulas/${encodeURIComponent(objectApiName)}`;
|
|
37
|
+
}
|
|
38
|
+
export function recordMatchingFormulaEndpoint(formulaId) {
|
|
39
|
+
return `${DATA_TEMPLATES_BASE}/record-matching-formulas/${encodeURIComponent(formulaId)}`;
|
|
40
|
+
}
|
|
41
|
+
export function dataTemplatesCommitEndpoint() {
|
|
42
|
+
return `${DATA_TEMPLATES_BASE}/commit`;
|
|
43
|
+
}
|
|
44
|
+
export function dataTemplateUpdatesEndpoint() {
|
|
45
|
+
return `${DATA_TEMPLATES_BASE}/commit/data-template-updates`;
|
|
46
|
+
}
|
|
47
|
+
export function advancedFiltersEndpoint(dataTemplateId) {
|
|
48
|
+
return `${DATA_TEMPLATES_BASE}/advanced-filters/${encodeURIComponent(dataTemplateId)}`;
|
|
49
|
+
}
|
|
50
|
+
export function advancedFilterEndpoint(dataTemplateId, uuid) {
|
|
51
|
+
return `${advancedFiltersEndpoint(dataTemplateId)}/${encodeURIComponent(uuid)}`;
|
|
52
|
+
}
|
|
53
|
+
export function sobjectRelationshipsEndpoint(sobjectApiName, credentialId) {
|
|
54
|
+
const params = new URLSearchParams({ credentialId });
|
|
55
|
+
return `${DATA_TEMPLATES_BASE}/sobjects/${encodeURIComponent(sobjectApiName)}/relationships?${params}`;
|
|
56
|
+
}
|
|
57
|
+
export function sobjectFieldsEndpoint(sobjectApiName, credentialId) {
|
|
58
|
+
const params = new URLSearchParams({ credentialId });
|
|
59
|
+
return `${DATA_TEMPLATES_BASE}/sobjects/${encodeURIComponent(sobjectApiName)}/fields?${params}`;
|
|
60
|
+
}
|
|
61
|
+
export function userStoryDataCommitsEndpoint(userStoryId) {
|
|
62
|
+
return `/release/commit/user-story/${encodeURIComponent(userStoryId)}/data-commits`;
|
|
63
|
+
}
|
|
64
|
+
export function datasetFilesEndpoint(userStoryDataCommitId) {
|
|
65
|
+
return `/release/metadata/dataset-files/${encodeURIComponent(userStoryDataCommitId)}`;
|
|
66
|
+
}
|
|
67
|
+
export function datasetFileContentEndpoint(contentVersionId) {
|
|
68
|
+
return `/release/metadata/dataset-files/content/${encodeURIComponent(contentVersionId)}`;
|
|
69
|
+
}
|
|
70
|
+
export function normalizeDataTemplates(response) {
|
|
71
|
+
if (Array.isArray(response)) {
|
|
72
|
+
return response;
|
|
73
|
+
}
|
|
74
|
+
if (response && typeof response === 'object' && Array.isArray(response.data)) {
|
|
75
|
+
return response.data;
|
|
76
|
+
}
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
79
|
+
export function formatDataTemplateTable(templates) {
|
|
80
|
+
return table([
|
|
81
|
+
{ alias: 'ID', value: 'id' },
|
|
82
|
+
{ alias: 'NAME', value: 'name' },
|
|
83
|
+
{ alias: 'MAIN OBJECT', value: 'mainObject' },
|
|
84
|
+
{ alias: 'STATUS', value: 'status' },
|
|
85
|
+
{ alias: 'ACTIVE', value: 'active' },
|
|
86
|
+
{ alias: 'SOURCE ORG', value: 'sourceOrgName' },
|
|
87
|
+
], templates.map((template) => ({
|
|
88
|
+
active: cellValue(template.active),
|
|
89
|
+
id: cellValue(template.id),
|
|
90
|
+
mainObject: cellValue(template.mainObject),
|
|
91
|
+
name: cellValue(template.name),
|
|
92
|
+
sourceOrgName: cellValue(template.sourceOrgName),
|
|
93
|
+
status: cellValue(template.status),
|
|
94
|
+
})));
|
|
95
|
+
}
|
|
96
|
+
export function formatDataRecordTable(records) {
|
|
97
|
+
return table([
|
|
98
|
+
{ alias: 'ID', value: 'id' },
|
|
99
|
+
{ alias: 'NAME', value: 'name' },
|
|
100
|
+
{ alias: 'TYPE', value: 'type' },
|
|
101
|
+
{ alias: 'LAST MODIFIED', value: 'lastModifiedDate' },
|
|
102
|
+
], records.map((record) => ({
|
|
103
|
+
id: cellValue(record.id),
|
|
104
|
+
lastModifiedDate: cellValue(record.lastModifiedDate),
|
|
105
|
+
name: cellValue(record.name),
|
|
106
|
+
type: cellValue(record.type),
|
|
107
|
+
})));
|
|
108
|
+
}
|
|
109
|
+
export function formatUserStoryDataCommitTable(commits) {
|
|
110
|
+
return table([
|
|
111
|
+
{ alias: 'ID', value: 'id' },
|
|
112
|
+
{ alias: 'DATASET', value: 'datasetName' },
|
|
113
|
+
{ alias: 'MESSAGE', value: 'commitMessage', wrap: true },
|
|
114
|
+
{ alias: 'CREATED', value: 'createdDate' },
|
|
115
|
+
], commits.map((commit) => ({
|
|
116
|
+
commitMessage: cellValue(commit.commitMessage),
|
|
117
|
+
createdDate: cellValue(commit.createdDate),
|
|
118
|
+
datasetName: cellValue(commit.datasetName ?? commit.datasetId),
|
|
119
|
+
id: cellValue(commit.id),
|
|
120
|
+
})));
|
|
121
|
+
}
|
|
122
|
+
export function formatDatasetFileTable(files) {
|
|
123
|
+
return table([
|
|
124
|
+
{ alias: 'ID', value: 'id' },
|
|
125
|
+
{ alias: 'CONTENT VERSION', value: 'contentVersionId' },
|
|
126
|
+
{ alias: 'FILE', value: 'fileName' },
|
|
127
|
+
{ alias: 'MODIFIED', value: 'lastModifiedDate' },
|
|
128
|
+
], files.map((file) => ({
|
|
129
|
+
contentVersionId: cellValue(file.contentVersionId),
|
|
130
|
+
fileName: cellValue(file.fileName),
|
|
131
|
+
id: cellValue(file.id),
|
|
132
|
+
lastModifiedDate: cellValue(file.lastModifiedDate),
|
|
133
|
+
})));
|
|
134
|
+
}
|
|
135
|
+
export function formatAdvancedFilterTable(filters) {
|
|
136
|
+
return table([
|
|
137
|
+
{ alias: 'UUID', value: 'uuid' },
|
|
138
|
+
{ alias: 'NAME', value: 'filterName' },
|
|
139
|
+
{ alias: 'OBJECTS', value: 'objects' },
|
|
140
|
+
], filters.map((filter) => ({
|
|
141
|
+
filterName: cellValue(filter.filterName),
|
|
142
|
+
objects: cellValue(filter.objectFilters?.length ?? 0),
|
|
143
|
+
uuid: cellValue(filter.uuid),
|
|
144
|
+
})));
|
|
145
|
+
}
|
|
146
|
+
export function formatRecordMatchingFormulaTable(formulas) {
|
|
147
|
+
return table([
|
|
148
|
+
{ alias: 'ID', value: 'id' },
|
|
149
|
+
{ alias: 'NAME', value: 'name' },
|
|
150
|
+
{ alias: 'OBJECT', value: 'objectApiName' },
|
|
151
|
+
{ alias: 'HASH', value: 'hashFormula' },
|
|
152
|
+
], formulas.map((formula) => ({
|
|
153
|
+
hashFormula: cellValue(formula.hashFormula),
|
|
154
|
+
id: cellValue(formula.id),
|
|
155
|
+
name: cellValue(formula.name),
|
|
156
|
+
objectApiName: cellValue(formula.objectApiName),
|
|
157
|
+
})));
|
|
158
|
+
}
|
|
159
|
+
export function formatSyncResultTable(entries) {
|
|
160
|
+
return table([
|
|
161
|
+
{ alias: 'TEMPLATE', value: 'templateId' },
|
|
162
|
+
{ alias: 'OBJECT', value: 'objectApiName' },
|
|
163
|
+
{ alias: 'FIELD', value: 'fieldApiName' },
|
|
164
|
+
{ alias: 'OP', value: 'operation' },
|
|
165
|
+
{ alias: 'SYNCED', value: 'synced' },
|
|
166
|
+
{ alias: 'NEEDS ATTENTION', value: 'needsAttention' },
|
|
167
|
+
], entries.map((entry) => ({
|
|
168
|
+
fieldApiName: cellValue(entry.fieldApiName),
|
|
169
|
+
needsAttention: cellValue(entry.needsAttention),
|
|
170
|
+
objectApiName: cellValue(entry.objectApiName),
|
|
171
|
+
operation: cellValue(entry.operation),
|
|
172
|
+
synced: cellValue(entry.synced),
|
|
173
|
+
templateId: cellValue(entry.templateId),
|
|
174
|
+
})));
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=data-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-types.js","sourceRoot":"","sources":["../../src/lib/data-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAC,MAAM,aAAa,CAAA;AAE5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,yBAAyB,CAAA;AA6S5D,MAAM,UAAU,yBAAyB,CAAC,OAAoD;IAC5F,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAA;IACpC,IAAI,OAAO,EAAE,YAAY,KAAK,SAAS,EAAE,CAAC;QACxC,MAAM,CAAC,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAA;IAC1D,CAAC;IAED,IAAI,OAAO,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;QAClC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;IAC9C,CAAC;IAED,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAA;IAC/B,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,mBAAmB,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,mBAAmB,CAAA;AACnF,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,EAAU;IAC7C,OAAO,GAAG,mBAAmB,IAAI,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAA;AAC3D,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,EAAU;IACnD,OAAO,GAAG,oBAAoB,CAAC,EAAE,CAAC,SAAS,CAAA;AAC7C,CAAC;AAED,MAAM,UAA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SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;QAC7B,aAAa,EAAE,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC;KAChD,CAAC,CAAC,CACJ,CAAA;AACH,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAwC;IAC5E,OAAO,KAAK,CACV;QACE,EAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAC;QACxC,EAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAC;QACzC,EAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAC;QACvC,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAC;QACjC,EAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAC;QAClC,EAAC,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAC;KACpD,EACD,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACtB,YAAY,EAAE,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC;QAC3C,cAAc,EAAE,SAAS,CAAC,KAAK,CAAC,cAAc,CAAC;QAC/C,aAAa,EAAE,SAAS,CAAC,KAAK,CAAC,aAAa,CAAC;QAC7C,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC;QACrC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC;QAC/B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC;KACxC,CAAC,CAAC,CACJ,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type FunctionCreateDefaultsPayload, type FunctionUpsertPayload } from './function-types.js';
|
|
2
|
+
export declare const functionUpsertFlags: {
|
|
3
|
+
readonly 'apex-class': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
4
|
+
readonly callback: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
5
|
+
readonly description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
+
readonly file: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
readonly 'flow-handler': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
readonly 'image-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
readonly name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
readonly 'parameters-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
readonly runtime: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
readonly script: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
readonly 'script-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
readonly size: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
readonly timeout: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
readonly type: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
readonly version: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
+
};
|
|
19
|
+
export declare const functionDefaultsFlags: {
|
|
20
|
+
readonly 'image-name': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
readonly name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
readonly runtime: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
};
|
|
24
|
+
export declare const functionRunFlags: {
|
|
25
|
+
readonly 'context-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
26
|
+
readonly 'deploy-first': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
27
|
+
readonly parameter: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
28
|
+
readonly 'show-validation-errors': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
29
|
+
};
|
|
30
|
+
type FunctionUpsertFlagValues = {
|
|
31
|
+
'apex-class'?: string;
|
|
32
|
+
callback?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
file?: string;
|
|
35
|
+
'flow-handler'?: string;
|
|
36
|
+
'image-name'?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
'parameters-file'?: string;
|
|
39
|
+
runtime?: string;
|
|
40
|
+
script?: string;
|
|
41
|
+
'script-file'?: string;
|
|
42
|
+
size?: string;
|
|
43
|
+
timeout?: number;
|
|
44
|
+
type?: string;
|
|
45
|
+
version?: string;
|
|
46
|
+
};
|
|
47
|
+
type FunctionDefaultsFlagValues = {
|
|
48
|
+
'image-name'?: string;
|
|
49
|
+
name: string;
|
|
50
|
+
runtime?: string;
|
|
51
|
+
};
|
|
52
|
+
type FunctionRunFlagValues = {
|
|
53
|
+
'context-id'?: string;
|
|
54
|
+
'deploy-first'?: boolean;
|
|
55
|
+
parameter?: string[];
|
|
56
|
+
'show-validation-errors'?: boolean;
|
|
57
|
+
};
|
|
58
|
+
export declare function buildFunctionUpsertPayload(apiName: string, flags: FunctionUpsertFlagValues): Promise<FunctionUpsertPayload>;
|
|
59
|
+
export declare function buildFunctionDefaultsPayload(flags: FunctionDefaultsFlagValues): FunctionCreateDefaultsPayload;
|
|
60
|
+
export declare function buildFunctionRunPayload(flags: FunctionRunFlagValues): {
|
|
61
|
+
error?: string;
|
|
62
|
+
payload: {
|
|
63
|
+
contextId?: string;
|
|
64
|
+
deployFirst: boolean;
|
|
65
|
+
parameters?: Record<string, string>;
|
|
66
|
+
showValidationErrors: boolean;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export {};
|