purecloud-flow-scripting-api-sdk-javascript 0.59.0 → 0.60.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.
- package/build-scripting/release/scripting.bundle.js +5 -5
- package/package.json +1 -1
- package/types.d.ts +295 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "purecloud-flow-scripting-api-sdk-javascript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"description": "JavaScript library for creating, editing, and managing Genesys Cloud Architect flows",
|
|
5
5
|
"main": "build-scripting/release/scripting.bundle.js",
|
|
6
6
|
"author": "Genesys",
|
package/types.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export class ArchDataType extends ArchBaseCoreObject {
|
|
2
2
|
// constructor(coreExpressionType: any, baseDataTypeNameToUse: string);
|
|
3
|
+
/**
|
|
4
|
+
* Returns the name of the data type.
|
|
5
|
+
*/
|
|
6
|
+
readonly name: string;
|
|
3
7
|
/**
|
|
4
8
|
* A string suitable for logging that contains information about this data type.
|
|
5
9
|
*/
|
|
@@ -718,7 +722,7 @@ export class ArchEnums {
|
|
|
718
722
|
* }
|
|
719
723
|
* ```
|
|
720
724
|
*/
|
|
721
|
-
readonly POST_FLOW_ACTION_TYPES: {"inboundCallFlow":"inboundCallFlow","voiceSurveyFlow":"voiceSurveyFlow"};
|
|
725
|
+
readonly POST_FLOW_ACTION_TYPES: {"inboundCallFlow":"inboundCallFlow","voiceSurveyFlow":"voiceSurveyFlow","inboundShortMessageFlow":"inboundShortMessageFlow"};
|
|
722
726
|
/**
|
|
723
727
|
* Returns a string array that contains all valid post flow action type strings.
|
|
724
728
|
*/
|
|
@@ -733,7 +737,7 @@ export class ArchEnums {
|
|
|
733
737
|
* }
|
|
734
738
|
* ```
|
|
735
739
|
*/
|
|
736
|
-
readonly POST_FLOW_TARGET_TYPES: {"callee":"callee","caller":"caller","any":"any"};
|
|
740
|
+
readonly POST_FLOW_TARGET_TYPES: {"callee":"callee","caller":"caller","any":"any","sender":"sender"};
|
|
737
741
|
/**
|
|
738
742
|
* Returns a string array that contains all valid post flow target type strings.
|
|
739
743
|
*/
|
|
@@ -774,7 +778,7 @@ export class ArchEnums {
|
|
|
774
778
|
* }
|
|
775
779
|
* ```
|
|
776
780
|
*/
|
|
777
|
-
readonly SEND_NOTIFICATION_TYPES: {"email":"email"};
|
|
781
|
+
readonly SEND_NOTIFICATION_TYPES: {"email":"email","chat":"chat"};
|
|
778
782
|
/**
|
|
779
783
|
* Returns a string array that contains all valid send notification modes.
|
|
780
784
|
*/
|
|
@@ -788,7 +792,7 @@ export class ArchEnums {
|
|
|
788
792
|
* }
|
|
789
793
|
* ```
|
|
790
794
|
*/
|
|
791
|
-
readonly EMAIL_STYLES: {"email":"email"};
|
|
795
|
+
readonly EMAIL_STYLES: {"email":"email","chat":"chat"};
|
|
792
796
|
/**
|
|
793
797
|
* Returns a string array that contains all valid send notification modes.
|
|
794
798
|
*/
|
|
@@ -4397,6 +4401,14 @@ export class ArchActionAskForSlot extends ArchBaseActionAskNoInputNoMatch {
|
|
|
4397
4401
|
* The continuation prompt will be used when an AI LLM Slot is selected with manually managed prompting.
|
|
4398
4402
|
*/
|
|
4399
4403
|
readonly continuationPrompt: ArchValueCommunication;
|
|
4404
|
+
/**
|
|
4405
|
+
* Continuation reprompts supplies wording the bot will use for an AI LLM Slot that is configured with manually managed prompting.
|
|
4406
|
+
*/
|
|
4407
|
+
readonly continuationReprompts: ArchValueCommunicationCollection;
|
|
4408
|
+
/**
|
|
4409
|
+
* If this property is set to true, the bot will use communication values in the {@link continuationReprompts} Communication collection for continuation prompting.
|
|
4410
|
+
*/
|
|
4411
|
+
readonly customizeContinuation: ArchValueBoolean;
|
|
4400
4412
|
/**
|
|
4401
4413
|
* The question text for the action.
|
|
4402
4414
|
*/
|
|
@@ -6250,10 +6262,6 @@ export class ArchActionCallDialogflowBot extends ArchBaseActionDialogflow {
|
|
|
6250
6262
|
* For example -> "Flow.MyStringVar"
|
|
6251
6263
|
*/
|
|
6252
6264
|
addLiveAgentHandoffMetadataNameValuePair(nameLiteral?: string, outputVariable?: string | ArchBaseVariable): ArchBaseNameValuePair;
|
|
6253
|
-
/**
|
|
6254
|
-
* Returns the Live Agent Handoff Metadata output data configured on the action.
|
|
6255
|
-
*/
|
|
6256
|
-
readonly liveAgentHandoffMetadata: ArchBaseNameValuePairs;
|
|
6257
6265
|
/**
|
|
6258
6266
|
* Returns the integration name for the currently selected Dialogflow agent.
|
|
6259
6267
|
*/
|
|
@@ -6627,6 +6635,10 @@ export class ArchActionCallDialogflowCxBot extends ArchBaseActionDialogflow {
|
|
|
6627
6635
|
* Returns true indicating that this is an ArchActionCallDialogflowCxBot instance.
|
|
6628
6636
|
*/
|
|
6629
6637
|
readonly isArchActionCallDialogflowCxBot: boolean;
|
|
6638
|
+
/**
|
|
6639
|
+
* Returns the Live Agent Handoff Metadata output data configured on the action.
|
|
6640
|
+
*/
|
|
6641
|
+
readonly liveAgentHandoffMetadata: ArchBaseNameValuePairs;
|
|
6630
6642
|
/**
|
|
6631
6643
|
* The success output for this action
|
|
6632
6644
|
*/
|
|
@@ -6704,6 +6716,10 @@ export class ArchActionCallGuide extends ArchBaseActionWithOutputsSuccessFailure
|
|
|
6704
6716
|
* Outputs for the call Guide action
|
|
6705
6717
|
*/
|
|
6706
6718
|
readonly guideOutputs: ArchNamedValueList;
|
|
6719
|
+
/**
|
|
6720
|
+
* The voice processing prompt communication for the Call Guide action.
|
|
6721
|
+
*/
|
|
6722
|
+
readonly voiceProcessingPrompt: ArchValueCommunication;
|
|
6707
6723
|
/**
|
|
6708
6724
|
* This sets the guide that will be used by the guide identifier.
|
|
6709
6725
|
* @param guideId - the identifier of the guide.
|
|
@@ -8386,7 +8402,7 @@ export class ArchActionDecryptData extends ArchBaseActionWithOutputsSuccessFailu
|
|
|
8386
8402
|
* The contents of this named value list come from the Failure Outputs schema. It will contain two values: errorType and errorMessage.
|
|
8387
8403
|
* These values will be returned by the server if the action takes the Failure path.
|
|
8388
8404
|
*/
|
|
8389
|
-
readonly
|
|
8405
|
+
readonly decryptDataOutputsFailure: ArchNamedValueList;
|
|
8390
8406
|
/**
|
|
8391
8407
|
* The success output for this action
|
|
8392
8408
|
*/
|
|
@@ -8850,7 +8866,7 @@ export class ArchActionEncryptData extends ArchBaseActionWithOutputsSuccessFailu
|
|
|
8850
8866
|
* The contents of this named value list come from the Failure Outputs schema. It will contain two values: errorType and errorMessage.
|
|
8851
8867
|
* These values will be returned by the server if the action takes the Failure path.
|
|
8852
8868
|
*/
|
|
8853
|
-
readonly
|
|
8869
|
+
readonly encryptDataOutputsFailure: ArchNamedValueList;
|
|
8854
8870
|
/**
|
|
8855
8871
|
* The success output for this action
|
|
8856
8872
|
*/
|
|
@@ -9714,7 +9730,8 @@ export class ArchActionFindUsersById extends ArchBaseActionFindSystemObjectsById
|
|
|
9714
9730
|
readonly findResult: ArchValueUserCollection;
|
|
9715
9731
|
}
|
|
9716
9732
|
|
|
9717
|
-
export class ArchActionFindUtilizationLabel {
|
|
9733
|
+
export class ArchActionFindUtilizationLabel extends ArchBaseActionFindSystemObjectByName {
|
|
9734
|
+
// constructor(coreFindUtilizationLabelActionViewModel: FindUtilizationLabelActionViewModel);
|
|
9718
9735
|
/**
|
|
9719
9736
|
* Returns the display type name string 'ArchActionFindUtilizationLabel'.
|
|
9720
9737
|
*/
|
|
@@ -9727,6 +9744,266 @@ export class ArchActionFindUtilizationLabel {
|
|
|
9727
9744
|
* The value that will hold the returned utilization label if found.
|
|
9728
9745
|
*/
|
|
9729
9746
|
readonly findResult: ArchValueUtilizationLabel;
|
|
9747
|
+
/**
|
|
9748
|
+
* The name of the object to look up. Inheriting Find action instances will provide the context
|
|
9749
|
+
* for the name string. For example, in the {@link ArchActionFindUserPrompt} action this would be
|
|
9750
|
+
* the name of the user prompt that you wish to look up at runtime.
|
|
9751
|
+
*/
|
|
9752
|
+
readonly findName: ArchValueString;
|
|
9753
|
+
/**
|
|
9754
|
+
* The found output for this action
|
|
9755
|
+
*/
|
|
9756
|
+
readonly outputFound: ArchActionOutput;
|
|
9757
|
+
/**
|
|
9758
|
+
* The not found output for this action
|
|
9759
|
+
*/
|
|
9760
|
+
readonly outputNotFound: ArchActionOutput;
|
|
9761
|
+
/**
|
|
9762
|
+
* Gets an output by its identifier. If it cannot be found, this method will throw.
|
|
9763
|
+
* Normally you won't need to use this method and will use the helper methods available on inheriting classes
|
|
9764
|
+
* when accessing pre-defined outputs like success, failure, timeout, etc. etc. Attempting to
|
|
9765
|
+
* get an output by id on a menu choice's action such as the {@link ArchMenuTransferToAcd#actionTransferToAcd}
|
|
9766
|
+
* action on an {@link ArchMenuTransferToAcd} menu will return nothing.
|
|
9767
|
+
* @param output - identifies output you want to obtain. If output is an ArchBranch instance,
|
|
9768
|
+
* the {@link ArchBranch#outputId} value will be used. Otherwise valid string
|
|
9769
|
+
* identifier values can be found in {@link ArchEnums#OUTPUT_IDS} or can be a guid.
|
|
9770
|
+
* Remember that requesting the 'success' output on an action with a
|
|
9771
|
+
* [fake success output]{@link ArchBaseActionWithOutputsFakeSuccessFailure#hasFakeSuccessOutput} will return nothing.
|
|
9772
|
+
*/
|
|
9773
|
+
getOutputById(output: string | ArchBranch): ArchActionOutput;
|
|
9774
|
+
/**
|
|
9775
|
+
* Gets an output by its identifier. If it cannot be found, this method will throw.
|
|
9776
|
+
* Normally you won't need to use this method and will use the helper methods available on inheriting classes
|
|
9777
|
+
* when accessing pre-defined outputs like success, failure, timeout, etc. etc. Attempting to
|
|
9778
|
+
* get an output by id on a menu choice's action such as the {@link ArchMenuTransferToAcd#actionTransferToAcd}
|
|
9779
|
+
* action on an {@link ArchMenuTransferToAcd} menu will return nothing.
|
|
9780
|
+
* @param output - identifies output you want to obtain by name. If output is an ArchBranch instance,
|
|
9781
|
+
* the {@link ArchBranch#name} value will be used.
|
|
9782
|
+
* Remember that requesting the 'Success' output on an action with a
|
|
9783
|
+
* [fake success output]{@link ArchBaseActionWithOutputsFakeSuccessFailure#hasFakeSuccessOutput} will return nothing.
|
|
9784
|
+
* For non-dynamic outputs, the name should be specified in English.
|
|
9785
|
+
* @param [wantDynamicOutput = false] - because it is possible for some actions to have both a non-dynamic output
|
|
9786
|
+
* and a dynamic output with the same name, this boolean will let you specify
|
|
9787
|
+
* which output you want. An example of this would be the built in Failure
|
|
9788
|
+
* output on a call bot action but that bot also has an intent named Failure
|
|
9789
|
+
* so the action has two outputs with the same name of 'Failure'. Only one
|
|
9790
|
+
* of those would be a dynamic output and that's the output for the Failure
|
|
9791
|
+
* intent, not the built-in Failure action output.
|
|
9792
|
+
*/
|
|
9793
|
+
getOutputByName(output: string | ArchBranch, wantDynamicOutput?: boolean): ArchActionOutput;
|
|
9794
|
+
/**
|
|
9795
|
+
* Returns the output at the given index. It's important to note that on actions that have a fake success
|
|
9796
|
+
* output if you request the output at the index for the fake success, you will get nothing returned because
|
|
9797
|
+
* the fake success output isn't something that you should do anything with. Attempting to
|
|
9798
|
+
* access an output by index on a menu choice's action such as {@link ArchMenuTransferToAcd#actionTransferToAcd}
|
|
9799
|
+
* will return nothing.
|
|
9800
|
+
* @param index - the index of the output to retrieve. This value should be a non-negative integer.
|
|
9801
|
+
*/
|
|
9802
|
+
getOutputByIndex(index: number): ArchActionOutput;
|
|
9803
|
+
/**
|
|
9804
|
+
* Returns the number of outputs on this action. For actions that have a fake success output like what you
|
|
9805
|
+
* see on the various transfer actions, that will be included in the count to be consistent with the Architect UI.
|
|
9806
|
+
* Attempting to get the output count on a menu choice's action such as such as the {@link ArchMenuTransferToAcd#actionTransferToAcd}
|
|
9807
|
+
* action on an {@link ArchMenuTransferToAcd} menu will return 0.
|
|
9808
|
+
*/
|
|
9809
|
+
readonly outputCount: number;
|
|
9810
|
+
/**
|
|
9811
|
+
* Returns an array of action outputs for this action. Remember that it is possible to have an
|
|
9812
|
+
* undefined item in the returned ArchActionOutput array. This is true when the output is "fake".
|
|
9813
|
+
* Accessing the outputs on a menu choice's action such as {@link ArchMenuTransferToAcd#actionTransferToAcd}
|
|
9814
|
+
* will return an empty array.
|
|
9815
|
+
*/
|
|
9816
|
+
readonly outputs: ArchActionOutput[];
|
|
9817
|
+
/**
|
|
9818
|
+
* A string suitable for logging that contains information about this action. This will contain the action
|
|
9819
|
+
* tracking id, name and scripting type name.
|
|
9820
|
+
*/
|
|
9821
|
+
readonly logStr: string;
|
|
9822
|
+
/**
|
|
9823
|
+
* The Architect action type label
|
|
9824
|
+
*/
|
|
9825
|
+
readonly displayTypeNameArchitect: string;
|
|
9826
|
+
/**
|
|
9827
|
+
* Returns whether or not this action is the action property for a [menu choice]{@link ArchBaseMenuChoice}.
|
|
9828
|
+
* For example, the {@link ArchMenuDisconnect#actionDisconnect} property on an {@link ArchMenuDisconnect}
|
|
9829
|
+
* instance.
|
|
9830
|
+
*/
|
|
9831
|
+
readonly isMenuChoiceAction: boolean;
|
|
9832
|
+
/**
|
|
9833
|
+
* Returns whether or not this action is reachable at runtime.
|
|
9834
|
+
*/
|
|
9835
|
+
readonly isReachable: boolean;
|
|
9836
|
+
/**
|
|
9837
|
+
* Returns whether or not this action is secure which means either the action by its very nature
|
|
9838
|
+
* is secure or it consumes secure data.
|
|
9839
|
+
*/
|
|
9840
|
+
readonly isSecure: boolean;
|
|
9841
|
+
/**
|
|
9842
|
+
* Returns whether or not this action is unreachable at runtime.
|
|
9843
|
+
*/
|
|
9844
|
+
readonly isUnreachable: boolean;
|
|
9845
|
+
/**
|
|
9846
|
+
* The name of the action
|
|
9847
|
+
*/
|
|
9848
|
+
name: string;
|
|
9849
|
+
/**
|
|
9850
|
+
* Returns the parent flow for this action.
|
|
9851
|
+
*/
|
|
9852
|
+
readonly parentFlow: ArchBaseFlow;
|
|
9853
|
+
/**
|
|
9854
|
+
* Returns the parent menu choice if this action is the action for a [menu choice]{@link ArchBaseMenuChoice}.
|
|
9855
|
+
* Otherwise, nothing is returned.
|
|
9856
|
+
*/
|
|
9857
|
+
readonly parentMenuChoice: ArchBaseMenuChoice;
|
|
9858
|
+
/**
|
|
9859
|
+
* Returns the parent task that contains this action if this action is in a [task]{@link ArchTask} or [looping task]{@link ArchTaskLoop}.
|
|
9860
|
+
* Otherwise, nothing is returned.
|
|
9861
|
+
*/
|
|
9862
|
+
readonly parentTask: ArchTask | ArchTaskLoop;
|
|
9863
|
+
/**
|
|
9864
|
+
* Returns the parent state that contains this action if this action is in a [state]{@link ArchState}.
|
|
9865
|
+
* Otherwise, nothing is returned.
|
|
9866
|
+
*/
|
|
9867
|
+
readonly parentState: ArchState;
|
|
9868
|
+
/**
|
|
9869
|
+
* The integer tracking identifier for this action. This is the numeric identifier is displayed in the Architect user interface.
|
|
9870
|
+
*/
|
|
9871
|
+
readonly trackingId: number;
|
|
9872
|
+
/**
|
|
9873
|
+
* The identifier string for this object.
|
|
9874
|
+
*/
|
|
9875
|
+
readonly id: string;
|
|
9876
|
+
/**
|
|
9877
|
+
* Returns whether or not the id property may be blank or undefined for this object. For example, the returned settings from {@link ArchMenu#settingsMenu}
|
|
9878
|
+
* will have a blank identifier along with the settings returned from {@link ArchMenu#settingsSpeechRec}. Note that this is
|
|
9879
|
+
* an extremely rare case.
|
|
9880
|
+
*/
|
|
9881
|
+
readonly idMayBeBlank: string;
|
|
9882
|
+
/**
|
|
9883
|
+
* Returns true indicating that this is an ArchBaseCoreObject instance.
|
|
9884
|
+
*/
|
|
9885
|
+
readonly isArchBaseCoreObject: boolean;
|
|
9886
|
+
/**
|
|
9887
|
+
* This method iterates over this object and ArchBaseCoreObject instances
|
|
9888
|
+
* within it. For each object it will call the {@link ArchBaseObject#isFilterMatch} method
|
|
9889
|
+
* with a filter and call the supplied callback function if isMatch returns true.
|
|
9890
|
+
* The callback will be passed an {@link ArchTraverseInfo} with details
|
|
9891
|
+
* about the match such as the match object itself along with current contextual
|
|
9892
|
+
* information such as the object hierarchy for the match object relative to
|
|
9893
|
+
* the object on which this traverse call is being made.
|
|
9894
|
+
*
|
|
9895
|
+
* The traverse [filter]{@link ArchFilterObject} is one which you can create
|
|
9896
|
+
* by calling {@link ArchFactoryFilters#createFilterObject} and then add desired clauses
|
|
9897
|
+
* or clause containers to it. If not specified, this function will use a
|
|
9898
|
+
* [default filter]{@link ArchFactoryFilters#createFilterTraverseDefault}.
|
|
9899
|
+
*
|
|
9900
|
+
* Here is an example that does a simple flow traversal using the default
|
|
9901
|
+
* filter and logs information about objects in the callback from the
|
|
9902
|
+
* traverse object that's passed back:
|
|
9903
|
+
*
|
|
9904
|
+
* ```
|
|
9905
|
+
* archInboundCallFlow.traverse(function(traverseInfo) {
|
|
9906
|
+
* archLogging.logNote(' Object : ' + traverseInfo.matchObject.logStr);
|
|
9907
|
+
* archLogging.logNote(' Hierarchy: ' + traverseInfo.context.hierarchyStr);
|
|
9908
|
+
* });
|
|
9909
|
+
* ```
|
|
9910
|
+
* This might be enough for most uses and you can check various aspects
|
|
9911
|
+
* about the object in the callback such as "is this an Architect action?" by
|
|
9912
|
+
* seeing if traverseInfo.matchObject.isArchBaseAction is true. You can specify
|
|
9913
|
+
* a filter for the traversal code to use as well and only have it call your
|
|
9914
|
+
* callback when the object's {@link ArchBaseCoreObject#isFilterMatch} method returns true for
|
|
9915
|
+
* the filter. Here's an example that creates a filter for callbacks on
|
|
9916
|
+
* [any type of transfer action]{@link ArchBaseActionTransfer}, any
|
|
9917
|
+
* [decision action]{@link ArchActionDecision} or objects whose name
|
|
9918
|
+
* property case insensitively matches the word 'foo'. While this could all be done
|
|
9919
|
+
* with one property callback clause the example will use multiple clauses for
|
|
9920
|
+
* the sake of simplicity:
|
|
9921
|
+
* ```
|
|
9922
|
+
* const myTraverseFilter = filterFactory.createFilterObject(archEnums.FILTER_CONTAINER_OPERATORS.or);
|
|
9923
|
+
* myTraverseFilter.addClausePropertyValueEquals('isArchBaseActionTransfer', true);
|
|
9924
|
+
* myTraverseFilter.addClausePropertyValueEquals('isArchActionDecision', true);
|
|
9925
|
+
* myTraverseFilter.addClausePropertyCallback('name', function(propValue, archContainingObject, propName) {
|
|
9926
|
+
* // We fully spelled out the function signature above but archContainingObject and propName are
|
|
9927
|
+
* // not needed in this case. The archContainingObject is the object that contains the
|
|
9928
|
+
* // property and propName is the property name itself. We pass in propName because the same
|
|
9929
|
+
* // function could be used for multiple property callback clauses.
|
|
9930
|
+
* // Remember to return a boolean true, false or undefined from ths callback. :)
|
|
9931
|
+
* return propValue && propValue.toLowerCase() === 'foo';
|
|
9932
|
+
* });
|
|
9933
|
+
* archTask.traverse(function(traverseContext) {
|
|
9934
|
+
* // You will only be called back here for ArchBaseCoreObject instances that
|
|
9935
|
+
* // have the isArchBaseActionTransfer or isArchActionDecision property values equal to true.
|
|
9936
|
+
* }, myTraverseFilter);
|
|
9937
|
+
* ```
|
|
9938
|
+
* If you supply a filter with no clauses, this tells the traverse method to
|
|
9939
|
+
* call the supplied callback function for every {@link ArchBaseCoreObject} it traverses.
|
|
9940
|
+
*
|
|
9941
|
+
* If you want traversal itself to stop after a callback, simply return boolean
|
|
9942
|
+
* false from the callback function you supply to the traverse call.
|
|
9943
|
+
*
|
|
9944
|
+
* The traverse method does not process deprecated property names such as [orgId]{@link ArchSession#orgId},
|
|
9945
|
+
* [orgName]{@link ArchSession#orgName} or [languageSettings]{@link ArchBaseFlow#languageSettings}. Additionally
|
|
9946
|
+
* it does not traverse in to properties that would "jump out" of the current traversal. An example of this
|
|
9947
|
+
* would be if the code was traversing an {@link ArchActionJumpToMenu} action that it would not start traversing
|
|
9948
|
+
* in to the menu that it jumps to. Another example would be a {@link ArchActionChangeState} action where
|
|
9949
|
+
* it would not traverse in to the target state of the action. This also means traversal does not traverse
|
|
9950
|
+
* in to the {@link ArchBaseValue#flowLevelDefault} property.
|
|
9951
|
+
*
|
|
9952
|
+
* And lastly, as Scripting evolves over time with new versions, you can expect to get callbacks for new object
|
|
9953
|
+
* types such as new actions or new properties on objects. As such, it's important not to assume any particular
|
|
9954
|
+
* order in callbacks to keep code most compatible with traversal callbacks. Or if you use inequality checks in filter
|
|
9955
|
+
* clauses remember that new "stuff" may satisfy an inequality check which may or may not be anticipated in your logic.
|
|
9956
|
+
*
|
|
9957
|
+
* Note: This traverse method is a helper method and is very handy for iterating over Architect Scripting
|
|
9958
|
+
* objects and their properties in a generic fashion with filtering capabilities. Obviously you can write
|
|
9959
|
+
* your own custom traversal code if this implementation doesn't cut it for some reason. :)
|
|
9960
|
+
*
|
|
9961
|
+
* This function returns the number of times it called the callback function.
|
|
9962
|
+
* @param callbackFunction - the callback function to call for objects that match the traverse filter.
|
|
9963
|
+
* @param [traverseFilter = {@link ArchFactoryFilters#createFilterTraverseDefault}] - the filter to use when performing the traversal to determine which
|
|
9964
|
+
* {@link ArchBaseCoreObject} instances you wish to be called back for. If no
|
|
9965
|
+
* filter is specified, this function will call {@link ArchFactoryFilters#createFilterTraverseDefault} and
|
|
9966
|
+
* use that traversal default filter. The wantArchBaseValues parameter on that call is set to true.
|
|
9967
|
+
*/
|
|
9968
|
+
traverse(callbackFunction: callbackTraverseInfo, traverseFilter?: ArchFilterObject): number;
|
|
9969
|
+
/**
|
|
9970
|
+
* This is a string suitable for logging information about this object where it's just the object's type. This is normally used
|
|
9971
|
+
* when logging errors that occur in constructor parameter checking because the scripting object isn't set up and the normal
|
|
9972
|
+
* logging str contents wouldn't be set up.
|
|
9973
|
+
*/
|
|
9974
|
+
readonly logStrTypeOnly: string;
|
|
9975
|
+
/**
|
|
9976
|
+
* Logs an error to the logging service with a log header from this object's [logStr]{@link ArchBaseObject#logStr} property value when {@link ArchLogging#logErrors} is true.
|
|
9977
|
+
* @param errorStr - the error string to log.
|
|
9978
|
+
*/
|
|
9979
|
+
logError(errorStr: string): void;
|
|
9980
|
+
/**
|
|
9981
|
+
* Logs an error to the logging service with a log header from this object's [logStr]{@link ArchBaseObject#logStr} property value when {@link ArchLogging#logErrors} is true and then throws
|
|
9982
|
+
* the string in the errorStr parameter.
|
|
9983
|
+
* @param errorStr - the error string to log. This should be a non-blank string.
|
|
9984
|
+
*/
|
|
9985
|
+
logErrorAndThrow(errorStr: string): void;
|
|
9986
|
+
/**
|
|
9987
|
+
* Logs a note to the logging service with a log header from this object's [logStr]{@link ArchBaseObject#logStr} property value when {@link ArchLogging#logNotes} is true.
|
|
9988
|
+
* @param noteStr - the note string to log. This should be a non-blank string.
|
|
9989
|
+
*/
|
|
9990
|
+
logNote(noteStr: string): void;
|
|
9991
|
+
/**
|
|
9992
|
+
* Logs a note to the logging service with a log header from this object's [logStr]{@link ArchBaseObject#logStr} property value when {@link ArchLogging#logNotesVerbose} is true.
|
|
9993
|
+
* @param noteStr - the note string to log. This should be a non-blank string.
|
|
9994
|
+
*/
|
|
9995
|
+
logNoteVerbose(noteStr: string): void;
|
|
9996
|
+
/**
|
|
9997
|
+
* Logs a warning to the logging service with a log header from this object's [logStr]{@link ArchBaseObject#logStr} property value when {@link ArchLogging#logWarnings} is true.
|
|
9998
|
+
* @param warningStr - the warning string to log. This should be a non-blank string.
|
|
9999
|
+
*/
|
|
10000
|
+
logWarning(warningStr: string): void;
|
|
10001
|
+
/**
|
|
10002
|
+
* Returns whether or not this Architect Scripting object is a match
|
|
10003
|
+
* for the supplied ArchFilterObject instance.
|
|
10004
|
+
* @param archFilterObject - the object filter to use to determine if it's a match.
|
|
10005
|
+
*/
|
|
10006
|
+
isFilterMatch(archFilterObject: ArchFilterObject): boolean;
|
|
9730
10007
|
}
|
|
9731
10008
|
|
|
9732
10009
|
/**
|
|
@@ -12754,7 +13031,7 @@ export class ArchActionSetUUIData extends ArchBaseAction {
|
|
|
12754
13031
|
*/
|
|
12755
13032
|
readonly uuiData: ArchValueString;
|
|
12756
13033
|
/**
|
|
12757
|
-
* Specifies
|
|
13034
|
+
* Specifies when the UUI data should be set. If the mode is set to transfer, this specifies the outbound UUI data to
|
|
12758
13035
|
* set if the call is transferred. If the mode is set to disconnect, this specifies the outbound UUI data to set if the call
|
|
12759
13036
|
* disconnects.
|
|
12760
13037
|
*/
|
|
@@ -27792,7 +28069,7 @@ export class ArchMenuTransferToAcd extends ArchBaseMenuChoice {
|
|
|
27792
28069
|
/**
|
|
27793
28070
|
* Returns true indicating that this is an ArchMenuTransferToAcd instance.
|
|
27794
28071
|
*/
|
|
27795
|
-
|
|
28072
|
+
readonly isArchMenuTransferToAcd: boolean;
|
|
27796
28073
|
}
|
|
27797
28074
|
|
|
27798
28075
|
/**
|
|
@@ -27814,7 +28091,7 @@ export class ArchMenuTransferToFlow extends ArchBaseMenuChoice {
|
|
|
27814
28091
|
/**
|
|
27815
28092
|
* Returns true indicating that this is an ArchMenuTransferToFlow instance.
|
|
27816
28093
|
*/
|
|
27817
|
-
|
|
28094
|
+
readonly isArchMenuTransferToFlow: boolean;
|
|
27818
28095
|
}
|
|
27819
28096
|
|
|
27820
28097
|
/**
|
|
@@ -27856,7 +28133,7 @@ export class ArchMenuTransferToGroup extends ArchBaseMenuChoice {
|
|
|
27856
28133
|
/**
|
|
27857
28134
|
* Returns true indicating that this is an ArchMenuTransferToGroup instance.
|
|
27858
28135
|
*/
|
|
27859
|
-
|
|
28136
|
+
readonly isArchMenuTransferToGroup: boolean;
|
|
27860
28137
|
}
|
|
27861
28138
|
|
|
27862
28139
|
/**
|
|
@@ -27878,7 +28155,7 @@ export class ArchMenuTransferToNumber extends ArchBaseMenuChoice {
|
|
|
27878
28155
|
/**
|
|
27879
28156
|
* Returns true indicating that this is an ArchMenuTransferToNumber instance.
|
|
27880
28157
|
*/
|
|
27881
|
-
|
|
28158
|
+
readonly isArchMenuTransferToNumber: boolean;
|
|
27882
28159
|
}
|
|
27883
28160
|
|
|
27884
28161
|
/**
|
|
@@ -27900,7 +28177,7 @@ export class ArchMenuTransferToUser extends ArchBaseMenuChoice {
|
|
|
27900
28177
|
/**
|
|
27901
28178
|
* Returns true indicating that this is an ArchMenuTransferToUser instance.
|
|
27902
28179
|
*/
|
|
27903
|
-
|
|
28180
|
+
readonly isArchMenuTransferToUser: boolean;
|
|
27904
28181
|
}
|
|
27905
28182
|
|
|
27906
28183
|
/**
|
|
@@ -32424,7 +32701,7 @@ export class ArchNamedValueList extends ArchBaseValueContainer {
|
|
|
32424
32701
|
* nothing is returned.
|
|
32425
32702
|
* @param valueName - the name of the value.
|
|
32426
32703
|
*/
|
|
32427
|
-
getNamedValueByName(valueName: string): ArchNamedValue;
|
|
32704
|
+
getNamedValueByName(valueName: string): ArchNamedValue | ArchNamedValueList;
|
|
32428
32705
|
/**
|
|
32429
32706
|
* Returns true indicating that this is an ArchNamedValueList instance.
|
|
32430
32707
|
*/
|