@rippling/rippling-sdk 0.2.0-alpha.93 → 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/examples/manifest/acp-agent/acp-agent.ts +2 -4
- package/lib/manifest/acp-agent.d.mts +10 -3
- package/lib/manifest/acp-agent.d.mts.map +1 -1
- package/lib/manifest/acp-agent.d.ts +10 -3
- package/lib/manifest/acp-agent.d.ts.map +1 -1
- package/lib/manifest/acp-agent.js +2 -2
- package/lib/manifest/acp-agent.js.map +1 -1
- package/lib/manifest/acp-agent.mjs +2 -2
- package/lib/manifest/acp-agent.mjs.map +1 -1
- package/lib/manifest/business-event.d.mts +64 -0
- package/lib/manifest/business-event.d.mts.map +1 -0
- package/lib/manifest/business-event.d.ts +64 -0
- package/lib/manifest/business-event.d.ts.map +1 -0
- package/lib/manifest/business-event.js +64 -0
- package/lib/manifest/business-event.js.map +1 -0
- package/lib/manifest/business-event.mjs +60 -0
- package/lib/manifest/business-event.mjs.map +1 -0
- package/lib/manifest/index.d.mts +3 -2
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +3 -2
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +4 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +1 -0
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/workflow.d.mts +4 -1
- package/lib/manifest/workflow.d.mts.map +1 -1
- package/lib/manifest/workflow.d.ts +4 -1
- package/lib/manifest/workflow.d.ts.map +1 -1
- package/lib/manifest/workflow.js.map +1 -1
- package/lib/manifest/workflow.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/lib/manifest/acp-agent.ts +18 -6
- package/src/lib/manifest/business-event.ts +72 -0
- package/src/lib/manifest/index.ts +11 -0
- package/src/lib/manifest/workflow.ts +5 -1
- 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
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as ComponentSchemasAPI from "./component-schemas.mjs";
|
|
3
|
-
import { ComponentSchemaGetParams, ComponentSchemaGetResponse, ComponentSchemas } from "./component-schemas.mjs";
|
|
4
|
-
import * as ComponentTypesAPI from "./component-types.mjs";
|
|
5
|
-
import { ComponentTypeListResponse, ComponentTypes } from "./component-types.mjs";
|
|
6
2
|
import * as ComponentsAPI from "./components.mjs";
|
|
7
|
-
import { ComponentDeployParams, ComponentDeployResponse,
|
|
3
|
+
import { ComponentDeployParams, ComponentDeployResponse, ComponentValidateParams, ComponentValidateResponse, Components } from "./components.mjs";
|
|
8
4
|
import * as DeploymentRunsAPI from "./deployment-runs.mjs";
|
|
9
|
-
import { DeploymentRunCreateParams, DeploymentRunCreateResponse,
|
|
5
|
+
import { DeploymentRunCreateParams, DeploymentRunCreateResponse, DeploymentRunGetResponse, DeploymentRuns } from "./deployment-runs.mjs";
|
|
10
6
|
import * as SchemaAPI from "./schema.mjs";
|
|
11
7
|
import { Schema, SchemaGetParams, SchemaGetResponse } from "./schema.mjs";
|
|
12
8
|
import * as TypesAPI from "./types.mjs";
|
|
13
9
|
import { TypeListResponse, Types } from "./types.mjs";
|
|
14
10
|
import * as ValidationRunsAPI from "./validation-runs.mjs";
|
|
15
|
-
import { ValidationRunCreateParams, ValidationRunCreateResponse,
|
|
11
|
+
import { ValidationRunCreateParams, ValidationRunCreateResponse, ValidationRunGetResponse, ValidationRuns } from "./validation-runs.mjs";
|
|
16
12
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
17
13
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
18
14
|
/**
|
|
@@ -21,8 +17,6 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
21
17
|
export declare class Metadata extends APIResource {
|
|
22
18
|
types: TypesAPI.Types;
|
|
23
19
|
schema: SchemaAPI.Schema;
|
|
24
|
-
componentTypes: ComponentTypesAPI.ComponentTypes;
|
|
25
|
-
componentSchemas: ComponentSchemasAPI.ComponentSchemas;
|
|
26
20
|
components: ComponentsAPI.Components;
|
|
27
21
|
validationRuns: ValidationRunsAPI.ValidationRuns;
|
|
28
22
|
deploymentRuns: DeploymentRunsAPI.DeploymentRuns;
|
|
@@ -116,10 +110,8 @@ export declare namespace Metadata {
|
|
|
116
110
|
export { type MetadataExtractResponse as MetadataExtractResponse, type MetadataExtractParams as MetadataExtractParams, };
|
|
117
111
|
export { Types as Types, type TypeListResponse as TypeListResponse };
|
|
118
112
|
export { Schema as Schema, type SchemaGetResponse as SchemaGetResponse, type SchemaGetParams as SchemaGetParams, };
|
|
119
|
-
export {
|
|
120
|
-
export {
|
|
121
|
-
export {
|
|
122
|
-
export { ValidationRuns as ValidationRuns, type ValidationRunCreateV2Response as ValidationRunCreateV2Response, type ValidationRunGetV2Response as ValidationRunGetV2Response, type ValidationRunCreateResponse as ValidationRunCreateResponse, type ValidationRunGetResponse as ValidationRunGetResponse, type ValidationRunCreateV2Params as ValidationRunCreateV2Params, type ValidationRunCreateParams as ValidationRunCreateParams, };
|
|
123
|
-
export { DeploymentRuns as DeploymentRuns, type DeploymentRunCreateV2Response as DeploymentRunCreateV2Response, type DeploymentRunGetV2Response as DeploymentRunGetV2Response, type DeploymentRunCreateResponse as DeploymentRunCreateResponse, type DeploymentRunGetResponse as DeploymentRunGetResponse, type DeploymentRunCreateV2Params as DeploymentRunCreateV2Params, type DeploymentRunCreateParams as DeploymentRunCreateParams, };
|
|
113
|
+
export { Components as Components, type ComponentValidateResponse as ComponentValidateResponse, type ComponentDeployResponse as ComponentDeployResponse, type ComponentValidateParams as ComponentValidateParams, type ComponentDeployParams as ComponentDeployParams, };
|
|
114
|
+
export { ValidationRuns as ValidationRuns, type ValidationRunCreateResponse as ValidationRunCreateResponse, type ValidationRunGetResponse as ValidationRunGetResponse, type ValidationRunCreateParams as ValidationRunCreateParams, };
|
|
115
|
+
export { DeploymentRuns as DeploymentRuns, type DeploymentRunCreateResponse as DeploymentRunCreateResponse, type DeploymentRunGetResponse as DeploymentRunGetResponse, type DeploymentRunCreateParams as DeploymentRunCreateParams, };
|
|
124
116
|
}
|
|
125
117
|
//# sourceMappingURL=metadata.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.mts","sourceRoot":"","sources":["../../src/resources/metadata/metadata.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"metadata.d.mts","sourceRoot":"","sources":["../../src/resources/metadata/metadata.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EACL,qBAAqB,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KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as ComponentSchemasAPI from "./component-schemas.js";
|
|
3
|
-
import { ComponentSchemaGetParams, ComponentSchemaGetResponse, ComponentSchemas } from "./component-schemas.js";
|
|
4
|
-
import * as ComponentTypesAPI from "./component-types.js";
|
|
5
|
-
import { ComponentTypeListResponse, ComponentTypes } from "./component-types.js";
|
|
6
2
|
import * as ComponentsAPI from "./components.js";
|
|
7
|
-
import { ComponentDeployParams, ComponentDeployResponse,
|
|
3
|
+
import { ComponentDeployParams, ComponentDeployResponse, ComponentValidateParams, ComponentValidateResponse, Components } from "./components.js";
|
|
8
4
|
import * as DeploymentRunsAPI from "./deployment-runs.js";
|
|
9
|
-
import { DeploymentRunCreateParams, DeploymentRunCreateResponse,
|
|
5
|
+
import { DeploymentRunCreateParams, DeploymentRunCreateResponse, DeploymentRunGetResponse, DeploymentRuns } from "./deployment-runs.js";
|
|
10
6
|
import * as SchemaAPI from "./schema.js";
|
|
11
7
|
import { Schema, SchemaGetParams, SchemaGetResponse } from "./schema.js";
|
|
12
8
|
import * as TypesAPI from "./types.js";
|
|
13
9
|
import { TypeListResponse, Types } from "./types.js";
|
|
14
10
|
import * as ValidationRunsAPI from "./validation-runs.js";
|
|
15
|
-
import { ValidationRunCreateParams, ValidationRunCreateResponse,
|
|
11
|
+
import { ValidationRunCreateParams, ValidationRunCreateResponse, ValidationRunGetResponse, ValidationRuns } from "./validation-runs.js";
|
|
16
12
|
import { APIPromise } from "../../core/api-promise.js";
|
|
17
13
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
18
14
|
/**
|
|
@@ -21,8 +17,6 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
21
17
|
export declare class Metadata extends APIResource {
|
|
22
18
|
types: TypesAPI.Types;
|
|
23
19
|
schema: SchemaAPI.Schema;
|
|
24
|
-
componentTypes: ComponentTypesAPI.ComponentTypes;
|
|
25
|
-
componentSchemas: ComponentSchemasAPI.ComponentSchemas;
|
|
26
20
|
components: ComponentsAPI.Components;
|
|
27
21
|
validationRuns: ValidationRunsAPI.ValidationRuns;
|
|
28
22
|
deploymentRuns: DeploymentRunsAPI.DeploymentRuns;
|
|
@@ -116,10 +110,8 @@ export declare namespace Metadata {
|
|
|
116
110
|
export { type MetadataExtractResponse as MetadataExtractResponse, type MetadataExtractParams as MetadataExtractParams, };
|
|
117
111
|
export { Types as Types, type TypeListResponse as TypeListResponse };
|
|
118
112
|
export { Schema as Schema, type SchemaGetResponse as SchemaGetResponse, type SchemaGetParams as SchemaGetParams, };
|
|
119
|
-
export {
|
|
120
|
-
export {
|
|
121
|
-
export {
|
|
122
|
-
export { ValidationRuns as ValidationRuns, type ValidationRunCreateV2Response as ValidationRunCreateV2Response, type ValidationRunGetV2Response as ValidationRunGetV2Response, type ValidationRunCreateResponse as ValidationRunCreateResponse, type ValidationRunGetResponse as ValidationRunGetResponse, type ValidationRunCreateV2Params as ValidationRunCreateV2Params, type ValidationRunCreateParams as ValidationRunCreateParams, };
|
|
123
|
-
export { DeploymentRuns as DeploymentRuns, type DeploymentRunCreateV2Response as DeploymentRunCreateV2Response, type DeploymentRunGetV2Response as DeploymentRunGetV2Response, type DeploymentRunCreateResponse as DeploymentRunCreateResponse, type DeploymentRunGetResponse as DeploymentRunGetResponse, type DeploymentRunCreateV2Params as DeploymentRunCreateV2Params, type DeploymentRunCreateParams as DeploymentRunCreateParams, };
|
|
113
|
+
export { Components as Components, type ComponentValidateResponse as ComponentValidateResponse, type ComponentDeployResponse as ComponentDeployResponse, type ComponentValidateParams as ComponentValidateParams, type ComponentDeployParams as ComponentDeployParams, };
|
|
114
|
+
export { ValidationRuns as ValidationRuns, type ValidationRunCreateResponse as ValidationRunCreateResponse, type ValidationRunGetResponse as ValidationRunGetResponse, type ValidationRunCreateParams as ValidationRunCreateParams, };
|
|
115
|
+
export { DeploymentRuns as DeploymentRuns, type DeploymentRunCreateResponse as DeploymentRunCreateResponse, type DeploymentRunGetResponse as DeploymentRunGetResponse, type DeploymentRunCreateParams as DeploymentRunCreateParams, };
|
|
124
116
|
}
|
|
125
117
|
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/resources/metadata/metadata.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/resources/metadata/metadata.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,UAAU,EACX,wBAAqB;AACtB,OAAO,KAAK,iBAAiB,6BAA0B;AACvD,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACxB,cAAc,EACf,6BAA0B;AAC3B,OAAO,KAAK,SAAS,oBAAiB;AACt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C;IAEF,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -4,10 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Metadata = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
-
const ComponentSchemasAPI = tslib_1.__importStar(require("./component-schemas.js"));
|
|
8
|
-
const component_schemas_1 = require("./component-schemas.js");
|
|
9
|
-
const ComponentTypesAPI = tslib_1.__importStar(require("./component-types.js"));
|
|
10
|
-
const component_types_1 = require("./component-types.js");
|
|
11
7
|
const ComponentsAPI = tslib_1.__importStar(require("./components.js"));
|
|
12
8
|
const components_1 = require("./components.js");
|
|
13
9
|
const DeploymentRunsAPI = tslib_1.__importStar(require("./deployment-runs.js"));
|
|
@@ -26,8 +22,6 @@ class Metadata extends resource_1.APIResource {
|
|
|
26
22
|
super(...arguments);
|
|
27
23
|
this.types = new TypesAPI.Types(this._client);
|
|
28
24
|
this.schema = new SchemaAPI.Schema(this._client);
|
|
29
|
-
this.componentTypes = new ComponentTypesAPI.ComponentTypes(this._client);
|
|
30
|
-
this.componentSchemas = new ComponentSchemasAPI.ComponentSchemas(this._client);
|
|
31
25
|
this.components = new ComponentsAPI.Components(this._client);
|
|
32
26
|
this.validationRuns = new ValidationRunsAPI.ValidationRuns(this._client);
|
|
33
27
|
this.deploymentRuns = new DeploymentRunsAPI.DeploymentRuns(this._client);
|
|
@@ -50,8 +44,6 @@ class Metadata extends resource_1.APIResource {
|
|
|
50
44
|
exports.Metadata = Metadata;
|
|
51
45
|
Metadata.Types = types_1.Types;
|
|
52
46
|
Metadata.Schema = schema_1.Schema;
|
|
53
|
-
Metadata.ComponentTypes = component_types_1.ComponentTypes;
|
|
54
|
-
Metadata.ComponentSchemas = component_schemas_1.ComponentSchemas;
|
|
55
47
|
Metadata.Components = components_1.Components;
|
|
56
48
|
Metadata.ValidationRuns = validation_runs_1.ValidationRuns;
|
|
57
49
|
Metadata.DeploymentRuns = deployment_runs_1.DeploymentRuns;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../src/resources/metadata/metadata.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../src/resources/metadata/metadata.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uEAA8C;AAC9C,gDAMsB;AACtB,gFAAuD;AACvD,0DAK2B;AAC3B,+DAAsC;AACtC,wCAAsE;AACtE,6DAAoC;AACpC,sCAAkD;AAClD,gFAAuD;AACvD,0DAK2B;AAI3B;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtG,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmBxG,CAAC;IAjBC;;;;;;;;;;OAUG;IACH,OAAO,CACL,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAxBD,4BAwBC;AAkFD,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC;AACvB,QAAQ,CAAC,MAAM,GAAG,eAAM,CAAC;AACzB,QAAQ,CAAC,UAAU,GAAG,uBAAU,CAAC;AACjC,QAAQ,CAAC,cAAc,GAAG,gCAAc,CAAC;AACzC,QAAQ,CAAC,cAAc,GAAG,gCAAc,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import * as ComponentSchemasAPI from "./component-schemas.mjs";
|
|
4
|
-
import { ComponentSchemas } from "./component-schemas.mjs";
|
|
5
|
-
import * as ComponentTypesAPI from "./component-types.mjs";
|
|
6
|
-
import { ComponentTypes } from "./component-types.mjs";
|
|
7
3
|
import * as ComponentsAPI from "./components.mjs";
|
|
8
4
|
import { Components, } from "./components.mjs";
|
|
9
5
|
import * as DeploymentRunsAPI from "./deployment-runs.mjs";
|
|
@@ -22,8 +18,6 @@ export class Metadata extends APIResource {
|
|
|
22
18
|
super(...arguments);
|
|
23
19
|
this.types = new TypesAPI.Types(this._client);
|
|
24
20
|
this.schema = new SchemaAPI.Schema(this._client);
|
|
25
|
-
this.componentTypes = new ComponentTypesAPI.ComponentTypes(this._client);
|
|
26
|
-
this.componentSchemas = new ComponentSchemasAPI.ComponentSchemas(this._client);
|
|
27
21
|
this.components = new ComponentsAPI.Components(this._client);
|
|
28
22
|
this.validationRuns = new ValidationRunsAPI.ValidationRuns(this._client);
|
|
29
23
|
this.deploymentRuns = new DeploymentRunsAPI.DeploymentRuns(this._client);
|
|
@@ -45,8 +39,6 @@ export class Metadata extends APIResource {
|
|
|
45
39
|
}
|
|
46
40
|
Metadata.Types = Types;
|
|
47
41
|
Metadata.Schema = Schema;
|
|
48
|
-
Metadata.ComponentTypes = ComponentTypes;
|
|
49
|
-
Metadata.ComponentSchemas = ComponentSchemas;
|
|
50
42
|
Metadata.Components = Components;
|
|
51
43
|
Metadata.ValidationRuns = ValidationRuns;
|
|
52
44
|
Metadata.DeploymentRuns = DeploymentRuns;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.mjs","sourceRoot":"","sources":["../../src/resources/metadata/metadata.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"metadata.mjs","sourceRoot":"","sources":["../../src/resources/metadata/metadata.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAKL,UAAU,GACX,yBAAqB;AACtB,OAAO,KAAK,iBAAiB,8BAA0B;AACvD,OAAO,EAIL,cAAc,GACf,8BAA0B;AAC3B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,MAAM,EAAsC,qBAAiB;AACtE,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAoB,KAAK,EAAE,oBAAgB;AAClD,OAAO,KAAK,iBAAiB,8BAA0B;AACvD,OAAO,EAIL,cAAc,GACf,8BAA0B;AAI3B;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtG,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmBxG,CAAC;IAjBC;;;;;;;;;;OAUG;IACH,OAAO,CACL,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAkFD,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;AACvB,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;AACjC,QAAQ,CAAC,cAAc,GAAG,cAAc,CAAC;AACzC,QAAQ,CAAC,cAAc,GAAG,cAAc,CAAC"}
|
|
@@ -5,54 +5,6 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
5
5
|
* Custom objects defined by the company
|
|
6
6
|
*/
|
|
7
7
|
export declare class ValidationRuns extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Queue validation for a metadata component package and return a run id for
|
|
10
|
-
* polling.
|
|
11
|
-
*
|
|
12
|
-
* Requires the Metadata entitlement.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const response =
|
|
17
|
-
* await client.metadata.validationRuns.createV2({
|
|
18
|
-
* components: [
|
|
19
|
-
* {
|
|
20
|
-
* type: 'CUSTOM_OBJECT',
|
|
21
|
-
* api_name: 'purchase_order__c',
|
|
22
|
-
* name: 'Purchase Order',
|
|
23
|
-
* description: 'Tracks purchase requests',
|
|
24
|
-
* category_api_name: 'procurement__c',
|
|
25
|
-
* },
|
|
26
|
-
* {
|
|
27
|
-
* type: 'CUSTOM_OBJECT_FIELD',
|
|
28
|
-
* custom_object_api_name: 'purchase_order__c',
|
|
29
|
-
* field_api_name: 'amount__c',
|
|
30
|
-
* field_display_name: 'Amount',
|
|
31
|
-
* data_type: {
|
|
32
|
-
* field_type: 'CURRENCY',
|
|
33
|
-
* currency: 'USD',
|
|
34
|
-
* num_of_decimal_places: 2,
|
|
35
|
-
* },
|
|
36
|
-
* is_standard: false,
|
|
37
|
-
* },
|
|
38
|
-
* ],
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
createV2(params: ValidationRunCreateV2Params, options?: RequestOptions): APIPromise<ValidationRunCreateV2Response>;
|
|
43
|
-
/**
|
|
44
|
-
* Poll a metadata validation run until the terminal field is true.
|
|
45
|
-
*
|
|
46
|
-
* Requires the Metadata entitlement.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const response = await client.metadata.validationRuns.getV2(
|
|
51
|
-
* 'run_id',
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
getV2(runID: string, options?: RequestOptions): APIPromise<ValidationRunGetV2Response>;
|
|
56
8
|
/**
|
|
57
9
|
* Queue validation for a metadata component package and return a run id for
|
|
58
10
|
* polling.
|
|
@@ -101,66 +53,6 @@ export declare class ValidationRuns extends APIResource {
|
|
|
101
53
|
*/
|
|
102
54
|
get(runID: string, options?: RequestOptions): APIPromise<ValidationRunGetResponse>;
|
|
103
55
|
}
|
|
104
|
-
export interface ValidationRunCreateV2Response {
|
|
105
|
-
/**
|
|
106
|
-
* Metadata run id.
|
|
107
|
-
*/
|
|
108
|
-
id: string;
|
|
109
|
-
progress: {
|
|
110
|
-
[key: string]: unknown;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* Suggested client polling delay in milliseconds.
|
|
114
|
-
*/
|
|
115
|
-
retry_after_ms: number;
|
|
116
|
-
status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
|
|
117
|
-
/**
|
|
118
|
-
* Whether the run has reached a terminal status.
|
|
119
|
-
*/
|
|
120
|
-
terminal: boolean;
|
|
121
|
-
type: 'validation' | 'deployment';
|
|
122
|
-
created_at?: string | null;
|
|
123
|
-
error?: {
|
|
124
|
-
[key: string]: unknown;
|
|
125
|
-
} | null;
|
|
126
|
-
expires_at?: string | null;
|
|
127
|
-
finished_at?: string | null;
|
|
128
|
-
result?: {
|
|
129
|
-
[key: string]: unknown;
|
|
130
|
-
} | null;
|
|
131
|
-
started_at?: string | null;
|
|
132
|
-
updated_at?: string | null;
|
|
133
|
-
}
|
|
134
|
-
export interface ValidationRunGetV2Response {
|
|
135
|
-
/**
|
|
136
|
-
* Metadata run id.
|
|
137
|
-
*/
|
|
138
|
-
id: string;
|
|
139
|
-
progress: {
|
|
140
|
-
[key: string]: unknown;
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* Suggested client polling delay in milliseconds.
|
|
144
|
-
*/
|
|
145
|
-
retry_after_ms: number;
|
|
146
|
-
status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
|
|
147
|
-
/**
|
|
148
|
-
* Whether the run has reached a terminal status.
|
|
149
|
-
*/
|
|
150
|
-
terminal: boolean;
|
|
151
|
-
type: 'validation' | 'deployment';
|
|
152
|
-
created_at?: string | null;
|
|
153
|
-
error?: {
|
|
154
|
-
[key: string]: unknown;
|
|
155
|
-
} | null;
|
|
156
|
-
expires_at?: string | null;
|
|
157
|
-
finished_at?: string | null;
|
|
158
|
-
result?: {
|
|
159
|
-
[key: string]: unknown;
|
|
160
|
-
} | null;
|
|
161
|
-
started_at?: string | null;
|
|
162
|
-
updated_at?: string | null;
|
|
163
|
-
}
|
|
164
56
|
export interface ValidationRunCreateResponse {
|
|
165
57
|
/**
|
|
166
58
|
* Metadata run id.
|
|
@@ -221,30 +113,6 @@ export interface ValidationRunGetResponse {
|
|
|
221
113
|
started_at?: string | null;
|
|
222
114
|
updated_at?: string | null;
|
|
223
115
|
}
|
|
224
|
-
export interface ValidationRunCreateV2Params {
|
|
225
|
-
/**
|
|
226
|
-
* Body param: Complete package of metadata components, including dependencies.
|
|
227
|
-
*/
|
|
228
|
-
components: Array<ValidationRunCreateV2Params.Component>;
|
|
229
|
-
/**
|
|
230
|
-
* Header param: Optional idempotency key used to deduplicate retried create
|
|
231
|
-
* requests.
|
|
232
|
-
*/
|
|
233
|
-
'Idempotency-Key'?: string;
|
|
234
|
-
}
|
|
235
|
-
export declare namespace ValidationRunCreateV2Params {
|
|
236
|
-
/**
|
|
237
|
-
* A metadata component config. The `type` field selects the concrete component
|
|
238
|
-
* schema. Fetch type-specific fields from GET /metadata/schema/?type=<TYPE>.
|
|
239
|
-
*/
|
|
240
|
-
interface Component {
|
|
241
|
-
/**
|
|
242
|
-
* Metadata component type, such as CUSTOM_OBJECT or CUSTOM_OBJECT_FIELD.
|
|
243
|
-
*/
|
|
244
|
-
type: string;
|
|
245
|
-
[k: string]: unknown;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
116
|
export interface ValidationRunCreateParams {
|
|
249
117
|
/**
|
|
250
118
|
* Body param: Complete package of metadata components, including dependencies.
|
|
@@ -270,6 +138,6 @@ export declare namespace ValidationRunCreateParams {
|
|
|
270
138
|
}
|
|
271
139
|
}
|
|
272
140
|
export declare namespace ValidationRuns {
|
|
273
|
-
export { type
|
|
141
|
+
export { type ValidationRunCreateResponse as ValidationRunCreateResponse, type ValidationRunGetResponse as ValidationRunGetResponse, type ValidationRunCreateParams as ValidationRunCreateParams, };
|
|
274
142
|
}
|
|
275
143
|
//# sourceMappingURL=validation-runs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-runs.d.mts","sourceRoot":"","sources":["../../src/resources/metadata/validation-runs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc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yBAAyB,CAAC;IACzC;;;OAGG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -5,54 +5,6 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
5
5
|
* Custom objects defined by the company
|
|
6
6
|
*/
|
|
7
7
|
export declare class ValidationRuns extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Queue validation for a metadata component package and return a run id for
|
|
10
|
-
* polling.
|
|
11
|
-
*
|
|
12
|
-
* Requires the Metadata entitlement.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const response =
|
|
17
|
-
* await client.metadata.validationRuns.createV2({
|
|
18
|
-
* components: [
|
|
19
|
-
* {
|
|
20
|
-
* type: 'CUSTOM_OBJECT',
|
|
21
|
-
* api_name: 'purchase_order__c',
|
|
22
|
-
* name: 'Purchase Order',
|
|
23
|
-
* description: 'Tracks purchase requests',
|
|
24
|
-
* category_api_name: 'procurement__c',
|
|
25
|
-
* },
|
|
26
|
-
* {
|
|
27
|
-
* type: 'CUSTOM_OBJECT_FIELD',
|
|
28
|
-
* custom_object_api_name: 'purchase_order__c',
|
|
29
|
-
* field_api_name: 'amount__c',
|
|
30
|
-
* field_display_name: 'Amount',
|
|
31
|
-
* data_type: {
|
|
32
|
-
* field_type: 'CURRENCY',
|
|
33
|
-
* currency: 'USD',
|
|
34
|
-
* num_of_decimal_places: 2,
|
|
35
|
-
* },
|
|
36
|
-
* is_standard: false,
|
|
37
|
-
* },
|
|
38
|
-
* ],
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
createV2(params: ValidationRunCreateV2Params, options?: RequestOptions): APIPromise<ValidationRunCreateV2Response>;
|
|
43
|
-
/**
|
|
44
|
-
* Poll a metadata validation run until the terminal field is true.
|
|
45
|
-
*
|
|
46
|
-
* Requires the Metadata entitlement.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const response = await client.metadata.validationRuns.getV2(
|
|
51
|
-
* 'run_id',
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
getV2(runID: string, options?: RequestOptions): APIPromise<ValidationRunGetV2Response>;
|
|
56
8
|
/**
|
|
57
9
|
* Queue validation for a metadata component package and return a run id for
|
|
58
10
|
* polling.
|
|
@@ -101,66 +53,6 @@ export declare class ValidationRuns extends APIResource {
|
|
|
101
53
|
*/
|
|
102
54
|
get(runID: string, options?: RequestOptions): APIPromise<ValidationRunGetResponse>;
|
|
103
55
|
}
|
|
104
|
-
export interface ValidationRunCreateV2Response {
|
|
105
|
-
/**
|
|
106
|
-
* Metadata run id.
|
|
107
|
-
*/
|
|
108
|
-
id: string;
|
|
109
|
-
progress: {
|
|
110
|
-
[key: string]: unknown;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* Suggested client polling delay in milliseconds.
|
|
114
|
-
*/
|
|
115
|
-
retry_after_ms: number;
|
|
116
|
-
status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
|
|
117
|
-
/**
|
|
118
|
-
* Whether the run has reached a terminal status.
|
|
119
|
-
*/
|
|
120
|
-
terminal: boolean;
|
|
121
|
-
type: 'validation' | 'deployment';
|
|
122
|
-
created_at?: string | null;
|
|
123
|
-
error?: {
|
|
124
|
-
[key: string]: unknown;
|
|
125
|
-
} | null;
|
|
126
|
-
expires_at?: string | null;
|
|
127
|
-
finished_at?: string | null;
|
|
128
|
-
result?: {
|
|
129
|
-
[key: string]: unknown;
|
|
130
|
-
} | null;
|
|
131
|
-
started_at?: string | null;
|
|
132
|
-
updated_at?: string | null;
|
|
133
|
-
}
|
|
134
|
-
export interface ValidationRunGetV2Response {
|
|
135
|
-
/**
|
|
136
|
-
* Metadata run id.
|
|
137
|
-
*/
|
|
138
|
-
id: string;
|
|
139
|
-
progress: {
|
|
140
|
-
[key: string]: unknown;
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* Suggested client polling delay in milliseconds.
|
|
144
|
-
*/
|
|
145
|
-
retry_after_ms: number;
|
|
146
|
-
status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
|
|
147
|
-
/**
|
|
148
|
-
* Whether the run has reached a terminal status.
|
|
149
|
-
*/
|
|
150
|
-
terminal: boolean;
|
|
151
|
-
type: 'validation' | 'deployment';
|
|
152
|
-
created_at?: string | null;
|
|
153
|
-
error?: {
|
|
154
|
-
[key: string]: unknown;
|
|
155
|
-
} | null;
|
|
156
|
-
expires_at?: string | null;
|
|
157
|
-
finished_at?: string | null;
|
|
158
|
-
result?: {
|
|
159
|
-
[key: string]: unknown;
|
|
160
|
-
} | null;
|
|
161
|
-
started_at?: string | null;
|
|
162
|
-
updated_at?: string | null;
|
|
163
|
-
}
|
|
164
56
|
export interface ValidationRunCreateResponse {
|
|
165
57
|
/**
|
|
166
58
|
* Metadata run id.
|
|
@@ -221,30 +113,6 @@ export interface ValidationRunGetResponse {
|
|
|
221
113
|
started_at?: string | null;
|
|
222
114
|
updated_at?: string | null;
|
|
223
115
|
}
|
|
224
|
-
export interface ValidationRunCreateV2Params {
|
|
225
|
-
/**
|
|
226
|
-
* Body param: Complete package of metadata components, including dependencies.
|
|
227
|
-
*/
|
|
228
|
-
components: Array<ValidationRunCreateV2Params.Component>;
|
|
229
|
-
/**
|
|
230
|
-
* Header param: Optional idempotency key used to deduplicate retried create
|
|
231
|
-
* requests.
|
|
232
|
-
*/
|
|
233
|
-
'Idempotency-Key'?: string;
|
|
234
|
-
}
|
|
235
|
-
export declare namespace ValidationRunCreateV2Params {
|
|
236
|
-
/**
|
|
237
|
-
* A metadata component config. The `type` field selects the concrete component
|
|
238
|
-
* schema. Fetch type-specific fields from GET /metadata/schema/?type=<TYPE>.
|
|
239
|
-
*/
|
|
240
|
-
interface Component {
|
|
241
|
-
/**
|
|
242
|
-
* Metadata component type, such as CUSTOM_OBJECT or CUSTOM_OBJECT_FIELD.
|
|
243
|
-
*/
|
|
244
|
-
type: string;
|
|
245
|
-
[k: string]: unknown;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
116
|
export interface ValidationRunCreateParams {
|
|
249
117
|
/**
|
|
250
118
|
* Body param: Complete package of metadata components, including dependencies.
|
|
@@ -270,6 +138,6 @@ export declare namespace ValidationRunCreateParams {
|
|
|
270
138
|
}
|
|
271
139
|
}
|
|
272
140
|
export declare namespace ValidationRuns {
|
|
273
|
-
export { type
|
|
141
|
+
export { type ValidationRunCreateResponse as ValidationRunCreateResponse, type ValidationRunGetResponse as ValidationRunGetResponse, type ValidationRunCreateParams as ValidationRunCreateParams, };
|
|
274
142
|
}
|
|
275
143
|
//# sourceMappingURL=validation-runs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-runs.d.ts","sourceRoot":"","sources":["../../src/resources/metadata/validation-runs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,
|
|
1
|
+
{"version":3,"file":"validation-runs.d.ts","sourceRoot":"","sources":["../../src/resources/metadata/validation-runs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,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,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -9,66 +9,6 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
9
9
|
* Custom objects defined by the company
|
|
10
10
|
*/
|
|
11
11
|
class ValidationRuns extends resource_1.APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Queue validation for a metadata component package and return a run id for
|
|
14
|
-
* polling.
|
|
15
|
-
*
|
|
16
|
-
* Requires the Metadata entitlement.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const response =
|
|
21
|
-
* await client.metadata.validationRuns.createV2({
|
|
22
|
-
* components: [
|
|
23
|
-
* {
|
|
24
|
-
* type: 'CUSTOM_OBJECT',
|
|
25
|
-
* api_name: 'purchase_order__c',
|
|
26
|
-
* name: 'Purchase Order',
|
|
27
|
-
* description: 'Tracks purchase requests',
|
|
28
|
-
* category_api_name: 'procurement__c',
|
|
29
|
-
* },
|
|
30
|
-
* {
|
|
31
|
-
* type: 'CUSTOM_OBJECT_FIELD',
|
|
32
|
-
* custom_object_api_name: 'purchase_order__c',
|
|
33
|
-
* field_api_name: 'amount__c',
|
|
34
|
-
* field_display_name: 'Amount',
|
|
35
|
-
* data_type: {
|
|
36
|
-
* field_type: 'CURRENCY',
|
|
37
|
-
* currency: 'USD',
|
|
38
|
-
* num_of_decimal_places: 2,
|
|
39
|
-
* },
|
|
40
|
-
* is_standard: false,
|
|
41
|
-
* },
|
|
42
|
-
* ],
|
|
43
|
-
* });
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
createV2(params, options) {
|
|
47
|
-
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
48
|
-
return this._client.post('/metadata/v2/validation-runs/', {
|
|
49
|
-
body,
|
|
50
|
-
...options,
|
|
51
|
-
headers: (0, headers_1.buildHeaders)([
|
|
52
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
53
|
-
options?.headers,
|
|
54
|
-
]),
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Poll a metadata validation run until the terminal field is true.
|
|
59
|
-
*
|
|
60
|
-
* Requires the Metadata entitlement.
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```ts
|
|
64
|
-
* const response = await client.metadata.validationRuns.getV2(
|
|
65
|
-
* 'run_id',
|
|
66
|
-
* );
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
getV2(runID, options) {
|
|
70
|
-
return this._client.get((0, path_1.path) `/metadata/v2/validation-runs/${runID}/`, options);
|
|
71
|
-
}
|
|
72
12
|
/**
|
|
73
13
|
* Queue validation for a metadata component package and return a run id for
|
|
74
14
|
* polling.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-runs.js","sourceRoot":"","sources":["../../src/resources/metadata/validation-runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,
|
|
1
|
+
{"version":3,"file":"validation-runs.js","sourceRoot":"","sources":["../../src/resources/metadata/validation-runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,MAAM,CACJ,MAAiC,EACjC,OAAwB;QAExB,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE;YACrD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,KAAa,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,6BAA6B,KAAK,GAAG,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAhED,wCAgEC"}
|