@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
|
@@ -10,71 +10,6 @@ import { path } from '../../internal/utils/path';
|
|
|
10
10
|
* Custom objects defined by the company
|
|
11
11
|
*/
|
|
12
12
|
export class ValidationRuns extends APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* Queue validation 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.validationRuns.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: ValidationRunCreateV2Params,
|
|
49
|
-
options?: RequestOptions,
|
|
50
|
-
): APIPromise<ValidationRunCreateV2Response> {
|
|
51
|
-
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
52
|
-
return this._client.post('/metadata/v2/validation-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 validation run until the terminal field is true.
|
|
64
|
-
*
|
|
65
|
-
* Requires the Metadata entitlement.
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```ts
|
|
69
|
-
* const response = await client.metadata.validationRuns.getV2(
|
|
70
|
-
* 'run_id',
|
|
71
|
-
* );
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
getV2(runID: string, options?: RequestOptions): APIPromise<ValidationRunGetV2Response> {
|
|
75
|
-
return this._client.get(path`/metadata/v2/validation-runs/${runID}/`, options);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
13
|
/**
|
|
79
14
|
* Queue validation for a metadata component package and return a run id for
|
|
80
15
|
* polling.
|
|
@@ -140,80 +75,6 @@ export class ValidationRuns extends APIResource {
|
|
|
140
75
|
}
|
|
141
76
|
}
|
|
142
77
|
|
|
143
|
-
export interface ValidationRunCreateV2Response {
|
|
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 ValidationRunGetV2Response {
|
|
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 ValidationRunCreateResponse {
|
|
218
79
|
/**
|
|
219
80
|
* Metadata run id.
|
|
@@ -288,34 +149,6 @@ export interface ValidationRunGetResponse {
|
|
|
288
149
|
updated_at?: string | null;
|
|
289
150
|
}
|
|
290
151
|
|
|
291
|
-
export interface ValidationRunCreateV2Params {
|
|
292
|
-
/**
|
|
293
|
-
* Body param: Complete package of metadata components, including dependencies.
|
|
294
|
-
*/
|
|
295
|
-
components: Array<ValidationRunCreateV2Params.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 ValidationRunCreateV2Params {
|
|
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 ValidationRunCreateParams {
|
|
320
153
|
/**
|
|
321
154
|
* Body param: Complete package of metadata components, including dependencies.
|
|
@@ -346,11 +179,8 @@ export namespace ValidationRunCreateParams {
|
|
|
346
179
|
|
|
347
180
|
export declare namespace ValidationRuns {
|
|
348
181
|
export {
|
|
349
|
-
type ValidationRunCreateV2Response as ValidationRunCreateV2Response,
|
|
350
|
-
type ValidationRunGetV2Response as ValidationRunGetV2Response,
|
|
351
182
|
type ValidationRunCreateResponse as ValidationRunCreateResponse,
|
|
352
183
|
type ValidationRunGetResponse as ValidationRunGetResponse,
|
|
353
|
-
type ValidationRunCreateV2Params as ValidationRunCreateV2Params,
|
|
354
184
|
type ValidationRunCreateParams as ValidationRunCreateParams,
|
|
355
185
|
};
|
|
356
186
|
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Author, publish, and install Unity Packages V2 packages
|
|
10
|
+
*/
|
|
11
|
+
export class PackageUpgrades extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Start upgrading a managed package install asynchronously.
|
|
14
|
+
*/
|
|
15
|
+
create(
|
|
16
|
+
body: PackageUpgradeCreateParams,
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromise<PackageUpgradeCreateResponse> {
|
|
19
|
+
return this._client.post('/package-upgrades/', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve the status of a managed package upgrade.
|
|
24
|
+
*/
|
|
25
|
+
retrieve(trackerID: string, options?: RequestOptions): APIPromise<PackageUpgradeRetrieveResponse> {
|
|
26
|
+
return this._client.get(path`/package-upgrades/${trackerID}/`, options);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Async managed package upgrade tracker for subscriber companies.
|
|
32
|
+
*/
|
|
33
|
+
export interface PackageUpgradeCreateResponse {
|
|
34
|
+
/**
|
|
35
|
+
* Identifier field
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Record creation date
|
|
41
|
+
*/
|
|
42
|
+
created_at: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Record update date
|
|
46
|
+
*/
|
|
47
|
+
updated_at: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Error message when upgrade failed
|
|
51
|
+
*/
|
|
52
|
+
error_message?: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The install key of the managed package install
|
|
56
|
+
*/
|
|
57
|
+
install_key?: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The published package version being upgraded to
|
|
61
|
+
*/
|
|
62
|
+
new_version_id?: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The currently installed package version being upgraded from
|
|
66
|
+
*/
|
|
67
|
+
old_version_id?: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The package key of the managed package
|
|
71
|
+
*/
|
|
72
|
+
package_key?: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Component to open after upgrade completes
|
|
76
|
+
*/
|
|
77
|
+
post_install_landing_component?: unknown;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Upgrade status (IN_PROGRESS, COMPLETE, or FAILED)
|
|
81
|
+
*/
|
|
82
|
+
status?: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Upgrade plan snapshot when available
|
|
86
|
+
*/
|
|
87
|
+
upgrade_plan?: unknown;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Components upgraded so far
|
|
91
|
+
*/
|
|
92
|
+
upgraded_components?: Array<unknown>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Async managed package upgrade tracker for subscriber companies.
|
|
97
|
+
*/
|
|
98
|
+
export interface PackageUpgradeRetrieveResponse {
|
|
99
|
+
/**
|
|
100
|
+
* Identifier field
|
|
101
|
+
*/
|
|
102
|
+
id: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Record creation date
|
|
106
|
+
*/
|
|
107
|
+
created_at: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Record update date
|
|
111
|
+
*/
|
|
112
|
+
updated_at: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Error message when upgrade failed
|
|
116
|
+
*/
|
|
117
|
+
error_message?: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The install key of the managed package install
|
|
121
|
+
*/
|
|
122
|
+
install_key?: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The published package version being upgraded to
|
|
126
|
+
*/
|
|
127
|
+
new_version_id?: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The currently installed package version being upgraded from
|
|
131
|
+
*/
|
|
132
|
+
old_version_id?: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The package key of the managed package
|
|
136
|
+
*/
|
|
137
|
+
package_key?: string;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Component to open after upgrade completes
|
|
141
|
+
*/
|
|
142
|
+
post_install_landing_component?: unknown;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Upgrade status (IN_PROGRESS, COMPLETE, or FAILED)
|
|
146
|
+
*/
|
|
147
|
+
status?: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Upgrade plan snapshot when available
|
|
151
|
+
*/
|
|
152
|
+
upgrade_plan?: unknown;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Components upgraded so far
|
|
156
|
+
*/
|
|
157
|
+
upgraded_components?: Array<unknown>;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface PackageUpgradeCreateParams {
|
|
161
|
+
/**
|
|
162
|
+
* The install key of the managed package install to upgrade.
|
|
163
|
+
*/
|
|
164
|
+
install_key: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* The package key of the managed package to upgrade.
|
|
168
|
+
*/
|
|
169
|
+
package_key: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The published package version to upgrade to.
|
|
173
|
+
*/
|
|
174
|
+
version_id: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export declare namespace PackageUpgrades {
|
|
178
|
+
export {
|
|
179
|
+
type PackageUpgradeCreateResponse as PackageUpgradeCreateResponse,
|
|
180
|
+
type PackageUpgradeRetrieveResponse as PackageUpgradeRetrieveResponse,
|
|
181
|
+
type PackageUpgradeCreateParams as PackageUpgradeCreateParams,
|
|
182
|
+
};
|
|
183
|
+
}
|
|
@@ -1,3 +1,88 @@
|
|
|
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 { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Author, publish, and install Unity Packages V2 packages
|
|
10
|
+
*/
|
|
11
|
+
export class PackageVersions extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Update the description of an unpublished package version.
|
|
14
|
+
*/
|
|
15
|
+
update(
|
|
16
|
+
versionID: string,
|
|
17
|
+
body: PackageVersionUpdateParams,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): APIPromise<PackageVersionUpdateResponse> {
|
|
20
|
+
return this._client.patch(path`/package-versions/${versionID}/`, { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface PackageVersionUpdateResponse {
|
|
25
|
+
/**
|
|
26
|
+
* Identifier field
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Record creation date
|
|
32
|
+
*/
|
|
33
|
+
created_at: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Record update date
|
|
37
|
+
*/
|
|
38
|
+
updated_at: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The semantic version number for this package version
|
|
42
|
+
*/
|
|
43
|
+
version_number: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Components included in this package version
|
|
47
|
+
*/
|
|
48
|
+
components?: Array<unknown>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The description of the package version
|
|
52
|
+
*/
|
|
53
|
+
description?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Whether this package version has been published
|
|
57
|
+
*/
|
|
58
|
+
is_published?: boolean;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The display name of the parent package
|
|
62
|
+
*/
|
|
63
|
+
package_display_name?: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The ID of the parent package
|
|
67
|
+
*/
|
|
68
|
+
package_id?: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The package key of the parent package
|
|
72
|
+
*/
|
|
73
|
+
package_key?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface PackageVersionUpdateParams {
|
|
77
|
+
/**
|
|
78
|
+
* The new description for the draft package version.
|
|
79
|
+
*/
|
|
80
|
+
description: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export declare namespace PackageVersions {
|
|
84
|
+
export {
|
|
85
|
+
type PackageVersionUpdateResponse as PackageVersionUpdateResponse,
|
|
86
|
+
type PackageVersionUpdateParams as PackageVersionUpdateParams,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Author, publish, and install Unity Packages V2 packages
|
|
10
|
+
*/
|
|
11
|
+
export class AvailableUpgrades extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* List published package versions higher than the version installed for the given
|
|
14
|
+
* install_key.
|
|
15
|
+
*/
|
|
16
|
+
retrieve(
|
|
17
|
+
packageKey: string,
|
|
18
|
+
query: AvailableUpgradeRetrieveParams,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): APIPromise<AvailableUpgradeRetrieveResponse> {
|
|
21
|
+
return this._client.get(path`/packages/${packageKey}/available-upgrades/`, { query, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface AvailableUpgradeRetrieveResponse {
|
|
26
|
+
results?: Array<AvailableUpgradeRetrieveResponse.Result>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export namespace AvailableUpgradeRetrieveResponse {
|
|
30
|
+
export interface Result {
|
|
31
|
+
id?: string;
|
|
32
|
+
|
|
33
|
+
description?: string;
|
|
34
|
+
|
|
35
|
+
version_number?: string;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface AvailableUpgradeRetrieveParams {
|
|
40
|
+
/**
|
|
41
|
+
* The install key of the managed package install.
|
|
42
|
+
*/
|
|
43
|
+
install_key: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export declare namespace AvailableUpgrades {
|
|
47
|
+
export {
|
|
48
|
+
type AvailableUpgradeRetrieveResponse as AvailableUpgradeRetrieveResponse,
|
|
49
|
+
type AvailableUpgradeRetrieveParams as AvailableUpgradeRetrieveParams,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
AvailableUpgrades,
|
|
5
|
+
type AvailableUpgradeRetrieveResponse,
|
|
6
|
+
type AvailableUpgradeRetrieveParams,
|
|
7
|
+
} from './available-upgrades';
|
|
8
|
+
export { NextVersions, type NextVersionCreateResponse, type NextVersionCreateParams } from './next-versions';
|
|
3
9
|
export {
|
|
4
10
|
Packages,
|
|
5
11
|
type PackageListResponse,
|
|
@@ -11,15 +11,15 @@ import { path } from '../../internal/utils/path';
|
|
|
11
11
|
export class NextVersions extends APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Create a new unpublished package version by re-extracting the components from
|
|
14
|
-
* the latest published version.
|
|
15
|
-
*
|
|
14
|
+
* the package's latest published version. Returns the new PackageVersion. The
|
|
15
|
+
* source is always package.latest_version.
|
|
16
16
|
*/
|
|
17
17
|
create(
|
|
18
|
-
|
|
18
|
+
packageKey: string,
|
|
19
19
|
body: NextVersionCreateParams,
|
|
20
20
|
options?: RequestOptions,
|
|
21
21
|
): APIPromise<NextVersionCreateResponse> {
|
|
22
|
-
return this._client.post(path`/
|
|
22
|
+
return this._client.post(path`/packages/${packageKey}/next-versions/`, { body, ...options });
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as BusinessPartnersAPI from '../business-partners';
|
|
5
|
+
import * as AvailableUpgradesAPI from './available-upgrades';
|
|
6
|
+
import {
|
|
7
|
+
AvailableUpgradeRetrieveParams,
|
|
8
|
+
AvailableUpgradeRetrieveResponse,
|
|
9
|
+
AvailableUpgrades,
|
|
10
|
+
} from './available-upgrades';
|
|
11
|
+
import * as NextVersionsAPI from './next-versions';
|
|
12
|
+
import { NextVersionCreateParams, NextVersionCreateResponse, NextVersions } from './next-versions';
|
|
5
13
|
import * as VersionsAPI from './versions';
|
|
6
14
|
import { VersionCreateParams, VersionCreateResponse, Versions } from './versions';
|
|
7
15
|
import { APIPromise } from '../../core/api-promise';
|
|
@@ -14,7 +22,11 @@ import { path } from '../../internal/utils/path';
|
|
|
14
22
|
* Author, publish, and install Unity Packages V2 packages
|
|
15
23
|
*/
|
|
16
24
|
export class Packages extends APIResource {
|
|
25
|
+
availableUpgrades: AvailableUpgradesAPI.AvailableUpgrades = new AvailableUpgradesAPI.AvailableUpgrades(
|
|
26
|
+
this._client,
|
|
27
|
+
);
|
|
17
28
|
versions: VersionsAPI.Versions = new VersionsAPI.Versions(this._client);
|
|
29
|
+
nextVersions: NextVersionsAPI.NextVersions = new NextVersionsAPI.NextVersions(this._client);
|
|
18
30
|
|
|
19
31
|
/**
|
|
20
32
|
* A list of package publish.
|
|
@@ -312,7 +324,9 @@ export interface PackageUpdateParams {
|
|
|
312
324
|
description?: string;
|
|
313
325
|
}
|
|
314
326
|
|
|
327
|
+
Packages.AvailableUpgrades = AvailableUpgrades;
|
|
315
328
|
Packages.Versions = Versions;
|
|
329
|
+
Packages.NextVersions = NextVersions;
|
|
316
330
|
|
|
317
331
|
export declare namespace Packages {
|
|
318
332
|
export {
|
|
@@ -326,9 +340,21 @@ export declare namespace Packages {
|
|
|
326
340
|
type PackageUpdateParams as PackageUpdateParams,
|
|
327
341
|
};
|
|
328
342
|
|
|
343
|
+
export {
|
|
344
|
+
AvailableUpgrades as AvailableUpgrades,
|
|
345
|
+
type AvailableUpgradeRetrieveResponse as AvailableUpgradeRetrieveResponse,
|
|
346
|
+
type AvailableUpgradeRetrieveParams as AvailableUpgradeRetrieveParams,
|
|
347
|
+
};
|
|
348
|
+
|
|
329
349
|
export {
|
|
330
350
|
Versions as Versions,
|
|
331
351
|
type VersionCreateResponse as VersionCreateResponse,
|
|
332
352
|
type VersionCreateParams as VersionCreateParams,
|
|
333
353
|
};
|
|
354
|
+
|
|
355
|
+
export {
|
|
356
|
+
NextVersions as NextVersions,
|
|
357
|
+
type NextVersionCreateResponse as NextVersionCreateResponse,
|
|
358
|
+
type NextVersionCreateParams as NextVersionCreateParams,
|
|
359
|
+
};
|
|
334
360
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.95'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.95";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.95";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.2.0-alpha.
|
|
4
|
+
exports.VERSION = '0.2.0-alpha.95'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.95'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|