@osdk/cli 0.29.0-rc.6 → 0.30.0-beta.2
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 +1 -1
- package/build/esm/{acorn-OOLA2SYL.js → acorn-YSEQ53CG.js} +3 -3
- package/build/esm/{acorn-OOLA2SYL.js.map → acorn-YSEQ53CG.js.map} +1 -1
- package/build/esm/{angular-B3DVBAJV.js → angular-7FD4VEB2.js} +3 -3
- package/build/esm/{angular-B3DVBAJV.js.map → angular-7FD4VEB2.js.map} +1 -1
- package/build/esm/{babel-QGU36NF2.js → babel-4O5ROH7P.js} +3 -3
- package/build/esm/{babel-QGU36NF2.js.map → babel-4O5ROH7P.js.map} +1 -1
- package/build/esm/{chunk-5WP6J4UN.js → chunk-ESVT7U37.js} +3 -3
- package/build/esm/{chunk-5WP6J4UN.js.map → chunk-ESVT7U37.js.map} +1 -1
- package/build/esm/{chunk-J2YZJA3N.js → chunk-EYHL32EC.js} +6 -6
- package/build/esm/{chunk-J2YZJA3N.js.map → chunk-EYHL32EC.js.map} +1 -1
- package/build/esm/{chunk-SEG3TN7G.js → chunk-JMZKMGV3.js} +3 -3
- package/build/esm/{chunk-SEG3TN7G.js.map → chunk-JMZKMGV3.js.map} +1 -1
- package/build/esm/{chunk-QCQEOFJ7.js → chunk-PTWXGEFK.js} +5 -5
- package/build/esm/{chunk-QCQEOFJ7.js.map → chunk-PTWXGEFK.js.map} +1 -1
- package/build/esm/{chunk-CZNX7NAA.js → chunk-QINZLUQ3.js} +3 -3
- package/build/esm/{chunk-CZNX7NAA.js.map → chunk-QINZLUQ3.js.map} +1 -1
- package/build/esm/{chunk-TGQMPTOO.js → chunk-RBJBODXB.js} +3 -3
- package/build/esm/{chunk-TGQMPTOO.js.map → chunk-RBJBODXB.js.map} +1 -1
- package/build/esm/{chunk-2R54QG3I.js → chunk-VI2PPUJW.js} +3 -3
- package/build/esm/{chunk-2R54QG3I.js.map → chunk-VI2PPUJW.js.map} +1 -1
- package/build/esm/{chunk-HDRBKETK.js → chunk-Y4CQMWPS.js} +3 -3
- package/build/esm/{chunk-HDRBKETK.js.map → chunk-Y4CQMWPS.js.map} +1 -1
- package/build/esm/{chunk-WLPJIKJV.js → chunk-Z2MJFYY7.js} +3 -3
- package/build/esm/{chunk-WLPJIKJV.js.map → chunk-Z2MJFYY7.js.map} +1 -1
- package/build/esm/{estree-ATGZ6OGQ.js → estree-EM55NQOH.js} +3 -3
- package/build/esm/{estree-ATGZ6OGQ.js.map → estree-EM55NQOH.js.map} +1 -1
- package/build/esm/find-up-4NYOPMEX.js +4 -0
- package/build/esm/{find-up-JM7QWHT3.js.map → find-up-4NYOPMEX.js.map} +1 -1
- package/build/esm/{flow-GUZBCHQS.js → flow-Q44IFPPY.js} +3 -3
- package/build/esm/{flow-GUZBCHQS.js.map → flow-Q44IFPPY.js.map} +1 -1
- package/build/esm/{glimmer-K2WK52BN.js → glimmer-IAOCCN7N.js} +3 -3
- package/build/esm/{glimmer-K2WK52BN.js.map → glimmer-IAOCCN7N.js.map} +1 -1
- package/build/esm/{graphql-MBGHR3ZR.js → graphql-FSED3VAI.js} +3 -3
- package/build/esm/{graphql-MBGHR3ZR.js.map → graphql-FSED3VAI.js.map} +1 -1
- package/build/esm/{handleGenerate-KOADZ5FR.js → handleGenerate-UXE7MLGC.js} +299 -53
- package/build/esm/handleGenerate-UXE7MLGC.js.map +1 -0
- package/build/esm/{html-IRNVR4MI.js → html-X5TDJHVJ.js} +3 -3
- package/build/esm/{html-IRNVR4MI.js.map → html-X5TDJHVJ.js.map} +1 -1
- package/build/esm/index.js +22 -18
- package/build/esm/index.js.map +1 -1
- package/build/esm/loginFlow-IXG6OKLA.js +4 -0
- package/build/esm/{loginFlow-AGXNBVJB.js.map → loginFlow-IXG6OKLA.js.map} +1 -1
- package/build/esm/{markdown-N3ITOTMK.js → markdown-3BO6WVIC.js} +3 -3
- package/build/esm/{markdown-N3ITOTMK.js.map → markdown-3BO6WVIC.js.map} +1 -1
- package/build/esm/{meriyah-LUFL36FF.js → meriyah-VLP2WI6O.js} +3 -3
- package/build/esm/{meriyah-LUFL36FF.js.map → meriyah-VLP2WI6O.js.map} +1 -1
- package/build/esm/{postcss-TV6UK7MR.js → postcss-HMVGVGRU.js} +3 -3
- package/build/esm/{postcss-TV6UK7MR.js.map → postcss-HMVGVGRU.js.map} +1 -1
- package/build/esm/{siteDeployCommand-4XKHQO4G.js → siteDeployCommand-I5MXZMWO.js} +8 -8
- package/build/esm/{siteDeployCommand-4XKHQO4G.js.map → siteDeployCommand-I5MXZMWO.js.map} +1 -1
- package/build/esm/{typescript-KPTOIHC3.js → typescript-22FVOYI3.js} +3 -3
- package/build/esm/{typescript-KPTOIHC3.js.map → typescript-22FVOYI3.js.map} +1 -1
- package/build/esm/{versionDeleteCommand-RLDPF3CC.js → versionDeleteCommand-T2HADLVX.js} +7 -7
- package/build/esm/{versionDeleteCommand-RLDPF3CC.js.map → versionDeleteCommand-T2HADLVX.js.map} +1 -1
- package/build/esm/{versionDeleteCommand-OF2PZR4F.js → versionDeleteCommand-WKK57FKV.js} +7 -7
- package/build/esm/{versionDeleteCommand-OF2PZR4F.js.map → versionDeleteCommand-WKK57FKV.js.map} +1 -1
- package/build/esm/{versionGetCommand-VYIQ5QD4.js → versionGetCommand-2Q6W47OZ.js} +6 -6
- package/build/esm/{versionGetCommand-VYIQ5QD4.js.map → versionGetCommand-2Q6W47OZ.js.map} +1 -1
- package/build/esm/{versionInfoCommand-RBHLAHNP.js → versionInfoCommand-BDEAC73J.js} +6 -6
- package/build/esm/{versionInfoCommand-RBHLAHNP.js.map → versionInfoCommand-BDEAC73J.js.map} +1 -1
- package/build/esm/{versionListCommand-R6S7EWTY.js → versionListCommand-I4QAPR6P.js} +6 -6
- package/build/esm/{versionListCommand-R6S7EWTY.js.map → versionListCommand-I4QAPR6P.js.map} +1 -1
- package/build/esm/{versionListCommand-NJKWNOAQ.js → versionListCommand-TEBYLXIN.js} +6 -6
- package/build/esm/{versionListCommand-NJKWNOAQ.js.map → versionListCommand-TEBYLXIN.js.map} +1 -1
- package/build/esm/{versionSetCommand-B6ILNHRQ.js → versionSetCommand-YPTC5JFZ.js} +6 -6
- package/build/esm/{versionSetCommand-B6ILNHRQ.js.map → versionSetCommand-YPTC5JFZ.js.map} +1 -1
- package/build/esm/{versionUnsetCommand-M6WFHVOV.js → versionUnsetCommand-VQ3R5K4R.js} +7 -7
- package/build/esm/{versionUnsetCommand-M6WFHVOV.js.map → versionUnsetCommand-VQ3R5K4R.js.map} +1 -1
- package/build/esm/{widgetSetDeployCommand-VL5GCVWG.js → widgetSetDeployCommand-ZWCYHTS2.js} +7 -7
- package/build/esm/{widgetSetDeployCommand-VL5GCVWG.js.map → widgetSetDeployCommand-ZWCYHTS2.js.map} +1 -1
- package/build/esm/{yaml-LD5K7H4C.js → yaml-AXQPPS5Y.js} +3 -3
- package/build/esm/{yaml-LD5K7H4C.js.map → yaml-AXQPPS5Y.js.map} +1 -1
- package/package.json +9 -9
- package/build/esm/find-up-JM7QWHT3.js +0 -4
- package/build/esm/handleGenerate-KOADZ5FR.js.map +0 -1
- package/build/esm/loginFlow-AGXNBVJB.js +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createFetchHeaderMutator, createRetryingFetch, createFetchOrThrow, PalantirApiError } from './chunk-
|
|
2
|
-
import { YargsCheckError, ExitProcessError } from './chunk-
|
|
3
|
-
import { findUp } from './chunk-
|
|
4
|
-
import { invokeLoginFlow } from './chunk-
|
|
5
|
-
import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-
|
|
1
|
+
import { createFetchHeaderMutator, createRetryingFetch, createFetchOrThrow, PalantirApiError } from './chunk-VI2PPUJW.js';
|
|
2
|
+
import { YargsCheckError, ExitProcessError } from './chunk-ESVT7U37.js';
|
|
3
|
+
import { findUp } from './chunk-JMZKMGV3.js';
|
|
4
|
+
import { invokeLoginFlow } from './chunk-QINZLUQ3.js';
|
|
5
|
+
import { __commonJS, init_esm_shims, __export, __toESM } from './chunk-RBJBODXB.js';
|
|
6
6
|
import * as fs5 from 'fs';
|
|
7
7
|
import fs5__default, { realpathSync, statSync } from 'fs';
|
|
8
8
|
import * as path10 from 'path';
|
|
@@ -54,16 +54,16 @@ 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.35.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.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
61
61
|
init_esm_shims();
|
|
62
62
|
|
|
63
|
-
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.
|
|
63
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
|
|
64
64
|
init_esm_shims();
|
|
65
65
|
|
|
66
|
-
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.
|
|
66
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
|
|
67
67
|
init_esm_shims();
|
|
68
68
|
|
|
69
69
|
// ../../node_modules/.pnpm/@osdk+shared.client@1.0.1/node_modules/@osdk/shared.client/index.js
|
|
@@ -74,40 +74,34 @@ var symbolClientContext = Symbol("ClientContext");
|
|
|
74
74
|
init_esm_shims();
|
|
75
75
|
var symbolClientContext2 = "__osdkClientContext";
|
|
76
76
|
|
|
77
|
-
// ../../node_modules/.pnpm/@osdk+shared.net.errors@2.0.
|
|
77
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.errors@2.5.0-beta.2/node_modules/@osdk/shared.net.errors/build/esm/index.js
|
|
78
78
|
init_esm_shims();
|
|
79
79
|
|
|
80
|
-
// ../../node_modules/.pnpm/@osdk+shared.net.errors@2.0.
|
|
80
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.errors@2.5.0-beta.2/node_modules/@osdk/shared.net.errors/build/esm/PalantirApiError.js
|
|
81
81
|
init_esm_shims();
|
|
82
82
|
var PalantirApiError2 = class extends Error {
|
|
83
|
-
message
|
|
84
|
-
errorName;
|
|
85
|
-
errorCode;
|
|
86
|
-
statusCode;
|
|
87
|
-
errorInstanceId;
|
|
88
|
-
parameters;
|
|
89
|
-
constructor(message, errorName, errorCode, statusCode, errorInstanceId, parameters) {
|
|
83
|
+
constructor(message, errorName, errorCode, errorDescription, statusCode, errorInstanceId, parameters) {
|
|
90
84
|
super(message);
|
|
91
85
|
this.message = message;
|
|
92
86
|
this.errorName = errorName;
|
|
93
87
|
this.errorCode = errorCode;
|
|
88
|
+
this.errorDescription = errorDescription;
|
|
94
89
|
this.statusCode = statusCode;
|
|
95
90
|
this.errorInstanceId = errorInstanceId;
|
|
96
91
|
this.parameters = parameters;
|
|
97
92
|
}
|
|
98
93
|
};
|
|
99
94
|
|
|
100
|
-
// ../../node_modules/.pnpm/@osdk+shared.net.errors@2.0.
|
|
95
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.errors@2.5.0-beta.2/node_modules/@osdk/shared.net.errors/build/esm/UnknownError.js
|
|
101
96
|
init_esm_shims();
|
|
102
97
|
var UnknownError = class extends PalantirApiError2 {
|
|
103
|
-
originalError
|
|
104
|
-
|
|
105
|
-
super(message, errorType);
|
|
98
|
+
constructor(message, errorName, originalError, statusCode) {
|
|
99
|
+
super(message, errorName, void 0, void 0, statusCode);
|
|
106
100
|
this.originalError = originalError;
|
|
107
101
|
}
|
|
108
102
|
};
|
|
109
103
|
|
|
110
|
-
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.
|
|
104
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
|
|
111
105
|
async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {
|
|
112
106
|
const path23 = origPath.replace(/\{([^}]+)\}/g, () => encodeURIComponent(args.shift()));
|
|
113
107
|
const body = flags & 1 ? args.shift() : void 0;
|
|
@@ -151,7 +145,7 @@ async function apiFetch(clientCtx, method, endpointPath, data, queryArguments, h
|
|
|
151
145
|
if (!response.ok) {
|
|
152
146
|
try {
|
|
153
147
|
const convertedError = await response.json();
|
|
154
|
-
return new PalantirApiError2(convertedError.message, convertedError.errorName, convertedError.errorCode, response.status, convertedError.errorInstanceId, convertedError.parameters);
|
|
148
|
+
return new PalantirApiError2(convertedError.message, convertedError.errorName, convertedError.errorCode, convertedError.errorDescription, response.status, convertedError.errorInstanceId, convertedError.parameters);
|
|
155
149
|
} catch (e) {
|
|
156
150
|
if (e instanceof Error) {
|
|
157
151
|
return new UnknownError(e.message, "UNKNOWN");
|
|
@@ -172,40 +166,43 @@ function parseUrl(baseUrl, endpointPath) {
|
|
|
172
166
|
return new URL(`api${endpointPath}`, baseUrl);
|
|
173
167
|
}
|
|
174
168
|
|
|
175
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
169
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeFullMetadata.js
|
|
176
170
|
init_esm_shims();
|
|
177
171
|
|
|
178
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
172
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
|
|
179
173
|
init_esm_shims();
|
|
180
174
|
|
|
181
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
175
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
|
|
182
176
|
init_esm_shims();
|
|
183
177
|
|
|
184
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
178
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
|
|
185
179
|
init_esm_shims();
|
|
186
180
|
|
|
187
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
181
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
|
|
188
182
|
init_esm_shims();
|
|
189
183
|
|
|
190
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
184
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
|
|
191
185
|
init_esm_shims();
|
|
192
186
|
|
|
193
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
187
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
|
|
194
188
|
init_esm_shims();
|
|
195
189
|
|
|
196
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
190
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
|
|
197
191
|
init_esm_shims();
|
|
198
192
|
|
|
199
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
193
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
|
|
200
194
|
init_esm_shims();
|
|
201
195
|
|
|
202
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
196
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
|
|
203
197
|
init_esm_shims();
|
|
204
198
|
|
|
205
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
199
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
|
|
206
200
|
init_esm_shims();
|
|
207
201
|
|
|
208
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
202
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
|
|
203
|
+
init_esm_shims();
|
|
204
|
+
|
|
205
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
|
|
209
206
|
var OntologyV2_exports = {};
|
|
210
207
|
__export(OntologyV2_exports, {
|
|
211
208
|
get: () => get,
|
|
@@ -231,19 +228,19 @@ function loadMetadata($ctx, ...args) {
|
|
|
231
228
|
return foundryPlatformFetch($ctx, _loadMetadata, ...args);
|
|
232
229
|
}
|
|
233
230
|
|
|
234
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
231
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyValueType.js
|
|
235
232
|
init_esm_shims();
|
|
236
233
|
|
|
237
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
234
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
|
|
238
235
|
init_esm_shims();
|
|
239
236
|
|
|
240
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
237
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
|
|
241
238
|
init_esm_shims();
|
|
242
239
|
|
|
243
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
240
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
|
|
244
241
|
init_esm_shims();
|
|
245
242
|
|
|
246
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
243
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.35.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
|
|
247
244
|
init_esm_shims();
|
|
248
245
|
|
|
249
246
|
// ../generator/build/esm/index.js
|
|
@@ -343,6 +340,251 @@ init_esm_shims();
|
|
|
343
340
|
|
|
344
341
|
// ../generator-converters/build/esm/wirePropertyV2ToSdkPropertyDefinition.js
|
|
345
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
|
|
346
588
|
function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
347
589
|
const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(input.dataType, log);
|
|
348
590
|
if (sdkPropDefinition == null) {
|
|
@@ -375,7 +617,8 @@ function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
|
375
617
|
description: input.description,
|
|
376
618
|
type: sdkPropDefinition,
|
|
377
619
|
nullable: input.nullable == null ? isNullable : input.nullable,
|
|
378
|
-
valueTypeApiName: input.valueTypeApiName
|
|
620
|
+
valueTypeApiName: input.valueTypeApiName,
|
|
621
|
+
valueFormatting: input.valueFormatting != null ? wirePropertyFormattingToSdkFormatting(input.valueFormatting, log) : void 0
|
|
379
622
|
};
|
|
380
623
|
case "array": {
|
|
381
624
|
return {
|
|
@@ -384,7 +627,8 @@ function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
|
384
627
|
description: input.description,
|
|
385
628
|
type: sdkPropDefinition,
|
|
386
629
|
nullable: true,
|
|
387
|
-
valueTypeApiName: input.valueTypeApiName
|
|
630
|
+
valueTypeApiName: input.valueTypeApiName,
|
|
631
|
+
valueFormatting: input.valueFormatting != null ? wirePropertyFormattingToSdkFormatting(input.valueFormatting, log) : void 0
|
|
388
632
|
};
|
|
389
633
|
}
|
|
390
634
|
case "cipherText": {
|
|
@@ -13036,7 +13280,7 @@ var parseYaml;
|
|
|
13036
13280
|
async function loadYaml(file) {
|
|
13037
13281
|
const content = await read_file_default(file);
|
|
13038
13282
|
if (!parseYaml) {
|
|
13039
|
-
({ __parsePrettierYamlConfig: parseYaml } = await import('./yaml-
|
|
13283
|
+
({ __parsePrettierYamlConfig: parseYaml } = await import('./yaml-AXQPPS5Y.js'));
|
|
13040
13284
|
}
|
|
13041
13285
|
try {
|
|
13042
13286
|
return parseYaml(content);
|
|
@@ -17108,7 +17352,7 @@ function createParsersAndPrinters(modules) {
|
|
|
17108
17352
|
}
|
|
17109
17353
|
var options7 = { ...options_default, ...options_default2, ...options_default3, ...options_default4, ...options_default5, ...options_default6 };
|
|
17110
17354
|
var languages = [...languages_evaluate_default, ...languages_evaluate_default2, ...languages_evaluate_default3, ...languages_evaluate_default4, ...languages_evaluate_default5, ...languages_evaluate_default6, ...languages_evaluate_default7, ...languages_evaluate_default8];
|
|
17111
|
-
var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-
|
|
17355
|
+
var { parsers, printers } = createParsersAndPrinters([{ importPlugin: () => import('./acorn-YSEQ53CG.js'), parsers: ["acorn", "espree"] }, { importPlugin: () => import('./angular-7FD4VEB2.js'), parsers: ["__ng_action", "__ng_binding", "__ng_interpolation", "__ng_directive"] }, { importPlugin: () => import('./babel-4O5ROH7P.js'), parsers: ["babel", "babel-flow", "babel-ts", "__js_expression", "__ts_expression", "__vue_expression", "__vue_ts_expression", "__vue_event_binding", "__vue_ts_event_binding", "__babel_estree", "json", "json5", "jsonc", "json-stringify"] }, { importPlugin: () => import('./estree-EM55NQOH.js'), printers: ["estree", "estree-json"] }, { importPlugin: () => import('./flow-Q44IFPPY.js'), parsers: ["flow"] }, { importPlugin: () => import('./glimmer-IAOCCN7N.js'), parsers: ["glimmer"], printers: ["glimmer"] }, { importPlugin: () => import('./graphql-FSED3VAI.js'), parsers: ["graphql"], printers: ["graphql"] }, { importPlugin: () => import('./html-X5TDJHVJ.js'), parsers: ["html", "angular", "vue", "lwc", "mjml"], printers: ["html"] }, { importPlugin: () => import('./markdown-3BO6WVIC.js'), parsers: ["markdown", "mdx", "remark"], printers: ["mdast"] }, { importPlugin: () => import('./meriyah-VLP2WI6O.js'), parsers: ["meriyah"] }, { importPlugin: () => import('./postcss-HMVGVGRU.js'), parsers: ["css", "less", "scss"], printers: ["postcss"] }, { importPlugin: () => import('./typescript-22FVOYI3.js'), parsers: ["typescript"] }, { importPlugin: () => import('./yaml-AXQPPS5Y.js'), parsers: ["yaml"], printers: ["yaml"] }]);
|
|
17112
17356
|
function loadBuiltinPlugins() {
|
|
17113
17357
|
return [builtin_plugins_proxy_exports];
|
|
17114
17358
|
}
|
|
@@ -17458,7 +17702,7 @@ function formatTs(contents) {
|
|
|
17458
17702
|
}
|
|
17459
17703
|
|
|
17460
17704
|
// ../generator/build/esm/v2.0/generateMetadata.js
|
|
17461
|
-
var ExpectedOsdkVersion = "2.
|
|
17705
|
+
var ExpectedOsdkVersion = "2.6.0";
|
|
17462
17706
|
async function generateOntologyMetadataFile({
|
|
17463
17707
|
fs: fs6,
|
|
17464
17708
|
outDir,
|
|
@@ -18791,7 +19035,7 @@ function createSharedClientContext(baseUrl, tokenProvider, userAgent, fetchFn =
|
|
|
18791
19035
|
|
|
18792
19036
|
// ../cli.cmd.typescript/build/esm/generate/handleGenerate.mjs
|
|
18793
19037
|
var import_fast_deep_equal2 = __toESM(require_fast_deep_equal(), 1);
|
|
18794
|
-
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.
|
|
19038
|
+
var USER_AGENT = `osdk-cli.cmd.typescript/${"0.30.0-beta.2"}`;
|
|
18795
19039
|
async function handleGenerate(args) {
|
|
18796
19040
|
let success = false;
|
|
18797
19041
|
if (args.ontologyPath) {
|
|
@@ -18842,7 +19086,9 @@ async function generateFromStack(args) {
|
|
|
18842
19086
|
consola.error(`Could not look up ontology with these credentials. Found ${ontologies.data.length} ontologies.`);
|
|
18843
19087
|
return false;
|
|
18844
19088
|
}
|
|
18845
|
-
const ontology = await OntologyV2_exports.getFullMetadata(ctx, ontologies.data[0].apiName
|
|
19089
|
+
const ontology = await OntologyV2_exports.getFullMetadata(ctx, ontologies.data[0].apiName, {
|
|
19090
|
+
branch: args.branch
|
|
19091
|
+
});
|
|
18846
19092
|
ontology.actionTypes = sortKeys2(ontology.actionTypes, (x) => {
|
|
18847
19093
|
return {
|
|
18848
19094
|
...x,
|
|
@@ -18929,7 +19175,7 @@ async function generateClientSdk(ontology, args) {
|
|
|
18929
19175
|
}
|
|
18930
19176
|
return true;
|
|
18931
19177
|
}
|
|
18932
|
-
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.
|
|
19178
|
+
await generateClientSdkPackage(args.packageName, args.version, args.beta ? "2.0" : "1.1", args.outDir, ontology, minimalFs, await getDependencyVersions(), "0.30.0-beta.2", args.externalObjects, args.externalInterfaces);
|
|
18933
19179
|
return true;
|
|
18934
19180
|
} catch (e) {
|
|
18935
19181
|
consola.error("OSDK generation failed", e.message, e.stack);
|
|
@@ -18956,8 +19202,8 @@ async function getDependencyVersions() {
|
|
|
18956
19202
|
typescriptVersion,
|
|
18957
19203
|
tslibVersion,
|
|
18958
19204
|
areTheTypesWrongVersion,
|
|
18959
|
-
osdkApiVersion: `^${"2.
|
|
18960
|
-
osdkClientVersion: `^${"2.
|
|
19205
|
+
osdkApiVersion: `^${"2.6.0-beta.2"}`,
|
|
19206
|
+
osdkClientVersion: `^${"2.6.0-beta.2"}`,
|
|
18961
19207
|
osdkLegacyClientVersion
|
|
18962
19208
|
};
|
|
18963
19209
|
}
|
|
@@ -18996,5 +19242,5 @@ function createNormalFs() {
|
|
|
18996
19242
|
}
|
|
18997
19243
|
|
|
18998
19244
|
export { getDependencyVersions, handleGenerate, updateVersionsIfTheyExist };
|
|
18999
|
-
//# sourceMappingURL=handleGenerate-
|
|
19000
|
-
//# sourceMappingURL=handleGenerate-
|
|
19245
|
+
//# sourceMappingURL=handleGenerate-UXE7MLGC.js.map
|
|
19246
|
+
//# sourceMappingURL=handleGenerate-UXE7MLGC.js.map
|