@tellescope/sdk 1.67.8 → 1.67.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../../../src/tests/tests.ts"],"names":[],"mappings":"AAmmEA,eAAO,MAAM,kCAAkC,qBAgJ9C,CAAA;AAED,eAAO,MAAM,mCAAmC,qBA2K/C,CAAA;AAGD,eAAO,MAAM,oBAAoB,qBAoHhC,CAAA;AAED,eAAO,MAAM,+BAA+B,qBAsF3C,CAAA;AAID,eAAO,MAAM,0BAA0B,qBAqCtC,CAAA;AAsfD,eAAO,MAAM,cAAc,qBAqC1B,CAAA;AAqiBD,eAAO,MAAM,6BAA6B,qBAgCzC,CAAA;AAED,eAAO,MAAM,0BAA0B,qBAmFtC,CAAA;AAqED,eAAO,MAAM,eAAe,qBAgD3B,CAAA;AAED,eAAO,MAAM,oBAAoB,6BAsBhC,CAAA;AAED,eAAO,MAAM,oCAAoC,qBAmKhD,CAAA;AAED,eAAO,MAAM,mCAAmC,qBAkE/C,CAAA;AAkrCD,eAAO,MAAM,yBAAyB,qBA0DrC,CAAA"}
1
+ {"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../../../src/tests/tests.ts"],"names":[],"mappings":"AAmmEA,eAAO,MAAM,kCAAkC,qBAgJ9C,CAAA;AAED,eAAO,MAAM,mCAAmC,qBA2K/C,CAAA;AAGD,eAAO,MAAM,oBAAoB,qBAoHhC,CAAA;AAED,eAAO,MAAM,+BAA+B,qBAsF3C,CAAA;AAID,eAAO,MAAM,0BAA0B,qBAqCtC,CAAA;AAsfD,eAAO,MAAM,cAAc,qBAqC1B,CAAA;AAqiBD,eAAO,MAAM,6BAA6B,qBAgCzC,CAAA;AAED,eAAO,MAAM,0BAA0B,qBAmFtC,CAAA;AAqED,eAAO,MAAM,eAAe,qBAgD3B,CAAA;AAED,eAAO,MAAM,oBAAoB,6BAsBhC,CAAA;AAED,eAAO,MAAM,oCAAoC,qBAmKhD,CAAA;AAED,eAAO,MAAM,mCAAmC,qBAkE/C,CAAA;AAsrCD,eAAO,MAAM,yBAAyB,qBA0DrC,CAAA"}
@@ -2797,7 +2797,7 @@ export var formUnsubmittedCancelConditionTest = function () { return __awaiter(v
2797
2797
  case 10:
2798
2798
  accessCode = (_a.sent()).accessCode;
2799
2799
  // allow fast followup to trigger
2800
- return [4 /*yield*/, async_test("formUnsubmitted event with short delay is triggered", function () { return pollForResults(function () { return sdk.api.endusers.getOne(enduser.id); }, function (e) { var _a; return ((_a = e === null || e === void 0 ? void 0 : e.journeys) === null || _a === void 0 ? void 0 : _a[journey.id]) === 'triggered again'; }, 1000, 10); }, passOnAnyResult)
2800
+ return [4 /*yield*/, async_test("formUnsubmitted event with short delay is triggered", function () { return pollForResults(function () { return sdk.api.endusers.getOne(enduser.id); }, function (e) { var _a; return ((_a = e === null || e === void 0 ? void 0 : e.journeys) === null || _a === void 0 ? void 0 : _a[journey.id]) === 'triggered again'; }, 1000, 20); }, passOnAnyResult)
2801
2801
  // trigger cancel conditions
2802
2802
  ];
2803
2803
  case 11:
@@ -5703,22 +5703,19 @@ var remove_from_journey_on_incoming_comms_tests = function () { return __awaiter
5703
5703
  && a.automationStepId === dontRemoveStep1.id
5704
5704
  && a.enduserId === e2.id
5705
5705
  && a.status === 'active';
5706
- })); }, 100, 50); }, passOnAnyResult)];
5706
+ })); }, 200, 50); }, passOnAnyResult)];
5707
5707
  case 12:
5708
5708
  _e.sent();
5709
5709
  return [4 /*yield*/, sdk.api.journeys.handle_incoming_communication({ enduserId: e2.id })];
5710
5710
  case 13:
5711
5711
  _e.sent();
5712
- return [4 /*yield*/, wait(undefined, 250)];
5712
+ return [4 /*yield*/, async_test("handle_incoming_communication test for other enduser", function () { return pollForResults(sdk.api.automated_actions.getSome, function (actions) { return (!!actions.find(function (a) {
5713
+ return a.journeyId === jRemove.id
5714
+ && a.automationStepId === removeStep1.id
5715
+ && a.enduserId === e2.id
5716
+ && a.status === 'cancelled';
5717
+ })); }, 100, 20); }, passOnAnyResult)];
5713
5718
  case 14:
5714
- _e.sent();
5715
- return [4 /*yield*/, async_test("handle_incoming_communication test for other enduser", function () { return sdk.api.automated_actions.getSome(); }, { onResult: function (actions) { return (!!actions.find(function (a) {
5716
- return a.journeyId === jRemove.id
5717
- && a.automationStepId === removeStep1.id
5718
- && a.enduserId === e2.id
5719
- && a.status === 'cancelled';
5720
- })); } })];
5721
- case 15:
5722
5719
  _e.sent();
5723
5720
  return [4 /*yield*/, Promise.all([
5724
5721
  sdk.api.endusers.deleteOne(e1.id),
@@ -5727,7 +5724,7 @@ var remove_from_journey_on_incoming_comms_tests = function () { return __awaiter
5727
5724
  sdk.api.journeys.deleteOne(jDontRemove.id),
5728
5725
  sdk.api.chat_rooms.deleteOne(room.id),
5729
5726
  ])];
5730
- case 16:
5727
+ case 15:
5731
5728
  _e.sent();
5732
5729
  return [2 /*return*/];
5733
5730
  }