@osdk/cli 0.30.0-beta.4 → 0.30.0-rc.6
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/CHANGELOG.md +19 -0
- package/build/esm/{chunk-N5LHEWKB.js → chunk-TQTADCIO.js} +3 -3
- package/build/esm/{chunk-N5LHEWKB.js.map → chunk-TQTADCIO.js.map} +1 -1
- package/build/esm/{handleGenerate-JPPLOV2Q.js → handleGenerate-ZQ354K3F.js} +30 -283
- package/build/esm/handleGenerate-ZQ354K3F.js.map +1 -0
- package/build/esm/index.js +12 -16
- package/build/esm/index.js.map +1 -1
- package/build/esm/{siteDeployCommand-RF4STCW4.js → siteDeployCommand-YVIMRLVS.js} +3 -3
- package/build/esm/{siteDeployCommand-RF4STCW4.js.map → siteDeployCommand-YVIMRLVS.js.map} +1 -1
- package/build/esm/{versionDeleteCommand-2BWX5IXZ.js → versionDeleteCommand-EWNH5HLO.js} +3 -3
- package/build/esm/{versionDeleteCommand-2BWX5IXZ.js.map → versionDeleteCommand-EWNH5HLO.js.map} +1 -1
- package/build/esm/{versionDeleteCommand-4RHUCT5B.js → versionDeleteCommand-JHQMHLOL.js} +3 -3
- package/build/esm/{versionDeleteCommand-4RHUCT5B.js.map → versionDeleteCommand-JHQMHLOL.js.map} +1 -1
- package/build/esm/{versionGetCommand-ASKCA5FI.js → versionGetCommand-ZFDQAIUL.js} +3 -3
- package/build/esm/{versionGetCommand-ASKCA5FI.js.map → versionGetCommand-ZFDQAIUL.js.map} +1 -1
- package/build/esm/{versionInfoCommand-6M4XX5AI.js → versionInfoCommand-WZFAIVSR.js} +3 -3
- package/build/esm/{versionInfoCommand-6M4XX5AI.js.map → versionInfoCommand-WZFAIVSR.js.map} +1 -1
- package/build/esm/{versionListCommand-GWE5VFPG.js → versionListCommand-5GLZM5NL.js} +3 -3
- package/build/esm/{versionListCommand-GWE5VFPG.js.map → versionListCommand-5GLZM5NL.js.map} +1 -1
- package/build/esm/{versionListCommand-CEHTZ4H7.js → versionListCommand-S43YC6P6.js} +3 -3
- package/build/esm/{versionListCommand-CEHTZ4H7.js.map → versionListCommand-S43YC6P6.js.map} +1 -1
- package/build/esm/{versionSetCommand-TTVBWEVF.js → versionSetCommand-L5WP4GXF.js} +3 -3
- package/build/esm/{versionSetCommand-TTVBWEVF.js.map → versionSetCommand-L5WP4GXF.js.map} +1 -1
- package/build/esm/{versionUnsetCommand-AJDDKDSD.js → versionUnsetCommand-AJWFFPBX.js} +3 -3
- package/build/esm/{versionUnsetCommand-AJDDKDSD.js.map → versionUnsetCommand-AJWFFPBX.js.map} +1 -1
- package/build/esm/{widgetSetDeployCommand-MGK7BTNO.js → widgetSetDeployCommand-ONXZ2BLS.js} +3 -3
- package/build/esm/{widgetSetDeployCommand-MGK7BTNO.js.map → widgetSetDeployCommand-ONXZ2BLS.js.map} +1 -1
- package/package.json +7 -7
- package/build/esm/handleGenerate-JPPLOV2Q.js.map +0 -1
|
@@ -54,10 +54,10 @@ var require_fast_deep_equal = __commonJS({
|
|
|
54
54
|
// ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
|
|
55
55
|
init_esm_shims();
|
|
56
56
|
|
|
57
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
57
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
|
|
58
58
|
init_esm_shims();
|
|
59
59
|
|
|
60
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
60
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
61
61
|
init_esm_shims();
|
|
62
62
|
|
|
63
63
|
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
|
|
@@ -166,43 +166,43 @@ function parseUrl(baseUrl, endpointPath) {
|
|
|
166
166
|
return new URL(`api${endpointPath}`, baseUrl);
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
169
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeFullMetadata.js
|
|
170
170
|
init_esm_shims();
|
|
171
171
|
|
|
172
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
172
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
|
|
173
173
|
init_esm_shims();
|
|
174
174
|
|
|
175
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
175
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
|
|
176
176
|
init_esm_shims();
|
|
177
177
|
|
|
178
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
178
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
|
|
179
179
|
init_esm_shims();
|
|
180
180
|
|
|
181
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
181
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
|
|
182
182
|
init_esm_shims();
|
|
183
183
|
|
|
184
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
184
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
|
|
185
185
|
init_esm_shims();
|
|
186
186
|
|
|
187
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
187
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
|
|
188
188
|
init_esm_shims();
|
|
189
189
|
|
|
190
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
190
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
|
|
191
191
|
init_esm_shims();
|
|
192
192
|
|
|
193
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
193
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
|
|
194
194
|
init_esm_shims();
|
|
195
195
|
|
|
196
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
196
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
|
|
197
197
|
init_esm_shims();
|
|
198
198
|
|
|
199
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
199
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
|
|
200
200
|
init_esm_shims();
|
|
201
201
|
|
|
202
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
202
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
|
|
203
203
|
init_esm_shims();
|
|
204
204
|
|
|
205
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
205
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
|
|
206
206
|
var OntologyV2_exports = {};
|
|
207
207
|
__export(OntologyV2_exports, {
|
|
208
208
|
get: () => get,
|
|
@@ -228,19 +228,19 @@ function loadMetadata($ctx, ...args) {
|
|
|
228
228
|
return foundryPlatformFetch($ctx, _loadMetadata, ...args);
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
231
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyValueType.js
|
|
232
232
|
init_esm_shims();
|
|
233
233
|
|
|
234
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
234
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
|
|
235
235
|
init_esm_shims();
|
|
236
236
|
|
|
237
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
237
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
|
|
238
238
|
init_esm_shims();
|
|
239
239
|
|
|
240
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
240
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
|
|
241
241
|
init_esm_shims();
|
|
242
242
|
|
|
243
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
243
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
|
|
244
244
|
init_esm_shims();
|
|
245
245
|
|
|
246
246
|
// ../generator/build/esm/index.js
|
|
@@ -340,251 +340,6 @@ init_esm_shims();
|
|
|
340
340
|
|
|
341
341
|
// ../generator-converters/build/esm/wirePropertyV2ToSdkPropertyDefinition.js
|
|
342
342
|
init_esm_shims();
|
|
343
|
-
|
|
344
|
-
// ../generator-converters/build/esm/wirePropertyFormattingToSdkFormatting.js
|
|
345
|
-
init_esm_shims();
|
|
346
|
-
|
|
347
|
-
// ../generator-converters/build/esm/valueFormatting/convertBooleanValueFormattingRule.js
|
|
348
|
-
init_esm_shims();
|
|
349
|
-
function convertBooleanFormattingRule(wireFormatting) {
|
|
350
|
-
return {
|
|
351
|
-
type: "boolean",
|
|
352
|
-
valueIfTrue: wireFormatting.valueIfTrue,
|
|
353
|
-
valueIfFalse: wireFormatting.valueIfFalse
|
|
354
|
-
};
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
// ../generator-converters/build/esm/valueFormatting/convertDateAndTimestampValueFormattingRule.js
|
|
358
|
-
init_esm_shims();
|
|
359
|
-
|
|
360
|
-
// ../generator-converters/build/esm/valueFormatting/commonValueFormattingUtils.js
|
|
361
|
-
init_esm_shims();
|
|
362
|
-
function convertPropertyTypeReferenceOrStringConstant(value) {
|
|
363
|
-
switch (value.type) {
|
|
364
|
-
case "constant":
|
|
365
|
-
return {
|
|
366
|
-
type: "constant",
|
|
367
|
-
value: value.value
|
|
368
|
-
};
|
|
369
|
-
case "propertyType":
|
|
370
|
-
return {
|
|
371
|
-
type: "propertyType",
|
|
372
|
-
propertyApiName: value.propertyApiName
|
|
373
|
-
};
|
|
374
|
-
default:
|
|
375
|
-
throw new Error(`Unknown property reference type: ${value.type}`);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
// ../generator-converters/build/esm/valueFormatting/convertDateAndTimestampValueFormattingRule.js
|
|
380
|
-
function convertDateFormattingRule(wireFormatting) {
|
|
381
|
-
return {
|
|
382
|
-
type: "date",
|
|
383
|
-
format: convertDatetimeFormat(wireFormatting.format)
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
function convertTimestampFormattingRule(wireFormatting) {
|
|
387
|
-
return {
|
|
388
|
-
type: "timestamp",
|
|
389
|
-
format: convertDatetimeFormat(wireFormatting.format),
|
|
390
|
-
displayTimezone: convertDatetimeTimezone(wireFormatting.displayTimezone)
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
function convertDatetimeFormat(wireFormat) {
|
|
394
|
-
switch (wireFormat.type) {
|
|
395
|
-
case "stringFormat":
|
|
396
|
-
return {
|
|
397
|
-
type: "stringFormat",
|
|
398
|
-
pattern: wireFormat.pattern
|
|
399
|
-
};
|
|
400
|
-
case "localizedFormat":
|
|
401
|
-
return {
|
|
402
|
-
type: "localizedFormat",
|
|
403
|
-
format: wireFormat.format
|
|
404
|
-
};
|
|
405
|
-
default:
|
|
406
|
-
throw new Error(`Unknown datetime format type: ${wireFormat.type}`);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
function convertDatetimeTimezone(wireTimezone) {
|
|
410
|
-
switch (wireTimezone.type) {
|
|
411
|
-
case "static":
|
|
412
|
-
return {
|
|
413
|
-
type: "static",
|
|
414
|
-
zoneId: convertPropertyTypeReferenceOrStringConstant(wireTimezone.zoneId)
|
|
415
|
-
};
|
|
416
|
-
case "user":
|
|
417
|
-
return {
|
|
418
|
-
type: "user"
|
|
419
|
-
};
|
|
420
|
-
default:
|
|
421
|
-
throw new Error(`Unknown timezone type: ${wireTimezone.type}`);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
// ../generator-converters/build/esm/valueFormatting/convertKnownTypeValueFormattingRule.js
|
|
426
|
-
init_esm_shims();
|
|
427
|
-
function convertKnownTypeFormattingRule(wireFormatting) {
|
|
428
|
-
switch (wireFormatting.knownType) {
|
|
429
|
-
case "ARTIFACT_GID":
|
|
430
|
-
return {
|
|
431
|
-
type: "knownType",
|
|
432
|
-
knownType: "ARTIFACT_GID"
|
|
433
|
-
};
|
|
434
|
-
case "RESOURCE_RID":
|
|
435
|
-
return {
|
|
436
|
-
type: "knownType",
|
|
437
|
-
knownType: "RESOURCE_RID"
|
|
438
|
-
};
|
|
439
|
-
case "USER_OR_GROUP_ID":
|
|
440
|
-
return {
|
|
441
|
-
type: "knownType",
|
|
442
|
-
knownType: "USER_OR_GROUP_ID"
|
|
443
|
-
};
|
|
444
|
-
default:
|
|
445
|
-
wireFormatting.knownType;
|
|
446
|
-
return void 0;
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
// ../generator-converters/build/esm/valueFormatting/convertNumberValueFormattingRule.js
|
|
451
|
-
init_esm_shims();
|
|
452
|
-
function convertNumberFormattingRule(wireFormatting) {
|
|
453
|
-
const numberType = convertNumberFormattingType(wireFormatting.numberType);
|
|
454
|
-
if (!numberType) {
|
|
455
|
-
return void 0;
|
|
456
|
-
}
|
|
457
|
-
return {
|
|
458
|
-
type: "number",
|
|
459
|
-
numberType
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
function convertNumberFormatOptions(wireOptions) {
|
|
463
|
-
return {
|
|
464
|
-
useGrouping: wireOptions.useGrouping,
|
|
465
|
-
convertNegativeToParenthesis: wireOptions.convertNegativeToParenthesis,
|
|
466
|
-
minimumIntegerDigits: wireOptions.minimumIntegerDigits,
|
|
467
|
-
minimumFractionDigits: wireOptions.minimumFractionDigits,
|
|
468
|
-
maximumFractionDigits: wireOptions.maximumFractionDigits,
|
|
469
|
-
minimumSignificantDigits: wireOptions.minimumSignificantDigits,
|
|
470
|
-
maximumSignificantDigits: wireOptions.maximumSignificantDigits,
|
|
471
|
-
notation: wireOptions.notation,
|
|
472
|
-
roundingMode: wireOptions.roundingMode
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
function convertDurationFormatStyle(formatStyle) {
|
|
476
|
-
switch (formatStyle.type) {
|
|
477
|
-
case "humanReadable":
|
|
478
|
-
return {
|
|
479
|
-
type: "humanReadable",
|
|
480
|
-
showFullUnits: formatStyle.showFullUnits
|
|
481
|
-
};
|
|
482
|
-
case "timecode":
|
|
483
|
-
return {
|
|
484
|
-
type: "timecode"
|
|
485
|
-
};
|
|
486
|
-
default:
|
|
487
|
-
throw new Error(`Unknown duration format style: ${formatStyle.type}`);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
function convertNumberFormattingType(wireNumberType) {
|
|
491
|
-
switch (wireNumberType.type) {
|
|
492
|
-
case "standard":
|
|
493
|
-
return {
|
|
494
|
-
type: "standard",
|
|
495
|
-
baseFormatOptions: convertNumberFormatOptions(wireNumberType.baseFormatOptions)
|
|
496
|
-
};
|
|
497
|
-
case "fixedValues":
|
|
498
|
-
return {
|
|
499
|
-
type: "fixedValues",
|
|
500
|
-
values: wireNumberType.values
|
|
501
|
-
};
|
|
502
|
-
case "currency": {
|
|
503
|
-
return {
|
|
504
|
-
type: "currency",
|
|
505
|
-
baseFormatOptions: convertNumberFormatOptions(wireNumberType.baseFormatOptions),
|
|
506
|
-
style: wireNumberType.style,
|
|
507
|
-
currencyCode: convertPropertyTypeReferenceOrStringConstant(wireNumberType.currencyCode)
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
case "standardUnit": {
|
|
511
|
-
return {
|
|
512
|
-
type: "standardUnit",
|
|
513
|
-
baseFormatOptions: convertNumberFormatOptions(wireNumberType.baseFormatOptions),
|
|
514
|
-
unit: convertPropertyTypeReferenceOrStringConstant(wireNumberType.unit)
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
case "customUnit": {
|
|
518
|
-
return {
|
|
519
|
-
type: "customUnit",
|
|
520
|
-
baseFormatOptions: convertNumberFormatOptions(wireNumberType.baseFormatOptions),
|
|
521
|
-
unit: convertPropertyTypeReferenceOrStringConstant(wireNumberType.unit)
|
|
522
|
-
};
|
|
523
|
-
}
|
|
524
|
-
case "affix": {
|
|
525
|
-
return {
|
|
526
|
-
type: "affix",
|
|
527
|
-
baseFormatOptions: convertNumberFormatOptions(wireNumberType.baseFormatOptions),
|
|
528
|
-
affix: {
|
|
529
|
-
prefix: wireNumberType.affix?.prefix != null ? convertPropertyTypeReferenceOrStringConstant(wireNumberType.affix.prefix) : void 0,
|
|
530
|
-
postfix: wireNumberType.affix?.postfix != null ? convertPropertyTypeReferenceOrStringConstant(wireNumberType.affix.postfix) : void 0
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
case "duration": {
|
|
535
|
-
return {
|
|
536
|
-
type: "duration",
|
|
537
|
-
formatStyle: convertDurationFormatStyle(wireNumberType.formatStyle),
|
|
538
|
-
precision: wireNumberType.precision,
|
|
539
|
-
baseValue: wireNumberType.baseValue
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
case "scale": {
|
|
543
|
-
return {
|
|
544
|
-
type: "scale",
|
|
545
|
-
scaleType: wireNumberType.scaleType,
|
|
546
|
-
baseFormatOptions: convertNumberFormatOptions(wireNumberType.baseFormatOptions)
|
|
547
|
-
};
|
|
548
|
-
}
|
|
549
|
-
case "ratio": {
|
|
550
|
-
return {
|
|
551
|
-
type: "ratio",
|
|
552
|
-
ratioType: wireNumberType.ratioType,
|
|
553
|
-
baseFormatOptions: convertNumberFormatOptions(wireNumberType.baseFormatOptions)
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
default:
|
|
557
|
-
throw new Error(`Unknown number format type: ${wireNumberType.type}`);
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
// ../generator-converters/build/esm/wirePropertyFormattingToSdkFormatting.js
|
|
562
|
-
function wirePropertyFormattingToSdkFormatting(wireFormatting, log) {
|
|
563
|
-
try {
|
|
564
|
-
return convertPropertyFormattingInternal(wireFormatting);
|
|
565
|
-
} catch (error) {
|
|
566
|
-
log?.info(`Failed to convert property formatting rule: ${error}`);
|
|
567
|
-
return void 0;
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
function convertPropertyFormattingInternal(wireFormatting) {
|
|
571
|
-
switch (wireFormatting.type) {
|
|
572
|
-
case "date":
|
|
573
|
-
return convertDateFormattingRule(wireFormatting);
|
|
574
|
-
case "timestamp":
|
|
575
|
-
return convertTimestampFormattingRule(wireFormatting);
|
|
576
|
-
case "boolean":
|
|
577
|
-
return convertBooleanFormattingRule(wireFormatting);
|
|
578
|
-
case "knownType":
|
|
579
|
-
return convertKnownTypeFormattingRule(wireFormatting);
|
|
580
|
-
case "number":
|
|
581
|
-
return convertNumberFormattingRule(wireFormatting);
|
|
582
|
-
default:
|
|
583
|
-
throw new Error(`Unknown formatting type: ${wireFormatting.type}`);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
// ../generator-converters/build/esm/wirePropertyV2ToSdkPropertyDefinition.js
|
|
588
343
|
function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
589
344
|
const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(input.dataType, log);
|
|
590
345
|
if (sdkPropDefinition == null) {
|
|
@@ -617,8 +372,7 @@ function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
|
617
372
|
description: input.description,
|
|
618
373
|
type: sdkPropDefinition,
|
|
619
374
|
nullable: input.nullable == null ? isNullable : input.nullable,
|
|
620
|
-
valueTypeApiName: input.valueTypeApiName
|
|
621
|
-
valueFormatting: input.valueFormatting != null ? wirePropertyFormattingToSdkFormatting(input.valueFormatting, log) : void 0
|
|
375
|
+
valueTypeApiName: input.valueTypeApiName
|
|
622
376
|
};
|
|
623
377
|
case "array": {
|
|
624
378
|
return {
|
|
@@ -627,8 +381,7 @@ function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
|
627
381
|
description: input.description,
|
|
628
382
|
type: sdkPropDefinition,
|
|
629
383
|
nullable: true,
|
|
630
|
-
valueTypeApiName: input.valueTypeApiName
|
|
631
|
-
valueFormatting: input.valueFormatting != null ? wirePropertyFormattingToSdkFormatting(input.valueFormatting, log) : void 0
|
|
384
|
+
valueTypeApiName: input.valueTypeApiName
|
|
632
385
|
};
|
|
633
386
|
}
|
|
634
387
|
case "cipherText": {
|
|
@@ -965,8 +718,7 @@ function wireQueryDataTypeToQueryDataTypeDefinition(input) {
|
|
|
965
718
|
return {
|
|
966
719
|
array: wireQueryDataTypeToQueryDataTypeDefinition(input.subType),
|
|
967
720
|
type: "array",
|
|
968
|
-
nullable: isNullableQueryDataType(input.subType)
|
|
969
|
-
multiplicity: true
|
|
721
|
+
nullable: isNullableQueryDataType(input.subType)
|
|
970
722
|
};
|
|
971
723
|
case "set":
|
|
972
724
|
return {
|
|
@@ -17717,9 +17469,6 @@ async function generateOntologyMetadataFile({
|
|
|
17717
17469
|
${ontologyApiNamespace == null ? `
|
|
17718
17470
|
export const $ontologyRid = "${ontology.ontology.rid}";
|
|
17719
17471
|
` : ""}
|
|
17720
|
-
${ontology.raw.branch != null ? `
|
|
17721
|
-
export const $branch = "${ontology.raw.branch.rid}";
|
|
17722
|
-
` : ""}
|
|
17723
17472
|
`));
|
|
17724
17473
|
}
|
|
17725
17474
|
|
|
@@ -19035,7 +18784,7 @@ function createSharedClientContext(baseUrl, tokenProvider, userAgent, fetchFn =
|
|
|
19035
18784
|
|
|
19036
18785
|
// ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
|
|
19037
18786
|
var import_fast_deep_equal2 = __toESM(require_fast_deep_equal(), 1);
|
|
19038
|
-
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.30.0-
|
|
18787
|
+
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.30.0-rc.6"}`;
|
|
19039
18788
|
async function handleGenerate(args) {
|
|
19040
18789
|
let success = false;
|
|
19041
18790
|
if (args.ontologyPath) {
|
|
@@ -19086,9 +18835,7 @@ async function generateFromStack(args) {
|
|
|
19086
18835
|
consola.error(`Could not look up ontology with these credentials. Found ${ontologies.data.length} ontologies.`);
|
|
19087
18836
|
return false;
|
|
19088
18837
|
}
|
|
19089
|
-
const ontology = await OntologyV2_exports.getFullMetadata(ctx, ontologies.data[0].apiName
|
|
19090
|
-
branch: args.branch
|
|
19091
|
-
});
|
|
18838
|
+
const ontology = await OntologyV2_exports.getFullMetadata(ctx, ontologies.data[0].apiName);
|
|
19092
18839
|
ontology.actionTypes = sortKeys2(ontology.actionTypes, (x) => {
|
|
19093
18840
|
return {
|
|
19094
18841
|
...x,
|
|
@@ -19175,7 +18922,7 @@ async function generateClientSdk(ontology, args) {
|
|
|
19175
18922
|
}
|
|
19176
18923
|
return true;
|
|
19177
18924
|
}
|
|
19178
|
-
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.30.0-
|
|
18925
|
+
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.30.0-rc.6", args.externalObjects, args.externalInterfaces);
|
|
19179
18926
|
return true;
|
|
19180
18927
|
} catch (e) {
|
|
19181
18928
|
consola.error("OSDK generation failed", e.message, e.stack);
|
|
@@ -19202,8 +18949,8 @@ async function getDependencyVersions() {
|
|
|
19202
18949
|
typescriptVersion,
|
|
19203
18950
|
tslibVersion,
|
|
19204
18951
|
areTheTypesWrongVersion,
|
|
19205
|
-
osdkApiVersion: `^${"2.6.0-
|
|
19206
|
-
osdkClientVersion: `^${"2.6.0-
|
|
18952
|
+
osdkApiVersion: `^${"2.6.0-rc.14"}`,
|
|
18953
|
+
osdkClientVersion: `^${"2.6.0-rc.14"}`,
|
|
19207
18954
|
osdkLegacyClientVersion
|
|
19208
18955
|
};
|
|
19209
18956
|
}
|
|
@@ -19242,5 +18989,5 @@ function createNormalFs() {
|
|
|
19242
18989
|
}
|
|
19243
18990
|
|
|
19244
18991
|
export { getDependencyVersions, handleGenerate, updateVersionsIfTheyExist };
|
|
19245
|
-
//# sourceMappingURL=handleGenerate-
|
|
19246
|
-
//# sourceMappingURL=handleGenerate-
|
|
18992
|
+
//# sourceMappingURL=handleGenerate-ZQ354K3F.js.map
|
|
18993
|
+
//# sourceMappingURL=handleGenerate-ZQ354K3F.js.map
|