purecloud-flow-scripting-api-sdk-javascript 0.42.0 → 0.42.1

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.
Files changed (33) hide show
  1. package/build-scripting/release/scripting.bundle.js +16 -16
  2. package/package.json +1 -1
  3. package/src/scripting/documentation/ArchActionSendNotification.html +1 -1
  4. package/src/scripting/documentation/ArchBaseFlow.html +15 -2
  5. package/src/scripting/documentation/ArchBaseFlowBot.html +15 -2
  6. package/src/scripting/documentation/ArchBaseFlowInQueueWorkflow.html +15 -2
  7. package/src/scripting/documentation/ArchBaseFlowInboundOutboundSecureCall.html +15 -2
  8. package/src/scripting/documentation/ArchBaseFlowWithMenus.html +15 -2
  9. package/src/scripting/documentation/ArchBaseFlowWithTasks.html +15 -2
  10. package/src/scripting/documentation/ArchBaseFlowWorkflow.html +15 -2
  11. package/src/scripting/documentation/ArchEnums.html +2 -1
  12. package/src/scripting/documentation/ArchFactoryFlows.html +24 -16
  13. package/src/scripting/documentation/ArchFlowBot.html +15 -2
  14. package/src/scripting/documentation/ArchFlowCommonModule.html +15 -2
  15. package/src/scripting/documentation/ArchFlowDigitalBot.html +15 -2
  16. package/src/scripting/documentation/ArchFlowInQueueCall.html +15 -2
  17. package/src/scripting/documentation/ArchFlowInQueueEmail.html +15 -2
  18. package/src/scripting/documentation/ArchFlowInQueueShortMessage.html +15 -2
  19. package/src/scripting/documentation/ArchFlowInboundCall.html +15 -2
  20. package/src/scripting/documentation/ArchFlowInboundChat.html +15 -2
  21. package/src/scripting/documentation/ArchFlowInboundEmail.html +15 -2
  22. package/src/scripting/documentation/ArchFlowInboundShortMessage.html +15 -2
  23. package/src/scripting/documentation/ArchFlowOutboundCall.html +15 -2
  24. package/src/scripting/documentation/ArchFlowSecureCall.html +15 -2
  25. package/src/scripting/documentation/ArchFlowSurveyInvite.html +15 -2
  26. package/src/scripting/documentation/ArchFlowVoicemail.html +15 -2
  27. package/src/scripting/documentation/ArchFlowWorkflow.html +15 -2
  28. package/src/scripting/documentation/changelog.html +9 -0
  29. package/src/scripting/documentation/types.d.ts +35 -24
  30. package/types.d.ts +35 -24
  31. package/deployProcess.md +0 -12
  32. package/frescoConfig.json +0 -4
  33. package/scriptingAuthToken.txt +0 -1
package/types.d.ts CHANGED
@@ -309,11 +309,12 @@ export class ArchEnums {
309
309
  * ```
310
310
  * {
311
311
  *   debug: 'debug'
312
- *   latest: 'latest'
312
+ *   latest: 'latest',
313
+ *   published: 'published'
313
314
  * }
314
315
  * ```
315
316
  */
316
- readonly FLOW_VERSIONS: {"debug":"debug","latest":"latest"};
317
+ readonly FLOW_VERSIONS: {"debug":"debug","latest":"latest","published":"published"};
317
318
  /**
318
319
  * Returns a string array that contains all valid versions for flows.
319
320
  */
@@ -382,7 +383,7 @@ export class ArchEnums {
382
383
  * }
383
384
  * ```
384
385
  */
385
- readonly LOCATIONS: {"dev":"dev","test":"test","prod_ap_northeast_1":"prod_ap_northeast_1","prod_ap_northeast_2":"prod_ap_northeast_2","prod_ap_southeast_2":"prod_ap_southeast_2","prod_ap_south_1":"prod_ap_south_1","prod_ca_central_1":"prod_ca_central_1","prod_eu_central_1":"prod_eu_central_1","prod_eu_west_1":"prod_eu_west_1","prod_eu_west_2":"prod_eu_west_2","prod_sa_east_1":"prod_sa_east_1","prod_us_east_1":"prod_us_east_1","prod_us_east_2":"prod_us_east_2","prod_us_west_2":"prod_us_west_2"};
386
+ readonly LOCATIONS: {"dev":"dev","prod_ap_northeast_1":"prod_ap_northeast_1","prod_ap_northeast_2":"prod_ap_northeast_2","prod_ap_northeast_3":"prod_ap_northeast_3","prod_ap_south_1":"prod_ap_south_1","prod_ap_southeast_2":"prod_ap_southeast_2","prod_ca_central_1":"prod_ca_central_1","prod_eu_central_1":"prod_eu_central_1","prod_eu_central_2":"prod_eu_central_2","prod_eu_west_1":"prod_eu_west_1","prod_eu_west_2":"prod_eu_west_2","prod_me_central_1":"prod_me_central_1","prod_sa_east_1":"prod_sa_east_1","prod_us_east_1":"prod_us_east_1","prod_us_east_2":"prod_us_east_2","prod_us_west_2":"prod_us_west_2","test":"test"};
386
387
  /**
387
388
  * Returns a string array that contains all valid location strings.
388
389
  */
@@ -2457,8 +2458,9 @@ export class ArchFactoryFlows extends ArchBaseFactory {
2457
2458
  * Loads a flow with a given name and if found returns an ArchBaseFlow instance for it to the supplied callback function.
2458
2459
  * @param flowName - name of the flow.
2459
2460
  * @param flowType - the flow type. The string values in {@link ArchEnums#FLOW_TYPES} list valid values.
2460
- * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow or
2461
- * a version value such as "2.0" or "2". If you do not specify a version, then the latest saved configuration will be loaded.
2461
+ * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow,
2462
+ * a version value such as "2.0" or "2", "debug" to get the currently published debug version configuration of a flow,
2463
+ * or "published" to get the currently published version configuration of a flow. If you do not specify a version, then the latest saved configuration will be loaded.
2462
2464
  * @param [callbackFunction] - a callback function to call if the flow can be found on the server by name and type.
2463
2465
  * The first parameter passed to the callback function will be the Architect Scripting
2464
2466
  * flow instance.
@@ -2469,8 +2471,9 @@ export class ArchFactoryFlows extends ArchBaseFactory {
2469
2471
  * Loads a flow with a given id and if found returns an ArchBaseFlow instance for it to the supplied callback function.
2470
2472
  * @param flowId - the flow identifier.
2471
2473
  * @param flowType - the flow type. The string values in {@link ArchEnums#FLOW_TYPES} list valid values.
2472
- * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow or
2473
- * a version value such as "2.0" or "2". If you do not specify a version, then the latest saved configuration will be loaded.
2474
+ * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow,
2475
+ * a version value such as "2.0" or "2", "debug" to get the currently published debug version configuration of a flow,
2476
+ * or "published" to get the currently published version configuration of a flow. If you do not specify a version, then the latest saved configuration will be loaded.
2474
2477
  * @param [callbackFunction] - a callback function to call if the flow can be found on the server by id and type.
2475
2478
  * The first parameter passed to the callback function will be the Architect Scripting
2476
2479
  * flow instance.
@@ -2479,8 +2482,9 @@ export class ArchFactoryFlows extends ArchBaseFactory {
2479
2482
  loadFlowByFlowIdAsync(flowId: string, flowType: string, flowVersion?: string, callbackFunction?: callbackArchBaseFlow): Promise<any>;
2480
2483
  /**
2481
2484
  * Loads the default in-queue call flow and if successful returns an ArchFlowInQueueCall instance for it to the supplied callback function.
2482
- * @param [flowVersion = "latest"] - the version of the default in-queue flow to get. Valid values are "latest" to get the latest saved configuration of a flow or
2483
- * a version value such as "2.0" or "2". If you do not specify a version, then the latest saved configuration will be loaded.
2485
+ * @param [flowVersion = "latest"] - the version of the default in-queue flow to get. Valid values are "latest" to get the latest saved configuration of a flow,
2486
+ * a version value such as "2.0" or "2", "debug" to get the currently published debug version configuration of a flow,
2487
+ * or "published" to get the currently published version configuration of a flow. If you do not specify a version, then the latest saved configuration will be loaded.
2484
2488
  * @param [callbackFunction] - a callback function to call if the flow can be loaded.
2485
2489
  * The first parameter passed to the callback function will be the Architect Scripting
2486
2490
  * flow instance.
@@ -2489,8 +2493,9 @@ export class ArchFactoryFlows extends ArchBaseFactory {
2489
2493
  loadFlowDefaultInQueueCallAsync(flowVersion?: string, callbackFunction?: callbackArchFlowInQueueCall): Promise<any>;
2490
2494
  /**
2491
2495
  * Loads the default voicemail flow and if successful returns an ArchFlowVoicemail instance for it to the supplied callback function.
2492
- * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow or
2493
- * a version value such as "2.0" or "2". If you do not specify a version, then the latest saved configuration will be loaded.
2496
+ * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow,
2497
+ * a version value such as "2.0" or "2", "debug" to get the currently published debug version configuration of a flow,
2498
+ * or "published" to get the currently published version configuration of a flow. If you do not specify a version, then the latest saved configuration will be loaded.
2494
2499
  * @param [callbackFunction] - a callback function to call if the flow can be found on the server by id and type.
2495
2500
  * The first parameter passed to the callback function will be the Architect Scripting
2496
2501
  * flow instance.
@@ -2500,8 +2505,9 @@ export class ArchFactoryFlows extends ArchBaseFactory {
2500
2505
  /**
2501
2506
  * Loads a flow given an ArchFlowInfo and returns an ArchBaseFlow instance for it to the supplied callback function.
2502
2507
  * @param archFlowInfo - flow information for the flow which you wish to load.
2503
- * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow or
2504
- * a version value such as "2.0" or "2". If you do not specify a version, then the latest saved configuration will be loaded.
2508
+ * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow,
2509
+ * a version value such as "2.0" or "2", "debug" to get the currently published debug version configuration of a flow,
2510
+ * or "published" to get the currently published version configuration of a flow. If you do not specify a version, then the latest saved configuration will be loaded.
2505
2511
  * @param [callbackFunction] - a callback function to call if the flow can be found on the server by flow info.
2506
2512
  * The first parameter passed to the callback function will be the Architect Scripting
2507
2513
  * flow instance.
@@ -2580,8 +2586,9 @@ export class ArchFactoryFlows extends ArchBaseFactory {
2580
2586
  * @param flowName - name of the flow.
2581
2587
  * @param flowType - the flow type. The string values in {@link ArchEnums#FLOW_TYPES} list valid values.
2582
2588
  * @param [forceUnlock = false] - whether to force an unlock of the flow. Remember, the architect:flow:unlock permission is needed to unlock a flow locked to another user.
2583
- * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow or
2584
- * a version value such as "2.0" or "2". If you do not specify a version, then the latest saved configuration will be loaded.
2589
+ * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow,
2590
+ * a version value such as "2.0" or "2", "debug" to get the currently published debug version configuration of a flow,
2591
+ * or "published" to get the currently published version configuration of a flow. If you do not specify a version, then the latest saved configuration will be loaded.
2585
2592
  * @param [callbackFunction] - a callback function to call if the flow can be found on the server by name.
2586
2593
  * The first parameter passed to the callback function will be the Architect Scripting
2587
2594
  * flow instance.
@@ -2593,8 +2600,9 @@ export class ArchFactoryFlows extends ArchBaseFactory {
2593
2600
  * @param flowId - the flow identifier.
2594
2601
  * @param flowType - the flow type. The string values in {@link ArchEnums#FLOW_TYPES} list valid values.
2595
2602
  * @param [forceUnlock = false] - whether to force an unlock of the flow. Remember, the architect:flow:unlock permission is needed to unlock a flow locked to another user.
2596
- * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow or
2597
- * a version value such as "2.0" or "2". If you do not specify a version, then the latest saved configuration will be loaded.
2603
+ * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow,
2604
+ * a version value such as "2.0" or "2", "debug" to get the currently published debug version configuration of a flow,
2605
+ * or "published" to get the currently published version configuration of a flow. If you do not specify a version, then the latest saved configuration will be loaded.
2598
2606
  * @param [callbackFunction] - a callback function to call if the flow can be found on the server by id and type.
2599
2607
  * The first parameter passed to the callback function will be the Architect Scripting
2600
2608
  * flow instance.
@@ -2605,8 +2613,9 @@ export class ArchFactoryFlows extends ArchBaseFactory {
2605
2613
  * Check out and load the flow for a given [flow info]{@link ArchFlowInfo} object to the current user.
2606
2614
  * @param archFlowInfo - flow information for the flow which you wish to load and edit.
2607
2615
  * @param [forceUnlock = false] - whether to force an unlock of the flow. Remember, the architect:flow:unlock permission is needed to unlock a flow locked to another user.
2608
- * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow or
2609
- * a version value such as "2.0" or "2". If you do not specify a version, then the latest saved configuration will be loaded.
2616
+ * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow,
2617
+ * a version value such as "2.0" or "2", "debug" to get the currently published debug version configuration of a flow,
2618
+ * or "published" to get the currently published version configuration of a flow. If you do not specify a version, then the latest saved configuration will be loaded.
2610
2619
  * @param [callbackFunction] - a callback function to call if the flow can be found on the server by name.
2611
2620
  * The first parameter passed to the callback function will be the Architect Scripting
2612
2621
  * flow instance.
@@ -7348,7 +7357,7 @@ export class ArchActionSendNotification extends ArchBaseActionWithOutputsSuccess
7348
7357
  * The contents of this named value list come from the Failure Outputs schema. It will contain two values: errorType and errorMessage.
7349
7358
  * These values will be returned by the server if the action takes the Failure path.
7350
7359
  */
7351
- sendNotificationFailureOutputs: ArchNamedValueList;
7360
+ readonly sendNotificationFailureOutputs: ArchNamedValueList;
7352
7361
  /**
7353
7362
  * The success output for this action
7354
7363
  */
@@ -10594,8 +10603,9 @@ export class ArchBaseFlow extends ArchBaseCoreObjectWithId {
10594
10603
  /**
10595
10604
  * Loads a specific version of the flow. Any previously returned Architect Scripting objects associated with this flow should no
10596
10605
  * longer be considered valid after loading new configuration.
10597
- * @param [flowVersion] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow or
10598
- * a version value such as "2.0" or "2". If you do not specify a version, then the latest saved configuration will be loaded.
10606
+ * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow,
10607
+ * a version value such as "2.0" or "2", "debug" to get the currently published debug version configuration of a flow,
10608
+ * or "published" to get the currently published version configuration of a flow. If you do not specify a version, then the latest saved configuration will be loaded.
10599
10609
  * @param [callbackFunction] - a callback function to call if the flow was loaded.
10600
10610
  * @returns - while this method returns a promise, you should use the callback function to perform any processing when the flow is loaded.
10601
10611
  */
@@ -13103,8 +13113,9 @@ export class ArchFlowCommonModule extends ArchBaseFlow {
13103
13113
  /**
13104
13114
  * Loads a specific version of the flow. Any previously returned Architect Scripting objects associated with this flow should no
13105
13115
  * longer be considered valid after loading new configuration.
13106
- * @param [flowVersion] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow or
13107
- * a version value such as "2.0" or "2". If you do not specify a version, then the latest saved configuration will be loaded.
13116
+ * @param [flowVersion = "latest"] - the version of the flow to get. Valid values are "latest" to get the latest saved configuration of a flow,
13117
+ * a version value such as "2.0" or "2", "debug" to get the currently published debug version configuration of a flow,
13118
+ * or "published" to get the currently published version configuration of a flow. If you do not specify a version, then the latest saved configuration will be loaded.
13108
13119
  * @param [callbackFunction] - a callback function to call if the flow was loaded.
13109
13120
  * @returns - while this method returns a promise, you should use the callback function to perform any processing when the flow is loaded.
13110
13121
  */
package/deployProcess.md DELETED
@@ -1,12 +0,0 @@
1
- ## Deploy Process (as of July 9th, 2021)
2
- 1. Build this [jenkins job](https://jenkins.ininica.com/view/QA/view/Architect/job/architect-scripting-pipeline/) without the `stage` parameter.
3
- 2. After build finishes, run the [automation tests](https://jenkins.ininica.com/view/QA/view/Architect/job/test-scripting-test/). Verify that they passed successfully / talk to automation tester to verify failed tests.
4
- 3. Build the [jenkins job](https://jenkins.ininica.com/view/QA/view/Architect/job/architect-scripting-pipeline/) with the `stage` parameter.
5
- 4. Currently, auto-PR creation for this job is broken, so you need to create a pull request for the scripting build branch created by the `purecloudjenkins` user from the [Architect branch page](https://bitbucket.org/inindca/architect/branches/) and
6
- from the [Architect Scripting repo branch page](https://bitbucket.org/inindca/architect-scripting/branches/).
7
- 5. After both PRs are merged, run the [deploy scripting to prod](https://jenkins.ininica.com/view/QA/view/Architect/job/deploy-architect-scripting-to-prod/) jenkins job. The naming is kind of misleading, as it really only deploys documentation and doesnt publish anything to NPM.
8
- 6. Cut the contents of your ~/.npmrc file to somewhere safe (you need to save this!) and save the .npmrc file.
9
- 7. Go to the architect-scripting repo that is cloned locally on your computer. Checkout master and pull the latest changes.
10
- 8. At the command line, run `npm login` and use your npm creds you have created for your genesys email account. If you encounter problems logging in, run `sudo npm install -g npm@latest`.
11
- 9. Run the command `npm publish` and this should publish architect-scripting to npm. If you have a timeout issue running this command, you can instead use `npm publish -timeout=9999999`.
12
- In the event you have to unpublish a version (up to 72 hours from publish time), you can do it like this: `npm unpublish purecloud-flow-scripting-api-sdk-javascript@0.2.4 --force`
package/frescoConfig.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "clientId": "1a9cf297-d762-4c06-8afa-671776c75d65",
3
- "clientSecret": "DrdtNASFwX/++Xwk7034VoExn0E6DbLMpA8a8orXpjs"
4
- }
@@ -1 +0,0 @@
1
- 543oA40T7p7etHuKfZ6-9YsDeXvb392demGshk3PsEbqBshAIAYp2NKL2vLgYEDPxtXJdytLZZNbwcFBR8P0GQ