@rippling/rippling-sdk 0.2.0-alpha.94 → 0.2.0-alpha.95
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/client.d.mts +7 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -1
- package/client.d.ts.map +1 -1
- package/client.js +7 -1
- package/client.js.map +1 -1
- package/client.mjs +7 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/metadata/components.d.mts +1 -242
- package/resources/metadata/components.d.mts.map +1 -1
- package/resources/metadata/components.d.ts +1 -242
- package/resources/metadata/components.d.ts.map +1 -1
- package/resources/metadata/components.js +0 -51
- package/resources/metadata/components.js.map +1 -1
- package/resources/metadata/components.mjs +0 -51
- package/resources/metadata/components.mjs.map +1 -1
- package/resources/metadata/deployment-runs.d.mts +1 -133
- package/resources/metadata/deployment-runs.d.mts.map +1 -1
- package/resources/metadata/deployment-runs.d.ts +1 -133
- package/resources/metadata/deployment-runs.d.ts.map +1 -1
- package/resources/metadata/deployment-runs.js +0 -60
- package/resources/metadata/deployment-runs.js.map +1 -1
- package/resources/metadata/deployment-runs.mjs +0 -60
- package/resources/metadata/deployment-runs.mjs.map +1 -1
- package/resources/metadata/index.d.mts +3 -5
- package/resources/metadata/index.d.mts.map +1 -1
- package/resources/metadata/index.d.ts +3 -5
- package/resources/metadata/index.d.ts.map +1 -1
- package/resources/metadata/index.js +1 -5
- package/resources/metadata/index.js.map +1 -1
- package/resources/metadata/index.mjs +0 -2
- package/resources/metadata/index.mjs.map +1 -1
- package/resources/metadata/metadata.d.mts +6 -14
- package/resources/metadata/metadata.d.mts.map +1 -1
- package/resources/metadata/metadata.d.ts +6 -14
- package/resources/metadata/metadata.d.ts.map +1 -1
- package/resources/metadata/metadata.js +0 -8
- package/resources/metadata/metadata.js.map +1 -1
- package/resources/metadata/metadata.mjs +0 -8
- package/resources/metadata/metadata.mjs.map +1 -1
- package/resources/metadata/validation-runs.d.mts +1 -133
- package/resources/metadata/validation-runs.d.mts.map +1 -1
- package/resources/metadata/validation-runs.d.ts +1 -133
- package/resources/metadata/validation-runs.d.ts.map +1 -1
- package/resources/metadata/validation-runs.js +0 -60
- package/resources/metadata/validation-runs.js.map +1 -1
- package/resources/metadata/validation-runs.mjs +0 -60
- package/resources/metadata/validation-runs.mjs.map +1 -1
- package/resources/package-upgrades.d.mts +140 -0
- package/resources/package-upgrades.d.mts.map +1 -0
- package/resources/package-upgrades.d.ts +140 -0
- package/resources/package-upgrades.d.ts.map +1 -0
- package/resources/package-upgrades.js +25 -0
- package/resources/package-upgrades.js.map +1 -0
- package/resources/package-upgrades.mjs +21 -0
- package/resources/package-upgrades.mjs.map +1 -0
- package/resources/package-versions.d.mts +63 -1
- package/resources/package-versions.d.mts.map +1 -1
- package/resources/package-versions.d.ts +63 -1
- package/resources/package-versions.d.ts.map +1 -1
- package/resources/package-versions.js +15 -2
- package/resources/package-versions.js.map +1 -1
- package/resources/package-versions.mjs +13 -1
- package/resources/package-versions.mjs.map +1 -1
- package/resources/packages/available-upgrades.d.mts +33 -0
- package/resources/packages/available-upgrades.d.mts.map +1 -0
- package/resources/packages/available-upgrades.d.ts +33 -0
- package/resources/packages/available-upgrades.d.ts.map +1 -0
- package/resources/packages/available-upgrades.js +20 -0
- package/resources/packages/available-upgrades.js.map +1 -0
- package/resources/packages/available-upgrades.mjs +16 -0
- package/resources/packages/available-upgrades.mjs.map +1 -0
- package/resources/packages/index.d.mts +2 -0
- package/resources/packages/index.d.mts.map +1 -1
- package/resources/packages/index.d.ts +2 -0
- package/resources/packages/index.d.ts.map +1 -1
- package/resources/packages/index.js +5 -1
- package/resources/packages/index.js.map +1 -1
- package/resources/packages/index.mjs +2 -0
- package/resources/packages/index.mjs.map +1 -1
- package/resources/{package-versions → packages}/next-versions.d.mts +3 -3
- package/resources/packages/next-versions.d.mts.map +1 -0
- package/resources/{package-versions → packages}/next-versions.d.ts +3 -3
- package/resources/packages/next-versions.d.ts.map +1 -0
- package/resources/{package-versions → packages}/next-versions.js +4 -4
- package/resources/packages/next-versions.js.map +1 -0
- package/resources/{package-versions → packages}/next-versions.mjs +4 -4
- package/resources/packages/next-versions.mjs.map +1 -0
- package/resources/packages/packages.d.mts +8 -0
- package/resources/packages/packages.d.mts.map +1 -1
- package/resources/packages/packages.d.ts +8 -0
- package/resources/packages/packages.d.ts.map +1 -1
- package/resources/packages/packages.js +8 -0
- package/resources/packages/packages.js.map +1 -1
- package/resources/packages/packages.mjs +8 -0
- package/resources/packages/packages.mjs.map +1 -1
- package/src/client.ts +23 -5
- package/src/resources/index.ts +7 -1
- package/src/resources/metadata/components.ts +0 -281
- package/src/resources/metadata/deployment-runs.ts +0 -170
- package/src/resources/metadata/index.ts +0 -16
- package/src/resources/metadata/metadata.ts +0 -38
- package/src/resources/metadata/validation-runs.ts +0 -170
- package/src/resources/package-upgrades.ts +183 -0
- package/src/resources/package-versions.ts +86 -1
- package/src/resources/packages/available-upgrades.ts +51 -0
- package/src/resources/packages/index.ts +6 -0
- package/src/resources/{package-versions → packages}/next-versions.ts +4 -4
- package/src/resources/packages/packages.ts +26 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/metadata/component-schemas.d.mts +0 -93
- package/resources/metadata/component-schemas.d.mts.map +0 -1
- package/resources/metadata/component-schemas.d.ts +0 -93
- package/resources/metadata/component-schemas.d.ts.map +0 -1
- package/resources/metadata/component-schemas.js +0 -28
- package/resources/metadata/component-schemas.js.map +0 -1
- package/resources/metadata/component-schemas.mjs +0 -24
- package/resources/metadata/component-schemas.mjs.map +0 -1
- package/resources/metadata/component-types.d.mts +0 -47
- package/resources/metadata/component-types.d.mts.map +0 -1
- package/resources/metadata/component-types.d.ts +0 -47
- package/resources/metadata/component-types.d.ts.map +0 -1
- package/resources/metadata/component-types.js +0 -27
- package/resources/metadata/component-types.js.map +0 -1
- package/resources/metadata/component-types.mjs +0 -23
- package/resources/metadata/component-types.mjs.map +0 -1
- package/resources/package-versions/index.d.mts +0 -3
- package/resources/package-versions/index.d.mts.map +0 -1
- package/resources/package-versions/index.d.ts +0 -3
- package/resources/package-versions/index.d.ts.map +0 -1
- package/resources/package-versions/index.js +0 -9
- package/resources/package-versions/index.js.map +0 -1
- package/resources/package-versions/index.mjs +0 -4
- package/resources/package-versions/index.mjs.map +0 -1
- package/resources/package-versions/next-versions.d.mts.map +0 -1
- package/resources/package-versions/next-versions.d.ts.map +0 -1
- package/resources/package-versions/next-versions.js.map +0 -1
- package/resources/package-versions/next-versions.mjs.map +0 -1
- package/resources/package-versions/package-versions.d.mts +0 -68
- package/resources/package-versions/package-versions.d.mts.map +0 -1
- package/resources/package-versions/package-versions.d.ts +0 -68
- package/resources/package-versions/package-versions.d.ts.map +0 -1
- package/resources/package-versions/package-versions.js +0 -27
- package/resources/package-versions/package-versions.js.map +0 -1
- package/resources/package-versions/package-versions.mjs +0 -22
- package/resources/package-versions/package-versions.mjs.map +0 -1
- package/src/resources/metadata/component-schemas.ts +0 -109
- package/src/resources/metadata/component-types.ts +0 -56
- package/src/resources/package-versions/index.ts +0 -8
- package/src/resources/package-versions/package-versions.ts +0 -100
|
@@ -8,65 +8,6 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
8
8
|
* Custom objects defined by the company
|
|
9
9
|
*/
|
|
10
10
|
export class Components extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Extract the company's selectable metadata components, optionally filtered by a
|
|
13
|
-
* search query.
|
|
14
|
-
*
|
|
15
|
-
* Requires the Metadata entitlement.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const response = await client.metadata.components.extract();
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
extract(
|
|
23
|
-
query: ComponentExtractParams | null | undefined = {},
|
|
24
|
-
options?: RequestOptions,
|
|
25
|
-
): APIPromise<ComponentExtractResponse> {
|
|
26
|
-
return this._client.get('/metadata/v2/extract/', { query, ...options });
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Validate component schemas and dependencies without installing them. Use the
|
|
31
|
-
* normalized results before deploy.
|
|
32
|
-
*
|
|
33
|
-
* Requires the Metadata entitlement.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* const response =
|
|
38
|
-
* await client.metadata.components.validateV2({
|
|
39
|
-
* components: [
|
|
40
|
-
* {
|
|
41
|
-
* type: 'CUSTOM_OBJECT',
|
|
42
|
-
* api_name: 'purchase_order__c',
|
|
43
|
-
* name: 'Purchase Order',
|
|
44
|
-
* description: 'Tracks purchase requests',
|
|
45
|
-
* category_api_name: 'procurement__c',
|
|
46
|
-
* },
|
|
47
|
-
* {
|
|
48
|
-
* type: 'CUSTOM_OBJECT_FIELD',
|
|
49
|
-
* custom_object_api_name: 'purchase_order__c',
|
|
50
|
-
* field_api_name: 'amount__c',
|
|
51
|
-
* field_display_name: 'Amount',
|
|
52
|
-
* data_type: {
|
|
53
|
-
* field_type: 'CURRENCY',
|
|
54
|
-
* currency: 'USD',
|
|
55
|
-
* num_of_decimal_places: 2,
|
|
56
|
-
* },
|
|
57
|
-
* is_standard: false,
|
|
58
|
-
* },
|
|
59
|
-
* ],
|
|
60
|
-
* });
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
validateV2(
|
|
64
|
-
body: ComponentValidateV2Params,
|
|
65
|
-
options?: RequestOptions,
|
|
66
|
-
): APIPromise<ComponentValidateV2Response> {
|
|
67
|
-
return this._client.post('/metadata/v2/validate/', { body, ...options });
|
|
68
|
-
}
|
|
69
|
-
|
|
70
11
|
/**
|
|
71
12
|
* Validate a complete metadata component package without installing it.
|
|
72
13
|
*
|
|
@@ -141,190 +82,6 @@ export class Components extends APIResource {
|
|
|
141
82
|
}
|
|
142
83
|
}
|
|
143
84
|
|
|
144
|
-
export interface ComponentExtractResponse {
|
|
145
|
-
/**
|
|
146
|
-
* Full component configs needed to recreate the selected roots.
|
|
147
|
-
*/
|
|
148
|
-
component_configs: Array<ComponentExtractResponse.ComponentConfig>;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Serialized dependency graph for the extracted package.
|
|
152
|
-
*/
|
|
153
|
-
dependency_graph: { [key: string]: unknown };
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Topological install order for the extracted package.
|
|
157
|
-
*/
|
|
158
|
-
install_order: Array<{ [key: string]: unknown }>;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Components selected as extraction roots.
|
|
162
|
-
*/
|
|
163
|
-
root_components: Array<ComponentExtractResponse.RootComponent>;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* For search-backed extraction, whether contextual expansion completed.
|
|
167
|
-
*/
|
|
168
|
-
context_complete?: boolean;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Warnings from search-backed contextual expansion.
|
|
172
|
-
*/
|
|
173
|
-
context_warnings?: Array<string>;
|
|
174
|
-
|
|
175
|
-
external_managed_dependencies?: Array<{ [key: string]: unknown }>;
|
|
176
|
-
|
|
177
|
-
[k: string]: unknown;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export namespace ComponentExtractResponse {
|
|
181
|
-
/**
|
|
182
|
-
* A metadata component config. The `type` field selects the concrete component
|
|
183
|
-
* schema. Fetch type-specific fields from GET /metadata/schema/?type=<TYPE>.
|
|
184
|
-
*/
|
|
185
|
-
export interface ComponentConfig {
|
|
186
|
-
/**
|
|
187
|
-
* Metadata component type, such as CUSTOM_OBJECT or CUSTOM_OBJECT_FIELD.
|
|
188
|
-
*/
|
|
189
|
-
type: string;
|
|
190
|
-
|
|
191
|
-
[k: string]: unknown;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Selectable package root returned by metadata extraction.
|
|
196
|
-
*/
|
|
197
|
-
export interface RootComponent {
|
|
198
|
-
/**
|
|
199
|
-
* Identifier for the selected component.
|
|
200
|
-
*/
|
|
201
|
-
identifier?: { [key: string]: unknown };
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Display name for the selectable component.
|
|
205
|
-
*/
|
|
206
|
-
name?: string;
|
|
207
|
-
|
|
208
|
-
[k: string]: unknown;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export interface ComponentValidateV2Response {
|
|
213
|
-
/**
|
|
214
|
-
* Package-level validation issues.
|
|
215
|
-
*/
|
|
216
|
-
errors: Array<ComponentValidateV2Response.Error>;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Per-component validation results.
|
|
220
|
-
*/
|
|
221
|
-
results: Array<ComponentValidateV2Response.Result>;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* True only when every component and dependency check passed.
|
|
225
|
-
*/
|
|
226
|
-
valid: boolean;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export namespace ComponentValidateV2Response {
|
|
230
|
-
/**
|
|
231
|
-
* A validation, dependency, permission, or deployment issue.
|
|
232
|
-
*/
|
|
233
|
-
export interface Error {
|
|
234
|
-
/**
|
|
235
|
-
* Stable machine-readable issue code.
|
|
236
|
-
*/
|
|
237
|
-
code: string;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Human-readable remediation message.
|
|
241
|
-
*/
|
|
242
|
-
message: string;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Lower-level cause associated with the issue, when available.
|
|
246
|
-
*/
|
|
247
|
-
cause?: string | null;
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Component type associated with the issue, when available.
|
|
251
|
-
*/
|
|
252
|
-
component_type?: string | null;
|
|
253
|
-
|
|
254
|
-
[k: string]: unknown;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export interface Result {
|
|
258
|
-
/**
|
|
259
|
-
* Metadata component type.
|
|
260
|
-
*/
|
|
261
|
-
type: string;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Whether this component passed validation.
|
|
265
|
-
*/
|
|
266
|
-
valid: boolean;
|
|
267
|
-
|
|
268
|
-
errors?: Array<Result.Error>;
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Existing component config matched by the identifier, when available.
|
|
272
|
-
*/
|
|
273
|
-
existing?: { [key: string]: unknown };
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Resolved component identifier.
|
|
277
|
-
*/
|
|
278
|
-
identifier?: { [key: string]: unknown };
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Merged target state for updates, when available.
|
|
282
|
-
*/
|
|
283
|
-
merged?: { [key: string]: unknown };
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Schema-normalized component config.
|
|
287
|
-
*/
|
|
288
|
-
normalized?: { [key: string]: unknown };
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* Upsert classification computed during validation.
|
|
292
|
-
*/
|
|
293
|
-
outcome?: 'CREATE' | 'NO_OP' | 'UPDATE' | 'UNSUPPORTED_UPDATE' | null;
|
|
294
|
-
|
|
295
|
-
[k: string]: unknown;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
export namespace Result {
|
|
299
|
-
/**
|
|
300
|
-
* A validation, dependency, permission, or deployment issue.
|
|
301
|
-
*/
|
|
302
|
-
export interface Error {
|
|
303
|
-
/**
|
|
304
|
-
* Stable machine-readable issue code.
|
|
305
|
-
*/
|
|
306
|
-
code: string;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Human-readable remediation message.
|
|
310
|
-
*/
|
|
311
|
-
message: string;
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Lower-level cause associated with the issue, when available.
|
|
315
|
-
*/
|
|
316
|
-
cause?: string | null;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Component type associated with the issue, when available.
|
|
320
|
-
*/
|
|
321
|
-
component_type?: string | null;
|
|
322
|
-
|
|
323
|
-
[k: string]: unknown;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
85
|
export interface ComponentValidateResponse {
|
|
329
86
|
/**
|
|
330
87
|
* Package-level validation issues.
|
|
@@ -538,40 +295,6 @@ export namespace ComponentDeployResponse {
|
|
|
538
295
|
}
|
|
539
296
|
}
|
|
540
297
|
|
|
541
|
-
export interface ComponentExtractParams {
|
|
542
|
-
/**
|
|
543
|
-
* Maximum search results to return when q is provided.
|
|
544
|
-
*/
|
|
545
|
-
limit?: number;
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Optional text search over selectable components.
|
|
549
|
-
*/
|
|
550
|
-
q?: string;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
export interface ComponentValidateV2Params {
|
|
554
|
-
/**
|
|
555
|
-
* Complete package of metadata components, including dependencies.
|
|
556
|
-
*/
|
|
557
|
-
components: Array<ComponentValidateV2Params.Component>;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
export namespace ComponentValidateV2Params {
|
|
561
|
-
/**
|
|
562
|
-
* A metadata component config. The `type` field selects the concrete component
|
|
563
|
-
* schema. Fetch type-specific fields from GET /metadata/schema/?type=<TYPE>.
|
|
564
|
-
*/
|
|
565
|
-
export interface Component {
|
|
566
|
-
/**
|
|
567
|
-
* Metadata component type, such as CUSTOM_OBJECT or CUSTOM_OBJECT_FIELD.
|
|
568
|
-
*/
|
|
569
|
-
type: string;
|
|
570
|
-
|
|
571
|
-
[k: string]: unknown;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
|
|
575
298
|
export interface ComponentValidateParams {
|
|
576
299
|
/**
|
|
577
300
|
* Complete package of metadata components, including dependencies.
|
|
@@ -618,12 +341,8 @@ export namespace ComponentDeployParams {
|
|
|
618
341
|
|
|
619
342
|
export declare namespace Components {
|
|
620
343
|
export {
|
|
621
|
-
type ComponentExtractResponse as ComponentExtractResponse,
|
|
622
|
-
type ComponentValidateV2Response as ComponentValidateV2Response,
|
|
623
344
|
type ComponentValidateResponse as ComponentValidateResponse,
|
|
624
345
|
type ComponentDeployResponse as ComponentDeployResponse,
|
|
625
|
-
type ComponentExtractParams as ComponentExtractParams,
|
|
626
|
-
type ComponentValidateV2Params as ComponentValidateV2Params,
|
|
627
346
|
type ComponentValidateParams as ComponentValidateParams,
|
|
628
347
|
type ComponentDeployParams as ComponentDeployParams,
|
|
629
348
|
};
|
|
@@ -10,71 +10,6 @@ import { path } from '../../internal/utils/path';
|
|
|
10
10
|
* Custom objects defined by the company
|
|
11
11
|
*/
|
|
12
12
|
export class DeploymentRuns extends APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* Queue deployment for a metadata component package and return a run id for
|
|
15
|
-
* polling.
|
|
16
|
-
*
|
|
17
|
-
* Requires the Metadata entitlement.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const response =
|
|
22
|
-
* await client.metadata.deploymentRuns.createV2({
|
|
23
|
-
* components: [
|
|
24
|
-
* {
|
|
25
|
-
* type: 'CUSTOM_OBJECT',
|
|
26
|
-
* api_name: 'purchase_order__c',
|
|
27
|
-
* name: 'Purchase Order',
|
|
28
|
-
* description: 'Tracks purchase requests',
|
|
29
|
-
* category_api_name: 'procurement__c',
|
|
30
|
-
* },
|
|
31
|
-
* {
|
|
32
|
-
* type: 'CUSTOM_OBJECT_FIELD',
|
|
33
|
-
* custom_object_api_name: 'purchase_order__c',
|
|
34
|
-
* field_api_name: 'amount__c',
|
|
35
|
-
* field_display_name: 'Amount',
|
|
36
|
-
* data_type: {
|
|
37
|
-
* field_type: 'CURRENCY',
|
|
38
|
-
* currency: 'USD',
|
|
39
|
-
* num_of_decimal_places: 2,
|
|
40
|
-
* },
|
|
41
|
-
* is_standard: false,
|
|
42
|
-
* },
|
|
43
|
-
* ],
|
|
44
|
-
* });
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
createV2(
|
|
48
|
-
params: DeploymentRunCreateV2Params,
|
|
49
|
-
options?: RequestOptions,
|
|
50
|
-
): APIPromise<DeploymentRunCreateV2Response> {
|
|
51
|
-
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
52
|
-
return this._client.post('/metadata/v2/deployment-runs/', {
|
|
53
|
-
body,
|
|
54
|
-
...options,
|
|
55
|
-
headers: buildHeaders([
|
|
56
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
57
|
-
options?.headers,
|
|
58
|
-
]),
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Poll a metadata deployment run until the terminal field is true.
|
|
64
|
-
*
|
|
65
|
-
* Requires the Metadata entitlement.
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```ts
|
|
69
|
-
* const response = await client.metadata.deploymentRuns.getV2(
|
|
70
|
-
* 'run_id',
|
|
71
|
-
* );
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
getV2(runID: string, options?: RequestOptions): APIPromise<DeploymentRunGetV2Response> {
|
|
75
|
-
return this._client.get(path`/metadata/v2/deployment-runs/${runID}/`, options);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
13
|
/**
|
|
79
14
|
* Queue deployment for a metadata component package and return a run id for
|
|
80
15
|
* polling.
|
|
@@ -140,80 +75,6 @@ export class DeploymentRuns extends APIResource {
|
|
|
140
75
|
}
|
|
141
76
|
}
|
|
142
77
|
|
|
143
|
-
export interface DeploymentRunCreateV2Response {
|
|
144
|
-
/**
|
|
145
|
-
* Metadata run id.
|
|
146
|
-
*/
|
|
147
|
-
id: string;
|
|
148
|
-
|
|
149
|
-
progress: { [key: string]: unknown };
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Suggested client polling delay in milliseconds.
|
|
153
|
-
*/
|
|
154
|
-
retry_after_ms: number;
|
|
155
|
-
|
|
156
|
-
status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Whether the run has reached a terminal status.
|
|
160
|
-
*/
|
|
161
|
-
terminal: boolean;
|
|
162
|
-
|
|
163
|
-
type: 'validation' | 'deployment';
|
|
164
|
-
|
|
165
|
-
created_at?: string | null;
|
|
166
|
-
|
|
167
|
-
error?: { [key: string]: unknown } | null;
|
|
168
|
-
|
|
169
|
-
expires_at?: string | null;
|
|
170
|
-
|
|
171
|
-
finished_at?: string | null;
|
|
172
|
-
|
|
173
|
-
result?: { [key: string]: unknown } | null;
|
|
174
|
-
|
|
175
|
-
started_at?: string | null;
|
|
176
|
-
|
|
177
|
-
updated_at?: string | null;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export interface DeploymentRunGetV2Response {
|
|
181
|
-
/**
|
|
182
|
-
* Metadata run id.
|
|
183
|
-
*/
|
|
184
|
-
id: string;
|
|
185
|
-
|
|
186
|
-
progress: { [key: string]: unknown };
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Suggested client polling delay in milliseconds.
|
|
190
|
-
*/
|
|
191
|
-
retry_after_ms: number;
|
|
192
|
-
|
|
193
|
-
status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Whether the run has reached a terminal status.
|
|
197
|
-
*/
|
|
198
|
-
terminal: boolean;
|
|
199
|
-
|
|
200
|
-
type: 'validation' | 'deployment';
|
|
201
|
-
|
|
202
|
-
created_at?: string | null;
|
|
203
|
-
|
|
204
|
-
error?: { [key: string]: unknown } | null;
|
|
205
|
-
|
|
206
|
-
expires_at?: string | null;
|
|
207
|
-
|
|
208
|
-
finished_at?: string | null;
|
|
209
|
-
|
|
210
|
-
result?: { [key: string]: unknown } | null;
|
|
211
|
-
|
|
212
|
-
started_at?: string | null;
|
|
213
|
-
|
|
214
|
-
updated_at?: string | null;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
78
|
export interface DeploymentRunCreateResponse {
|
|
218
79
|
/**
|
|
219
80
|
* Metadata run id.
|
|
@@ -288,34 +149,6 @@ export interface DeploymentRunGetResponse {
|
|
|
288
149
|
updated_at?: string | null;
|
|
289
150
|
}
|
|
290
151
|
|
|
291
|
-
export interface DeploymentRunCreateV2Params {
|
|
292
|
-
/**
|
|
293
|
-
* Body param: Complete package of metadata components, including dependencies.
|
|
294
|
-
*/
|
|
295
|
-
components: Array<DeploymentRunCreateV2Params.Component>;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* Header param: Optional idempotency key used to deduplicate retried create
|
|
299
|
-
* requests.
|
|
300
|
-
*/
|
|
301
|
-
'Idempotency-Key'?: string;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export namespace DeploymentRunCreateV2Params {
|
|
305
|
-
/**
|
|
306
|
-
* A metadata component config. The `type` field selects the concrete component
|
|
307
|
-
* schema. Fetch type-specific fields from GET /metadata/schema/?type=<TYPE>.
|
|
308
|
-
*/
|
|
309
|
-
export interface Component {
|
|
310
|
-
/**
|
|
311
|
-
* Metadata component type, such as CUSTOM_OBJECT or CUSTOM_OBJECT_FIELD.
|
|
312
|
-
*/
|
|
313
|
-
type: string;
|
|
314
|
-
|
|
315
|
-
[k: string]: unknown;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
152
|
export interface DeploymentRunCreateParams {
|
|
320
153
|
/**
|
|
321
154
|
* Body param: Complete package of metadata components, including dependencies.
|
|
@@ -346,11 +179,8 @@ export namespace DeploymentRunCreateParams {
|
|
|
346
179
|
|
|
347
180
|
export declare namespace DeploymentRuns {
|
|
348
181
|
export {
|
|
349
|
-
type DeploymentRunCreateV2Response as DeploymentRunCreateV2Response,
|
|
350
|
-
type DeploymentRunGetV2Response as DeploymentRunGetV2Response,
|
|
351
182
|
type DeploymentRunCreateResponse as DeploymentRunCreateResponse,
|
|
352
183
|
type DeploymentRunGetResponse as DeploymentRunGetResponse,
|
|
353
|
-
type DeploymentRunCreateV2Params as DeploymentRunCreateV2Params,
|
|
354
184
|
type DeploymentRunCreateParams as DeploymentRunCreateParams,
|
|
355
185
|
};
|
|
356
186
|
}
|
|
@@ -1,29 +1,16 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
ComponentSchemas,
|
|
5
|
-
type ComponentSchemaGetResponse,
|
|
6
|
-
type ComponentSchemaGetParams,
|
|
7
|
-
} from './component-schemas';
|
|
8
|
-
export { ComponentTypes, type ComponentTypeListResponse } from './component-types';
|
|
9
3
|
export {
|
|
10
4
|
Components,
|
|
11
|
-
type ComponentExtractResponse,
|
|
12
|
-
type ComponentValidateV2Response,
|
|
13
5
|
type ComponentValidateResponse,
|
|
14
6
|
type ComponentDeployResponse,
|
|
15
|
-
type ComponentExtractParams,
|
|
16
|
-
type ComponentValidateV2Params,
|
|
17
7
|
type ComponentValidateParams,
|
|
18
8
|
type ComponentDeployParams,
|
|
19
9
|
} from './components';
|
|
20
10
|
export {
|
|
21
11
|
DeploymentRuns,
|
|
22
|
-
type DeploymentRunCreateV2Response,
|
|
23
|
-
type DeploymentRunGetV2Response,
|
|
24
12
|
type DeploymentRunCreateResponse,
|
|
25
13
|
type DeploymentRunGetResponse,
|
|
26
|
-
type DeploymentRunCreateV2Params,
|
|
27
14
|
type DeploymentRunCreateParams,
|
|
28
15
|
} from './deployment-runs';
|
|
29
16
|
export { Metadata, type MetadataExtractResponse, type MetadataExtractParams } from './metadata';
|
|
@@ -31,10 +18,7 @@ export { Schema, type SchemaGetResponse, type SchemaGetParams } from './schema';
|
|
|
31
18
|
export { Types, type TypeListResponse } from './types';
|
|
32
19
|
export {
|
|
33
20
|
ValidationRuns,
|
|
34
|
-
type ValidationRunCreateV2Response,
|
|
35
|
-
type ValidationRunGetV2Response,
|
|
36
21
|
type ValidationRunCreateResponse,
|
|
37
22
|
type ValidationRunGetResponse,
|
|
38
|
-
type ValidationRunCreateV2Params,
|
|
39
23
|
type ValidationRunCreateParams,
|
|
40
24
|
} from './validation-runs';
|
|
@@ -1,30 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as ComponentSchemasAPI from './component-schemas';
|
|
5
|
-
import { ComponentSchemaGetParams, ComponentSchemaGetResponse, ComponentSchemas } from './component-schemas';
|
|
6
|
-
import * as ComponentTypesAPI from './component-types';
|
|
7
|
-
import { ComponentTypeListResponse, ComponentTypes } from './component-types';
|
|
8
4
|
import * as ComponentsAPI from './components';
|
|
9
5
|
import {
|
|
10
6
|
ComponentDeployParams,
|
|
11
7
|
ComponentDeployResponse,
|
|
12
|
-
ComponentExtractParams,
|
|
13
|
-
ComponentExtractResponse,
|
|
14
8
|
ComponentValidateParams,
|
|
15
9
|
ComponentValidateResponse,
|
|
16
|
-
ComponentValidateV2Params,
|
|
17
|
-
ComponentValidateV2Response,
|
|
18
10
|
Components,
|
|
19
11
|
} from './components';
|
|
20
12
|
import * as DeploymentRunsAPI from './deployment-runs';
|
|
21
13
|
import {
|
|
22
14
|
DeploymentRunCreateParams,
|
|
23
15
|
DeploymentRunCreateResponse,
|
|
24
|
-
DeploymentRunCreateV2Params,
|
|
25
|
-
DeploymentRunCreateV2Response,
|
|
26
16
|
DeploymentRunGetResponse,
|
|
27
|
-
DeploymentRunGetV2Response,
|
|
28
17
|
DeploymentRuns,
|
|
29
18
|
} from './deployment-runs';
|
|
30
19
|
import * as SchemaAPI from './schema';
|
|
@@ -35,10 +24,7 @@ import * as ValidationRunsAPI from './validation-runs';
|
|
|
35
24
|
import {
|
|
36
25
|
ValidationRunCreateParams,
|
|
37
26
|
ValidationRunCreateResponse,
|
|
38
|
-
ValidationRunCreateV2Params,
|
|
39
|
-
ValidationRunCreateV2Response,
|
|
40
27
|
ValidationRunGetResponse,
|
|
41
|
-
ValidationRunGetV2Response,
|
|
42
28
|
ValidationRuns,
|
|
43
29
|
} from './validation-runs';
|
|
44
30
|
import { APIPromise } from '../../core/api-promise';
|
|
@@ -50,10 +36,6 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
50
36
|
export class Metadata extends APIResource {
|
|
51
37
|
types: TypesAPI.Types = new TypesAPI.Types(this._client);
|
|
52
38
|
schema: SchemaAPI.Schema = new SchemaAPI.Schema(this._client);
|
|
53
|
-
componentTypes: ComponentTypesAPI.ComponentTypes = new ComponentTypesAPI.ComponentTypes(this._client);
|
|
54
|
-
componentSchemas: ComponentSchemasAPI.ComponentSchemas = new ComponentSchemasAPI.ComponentSchemas(
|
|
55
|
-
this._client,
|
|
56
|
-
);
|
|
57
39
|
components: ComponentsAPI.Components = new ComponentsAPI.Components(this._client);
|
|
58
40
|
validationRuns: ValidationRunsAPI.ValidationRuns = new ValidationRunsAPI.ValidationRuns(this._client);
|
|
59
41
|
deploymentRuns: DeploymentRunsAPI.DeploymentRuns = new DeploymentRunsAPI.DeploymentRuns(this._client);
|
|
@@ -159,8 +141,6 @@ export interface MetadataExtractParams {
|
|
|
159
141
|
|
|
160
142
|
Metadata.Types = Types;
|
|
161
143
|
Metadata.Schema = Schema;
|
|
162
|
-
Metadata.ComponentTypes = ComponentTypes;
|
|
163
|
-
Metadata.ComponentSchemas = ComponentSchemas;
|
|
164
144
|
Metadata.Components = Components;
|
|
165
145
|
Metadata.ValidationRuns = ValidationRuns;
|
|
166
146
|
Metadata.DeploymentRuns = DeploymentRuns;
|
|
@@ -179,43 +159,25 @@ export declare namespace Metadata {
|
|
|
179
159
|
type SchemaGetParams as SchemaGetParams,
|
|
180
160
|
};
|
|
181
161
|
|
|
182
|
-
export { ComponentTypes as ComponentTypes, type ComponentTypeListResponse as ComponentTypeListResponse };
|
|
183
|
-
|
|
184
|
-
export {
|
|
185
|
-
ComponentSchemas as ComponentSchemas,
|
|
186
|
-
type ComponentSchemaGetResponse as ComponentSchemaGetResponse,
|
|
187
|
-
type ComponentSchemaGetParams as ComponentSchemaGetParams,
|
|
188
|
-
};
|
|
189
|
-
|
|
190
162
|
export {
|
|
191
163
|
Components as Components,
|
|
192
|
-
type ComponentExtractResponse as ComponentExtractResponse,
|
|
193
|
-
type ComponentValidateV2Response as ComponentValidateV2Response,
|
|
194
164
|
type ComponentValidateResponse as ComponentValidateResponse,
|
|
195
165
|
type ComponentDeployResponse as ComponentDeployResponse,
|
|
196
|
-
type ComponentExtractParams as ComponentExtractParams,
|
|
197
|
-
type ComponentValidateV2Params as ComponentValidateV2Params,
|
|
198
166
|
type ComponentValidateParams as ComponentValidateParams,
|
|
199
167
|
type ComponentDeployParams as ComponentDeployParams,
|
|
200
168
|
};
|
|
201
169
|
|
|
202
170
|
export {
|
|
203
171
|
ValidationRuns as ValidationRuns,
|
|
204
|
-
type ValidationRunCreateV2Response as ValidationRunCreateV2Response,
|
|
205
|
-
type ValidationRunGetV2Response as ValidationRunGetV2Response,
|
|
206
172
|
type ValidationRunCreateResponse as ValidationRunCreateResponse,
|
|
207
173
|
type ValidationRunGetResponse as ValidationRunGetResponse,
|
|
208
|
-
type ValidationRunCreateV2Params as ValidationRunCreateV2Params,
|
|
209
174
|
type ValidationRunCreateParams as ValidationRunCreateParams,
|
|
210
175
|
};
|
|
211
176
|
|
|
212
177
|
export {
|
|
213
178
|
DeploymentRuns as DeploymentRuns,
|
|
214
|
-
type DeploymentRunCreateV2Response as DeploymentRunCreateV2Response,
|
|
215
|
-
type DeploymentRunGetV2Response as DeploymentRunGetV2Response,
|
|
216
179
|
type DeploymentRunCreateResponse as DeploymentRunCreateResponse,
|
|
217
180
|
type DeploymentRunGetResponse as DeploymentRunGetResponse,
|
|
218
|
-
type DeploymentRunCreateV2Params as DeploymentRunCreateV2Params,
|
|
219
181
|
type DeploymentRunCreateParams as DeploymentRunCreateParams,
|
|
220
182
|
};
|
|
221
183
|
}
|