@microsoft/managed-apps-codegen 0.2.12 → 0.2.14

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.
@@ -37,6 +37,16 @@ interface GenerateServiceContext {
37
37
  fileColumnNames: string[];
38
38
  imageColumnNames: string[];
39
39
  serviceFilePath: string;
40
+ /**
41
+ * When provided, only methods whose underlying `*WithOrganization` connector operation
42
+ * ID appears in this set are emitted. Methods for blocked operations are omitted so the
43
+ * generated file compiles even when ACP/DLP restricts some CDS operations.
44
+ *
45
+ * When absent, all methods are emitted — preserving existing behaviour for environments
46
+ * without action-level policy restrictions. An **empty** set means no operations are
47
+ * allowed and no methods will be emitted.
48
+ */
49
+ allowedOperationIds?: ReadonlySet<string>;
40
50
  }
41
51
  /**
42
52
  * Generates a per-table Dataverse service whose methods mirror the
@@ -66,6 +76,21 @@ interface GenerateServiceContext {
66
76
  * 10. DisassociateEntities
67
77
  * 11. PerformBoundAction
68
78
  */
69
- export declare function generateDataverseService({ parentContext, orgUrl, logicalName, entitySetName, sharedServiceName, primaryKey, hasLookupColumns, multiSelectPicklistFields, fileColumnNames, imageColumnNames, serviceFilePath, }: GenerateServiceContext): Promise<void>;
79
+ /**
80
+ * All `*WithOrganization` operation IDs that Dataverse table codegen may emit methods for.
81
+ *
82
+ * Exported so that callers (e.g. `managed-apps-actions`) can derive the allowed-operation
83
+ * set without maintaining a separate copy of this list. If a new CDS operation is added to
84
+ * the codegen, update this constant — it is the single source of truth.
85
+ *
86
+ * Note: `GetEntityFileImageFieldContentWithOrganization` and
87
+ * `UpdateEntityFileImageFieldContentWithOrganization` are only emitted when the entity has
88
+ * file or image columns (`fileColumnNames`/`imageColumnNames` non-empty). Callers that build
89
+ * a "skipped methods" warning should account for this before reporting those two operations.
90
+ */
91
+ export declare const CDS_CODEGEN_OPERATION_IDS: readonly ["CreateRecordWithOrganization", "UpdateRecordWithOrganization", "UpdateOnlyRecordWithOrganization", "DeleteRecordWithOrganization", "GetItemWithOrganization", "ListRecordsWithOrganization", "GetEntityFileImageFieldContentWithOrganization", "UpdateEntityFileImageFieldContentWithOrganization", "AssociateEntitiesWithOrganization", "DisassociateEntitiesWithOrganization", "PerformBoundActionWithOrganization"];
92
+ /** Operation IDs that are only emitted when the entity has file or image columns. */
93
+ export declare const CDS_FILE_IMAGE_OPERATION_IDS: ReadonlySet<string>;
94
+ export declare function generateDataverseService({ parentContext, orgUrl, logicalName, entitySetName, sharedServiceName, primaryKey, hasLookupColumns, multiSelectPicklistFields, fileColumnNames, imageColumnNames, serviceFilePath, allowedOperationIds, }: GenerateServiceContext): Promise<void>;
70
95
  export default generateDataverseService;
71
96
  //# sourceMappingURL=generateDataverseService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generateDataverseService.d.ts","sourceRoot":"","sources":["../../src/Dataverse/generateDataverseService.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,UAAU,sBAAsB;IAC9B,aAAa,EAAE,eAAe,CAAC;IAC/B,sHAAsH;IACtH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,4GAA4G;IAC5G,gBAAgB,EAAE,OAAO,CAAC;IAC1B,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,wBAAwB,CAAC,EAC7C,aAAa,EACb,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,eAAe,GAChB,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyWxC;AAED,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"generateDataverseService.d.ts","sourceRoot":"","sources":["../../src/Dataverse/generateDataverseService.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,UAAU,sBAAsB;IAC9B,aAAa,EAAE,eAAe,CAAC;IAC/B,sHAAsH;IACtH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,4GAA4G;IAC5G,gBAAgB,EAAE,OAAO,CAAC;IAC1B,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,maAY5B,CAAC;AAEX,qFAAqF;AACrF,eAAO,MAAM,4BAA4B,EAAE,WAAW,CAAC,MAAM,CAG3D,CAAC;AAEH,wBAAsB,wBAAwB,CAAC,EAC7C,aAAa,EACb,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,mBAAmB,GACpB,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4YxC;AAED,eAAe,wBAAwB,CAAC"}
@@ -31,8 +31,42 @@ import { convertToValidIdentifier } from '../shared/nameUtils.js';
31
31
  * 10. DisassociateEntities
32
32
  * 11. PerformBoundAction
33
33
  */
34
- export async function generateDataverseService({ parentContext, orgUrl, logicalName, entitySetName, sharedServiceName, primaryKey, hasLookupColumns, multiSelectPicklistFields, fileColumnNames, imageColumnNames, serviceFilePath, }) {
34
+ /**
35
+ * All `*WithOrganization` operation IDs that Dataverse table codegen may emit methods for.
36
+ *
37
+ * Exported so that callers (e.g. `managed-apps-actions`) can derive the allowed-operation
38
+ * set without maintaining a separate copy of this list. If a new CDS operation is added to
39
+ * the codegen, update this constant — it is the single source of truth.
40
+ *
41
+ * Note: `GetEntityFileImageFieldContentWithOrganization` and
42
+ * `UpdateEntityFileImageFieldContentWithOrganization` are only emitted when the entity has
43
+ * file or image columns (`fileColumnNames`/`imageColumnNames` non-empty). Callers that build
44
+ * a "skipped methods" warning should account for this before reporting those two operations.
45
+ */
46
+ export const CDS_CODEGEN_OPERATION_IDS = [
47
+ 'CreateRecordWithOrganization',
48
+ 'UpdateRecordWithOrganization',
49
+ 'UpdateOnlyRecordWithOrganization',
50
+ 'DeleteRecordWithOrganization',
51
+ 'GetItemWithOrganization',
52
+ 'ListRecordsWithOrganization',
53
+ 'GetEntityFileImageFieldContentWithOrganization',
54
+ 'UpdateEntityFileImageFieldContentWithOrganization',
55
+ 'AssociateEntitiesWithOrganization',
56
+ 'DisassociateEntitiesWithOrganization',
57
+ 'PerformBoundActionWithOrganization',
58
+ ];
59
+ /** Operation IDs that are only emitted when the entity has file or image columns. */
60
+ export const CDS_FILE_IMAGE_OPERATION_IDS = new Set([
61
+ 'GetEntityFileImageFieldContentWithOrganization',
62
+ 'UpdateEntityFileImageFieldContentWithOrganization',
63
+ ]);
64
+ export async function generateDataverseService({ parentContext, orgUrl, logicalName, entitySetName, sharedServiceName, primaryKey, hasLookupColumns, multiSelectPicklistFields, fileColumnNames, imageColumnNames, serviceFilePath, allowedOperationIds, }) {
35
65
  const { modelName, project } = parentContext;
66
+ // Returns true when the given *WithOrganization operation ID is allowed.
67
+ // When no allowedOperationIds set is provided, all operations are considered allowed.
68
+ // An empty provided set means no operations are allowed (all methods omitted).
69
+ const isAllowed = (operationId) => allowedOperationIds === undefined || allowedOperationIds.has(operationId);
36
70
  const id = convertToValidIdentifier(modelName);
37
71
  const serviceName = `${id}Service`;
38
72
  // Write shape = `<Model>Base` when the entity has lookups (the model emits a `_value` read shape on top);
@@ -168,210 +202,239 @@ export async function generateDataverseService({ parentContext, orgUrl, logicalN
168
202
  ],
169
203
  methods: [
170
204
  // ── 1. CreateRecord ────────────────────────────────────────────────
171
- {
172
- name: 'CreateRecord',
173
- isStatic: true,
174
- isAsync: true,
175
- scope: Scope.Public,
176
- parameters: [{ name: 'item', type: createParamType }],
177
- returnType: `Promise<IOperationResult<${readTypeName}>>`,
178
- statements: [
179
- serializeOnWrite('item'),
180
- `const result = await ${sharedServiceName}.CreateRecordWithOrganization(PREFER_REPRESENTATION, ACCEPT_JSON, ORG, ENTITY, serialized);`,
181
- deserializeIfPresent('result'),
182
- `return result as unknown as IOperationResult<${readTypeName}>;`,
183
- ].filter(Boolean),
184
- },
205
+ ...(isAllowed('CreateRecordWithOrganization')
206
+ ? [
207
+ {
208
+ name: 'CreateRecord',
209
+ isStatic: true,
210
+ isAsync: true,
211
+ scope: Scope.Public,
212
+ parameters: [{ name: 'item', type: createParamType }],
213
+ returnType: `Promise<IOperationResult<${readTypeName}>>`,
214
+ statements: [
215
+ serializeOnWrite('item'),
216
+ `const result = await ${sharedServiceName}.CreateRecordWithOrganization(PREFER_REPRESENTATION, ACCEPT_JSON, ORG, ENTITY, serialized);`,
217
+ deserializeIfPresent('result'),
218
+ `return result as unknown as IOperationResult<${readTypeName}>;`,
219
+ ].filter(Boolean),
220
+ },
221
+ ]
222
+ : []),
185
223
  // ── 2. UpdateRecord (upsert) ───────────────────────────────────────
186
- {
187
- name: 'UpdateRecord',
188
- isStatic: true,
189
- isAsync: true,
190
- scope: Scope.Public,
191
- parameters: [
192
- { name: 'recordId', type: 'string' },
193
- { name: 'item', type: partialWriteType },
194
- ],
195
- returnType: `Promise<IOperationResult<${readTypeName}>>`,
196
- statements: [
197
- serializeOnWrite('item'),
198
- `const result = await ${sharedServiceName}.UpdateRecordWithOrganization(PREFER_REPRESENTATION, ACCEPT_JSON, ORG, ENTITY, recordId, serialized);`,
199
- deserializeIfPresent('result'),
200
- `return result as unknown as IOperationResult<${readTypeName}>;`,
201
- ].filter(Boolean),
202
- },
224
+ ...(isAllowed('UpdateRecordWithOrganization')
225
+ ? [
226
+ {
227
+ name: 'UpdateRecord',
228
+ isStatic: true,
229
+ isAsync: true,
230
+ scope: Scope.Public,
231
+ parameters: [
232
+ { name: 'recordId', type: 'string' },
233
+ { name: 'item', type: partialWriteType },
234
+ ],
235
+ returnType: `Promise<IOperationResult<${readTypeName}>>`,
236
+ statements: [
237
+ serializeOnWrite('item'),
238
+ `const result = await ${sharedServiceName}.UpdateRecordWithOrganization(PREFER_REPRESENTATION, ACCEPT_JSON, ORG, ENTITY, recordId, serialized);`,
239
+ deserializeIfPresent('result'),
240
+ `return result as unknown as IOperationResult<${readTypeName}>;`,
241
+ ].filter(Boolean),
242
+ },
243
+ ]
244
+ : []),
203
245
  // ── 3. UpdateOnlyRecord ────────────────────────────────────────────
204
- // `If-Match: '*'` makes the connector return 412 when the record does not exist,
205
- // distinguishing "update only" from the upsert behavior of `UpdateRecord`.
206
- {
207
- name: 'UpdateOnlyRecord',
208
- isStatic: true,
209
- isAsync: true,
210
- scope: Scope.Public,
211
- parameters: [
212
- { name: 'recordId', type: 'string' },
213
- { name: 'item', type: partialWriteType },
214
- ],
215
- returnType: `Promise<IOperationResult<${readTypeName}>>`,
216
- statements: [
217
- serializeOnWrite('item'),
218
- `const result = await ${sharedServiceName}.UpdateOnlyRecordWithOrganization(PREFER_REPRESENTATION, ACCEPT_JSON, IF_MATCH_ANY, ORG, ENTITY, recordId, serialized);`,
219
- deserializeIfPresent('result'),
220
- `return result as unknown as IOperationResult<${readTypeName}>;`,
221
- ].filter(Boolean),
222
- },
246
+ ...(isAllowed('UpdateOnlyRecordWithOrganization')
247
+ ? [
248
+ {
249
+ name: 'UpdateOnlyRecord',
250
+ isStatic: true,
251
+ isAsync: true,
252
+ scope: Scope.Public,
253
+ parameters: [
254
+ { name: 'recordId', type: 'string' },
255
+ { name: 'item', type: partialWriteType },
256
+ ],
257
+ returnType: `Promise<IOperationResult<${readTypeName}>>`,
258
+ statements: [
259
+ serializeOnWrite('item'),
260
+ `const result = await ${sharedServiceName}.UpdateOnlyRecordWithOrganization(PREFER_REPRESENTATION, ACCEPT_JSON, IF_MATCH_ANY, ORG, ENTITY, recordId, serialized);`,
261
+ deserializeIfPresent('result'),
262
+ `return result as unknown as IOperationResult<${readTypeName}>;`,
263
+ ].filter(Boolean),
264
+ },
265
+ ]
266
+ : []),
223
267
  // ── 4. DeleteRecord ────────────────────────────────────────────────
224
- {
225
- name: 'DeleteRecord',
226
- isStatic: true,
227
- isAsync: true,
228
- scope: Scope.Public,
229
- parameters: [
230
- { name: 'recordId', type: 'string' },
231
- { name: 'partitionId', type: 'string', hasQuestionToken: true },
232
- ],
233
- returnType: 'Promise<IOperationResult<void>>',
234
- statements: [
235
- `return ${sharedServiceName}.DeleteRecordWithOrganization(ORG, ENTITY, recordId, partitionId);`,
236
- ],
237
- },
268
+ ...(isAllowed('DeleteRecordWithOrganization')
269
+ ? [
270
+ {
271
+ name: 'DeleteRecord',
272
+ isStatic: true,
273
+ isAsync: true,
274
+ scope: Scope.Public,
275
+ parameters: [
276
+ { name: 'recordId', type: 'string' },
277
+ { name: 'partitionId', type: 'string', hasQuestionToken: true },
278
+ ],
279
+ returnType: 'Promise<IOperationResult<void>>',
280
+ statements: [
281
+ `return ${sharedServiceName}.DeleteRecordWithOrganization(ORG, ENTITY, recordId, partitionId);`,
282
+ ],
283
+ },
284
+ ]
285
+ : []),
238
286
  // ── 5. GetItem ─────────────────────────────────────────────────────
239
- // The connector op exposes `x-ms-odata-metadata-full` and `MSCRM-IncludeMipSensitivityLabel`
240
- // as header-style params — hidden here per the table-service surface spec.
241
- {
242
- name: 'GetItem',
243
- isStatic: true,
244
- isAsync: true,
245
- scope: Scope.Public,
246
- parameters: [
247
- { name: 'recordId', type: 'string' },
248
- { name: '$select', type: 'string', hasQuestionToken: true },
249
- { name: '$expand', type: 'string', hasQuestionToken: true },
250
- { name: 'partitionId', type: 'string', hasQuestionToken: true },
251
- ],
252
- returnType: `Promise<IOperationResult<${readTypeName}>>`,
253
- statements: [
254
- `const result = await ${sharedServiceName}.GetItemWithOrganization(PREFER_REPRESENTATION, ACCEPT_JSON, ORG, ENTITY, recordId, undefined, undefined, $select, $expand, partitionId);`,
255
- deserializeIfPresent('result'),
256
- `return result as unknown as IOperationResult<${readTypeName}>;`,
257
- ].filter(Boolean),
258
- },
287
+ ...(isAllowed('GetItemWithOrganization')
288
+ ? [
289
+ {
290
+ name: 'GetItem',
291
+ isStatic: true,
292
+ isAsync: true,
293
+ scope: Scope.Public,
294
+ parameters: [
295
+ { name: 'recordId', type: 'string' },
296
+ { name: '$select', type: 'string', hasQuestionToken: true },
297
+ { name: '$expand', type: 'string', hasQuestionToken: true },
298
+ { name: 'partitionId', type: 'string', hasQuestionToken: true },
299
+ ],
300
+ returnType: `Promise<IOperationResult<${readTypeName}>>`,
301
+ statements: [
302
+ `const result = await ${sharedServiceName}.GetItemWithOrganization(PREFER_REPRESENTATION, ACCEPT_JSON, ORG, ENTITY, recordId, undefined, undefined, $select, $expand, partitionId);`,
303
+ deserializeIfPresent('result'),
304
+ `return result as unknown as IOperationResult<${readTypeName}>;`,
305
+ ].filter(Boolean),
306
+ },
307
+ ]
308
+ : []),
259
309
  // ── 6. ListRecords ─────────────────────────────────────────────────
260
- // `prefer`, `accept`, `x-ms-odata-metadata-full`, and `MSCRM-IncludeMipSensitivityLabel`
261
- // are header-style params on the connector op — hidden here.
262
- {
263
- name: 'ListRecords',
264
- isStatic: true,
265
- isAsync: true,
266
- scope: Scope.Public,
267
- parameters: [
310
+ ...(isAllowed('ListRecordsWithOrganization')
311
+ ? [
268
312
  {
269
- name: 'options',
270
- type: `{ $select?: string; $filter?: string; $orderby?: string; $expand?: string; fetchXml?: string; $top?: number; $skiptoken?: string; partitionId?: string }`,
271
- hasQuestionToken: true,
313
+ name: 'ListRecords',
314
+ isStatic: true,
315
+ isAsync: true,
316
+ scope: Scope.Public,
317
+ parameters: [
318
+ {
319
+ name: 'options',
320
+ type: `{ $select?: string; $filter?: string; $orderby?: string; $expand?: string; fetchXml?: string; $top?: number; $skiptoken?: string; partitionId?: string }`,
321
+ hasQuestionToken: true,
322
+ },
323
+ ],
324
+ returnType: `Promise<IOperationResult<${readTypeName}[]>>`,
325
+ statements: [
326
+ `const result = await ${sharedServiceName}.ListRecordsWithOrganization(ORG, ENTITY, undefined, undefined, undefined, undefined, options?.$select, options?.$filter, options?.$orderby, options?.$expand, options?.fetchXml, options?.$top, options?.$skiptoken, options?.partitionId);`,
327
+ deserializeArrayIfPresent('result'),
328
+ `return result as unknown as IOperationResult<${readTypeName}[]>;`,
329
+ ].filter(Boolean),
272
330
  },
273
- ],
274
- returnType: `Promise<IOperationResult<${readTypeName}[]>>`,
275
- statements: [
276
- `const result = await ${sharedServiceName}.ListRecordsWithOrganization(ORG, ENTITY, undefined, undefined, undefined, undefined, options?.$select, options?.$filter, options?.$orderby, options?.$expand, options?.fetchXml, options?.$top, options?.$skiptoken, options?.partitionId);`,
277
- deserializeArrayIfPresent('result'),
278
- `return result as unknown as IOperationResult<${readTypeName}[]>;`,
279
- ].filter(Boolean),
280
- },
281
- // ── 7. GetEntityFileImageFieldContent (file/image only) ────────────
282
- // The connector returns a base64 string from the `Range`-style swagger op;
283
- // we decode to a `Uint8Array` to keep the table-service surface binary-typed.
331
+ ]
332
+ : []),
333
+ // ── 7 & 8. File/image column ops (only when entity has file/image columns) ──
284
334
  ...(hasFileOrImageColumns
335
+ ? [
336
+ ...(isAllowed('GetEntityFileImageFieldContentWithOrganization')
337
+ ? [
338
+ {
339
+ name: 'GetEntityFileImageFieldContent',
340
+ isStatic: true,
341
+ isAsync: true,
342
+ scope: Scope.Public,
343
+ parameters: [
344
+ { name: 'recordId', type: 'string' },
345
+ { name: 'fileImageFieldName', type: uploadColumnNameType },
346
+ { name: 'size', type: `'full' | 'thumbnail'`, hasQuestionToken: true },
347
+ ],
348
+ returnType: 'Promise<IOperationResult<Uint8Array>>',
349
+ statements: [
350
+ `const result = await ${sharedServiceName}.GetEntityFileImageFieldContentWithOrganization('', ORG, ENTITY, recordId, fileImageFieldName, size);`,
351
+ `return { ...result, data: result.data ? fromBase64(result.data) : undefined } as IOperationResult<Uint8Array>;`,
352
+ ],
353
+ },
354
+ ]
355
+ : []),
356
+ ...(isAllowed('UpdateEntityFileImageFieldContentWithOrganization')
357
+ ? [
358
+ {
359
+ name: 'UpdateEntityFileImageFieldContent',
360
+ isStatic: true,
361
+ isAsync: true,
362
+ scope: Scope.Public,
363
+ parameters: [
364
+ { name: 'recordId', type: 'string' },
365
+ { name: 'fileImageFieldName', type: uploadColumnNameType },
366
+ { name: 'item', type: 'Uint8Array' },
367
+ { name: 'fileName', type: 'string' },
368
+ ],
369
+ returnType: 'Promise<IOperationResult<void>>',
370
+ statements: [
371
+ `return ${sharedServiceName}.UpdateEntityFileImageFieldContentWithOrganization('application/octet-stream', ORG, ENTITY, recordId, fileImageFieldName, toBase64(item), fileName);`,
372
+ ],
373
+ },
374
+ ]
375
+ : []),
376
+ ]
377
+ : []),
378
+ // ── 9. AssociateEntities ───────────────────────────────────────────
379
+ ...(isAllowed('AssociateEntitiesWithOrganization')
285
380
  ? [
286
381
  {
287
- name: 'GetEntityFileImageFieldContent',
382
+ name: 'AssociateEntities',
288
383
  isStatic: true,
289
384
  isAsync: true,
290
385
  scope: Scope.Public,
291
386
  parameters: [
292
387
  { name: 'recordId', type: 'string' },
293
- { name: 'fileImageFieldName', type: uploadColumnNameType },
294
- { name: 'size', type: `'full' | 'thumbnail'`, hasQuestionToken: true },
388
+ { name: 'associationEntityRelationship', type: 'string' },
389
+ { name: 'odataId', type: 'string' },
295
390
  ],
296
- returnType: 'Promise<IOperationResult<Uint8Array>>',
391
+ returnType: 'Promise<IOperationResult<void>>',
297
392
  statements: [
298
- `const result = await ${sharedServiceName}.GetEntityFileImageFieldContentWithOrganization('', ORG, ENTITY, recordId, fileImageFieldName, size);`,
299
- `return { ...result, data: result.data ? fromBase64(result.data) : undefined } as IOperationResult<Uint8Array>;`,
393
+ `return ${sharedServiceName}.AssociateEntitiesWithOrganization(ORG, ENTITY, recordId, associationEntityRelationship, { '@odata.id': odataId });`,
300
394
  ],
301
395
  },
302
- // ── 8. UpdateEntityFileImageFieldContent ───────────────────────
303
- // The connector expects a base64-encoded `item: string`; the table-service
304
- // surface accepts a `Uint8Array` and we encode here.
396
+ ]
397
+ : []),
398
+ // ── 10. DisassociateEntities ───────────────────────────────────────
399
+ ...(isAllowed('DisassociateEntitiesWithOrganization')
400
+ ? [
305
401
  {
306
- name: 'UpdateEntityFileImageFieldContent',
402
+ name: 'DisassociateEntities',
307
403
  isStatic: true,
308
404
  isAsync: true,
309
405
  scope: Scope.Public,
310
406
  parameters: [
311
407
  { name: 'recordId', type: 'string' },
312
- { name: 'fileImageFieldName', type: uploadColumnNameType },
313
- { name: 'item', type: 'Uint8Array' },
314
- { name: 'fileName', type: 'string' },
408
+ { name: 'associationEntityRelationship', type: 'string' },
409
+ { name: 'id', type: 'string' },
315
410
  ],
316
411
  returnType: 'Promise<IOperationResult<void>>',
317
412
  statements: [
318
- `return ${sharedServiceName}.UpdateEntityFileImageFieldContentWithOrganization('application/octet-stream', ORG, ENTITY, recordId, fileImageFieldName, toBase64(item), fileName);`,
413
+ `return ${sharedServiceName}.DisassociateEntitiesWithOrganization(ORG, ENTITY, recordId, associationEntityRelationship, id);`,
319
414
  ],
320
415
  },
321
416
  ]
322
417
  : []),
323
- // ── 9. AssociateEntities ───────────────────────────────────────────
324
- // Connector expects `item: { '@odata.id': string }`; we accept the URL directly
325
- // and wrap it here.
326
- {
327
- name: 'AssociateEntities',
328
- isStatic: true,
329
- isAsync: true,
330
- scope: Scope.Public,
331
- parameters: [
332
- { name: 'recordId', type: 'string' },
333
- { name: 'associationEntityRelationship', type: 'string' },
334
- { name: 'odataId', type: 'string' },
335
- ],
336
- returnType: 'Promise<IOperationResult<void>>',
337
- statements: [
338
- `return ${sharedServiceName}.AssociateEntitiesWithOrganization(ORG, ENTITY, recordId, associationEntityRelationship, { '@odata.id': odataId });`,
339
- ],
340
- },
341
- // ── 10. DisassociateEntities ───────────────────────────────────────
342
- // Connector parameter is named `$id` on the wire — we expose it as `id` and
343
- // pass through positionally.
344
- {
345
- name: 'DisassociateEntities',
346
- isStatic: true,
347
- isAsync: true,
348
- scope: Scope.Public,
349
- parameters: [
350
- { name: 'recordId', type: 'string' },
351
- { name: 'associationEntityRelationship', type: 'string' },
352
- { name: 'id', type: 'string' },
353
- ],
354
- returnType: 'Promise<IOperationResult<void>>',
355
- statements: [
356
- `return ${sharedServiceName}.DisassociateEntitiesWithOrganization(ORG, ENTITY, recordId, associationEntityRelationship, id);`,
357
- ],
358
- },
359
418
  // ── 11. PerformBoundAction ─────────────────────────────────────────
360
- {
361
- name: 'PerformBoundAction',
362
- isStatic: true,
363
- isAsync: true,
364
- scope: Scope.Public,
365
- parameters: [
366
- { name: 'actionName', type: 'string' },
367
- { name: 'recordId', type: 'string' },
368
- { name: 'item', type: readRecord, hasQuestionToken: true },
369
- ],
370
- returnType: `Promise<IOperationResult<${readRecord}>>`,
371
- statements: [
372
- `return ${sharedServiceName}.PerformBoundActionWithOrganization(ORG, ENTITY, actionName, recordId, item);`,
373
- ],
374
- },
419
+ ...(isAllowed('PerformBoundActionWithOrganization')
420
+ ? [
421
+ {
422
+ name: 'PerformBoundAction',
423
+ isStatic: true,
424
+ isAsync: true,
425
+ scope: Scope.Public,
426
+ parameters: [
427
+ { name: 'actionName', type: 'string' },
428
+ { name: 'recordId', type: 'string' },
429
+ { name: 'item', type: readRecord, hasQuestionToken: true },
430
+ ],
431
+ returnType: `Promise<IOperationResult<${readRecord}>>`,
432
+ statements: [
433
+ `return ${sharedServiceName}.PerformBoundActionWithOrganization(ORG, ENTITY, actionName, recordId, item);`,
434
+ ],
435
+ },
436
+ ]
437
+ : []),
375
438
  ],
376
439
  });
377
440
  }
@@ -1 +1 @@
1
- {"version":3,"file":"generateDataverseService.js","sourceRoot":"","sources":["../../src/Dataverse/generateDataverseService.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAE1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAwC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,EAC7C,aAAa,EACb,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,eAAe,GACQ;IACvB,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,aAAa,CAAC;IAE7C,MAAM,EAAE,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAC/C,MAAM,WAAW,GAAG,GAAG,EAAE,SAAS,CAAC;IAEnC,0GAA0G;IAC1G,wDAAwD;IACxD,MAAM,aAAa,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1D,MAAM,YAAY,GAAG,EAAE,CAAC;IAExB,MAAM,oBAAoB,GAAG,GAAG,EAAE,kBAAkB,CAAC;IACrD,MAAM,cAAc,GAAG,eAAe,CAAC,MAAM,GAAG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E,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAE;iBAC3D;gBACD,UAAU,EAAE,4BAA4B,UAAU,IAAI;gBACtD,UAAU,EAAE;oBACV,UAAU,iBAAiB,+EAA+E;iBAC3G;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAED,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"generateDataverseService.js","sourceRoot":"","sources":["../../src/Dataverse/generateDataverseService.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAE1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAkD/D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,8BAA8B;IAC9B,8BAA8B;IAC9B,kCAAkC;IAClC,8BAA8B;IAC9B,yBAAyB;IACzB,6BAA6B;IAC7B,gDAAgD;IAChD,mDAAmD;IACnD,mCAAmC;IACnC,sCAAsC;IACtC,oCAAoC;CAC5B,CAAC;AAEX,qFAAqF;AACrF,MAAM,CAAC,MAAM,4BAA4B,GAAwB,IAAI,GAAG,CAAC;IACvE,gDAAgD;IAChD,mDAAmD;CACpD,CAAC,CAAC;AAEH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,EAC7C,aAAa,EACb,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,mBAAmB,GACI;IACvB,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,aAAa,CAAC;IAE7C,yEAAyE;IACzE,sFAAsF;IACtF,+EAA+E;IAC/E,MAAM,SAAS,GAAG,CAAC,WAAmB,EAAW,EAAE,CACjD,mBAAmB,KAAK,SAAS,I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AAE,QAAQ,EAAE;4BACpC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAE;yBAC3D;wBACD,UAAU,EAAE,4BAA4B,UAAU,IAAI;wBACtD,UAAU,EAAE;4BACV,UAAU,iBAAiB,+EAA+E;yBAC3G;qBACF;iBACF;gBACH,CAAC,CAAC,EAAE,CAAC;SACR;KACF,CAAC,CAAC;AACL,CAAC;AAED,eAAe,wBAAwB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
4
  export { CodegenProject } from './CodegenProject.js';
5
+ export { CDS_CODEGEN_OPERATION_IDS, CDS_FILE_IMAGE_OPERATION_IDS, } from './Dataverse/generateDataverseService.js';
5
6
  export { defaultPrettierConfig } from './defaultPrettierConfig.js';
6
7
  export { GENERATED_FOLDERNAME } from './shared/constants.js';
7
8
  export { isLogicFlowSchema, LOGIC_FLOWS_API_ID } from './shared/flowUtils.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,yBAAyB,EACzB,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACL,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,yBAAyB,EACzB,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
  * Copyright (C) Microsoft Corporation. All rights reserved.
3
3
  */
4
4
  export { CodegenProject } from './CodegenProject.js';
5
+ export { CDS_CODEGEN_OPERATION_IDS, CDS_FILE_IMAGE_OPERATION_IDS, } from './Dataverse/generateDataverseService.js';
5
6
  export { defaultPrettierConfig } from './defaultPrettierConfig.js';
6
7
  export { GENERATED_FOLDERNAME } from './shared/constants.js';
7
8
  export { isLogicFlowSchema, LOGIC_FLOWS_API_ID } from './shared/flowUtils.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE3E,OAAO,EACL,yBAAyB,EACzB,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACL,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE3E,OAAO,EACL,yBAAyB,EACzB,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/managed-apps-codegen",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "AST-based TypeScript code generation for Microsoft Managed Apps",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -45,7 +45,7 @@
45
45
  "clean": "bun ../../scripts/clean.ts dist .turbo tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo"
46
46
  },
47
47
  "dependencies": {
48
- "@microsoft/managed-apps-common": "0.12.0",
48
+ "@microsoft/managed-apps-common": "0.14.0",
49
49
  "prettier": "3.8.1",
50
50
  "ts-morph": "27.0.2"
51
51
  },