@salesforce/lds-adapters-service-ecm 1.370.0 → 1.372.0

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.
@@ -8111,8 +8111,8 @@ const createAgentActionAdapterFactory = (luvio) => {
8111
8111
  };
8112
8112
  };
8113
8113
 
8114
- const VERSION$5 = "c9311edc4dc08a9830891f1c8b6ec195";
8115
- function validate$5(obj, path = 'AgentFlowStatusOutputRepresentation') {
8114
+ const VERSION$5 = "18356685b1dcb3cf1226dcc54a7465de";
8115
+ function validate$5(obj, path = 'AgentAutolaunchedFlowStatusRepresentation') {
8116
8116
  const v_error = (() => {
8117
8117
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8118
8118
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -8130,7 +8130,7 @@ function validate$5(obj, path = 'AgentFlowStatusOutputRepresentation') {
8130
8130
  })();
8131
8131
  return v_error === undefined ? null : v_error;
8132
8132
  }
8133
- const select$a = function AgentFlowStatusOutputRepresentationSelect() {
8133
+ const select$a = function AgentAutolaunchedFlowStatusRepresentationSelect() {
8134
8134
  return {
8135
8135
  kind: 'Fragment',
8136
8136
  version: VERSION$5,
@@ -8162,41 +8162,104 @@ function equals$5(existing, incoming) {
8162
8162
  }
8163
8163
 
8164
8164
  const TTL$3 = 500;
8165
- const VERSION$4 = "8339c78dc2e1e22eb9203102eba6a7e8";
8166
- function validate$4(obj, path = 'AgentFlowOutputRepresentation') {
8165
+ const VERSION$4 = "9a585247768eba0bf6edb1791e738701";
8166
+ function validate$4(obj, path = 'AgentAutolaunchedFlowRepresentation') {
8167
8167
  const v_error = (() => {
8168
8168
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8169
8169
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
8170
8170
  }
8171
8171
  const obj_flowDefinitionId = obj.flowDefinitionId;
8172
8172
  const path_flowDefinitionId = path + '.flowDefinitionId';
8173
- if (typeof obj_flowDefinitionId !== 'string') {
8174
- return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
8173
+ let obj_flowDefinitionId_union0 = null;
8174
+ const obj_flowDefinitionId_union0_error = (() => {
8175
+ if (typeof obj_flowDefinitionId !== 'string') {
8176
+ return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
8177
+ }
8178
+ })();
8179
+ if (obj_flowDefinitionId_union0_error != null) {
8180
+ obj_flowDefinitionId_union0 = obj_flowDefinitionId_union0_error.message;
8181
+ }
8182
+ let obj_flowDefinitionId_union1 = null;
8183
+ const obj_flowDefinitionId_union1_error = (() => {
8184
+ if (obj_flowDefinitionId !== null) {
8185
+ return new TypeError('Expected "null" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
8186
+ }
8187
+ })();
8188
+ if (obj_flowDefinitionId_union1_error != null) {
8189
+ obj_flowDefinitionId_union1 = obj_flowDefinitionId_union1_error.message;
8190
+ }
8191
+ if (obj_flowDefinitionId_union0 && obj_flowDefinitionId_union1) {
8192
+ let message = 'Object doesn\'t match union (at "' + path_flowDefinitionId + '")';
8193
+ message += '\n' + obj_flowDefinitionId_union0.split('\n').map((line) => '\t' + line).join('\n');
8194
+ message += '\n' + obj_flowDefinitionId_union1.split('\n').map((line) => '\t' + line).join('\n');
8195
+ return new TypeError(message);
8175
8196
  }
8176
8197
  const obj_flowLatestVersionId = obj.flowLatestVersionId;
8177
8198
  const path_flowLatestVersionId = path + '.flowLatestVersionId';
8178
- if (typeof obj_flowLatestVersionId !== 'string') {
8179
- return new TypeError('Expected "string" but received "' + typeof obj_flowLatestVersionId + '" (at "' + path_flowLatestVersionId + '")');
8199
+ let obj_flowLatestVersionId_union0 = null;
8200
+ const obj_flowLatestVersionId_union0_error = (() => {
8201
+ if (typeof obj_flowLatestVersionId !== 'string') {
8202
+ return new TypeError('Expected "string" but received "' + typeof obj_flowLatestVersionId + '" (at "' + path_flowLatestVersionId + '")');
8203
+ }
8204
+ })();
8205
+ if (obj_flowLatestVersionId_union0_error != null) {
8206
+ obj_flowLatestVersionId_union0 = obj_flowLatestVersionId_union0_error.message;
8207
+ }
8208
+ let obj_flowLatestVersionId_union1 = null;
8209
+ const obj_flowLatestVersionId_union1_error = (() => {
8210
+ if (obj_flowLatestVersionId !== null) {
8211
+ return new TypeError('Expected "null" but received "' + typeof obj_flowLatestVersionId + '" (at "' + path_flowLatestVersionId + '")');
8212
+ }
8213
+ })();
8214
+ if (obj_flowLatestVersionId_union1_error != null) {
8215
+ obj_flowLatestVersionId_union1 = obj_flowLatestVersionId_union1_error.message;
8216
+ }
8217
+ if (obj_flowLatestVersionId_union0 && obj_flowLatestVersionId_union1) {
8218
+ let message = 'Object doesn\'t match union (at "' + path_flowLatestVersionId + '")';
8219
+ message += '\n' + obj_flowLatestVersionId_union0.split('\n').map((line) => '\t' + line).join('\n');
8220
+ message += '\n' + obj_flowLatestVersionId_union1.split('\n').map((line) => '\t' + line).join('\n');
8221
+ return new TypeError(message);
8180
8222
  }
8181
8223
  const obj_isActive = obj.isActive;
8182
8224
  const path_isActive = path + '.isActive';
8183
- if (typeof obj_isActive !== 'boolean') {
8184
- return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
8225
+ let obj_isActive_union0 = null;
8226
+ const obj_isActive_union0_error = (() => {
8227
+ if (typeof obj_isActive !== 'boolean') {
8228
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
8229
+ }
8230
+ })();
8231
+ if (obj_isActive_union0_error != null) {
8232
+ obj_isActive_union0 = obj_isActive_union0_error.message;
8233
+ }
8234
+ let obj_isActive_union1 = null;
8235
+ const obj_isActive_union1_error = (() => {
8236
+ if (obj_isActive !== null) {
8237
+ return new TypeError('Expected "null" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
8238
+ }
8239
+ })();
8240
+ if (obj_isActive_union1_error != null) {
8241
+ obj_isActive_union1 = obj_isActive_union1_error.message;
8242
+ }
8243
+ if (obj_isActive_union0 && obj_isActive_union1) {
8244
+ let message = 'Object doesn\'t match union (at "' + path_isActive + '")';
8245
+ message += '\n' + obj_isActive_union0.split('\n').map((line) => '\t' + line).join('\n');
8246
+ message += '\n' + obj_isActive_union1.split('\n').map((line) => '\t' + line).join('\n');
8247
+ return new TypeError(message);
8185
8248
  }
8186
8249
  const obj_status = obj.status;
8187
8250
  const path_status = path + '.status';
8188
8251
  const referencepath_statusValidationError = validate$5(obj_status, path_status);
8189
8252
  if (referencepath_statusValidationError !== null) {
8190
- let message = 'Object doesn\'t match AgentFlowStatusOutputRepresentation (at "' + path_status + '")\n';
8253
+ let message = 'Object doesn\'t match AgentAutolaunchedFlowStatusRepresentation (at "' + path_status + '")\n';
8191
8254
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
8192
8255
  return new TypeError(message);
8193
8256
  }
8194
8257
  })();
8195
8258
  return v_error === undefined ? null : v_error;
8196
8259
  }
8197
- const RepresentationType$4 = 'AgentFlowOutputRepresentation';
8260
+ const RepresentationType$4 = 'AgentAutolaunchedFlowRepresentation';
8198
8261
  function keyBuilder$5(luvio, config) {
8199
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
8262
+ return keyPrefix + '::' + RepresentationType$4 + ':' + (config.id === null ? '' : config.id);
8200
8263
  }
8201
8264
  function keyBuilderFromType$3(luvio, object) {
8202
8265
  const keyParams = {
@@ -8207,8 +8270,8 @@ function keyBuilderFromType$3(luvio, object) {
8207
8270
  function normalize$4(input, existing, path, luvio, store, timestamp) {
8208
8271
  return input;
8209
8272
  }
8210
- const select$9 = function AgentFlowOutputRepresentationSelect() {
8211
- const { selections: AgentFlowStatusOutputRepresentation__selections, opaque: AgentFlowStatusOutputRepresentation__opaque, } = select$a();
8273
+ const select$9 = function AgentAutolaunchedFlowRepresentationSelect() {
8274
+ const { selections: AgentAutolaunchedFlowStatusRepresentation__selections, opaque: AgentAutolaunchedFlowStatusRepresentation__opaque, } = select$a();
8212
8275
  return {
8213
8276
  kind: 'Fragment',
8214
8277
  version: VERSION$4,
@@ -8229,17 +8292,12 @@ const select$9 = function AgentFlowOutputRepresentationSelect() {
8229
8292
  {
8230
8293
  name: 'status',
8231
8294
  kind: 'Object',
8232
- selections: AgentFlowStatusOutputRepresentation__selections
8295
+ selections: AgentAutolaunchedFlowStatusRepresentation__selections
8233
8296
  }
8234
8297
  ]
8235
8298
  };
8236
8299
  };
8237
8300
  function equals$4(existing, incoming) {
8238
- const existing_isActive = existing.isActive;
8239
- const incoming_isActive = incoming.isActive;
8240
- if (!(existing_isActive === incoming_isActive)) {
8241
- return false;
8242
- }
8243
8301
  const existing_flowDefinitionId = existing.flowDefinitionId;
8244
8302
  const incoming_flowDefinitionId = incoming.flowDefinitionId;
8245
8303
  if (!(existing_flowDefinitionId === incoming_flowDefinitionId)) {
@@ -8250,6 +8308,11 @@ function equals$4(existing, incoming) {
8250
8308
  if (!(existing_flowLatestVersionId === incoming_flowLatestVersionId)) {
8251
8309
  return false;
8252
8310
  }
8311
+ const existing_isActive = existing.isActive;
8312
+ const incoming_isActive = incoming.isActive;
8313
+ if (!(existing_isActive === incoming_isActive)) {
8314
+ return false;
8315
+ }
8253
8316
  const existing_status = existing.status;
8254
8317
  const incoming_status = incoming.status;
8255
8318
  if (!(equals$5(existing_status, incoming_status))) {
@@ -8257,7 +8320,7 @@ function equals$4(existing, incoming) {
8257
8320
  }
8258
8321
  return true;
8259
8322
  }
8260
- const ingest$4 = function AgentFlowOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8323
+ const ingest$4 = function AgentAutolaunchedFlowRepresentationIngest(input, path, luvio, store, timestamp) {
8261
8324
  if (process.env.NODE_ENV !== 'production') {
8262
8325
  const validateError = validate$4(input);
8263
8326
  if (validateError !== null) {
@@ -8306,7 +8369,7 @@ function createResourceRequest$4(config) {
8306
8369
  const headers = {};
8307
8370
  return {
8308
8371
  baseUri: '/services/data/v65.0',
8309
- basePath: '/connect/service-automation/agent/flow/autolaunched',
8372
+ basePath: '/connect/service-automation/agent/autolaunched-flow',
8310
8373
  method: 'post',
8311
8374
  body: config.body,
8312
8375
  urlParams: {},
@@ -1,7 +1,7 @@
1
1
  import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
- import { ResourceRequestConfig as resources_postConnectServiceAutomationAgentFlowAutolaunched_ResourceRequestConfig } from '../resources/postConnectServiceAutomationAgentFlowAutolaunched';
4
- import { AgentFlowOutputRepresentation as types_AgentFlowOutputRepresentation_AgentFlowOutputRepresentation } from '../types/AgentFlowOutputRepresentation';
3
+ import { ResourceRequestConfig as resources_postConnectServiceAutomationAgentAutolaunchedFlow_ResourceRequestConfig } from '../resources/postConnectServiceAutomationAgentAutolaunchedFlow';
4
+ import { AgentAutolaunchedFlowRepresentation as types_AgentAutolaunchedFlowRepresentation_AgentAutolaunchedFlowRepresentation } from '../types/AgentAutolaunchedFlowRepresentation';
5
5
  export declare const adapterName = "createAgentFlow";
6
6
  export declare const createAgentFlow_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
7
  export declare const createAgentFlow_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
@@ -11,8 +11,8 @@ export interface CreateAgentFlowConfig {
11
11
  label: string;
12
12
  serviceProcessId: string;
13
13
  }
14
- export declare const createResourceParams: (config: CreateAgentFlowConfig) => resources_postConnectServiceAutomationAgentFlowAutolaunched_ResourceRequestConfig;
14
+ export declare const createResourceParams: (config: CreateAgentFlowConfig) => resources_postConnectServiceAutomationAgentAutolaunchedFlow_ResourceRequestConfig;
15
15
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateAgentFlowConfig>): adapter$45$utils_Untrusted<CreateAgentFlowConfig>;
16
16
  export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateAgentFlowConfig | null;
17
- export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateAgentFlowConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_AgentFlowOutputRepresentation_AgentFlowOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_AgentFlowOutputRepresentation_AgentFlowOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_AgentFlowOutputRepresentation_AgentFlowOutputRepresentation, any>>;
18
- export declare const createAgentFlowAdapterFactory: $64$luvio_engine_AdapterFactory<CreateAgentFlowConfig, types_AgentFlowOutputRepresentation_AgentFlowOutputRepresentation>;
17
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateAgentFlowConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_AgentAutolaunchedFlowRepresentation_AgentAutolaunchedFlowRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_AgentAutolaunchedFlowRepresentation_AgentAutolaunchedFlowRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_AgentAutolaunchedFlowRepresentation_AgentAutolaunchedFlowRepresentation, any>>;
18
+ export declare const createAgentFlowAdapterFactory: $64$luvio_engine_AdapterFactory<CreateAgentFlowConfig, types_AgentAutolaunchedFlowRepresentation_AgentAutolaunchedFlowRepresentation>;
@@ -1,5 +1,5 @@
1
1
  import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
- import { AgentFlowOutputRepresentation as types_AgentFlowOutputRepresentation_AgentFlowOutputRepresentation } from '../types/AgentFlowOutputRepresentation';
2
+ import { AgentAutolaunchedFlowRepresentation as types_AgentAutolaunchedFlowRepresentation_AgentAutolaunchedFlowRepresentation } from '../types/AgentAutolaunchedFlowRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  body: {
5
5
  description: string;
@@ -9,7 +9,7 @@ export interface ResourceRequestConfig {
9
9
  };
10
10
  }
11
11
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
12
- export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_AgentFlowOutputRepresentation_AgentFlowOutputRepresentation): void;
13
- export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_AgentFlowOutputRepresentation_AgentFlowOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_AgentFlowOutputRepresentation_AgentFlowOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_AgentFlowOutputRepresentation_AgentFlowOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_AgentFlowOutputRepresentation_AgentFlowOutputRepresentation, any>;
12
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_AgentAutolaunchedFlowRepresentation_AgentAutolaunchedFlowRepresentation): void;
13
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_AgentAutolaunchedFlowRepresentation_AgentAutolaunchedFlowRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_AgentAutolaunchedFlowRepresentation_AgentAutolaunchedFlowRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_AgentAutolaunchedFlowRepresentation_AgentAutolaunchedFlowRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_AgentAutolaunchedFlowRepresentation_AgentAutolaunchedFlowRepresentation, any>;
14
14
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
15
15
  export default createResourceRequest;
@@ -0,0 +1,37 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "8fc30067746332672c3962a026595cc4";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: AgentAutolaunchedFlowInputRepresentation, existing: AgentAutolaunchedFlowInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentAutolaunchedFlowInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: AgentAutolaunchedFlowInputRepresentationNormalized, incoming: AgentAutolaunchedFlowInputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AgentAutolaunchedFlowInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Input Representation of an Autolaunched Flow
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface AgentAutolaunchedFlowInputRepresentationNormalized {
17
+ /** Description of the autolaunched flow. */
18
+ description: string;
19
+ /** The unique developer name of the autolaunched flow. */
20
+ developerName: string;
21
+ /** Display name for the autolaunched flow. */
22
+ label: string;
23
+ /** The unique identifier of the service process for which autolaunched flow is getting created. */
24
+ serviceProcessId: string;
25
+ }
26
+ /**
27
+ * Input Representation of an Autolaunched Flow
28
+ *
29
+ * Keys:
30
+ * (none)
31
+ */
32
+ export interface AgentAutolaunchedFlowInputRepresentation {
33
+ description: string;
34
+ developerName: string;
35
+ label: string;
36
+ serviceProcessId: string;
37
+ }
@@ -0,0 +1,47 @@
1
+ import { AgentAutolaunchedFlowStatusRepresentation as AgentAutolaunchedFlowStatusRepresentation_AgentAutolaunchedFlowStatusRepresentation } from './AgentAutolaunchedFlowStatusRepresentation';
2
+ import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const TTL = 500;
4
+ export declare const VERSION = "9a585247768eba0bf6edb1791e738701";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
8
+ id: string | null;
9
+ }
10
+ export type AgentAutolaunchedFlowRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialAgentAutolaunchedFlowRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): AgentAutolaunchedFlowRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: AgentAutolaunchedFlowRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: AgentAutolaunchedFlowRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: AgentAutolaunchedFlowRepresentation, existing: AgentAutolaunchedFlowRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentAutolaunchedFlowRepresentationNormalized;
17
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
18
+ export declare function equals(existing: AgentAutolaunchedFlowRepresentationNormalized, incoming: AgentAutolaunchedFlowRepresentationNormalized): boolean;
19
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
20
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AgentAutolaunchedFlowRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ /**
22
+ * Output Representation of an Autolaunched Flow
23
+ *
24
+ * Keys:
25
+ * id (string | null): flowDefinitionId
26
+ */
27
+ export interface AgentAutolaunchedFlowRepresentationNormalized {
28
+ /** The unique identifier of the flow definition. */
29
+ flowDefinitionId: string | null;
30
+ /** The unique identifier of the latest version of the autolaunched flow */
31
+ flowLatestVersionId: string | null;
32
+ /** Indicates whether the flow is active (true) or not (false) */
33
+ isActive: boolean | null;
34
+ status: AgentAutolaunchedFlowStatusRepresentation_AgentAutolaunchedFlowStatusRepresentation;
35
+ }
36
+ /**
37
+ * Output Representation of an Autolaunched Flow
38
+ *
39
+ * Keys:
40
+ * id (string | null): flowDefinitionId
41
+ */
42
+ export interface AgentAutolaunchedFlowRepresentation {
43
+ flowDefinitionId: string | null;
44
+ flowLatestVersionId: string | null;
45
+ isActive: boolean | null;
46
+ status: AgentAutolaunchedFlowStatusRepresentation_AgentAutolaunchedFlowStatusRepresentation;
47
+ }
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "18356685b1dcb3cf1226dcc54a7465de";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: AgentAutolaunchedFlowStatusRepresentation, existing: AgentAutolaunchedFlowStatusRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentAutolaunchedFlowStatusRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: AgentAutolaunchedFlowStatusRepresentationNormalized, incoming: AgentAutolaunchedFlowStatusRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AgentAutolaunchedFlowStatusRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Output Representation of the Flow Status
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface AgentAutolaunchedFlowStatusRepresentationNormalized {
17
+ /** The error code thrown when the request fails. */
18
+ code: number;
19
+ /** Message stating the reason for error, if any. */
20
+ message: string;
21
+ }
22
+ /**
23
+ * Output Representation of the Flow Status
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface AgentAutolaunchedFlowStatusRepresentation {
29
+ code: number;
30
+ message: string;
31
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-ecm",
3
- "version": "1.370.0",
3
+ "version": "1.372.0",
4
4
  "description": "Service Automation Request",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-ecm.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.370.0"
43
+ "@salesforce/lds-bindings": "^1.372.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.370.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.372.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -807,8 +807,8 @@ const createAgentActionAdapterFactory = (luvio) => {
807
807
  };
808
808
  };
809
809
 
810
- const VERSION$m = "c9311edc4dc08a9830891f1c8b6ec195";
811
- function validate$C(obj, path = 'AgentFlowStatusOutputRepresentation') {
810
+ const VERSION$m = "18356685b1dcb3cf1226dcc54a7465de";
811
+ function validate$C(obj, path = 'AgentAutolaunchedFlowStatusRepresentation') {
812
812
  const v_error = (() => {
813
813
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
814
814
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -826,7 +826,7 @@ function validate$C(obj, path = 'AgentFlowStatusOutputRepresentation') {
826
826
  })();
827
827
  return v_error === undefined ? null : v_error;
828
828
  }
829
- const select$y = function AgentFlowStatusOutputRepresentationSelect() {
829
+ const select$y = function AgentAutolaunchedFlowStatusRepresentationSelect() {
830
830
  return {
831
831
  kind: 'Fragment',
832
832
  version: VERSION$m,
@@ -858,41 +858,104 @@ function equals$m(existing, incoming) {
858
858
  }
859
859
 
860
860
  const TTL$8 = 500;
861
- const VERSION$l = "8339c78dc2e1e22eb9203102eba6a7e8";
862
- function validate$B(obj, path = 'AgentFlowOutputRepresentation') {
861
+ const VERSION$l = "9a585247768eba0bf6edb1791e738701";
862
+ function validate$B(obj, path = 'AgentAutolaunchedFlowRepresentation') {
863
863
  const v_error = (() => {
864
864
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
865
865
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
866
866
  }
867
867
  const obj_flowDefinitionId = obj.flowDefinitionId;
868
868
  const path_flowDefinitionId = path + '.flowDefinitionId';
869
- if (typeof obj_flowDefinitionId !== 'string') {
870
- return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
869
+ let obj_flowDefinitionId_union0 = null;
870
+ const obj_flowDefinitionId_union0_error = (() => {
871
+ if (typeof obj_flowDefinitionId !== 'string') {
872
+ return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
873
+ }
874
+ })();
875
+ if (obj_flowDefinitionId_union0_error != null) {
876
+ obj_flowDefinitionId_union0 = obj_flowDefinitionId_union0_error.message;
877
+ }
878
+ let obj_flowDefinitionId_union1 = null;
879
+ const obj_flowDefinitionId_union1_error = (() => {
880
+ if (obj_flowDefinitionId !== null) {
881
+ return new TypeError('Expected "null" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
882
+ }
883
+ })();
884
+ if (obj_flowDefinitionId_union1_error != null) {
885
+ obj_flowDefinitionId_union1 = obj_flowDefinitionId_union1_error.message;
886
+ }
887
+ if (obj_flowDefinitionId_union0 && obj_flowDefinitionId_union1) {
888
+ let message = 'Object doesn\'t match union (at "' + path_flowDefinitionId + '")';
889
+ message += '\n' + obj_flowDefinitionId_union0.split('\n').map((line) => '\t' + line).join('\n');
890
+ message += '\n' + obj_flowDefinitionId_union1.split('\n').map((line) => '\t' + line).join('\n');
891
+ return new TypeError(message);
871
892
  }
872
893
  const obj_flowLatestVersionId = obj.flowLatestVersionId;
873
894
  const path_flowLatestVersionId = path + '.flowLatestVersionId';
874
- if (typeof obj_flowLatestVersionId !== 'string') {
875
- return new TypeError('Expected "string" but received "' + typeof obj_flowLatestVersionId + '" (at "' + path_flowLatestVersionId + '")');
895
+ let obj_flowLatestVersionId_union0 = null;
896
+ const obj_flowLatestVersionId_union0_error = (() => {
897
+ if (typeof obj_flowLatestVersionId !== 'string') {
898
+ return new TypeError('Expected "string" but received "' + typeof obj_flowLatestVersionId + '" (at "' + path_flowLatestVersionId + '")');
899
+ }
900
+ })();
901
+ if (obj_flowLatestVersionId_union0_error != null) {
902
+ obj_flowLatestVersionId_union0 = obj_flowLatestVersionId_union0_error.message;
903
+ }
904
+ let obj_flowLatestVersionId_union1 = null;
905
+ const obj_flowLatestVersionId_union1_error = (() => {
906
+ if (obj_flowLatestVersionId !== null) {
907
+ return new TypeError('Expected "null" but received "' + typeof obj_flowLatestVersionId + '" (at "' + path_flowLatestVersionId + '")');
908
+ }
909
+ })();
910
+ if (obj_flowLatestVersionId_union1_error != null) {
911
+ obj_flowLatestVersionId_union1 = obj_flowLatestVersionId_union1_error.message;
912
+ }
913
+ if (obj_flowLatestVersionId_union0 && obj_flowLatestVersionId_union1) {
914
+ let message = 'Object doesn\'t match union (at "' + path_flowLatestVersionId + '")';
915
+ message += '\n' + obj_flowLatestVersionId_union0.split('\n').map((line) => '\t' + line).join('\n');
916
+ message += '\n' + obj_flowLatestVersionId_union1.split('\n').map((line) => '\t' + line).join('\n');
917
+ return new TypeError(message);
876
918
  }
877
919
  const obj_isActive = obj.isActive;
878
920
  const path_isActive = path + '.isActive';
879
- if (typeof obj_isActive !== 'boolean') {
880
- return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
921
+ let obj_isActive_union0 = null;
922
+ const obj_isActive_union0_error = (() => {
923
+ if (typeof obj_isActive !== 'boolean') {
924
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
925
+ }
926
+ })();
927
+ if (obj_isActive_union0_error != null) {
928
+ obj_isActive_union0 = obj_isActive_union0_error.message;
929
+ }
930
+ let obj_isActive_union1 = null;
931
+ const obj_isActive_union1_error = (() => {
932
+ if (obj_isActive !== null) {
933
+ return new TypeError('Expected "null" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
934
+ }
935
+ })();
936
+ if (obj_isActive_union1_error != null) {
937
+ obj_isActive_union1 = obj_isActive_union1_error.message;
938
+ }
939
+ if (obj_isActive_union0 && obj_isActive_union1) {
940
+ let message = 'Object doesn\'t match union (at "' + path_isActive + '")';
941
+ message += '\n' + obj_isActive_union0.split('\n').map((line) => '\t' + line).join('\n');
942
+ message += '\n' + obj_isActive_union1.split('\n').map((line) => '\t' + line).join('\n');
943
+ return new TypeError(message);
881
944
  }
882
945
  const obj_status = obj.status;
883
946
  const path_status = path + '.status';
884
947
  const referencepath_statusValidationError = validate$C(obj_status, path_status);
885
948
  if (referencepath_statusValidationError !== null) {
886
- let message = 'Object doesn\'t match AgentFlowStatusOutputRepresentation (at "' + path_status + '")\n';
949
+ let message = 'Object doesn\'t match AgentAutolaunchedFlowStatusRepresentation (at "' + path_status + '")\n';
887
950
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
888
951
  return new TypeError(message);
889
952
  }
890
953
  })();
891
954
  return v_error === undefined ? null : v_error;
892
955
  }
893
- const RepresentationType$9 = 'AgentFlowOutputRepresentation';
956
+ const RepresentationType$9 = 'AgentAutolaunchedFlowRepresentation';
894
957
  function keyBuilder$f(luvio, config) {
895
- return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
958
+ return keyPrefix + '::' + RepresentationType$9 + ':' + (config.id === null ? '' : config.id);
896
959
  }
897
960
  function keyBuilderFromType$5(luvio, object) {
898
961
  const keyParams = {
@@ -903,8 +966,8 @@ function keyBuilderFromType$5(luvio, object) {
903
966
  function normalize$9(input, existing, path, luvio, store, timestamp) {
904
967
  return input;
905
968
  }
906
- const select$x = function AgentFlowOutputRepresentationSelect() {
907
- const { selections: AgentFlowStatusOutputRepresentation__selections, opaque: AgentFlowStatusOutputRepresentation__opaque, } = select$y();
969
+ const select$x = function AgentAutolaunchedFlowRepresentationSelect() {
970
+ const { selections: AgentAutolaunchedFlowStatusRepresentation__selections, opaque: AgentAutolaunchedFlowStatusRepresentation__opaque, } = select$y();
908
971
  return {
909
972
  kind: 'Fragment',
910
973
  version: VERSION$l,
@@ -925,17 +988,12 @@ const select$x = function AgentFlowOutputRepresentationSelect() {
925
988
  {
926
989
  name: 'status',
927
990
  kind: 'Object',
928
- selections: AgentFlowStatusOutputRepresentation__selections
991
+ selections: AgentAutolaunchedFlowStatusRepresentation__selections
929
992
  }
930
993
  ]
931
994
  };
932
995
  };
933
996
  function equals$l(existing, incoming) {
934
- const existing_isActive = existing.isActive;
935
- const incoming_isActive = incoming.isActive;
936
- if (!(existing_isActive === incoming_isActive)) {
937
- return false;
938
- }
939
997
  const existing_flowDefinitionId = existing.flowDefinitionId;
940
998
  const incoming_flowDefinitionId = incoming.flowDefinitionId;
941
999
  if (!(existing_flowDefinitionId === incoming_flowDefinitionId)) {
@@ -946,6 +1004,11 @@ function equals$l(existing, incoming) {
946
1004
  if (!(existing_flowLatestVersionId === incoming_flowLatestVersionId)) {
947
1005
  return false;
948
1006
  }
1007
+ const existing_isActive = existing.isActive;
1008
+ const incoming_isActive = incoming.isActive;
1009
+ if (!(existing_isActive === incoming_isActive)) {
1010
+ return false;
1011
+ }
949
1012
  const existing_status = existing.status;
950
1013
  const incoming_status = incoming.status;
951
1014
  if (!(equals$m(existing_status, incoming_status))) {
@@ -953,7 +1016,7 @@ function equals$l(existing, incoming) {
953
1016
  }
954
1017
  return true;
955
1018
  }
956
- const ingest$9 = function AgentFlowOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1019
+ const ingest$9 = function AgentAutolaunchedFlowRepresentationIngest(input, path, luvio, store, timestamp) {
957
1020
  if (process.env.NODE_ENV !== 'production') {
958
1021
  const validateError = validate$B(input);
959
1022
  if (validateError !== null) {
@@ -1002,7 +1065,7 @@ function createResourceRequest$b(config) {
1002
1065
  const headers = {};
1003
1066
  return {
1004
1067
  baseUri: '/services/data/v65.0',
1005
- basePath: '/connect/service-automation/agent/flow/autolaunched',
1068
+ basePath: '/connect/service-automation/agent/autolaunched-flow',
1006
1069
  method: 'post',
1007
1070
  body: config.body,
1008
1071
  urlParams: {},
@@ -9458,4 +9521,4 @@ withDefaultLuvio((luvio) => {
9458
9521
  });
9459
9522
 
9460
9523
  export { createAgentAction, createAgentFlow, createCatalogItem, deployTemplate, generateIntakeForm, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getAllServiceProcessTemplate, getAllServiceProcessTemplate_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
9461
- // version: 1.370.0-7c1df2520b
9524
+ // version: 1.372.0-59e8aa192f
package/src/raml/api.raml CHANGED
@@ -1270,47 +1270,47 @@ types:
1270
1270
  - Active
1271
1271
  - Draft
1272
1272
  - Inactive
1273
- AgentFlowInputRepresentation:
1274
- description: Input Representation for Agent Action
1273
+ AgentAutolaunchedFlowInputRepresentation:
1274
+ description: Input Representation of an Autolaunched Flow
1275
1275
  type: object
1276
1276
  properties:
1277
1277
  description:
1278
- description: The description of the flow
1278
+ description: Description of the autolaunched flow.
1279
1279
  type: string
1280
1280
  developerName:
1281
- description: The Api Name of the flow
1281
+ description: The unique developer name of the autolaunched flow.
1282
1282
  type: string
1283
1283
  label:
1284
- description: The label of the Flow
1284
+ description: Display name for the autolaunched flow.
1285
1285
  type: string
1286
1286
  serviceProcessId:
1287
- description: The ID of product2 record corresponding to a service process
1287
+ description: The unique identifier of the service process for which autolaunched flow is getting created.
1288
1288
  type: string
1289
- AgentFlowOutputRepresentation:
1290
- description: Output Representation for Flow corresponding to Agent Action
1289
+ AgentAutolaunchedFlowRepresentation:
1290
+ description: Output Representation of an Autolaunched Flow
1291
1291
  type: object
1292
1292
  properties:
1293
1293
  flowDefinitionId:
1294
- description: Agent Flow Definition Id
1295
- type: string
1294
+ description: The unique identifier of the flow definition.
1295
+ type: string | nil
1296
1296
  flowLatestVersionId:
1297
- description: Latest Version Id of the Agent Flow
1298
- type: string
1297
+ description: The unique identifier of the latest version of the autolaunched flow
1298
+ type: string | nil
1299
1299
  isActive:
1300
- description: is the flow active or not
1301
- type: boolean
1300
+ description: Indicates whether the flow is active (true) or not (false)
1301
+ type: boolean | nil
1302
1302
  status:
1303
- description: status of api for agent flow generation
1304
- type: AgentFlowStatusOutputRepresentation
1305
- AgentFlowStatusOutputRepresentation:
1306
- description: Output representation to show status and message for the api call
1303
+ description: The success message or the error message with an error code that's displayed when creating the flow.
1304
+ type: AgentAutolaunchedFlowStatusRepresentation
1305
+ AgentAutolaunchedFlowStatusRepresentation:
1306
+ description: Output Representation of the Flow Status
1307
1307
  type: object
1308
1308
  properties:
1309
1309
  code:
1310
- description: get status code
1310
+ description: The error code thrown when the request fails.
1311
1311
  type: integer
1312
1312
  message:
1313
- description: get status message
1313
+ description: Message stating the reason for error, if any.
1314
1314
  type: string
1315
1315
  ServiceProcessTemplateOutputRepresentation:
1316
1316
  description: Output Representation of Service Process Template
@@ -1637,7 +1637,7 @@ types:
1637
1637
  application/json:
1638
1638
  type: EinsteinAgentActionInputRepresentation
1639
1639
  (oas-body-name): AgentActionInput
1640
- /agent/flow/autolaunched:
1640
+ /agent/autolaunched-flow:
1641
1641
  post:
1642
1642
  displayName: postAgentFlowGeneration
1643
1643
  description: API to create a flow for the new agent action
@@ -1646,11 +1646,11 @@ types:
1646
1646
  description: Success
1647
1647
  body:
1648
1648
  application/json:
1649
- type: AgentFlowOutputRepresentation
1649
+ type: AgentAutolaunchedFlowRepresentation
1650
1650
  body:
1651
1651
  application/json:
1652
- type: AgentFlowInputRepresentation
1653
- (oas-body-name): AgentFlowGenerationInput
1652
+ type: AgentAutolaunchedFlowInputRepresentation
1653
+ (oas-body-name): AgentAutolaunchedFlowInput
1654
1654
  /intake-form:
1655
1655
  /generate-intake-form:
1656
1656
  post:
@@ -38,7 +38,7 @@ types:
38
38
  (luvio.ttl): 500
39
39
  (luvio.key):
40
40
  id: id
41
- AgentFlowOutputRepresentation:
41
+ AgentAutolaunchedFlowRepresentation:
42
42
  (luvio.ttl): 500
43
43
  (luvio.key):
44
44
  id: flowDefinitionId
@@ -91,7 +91,7 @@ types:
91
91
  post:
92
92
  (luvio.adapter):
93
93
  name: createAgentAction
94
- /connect/service-automation/agent/flow/autolaunched:
94
+ /connect/service-automation/agent/autolaunched-flow:
95
95
  post:
96
96
  (luvio.adapter):
97
97
  name: createAgentFlow
@@ -1,37 +0,0 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "b87af49fcbc716b119011305d20d6524";
3
- export declare function validate(obj: any, path?: string): TypeError | null;
4
- export declare const RepresentationType: string;
5
- export declare function normalize(input: AgentFlowInputRepresentation, existing: AgentFlowInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentFlowInputRepresentationNormalized;
6
- export declare const select: () => $64$luvio_engine_FragmentSelection;
7
- export declare function equals(existing: AgentFlowInputRepresentationNormalized, incoming: AgentFlowInputRepresentationNormalized): boolean;
8
- export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AgentFlowInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
- /**
11
- * Input Representation for Agent Action
12
- *
13
- * Keys:
14
- * (none)
15
- */
16
- export interface AgentFlowInputRepresentationNormalized {
17
- /** The description of the flow */
18
- description: string;
19
- /** The Api Name of the flow */
20
- developerName: string;
21
- /** The label of the Flow */
22
- label: string;
23
- /** The ID of product2 record corresponding to a service process */
24
- serviceProcessId: string;
25
- }
26
- /**
27
- * Input Representation for Agent Action
28
- *
29
- * Keys:
30
- * (none)
31
- */
32
- export interface AgentFlowInputRepresentation {
33
- description: string;
34
- developerName: string;
35
- label: string;
36
- serviceProcessId: string;
37
- }
@@ -1,47 +0,0 @@
1
- import { AgentFlowStatusOutputRepresentation as AgentFlowStatusOutputRepresentation_AgentFlowStatusOutputRepresentation } from './AgentFlowStatusOutputRepresentation';
2
- import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
- export declare const TTL = 500;
4
- export declare const VERSION = "8339c78dc2e1e22eb9203102eba6a7e8";
5
- export declare function validate(obj: any, path?: string): TypeError | null;
6
- export declare const RepresentationType: string;
7
- export interface KeyParams extends $64$luvio_engine_KeyMetadata {
8
- id: string;
9
- }
10
- export type AgentFlowOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
- export type PartialAgentFlowOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
12
- export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
13
- export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): AgentFlowOutputRepresentationNormalizedKeyMetadata;
14
- export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: AgentFlowOutputRepresentation): string;
15
- export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: AgentFlowOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
- export declare function normalize(input: AgentFlowOutputRepresentation, existing: AgentFlowOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentFlowOutputRepresentationNormalized;
17
- export declare const select: () => $64$luvio_engine_FragmentSelection;
18
- export declare function equals(existing: AgentFlowOutputRepresentationNormalized, incoming: AgentFlowOutputRepresentationNormalized): boolean;
19
- export declare const ingest: $64$luvio_engine_ResourceIngest;
20
- export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AgentFlowOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
- /**
22
- * Output Representation for Flow corresponding to Agent Action
23
- *
24
- * Keys:
25
- * id (string): flowDefinitionId
26
- */
27
- export interface AgentFlowOutputRepresentationNormalized {
28
- /** Agent Flow Definition Id */
29
- flowDefinitionId: string;
30
- /** Latest Version Id of the Agent Flow */
31
- flowLatestVersionId: string;
32
- /** is the flow active or not */
33
- isActive: boolean;
34
- status: AgentFlowStatusOutputRepresentation_AgentFlowStatusOutputRepresentation;
35
- }
36
- /**
37
- * Output Representation for Flow corresponding to Agent Action
38
- *
39
- * Keys:
40
- * id (string): flowDefinitionId
41
- */
42
- export interface AgentFlowOutputRepresentation {
43
- flowDefinitionId: string;
44
- flowLatestVersionId: string;
45
- isActive: boolean;
46
- status: AgentFlowStatusOutputRepresentation_AgentFlowStatusOutputRepresentation;
47
- }
@@ -1,31 +0,0 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "c9311edc4dc08a9830891f1c8b6ec195";
3
- export declare function validate(obj: any, path?: string): TypeError | null;
4
- export declare const RepresentationType: string;
5
- export declare function normalize(input: AgentFlowStatusOutputRepresentation, existing: AgentFlowStatusOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AgentFlowStatusOutputRepresentationNormalized;
6
- export declare const select: () => $64$luvio_engine_FragmentSelection;
7
- export declare function equals(existing: AgentFlowStatusOutputRepresentationNormalized, incoming: AgentFlowStatusOutputRepresentationNormalized): boolean;
8
- export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AgentFlowStatusOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
- /**
11
- * Output representation to show status and message for the api call
12
- *
13
- * Keys:
14
- * (none)
15
- */
16
- export interface AgentFlowStatusOutputRepresentationNormalized {
17
- /** get status code */
18
- code: number;
19
- /** get status message */
20
- message: string;
21
- }
22
- /**
23
- * Output representation to show status and message for the api call
24
- *
25
- * Keys:
26
- * (none)
27
- */
28
- export interface AgentFlowStatusOutputRepresentation {
29
- code: number;
30
- message: string;
31
- }