@tellescope/sdk 1.255.4 → 1.255.6
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/lib/cjs/tests/api_tests/healthie_multi_integration.test.d.ts +6 -0
- package/lib/cjs/tests/api_tests/healthie_multi_integration.test.d.ts.map +1 -0
- package/lib/cjs/tests/api_tests/healthie_multi_integration.test.js +345 -0
- package/lib/cjs/tests/api_tests/healthie_multi_integration.test.js.map +1 -0
- package/lib/cjs/tests/tests.d.ts.map +1 -1
- package/lib/cjs/tests/tests.js +131 -127
- package/lib/cjs/tests/tests.js.map +1 -1
- package/lib/esm/enduser.d.ts +1 -0
- package/lib/esm/enduser.d.ts.map +1 -1
- package/lib/esm/sdk.d.ts +3 -2
- package/lib/esm/sdk.d.ts.map +1 -1
- package/lib/esm/tests/api_tests/healthie_multi_integration.test.d.ts +6 -0
- package/lib/esm/tests/api_tests/healthie_multi_integration.test.d.ts.map +1 -0
- package/lib/esm/tests/api_tests/healthie_multi_integration.test.js +338 -0
- package/lib/esm/tests/api_tests/healthie_multi_integration.test.js.map +1 -0
- package/lib/esm/tests/tests.d.ts.map +1 -1
- package/lib/esm/tests/tests.js +131 -127
- package/lib/esm/tests/tests.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/tests/api_tests/healthie_multi_integration.test.ts +286 -0
- package/src/tests/tests.ts +2 -0
- package/test_generated.pdf +0 -0
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
require('source-map-support').install();
|
|
49
|
+
import axios from "axios";
|
|
50
|
+
import { Session } from "../../sdk";
|
|
51
|
+
import { assert, async_test, log_header, wait, } from "@tellescope/testing";
|
|
52
|
+
import { evaluate_conditional_logic_for_enduser_fields } from "@tellescope/utilities";
|
|
53
|
+
import { setup_tests } from "../setup";
|
|
54
|
+
import { BUILT_INS_FOR_SET_FIELDS, HEALTHIE_TITLE } from "@tellescope/constants";
|
|
55
|
+
var host = process.env.API_URL || 'http://localhost:8080';
|
|
56
|
+
var TAG = 'clinic-two';
|
|
57
|
+
var FORMSORT_TEST_KEY = '9d4f9dff00f60df2690a16da2cb848f289b447614ad9bef850e54af09a1fbf7a';
|
|
58
|
+
export var healthie_multi_integration_tests = function (_a) {
|
|
59
|
+
var sdk = _a.sdk, sdkNonAdmin = _a.sdkNonAdmin;
|
|
60
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
61
|
+
var businessId, primaryIntegrationId, taggedIntegrationId, enduserId, formsortEnduserId, formId, conditionPlaceholders, taggedForConditions, untaggedForConditions, primary, tagged, enduser, form_1, formsortEmail_1, postToFormsort, _i, _b, id;
|
|
62
|
+
return __generator(this, function (_c) {
|
|
63
|
+
switch (_c.label) {
|
|
64
|
+
case 0:
|
|
65
|
+
log_header("Multiple Healthie Integrations Tests");
|
|
66
|
+
businessId = sdk.userInfo.businessId;
|
|
67
|
+
primaryIntegrationId = '';
|
|
68
|
+
taggedIntegrationId = '';
|
|
69
|
+
enduserId = '';
|
|
70
|
+
formsortEnduserId = '';
|
|
71
|
+
formId = '';
|
|
72
|
+
_c.label = 1;
|
|
73
|
+
case 1:
|
|
74
|
+
_c.trys.push([1, , 33, 44]);
|
|
75
|
+
// ── Set Fields support ────────────────────────────────────────────────────────────────────
|
|
76
|
+
if (!BUILT_INS_FOR_SET_FIELDS.includes('healthieIntegrationId')) {
|
|
77
|
+
throw new Error("healthieIntegrationId missing from BUILT_INS_FOR_SET_FIELDS");
|
|
78
|
+
}
|
|
79
|
+
console.log("✅ healthieIntegrationId exposed in BUILT_INS_FOR_SET_FIELDS");
|
|
80
|
+
conditionPlaceholders = {
|
|
81
|
+
businessId: '', creator: '', hashedPassword: '', lastActive: '', lastLogout: '', updatedAt: new Date(),
|
|
82
|
+
};
|
|
83
|
+
taggedForConditions = __assign(__assign({}, conditionPlaceholders), { healthieIntegrationId: TAG });
|
|
84
|
+
untaggedForConditions = __assign({}, conditionPlaceholders);
|
|
85
|
+
assert(evaluate_conditional_logic_for_enduser_fields(taggedForConditions, { $and: [{ condition: { healthieIntegrationId: TAG } }] }), 'Conditional logic error', 'healthieIntegrationId equality matches a tagged patient');
|
|
86
|
+
assert(!evaluate_conditional_logic_for_enduser_fields(taggedForConditions, { $and: [{ condition: { healthieIntegrationId: 'other-clinic' } }] }), 'Conditional logic error', 'healthieIntegrationId equality rejects a different id');
|
|
87
|
+
assert(!evaluate_conditional_logic_for_enduser_fields(untaggedForConditions, { $and: [{ condition: { healthieIntegrationId: TAG } }] }), 'Conditional logic error', 'healthieIntegrationId equality rejects an unset (primary) patient');
|
|
88
|
+
assert(evaluate_conditional_logic_for_enduser_fields(taggedForConditions, { $and: [{ condition: { healthieIntegrationId: { $isSet: true } } }] }), 'Conditional logic error', 'healthieIntegrationId $isSet matches a tagged patient');
|
|
89
|
+
assert(evaluate_conditional_logic_for_enduser_fields(untaggedForConditions, { $and: [{ condition: { healthieIntegrationId: { $isNotSet: true } } }] }), 'Conditional logic error', 'healthieIntegrationId $isNotSet matches an unset (primary) patient');
|
|
90
|
+
assert(!evaluate_conditional_logic_for_enduser_fields(taggedForConditions, { $and: [{ condition: { healthieIntegrationId: { $ne: TAG } } }] }), 'Conditional logic error', 'healthieIntegrationId $ne rejects the matching tag');
|
|
91
|
+
assert(evaluate_conditional_logic_for_enduser_fields(untaggedForConditions, { $and: [{ condition: { healthieIntegrationId: { $ne: TAG } } }] }), 'Conditional logic error', 'healthieIntegrationId $ne matches an unset (primary) patient');
|
|
92
|
+
console.log("✅ healthieIntegrationId evaluates in conditional logic (equality, $isSet/$isNotSet, $ne)");
|
|
93
|
+
return [4 /*yield*/, sdk.api.integrations.createOne({
|
|
94
|
+
title: HEALTHIE_TITLE,
|
|
95
|
+
disableEnduserAutoSync: true,
|
|
96
|
+
disableTicketAutoSync: true,
|
|
97
|
+
authentication: {
|
|
98
|
+
type: 'apiKey',
|
|
99
|
+
info: { access_token: 'gh_sbox_fake_primary_key', refresh_token: 'unused', scope: '', token_type: 'Bearer', expiry_date: 0 },
|
|
100
|
+
},
|
|
101
|
+
})];
|
|
102
|
+
case 2:
|
|
103
|
+
primary = _c.sent();
|
|
104
|
+
primaryIntegrationId = primary.id;
|
|
105
|
+
return [4 /*yield*/, sdk.api.integrations.createOne({
|
|
106
|
+
title: HEALTHIE_TITLE,
|
|
107
|
+
tenantId: TAG,
|
|
108
|
+
disableEnduserAutoSync: true,
|
|
109
|
+
disableTicketAutoSync: true,
|
|
110
|
+
authentication: {
|
|
111
|
+
type: 'apiKey',
|
|
112
|
+
info: { access_token: 'fake_production_key', refresh_token: 'unused', scope: '', token_type: 'Bearer', expiry_date: 0 },
|
|
113
|
+
},
|
|
114
|
+
})];
|
|
115
|
+
case 3:
|
|
116
|
+
tagged = _c.sent();
|
|
117
|
+
taggedIntegrationId = tagged.id;
|
|
118
|
+
if (tagged.tenantId !== TAG) {
|
|
119
|
+
throw new Error("tenantId not persisted on create (got \"".concat(tagged.tenantId, "\")"));
|
|
120
|
+
}
|
|
121
|
+
console.log("✅ tenantId persists via standard integrations create");
|
|
122
|
+
// ── Per-connection settings: update_settings works against a tagged integration ──
|
|
123
|
+
return [4 /*yield*/, async_test("update_settings updates a tagged integration", function () { return sdk.api.integrations.update_settings({ id: taggedIntegrationId, updates: { pushAddedTags: true } }); }, { onResult: function (r) { var _a; return ((_a = r.integration) === null || _a === void 0 ? void 0 : _a.pushAddedTags) === true; } })];
|
|
124
|
+
case 4:
|
|
125
|
+
// ── Per-connection settings: update_settings works against a tagged integration ──
|
|
126
|
+
_c.sent();
|
|
127
|
+
return [4 /*yield*/, async_test("tagged integration settings persist independently", function () { return sdk.api.integrations.getOne(taggedIntegrationId); }, { onResult: function (i) { return i.pushAddedTags === true && i.tenantId === TAG; } })];
|
|
128
|
+
case 5:
|
|
129
|
+
_c.sent();
|
|
130
|
+
return [4 /*yield*/, async_test("primary integration unaffected by tagged settings update", function () { return sdk.api.integrations.getOne(primaryIntegrationId); }, { onResult: function (i) { return !i.pushAddedTags; } })
|
|
131
|
+
// ── Invalid API key surfaces as an actionable 400 (fake key → Healthie rejects the request) ──
|
|
132
|
+
];
|
|
133
|
+
case 6:
|
|
134
|
+
_c.sent();
|
|
135
|
+
// ── Invalid API key surfaces as an actionable 400 (fake key → Healthie rejects the request) ──
|
|
136
|
+
return [4 /*yield*/, async_test("proxy_read webhooks with an invalid API key returns a clear error", function () { return sdk.api.integrations.proxy_read({
|
|
137
|
+
integration: HEALTHIE_TITLE, type: 'webhooks', healthieIntegrationId: TAG,
|
|
138
|
+
}); }, { shouldError: true, onError: function (e) { return ((e === null || e === void 0 ? void 0 : e.message) || '').includes('API Key is Invalid'); } })
|
|
139
|
+
// ── Organization.healthieIntegrationIds pushed by create side effect ──
|
|
140
|
+
];
|
|
141
|
+
case 7:
|
|
142
|
+
// ── Invalid API key surfaces as an actionable 400 (fake key → Healthie rejects the request) ──
|
|
143
|
+
_c.sent();
|
|
144
|
+
// ── Organization.healthieIntegrationIds pushed by create side effect ──
|
|
145
|
+
return [4 /*yield*/, wait(undefined, 2000)]; // side effects are async
|
|
146
|
+
case 8:
|
|
147
|
+
// ── Organization.healthieIntegrationIds pushed by create side effect ──
|
|
148
|
+
_c.sent(); // side effects are async
|
|
149
|
+
return [4 /*yield*/, async_test("organization.healthieIntegrationIds includes tag after create", function () { return sdk.api.organizations.getOne(businessId); }, { onResult: function (o) { var _a; return !!((_a = o.healthieIntegrationIds) === null || _a === void 0 ? void 0 : _a.includes(TAG)); } })
|
|
150
|
+
// ── Inbound webhook resolution (help page proves the integration lookup without network) ──
|
|
151
|
+
];
|
|
152
|
+
case 9:
|
|
153
|
+
_c.sent();
|
|
154
|
+
// ── Inbound webhook resolution (help page proves the integration lookup without network) ──
|
|
155
|
+
return [4 /*yield*/, async_test("webhook help page resolves primary (sandbox) without query param", function () { return axios.get("".concat(host, "/v1/webhooks/healthie/").concat(businessId)); }, { onResult: function (r) { return typeof r.data === 'string' && r.data.startsWith('Sandbox'); } })];
|
|
156
|
+
case 10:
|
|
157
|
+
// ── Inbound webhook resolution (help page proves the integration lookup without network) ──
|
|
158
|
+
_c.sent();
|
|
159
|
+
return [4 /*yield*/, async_test("webhook help page resolves tagged (production) integration via healthieIntegrationId param", function () { return axios.get("".concat(host, "/v1/webhooks/healthie/").concat(businessId, "?healthieIntegrationId=").concat(TAG)); }, { onResult: function (r) { return typeof r.data === 'string' && r.data.startsWith('Production'); } })];
|
|
160
|
+
case 11:
|
|
161
|
+
_c.sent();
|
|
162
|
+
return [4 /*yield*/, async_test("webhook help page rejects unknown healthieIntegrationId", function () { return axios.get("".concat(host, "/v1/webhooks/healthie/").concat(businessId, "?healthieIntegrationId=not-a-real-id")); }, { shouldError: true, onError: function (e) { var _a; return ((_a = e === null || e === void 0 ? void 0 : e.response) === null || _a === void 0 ? void 0 : _a.status) === 400; } })
|
|
163
|
+
// ── Enduser field + one-org-per-patient lock (relationship constraint) ──
|
|
164
|
+
];
|
|
165
|
+
case 12:
|
|
166
|
+
_c.sent();
|
|
167
|
+
return [4 /*yield*/, sdk.api.endusers.createOne({
|
|
168
|
+
email: 'multi-healthie-test@tellescope.com',
|
|
169
|
+
healthieIntegrationId: TAG,
|
|
170
|
+
})];
|
|
171
|
+
case 13:
|
|
172
|
+
enduser = _c.sent();
|
|
173
|
+
enduserId = enduser.id;
|
|
174
|
+
if (enduser.healthieIntegrationId !== TAG) {
|
|
175
|
+
throw new Error("healthieIntegrationId not persisted on enduser create");
|
|
176
|
+
}
|
|
177
|
+
return [4 /*yield*/, async_test("healthieIntegrationId freely changeable while unlinked", function () { return sdk.api.endusers.updateOne(enduserId, { healthieIntegrationId: '' }); }, { onResult: function (e) { return !e.healthieIntegrationId; } })];
|
|
178
|
+
case 14:
|
|
179
|
+
_c.sent();
|
|
180
|
+
return [4 /*yield*/, async_test("healthieIntegrationId re-set while unlinked", function () { return sdk.api.endusers.updateOne(enduserId, { healthieIntegrationId: TAG }); }, { onResult: function (e) { return e.healthieIntegrationId === TAG; } })
|
|
181
|
+
// link the patient to Healthie (reference with a Healthie patient id)
|
|
182
|
+
];
|
|
183
|
+
case 15:
|
|
184
|
+
_c.sent();
|
|
185
|
+
// link the patient to Healthie (reference with a Healthie patient id)
|
|
186
|
+
return [4 /*yield*/, sdk.api.endusers.updateOne(enduserId, { references: [{ type: HEALTHIE_TITLE, id: '12345' }] }, { replaceObjectFields: true })
|
|
187
|
+
// no lock: linked patients stay editable so customers can self-serve fix or migrate them
|
|
188
|
+
];
|
|
189
|
+
case 16:
|
|
190
|
+
// link the patient to Healthie (reference with a Healthie patient id)
|
|
191
|
+
_c.sent();
|
|
192
|
+
// no lock: linked patients stay editable so customers can self-serve fix or migrate them
|
|
193
|
+
return [4 /*yield*/, async_test("healthieIntegrationId changeable while linked (self-serve fix/migrate)", function () { return sdk.api.endusers.updateOne(enduserId, { healthieIntegrationId: 'somewhere-else' }); }, { onResult: function (e) { return e.healthieIntegrationId === 'somewhere-else'; } })];
|
|
194
|
+
case 17:
|
|
195
|
+
// no lock: linked patients stay editable so customers can self-serve fix or migrate them
|
|
196
|
+
_c.sent();
|
|
197
|
+
return [4 /*yield*/, async_test("healthieIntegrationId revertible while linked", function () { return sdk.api.endusers.updateOne(enduserId, { healthieIntegrationId: TAG }); }, { onResult: function (e) { return e.healthieIntegrationId === TAG; } })];
|
|
198
|
+
case 18:
|
|
199
|
+
_c.sent();
|
|
200
|
+
return [4 /*yield*/, sdk.api.endusers.updateOne(enduserId, { references: [] }, { replaceObjectFields: true })];
|
|
201
|
+
case 19:
|
|
202
|
+
_c.sent();
|
|
203
|
+
return [4 /*yield*/, async_test("healthieIntegrationId clearable", function () { return sdk.api.endusers.updateOne(enduserId, { healthieIntegrationId: '' }); }, { onResult: function (e) { return !e.healthieIntegrationId; } })
|
|
204
|
+
// ── Formsort mapping ──
|
|
205
|
+
];
|
|
206
|
+
case 20:
|
|
207
|
+
_c.sent();
|
|
208
|
+
return [4 /*yield*/, sdk.api.forms.createOne({ title: "Multi Healthie FormSort" })];
|
|
209
|
+
case 21:
|
|
210
|
+
form_1 = _c.sent();
|
|
211
|
+
formId = form_1.id;
|
|
212
|
+
formsortEmail_1 = 'multi-healthie-formsort@tellescope.com';
|
|
213
|
+
postToFormsort = function (answers, responder_uuid) {
|
|
214
|
+
var url = new URL("".concat(host, "/v1/webhooks/formsort/").concat(FORMSORT_TEST_KEY));
|
|
215
|
+
url.searchParams.set('formId', form_1.id);
|
|
216
|
+
return axios.post(url.toString(), { answers: answers, responder_uuid: responder_uuid, finalized: true });
|
|
217
|
+
};
|
|
218
|
+
return [4 /*yield*/, postToFormsort([
|
|
219
|
+
{ key: 'email', value: formsortEmail_1 },
|
|
220
|
+
{ key: 'healthieIntegrationId', value: TAG },
|
|
221
|
+
], "multi-healthie-1")];
|
|
222
|
+
case 22:
|
|
223
|
+
_c.sent();
|
|
224
|
+
return [4 /*yield*/, async_test("formsort sets healthieIntegrationId on unlinked enduser", function () { return sdk.api.endusers.getSome({ filter: { email: formsortEmail_1 } }); }, { onResult: function (es) {
|
|
225
|
+
var e = es.find(function (e) { return e.email === formsortEmail_1; });
|
|
226
|
+
formsortEnduserId = (e === null || e === void 0 ? void 0 : e.id) || '';
|
|
227
|
+
return (e === null || e === void 0 ? void 0 : e.healthieIntegrationId) === TAG;
|
|
228
|
+
} })
|
|
229
|
+
// linked endusers are re-routable via formsort too (self-serve fix/migrate)
|
|
230
|
+
];
|
|
231
|
+
case 23:
|
|
232
|
+
_c.sent();
|
|
233
|
+
// linked endusers are re-routable via formsort too (self-serve fix/migrate)
|
|
234
|
+
return [4 /*yield*/, sdk.api.endusers.updateOne(formsortEnduserId, { references: [{ type: HEALTHIE_TITLE, id: '6789' }] }, { replaceObjectFields: true })];
|
|
235
|
+
case 24:
|
|
236
|
+
// linked endusers are re-routable via formsort too (self-serve fix/migrate)
|
|
237
|
+
_c.sent();
|
|
238
|
+
return [4 /*yield*/, postToFormsort([
|
|
239
|
+
{ key: 'email', value: formsortEmail_1 },
|
|
240
|
+
{ key: 'healthieIntegrationId', value: 'somewhere-else' },
|
|
241
|
+
], "multi-healthie-2")];
|
|
242
|
+
case 25:
|
|
243
|
+
_c.sent();
|
|
244
|
+
return [4 /*yield*/, wait(undefined, 1000)];
|
|
245
|
+
case 26:
|
|
246
|
+
_c.sent();
|
|
247
|
+
return [4 /*yield*/, async_test("formsort updates healthieIntegrationId on a linked enduser", function () { return sdk.api.endusers.getOne(formsortEnduserId); }, { onResult: function (e) { return e.healthieIntegrationId === 'somewhere-else'; } })
|
|
248
|
+
// ── Removing the primary must not affect the tagged integration; org list recomputes on delete ──
|
|
249
|
+
];
|
|
250
|
+
case 27:
|
|
251
|
+
_c.sent();
|
|
252
|
+
// ── Removing the primary must not affect the tagged integration; org list recomputes on delete ──
|
|
253
|
+
return [4 /*yield*/, sdk.api.integrations.deleteOne(primaryIntegrationId)];
|
|
254
|
+
case 28:
|
|
255
|
+
// ── Removing the primary must not affect the tagged integration; org list recomputes on delete ──
|
|
256
|
+
_c.sent();
|
|
257
|
+
primaryIntegrationId = '';
|
|
258
|
+
return [4 /*yield*/, async_test("tagged integration survives primary deletion", function () { return sdk.api.integrations.getOne(taggedIntegrationId); }, { onResult: function (i) { return i.tenantId === TAG; } })];
|
|
259
|
+
case 29:
|
|
260
|
+
_c.sent();
|
|
261
|
+
return [4 /*yield*/, sdk.api.integrations.deleteOne(taggedIntegrationId)];
|
|
262
|
+
case 30:
|
|
263
|
+
_c.sent();
|
|
264
|
+
taggedIntegrationId = '';
|
|
265
|
+
return [4 /*yield*/, wait(undefined, 2000)]; // delete side effect is async
|
|
266
|
+
case 31:
|
|
267
|
+
_c.sent(); // delete side effect is async
|
|
268
|
+
return [4 /*yield*/, async_test("organization.healthieIntegrationIds recomputed (emptied) after delete", function () { return sdk.api.organizations.getOne(businessId); }, { onResult: function (o) { var _a; return !((_a = o.healthieIntegrationIds) === null || _a === void 0 ? void 0 : _a.includes(TAG)); } })];
|
|
269
|
+
case 32:
|
|
270
|
+
_c.sent();
|
|
271
|
+
return [3 /*break*/, 44];
|
|
272
|
+
case 33:
|
|
273
|
+
_i = 0, _b = [primaryIntegrationId, taggedIntegrationId];
|
|
274
|
+
_c.label = 34;
|
|
275
|
+
case 34:
|
|
276
|
+
if (!(_i < _b.length)) return [3 /*break*/, 37];
|
|
277
|
+
id = _b[_i];
|
|
278
|
+
if (!id)
|
|
279
|
+
return [3 /*break*/, 36];
|
|
280
|
+
return [4 /*yield*/, sdk.api.integrations.deleteOne(id).catch(console.error)];
|
|
281
|
+
case 35:
|
|
282
|
+
_c.sent();
|
|
283
|
+
_c.label = 36;
|
|
284
|
+
case 36:
|
|
285
|
+
_i++;
|
|
286
|
+
return [3 /*break*/, 34];
|
|
287
|
+
case 37:
|
|
288
|
+
if (!enduserId) return [3 /*break*/, 39];
|
|
289
|
+
return [4 /*yield*/, sdk.api.endusers.deleteOne(enduserId).catch(console.error)];
|
|
290
|
+
case 38:
|
|
291
|
+
_c.sent();
|
|
292
|
+
_c.label = 39;
|
|
293
|
+
case 39:
|
|
294
|
+
if (!formsortEnduserId) return [3 /*break*/, 41];
|
|
295
|
+
return [4 /*yield*/, sdk.api.endusers.deleteOne(formsortEnduserId).catch(console.error)];
|
|
296
|
+
case 40:
|
|
297
|
+
_c.sent();
|
|
298
|
+
_c.label = 41;
|
|
299
|
+
case 41:
|
|
300
|
+
if (!formId) return [3 /*break*/, 43];
|
|
301
|
+
return [4 /*yield*/, sdk.api.forms.deleteOne(formId).catch(console.error)];
|
|
302
|
+
case 42:
|
|
303
|
+
_c.sent();
|
|
304
|
+
_c.label = 43;
|
|
305
|
+
case 43: return [7 /*endfinally*/];
|
|
306
|
+
case 44: return [2 /*return*/];
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
};
|
|
311
|
+
if (require.main === module) {
|
|
312
|
+
console.log("Using API URL: ".concat(host));
|
|
313
|
+
var sdk_1 = new Session({ host: host });
|
|
314
|
+
var sdkNonAdmin_1 = new Session({ host: host });
|
|
315
|
+
var runTests = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
316
|
+
return __generator(this, function (_a) {
|
|
317
|
+
switch (_a.label) {
|
|
318
|
+
case 0: return [4 /*yield*/, setup_tests(sdk_1, sdkNonAdmin_1)];
|
|
319
|
+
case 1:
|
|
320
|
+
_a.sent();
|
|
321
|
+
return [4 /*yield*/, healthie_multi_integration_tests({ sdk: sdk_1, sdkNonAdmin: sdkNonAdmin_1 })];
|
|
322
|
+
case 2:
|
|
323
|
+
_a.sent();
|
|
324
|
+
return [2 /*return*/];
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
}); };
|
|
328
|
+
runTests()
|
|
329
|
+
.then(function () {
|
|
330
|
+
console.log("✅ Multiple Healthie integrations test suite completed successfully");
|
|
331
|
+
process.exit(0);
|
|
332
|
+
})
|
|
333
|
+
.catch(function (error) {
|
|
334
|
+
console.error("❌ Multiple Healthie integrations test suite failed:", error);
|
|
335
|
+
process.exit(1);
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
//# sourceMappingURL=healthie_multi_integration.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthie_multi_integration.test.js","sourceRoot":"","sources":["../../../../src/tests/api_tests/healthie_multi_integration.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,EAAE,CAAC;AAExC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EACL,MAAM,EACN,UAAU,EACV,UAAU,EACV,IAAI,GACL,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,6CAA6C,EAAE,MAAM,uBAAuB,CAAA;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEhF,IAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,uBAAgC,CAAA;AAEpE,IAAM,GAAG,GAAG,YAAY,CAAA;AACxB,IAAM,iBAAiB,GAAG,kEAAkE,CAAA;AAE5F,MAAM,CAAC,IAAM,gCAAgC,GAAG,UAAO,EAA6D;QAA3D,GAAG,SAAA,EAAE,WAAW,iBAAA;;;;;;oBACvE,UAAU,CAAC,sCAAsC,CAAC,CAAA;oBAE5C,UAAU,GAAG,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAA;oBAEtC,oBAAoB,GAAG,EAAE,CAAA;oBACzB,mBAAmB,GAAG,EAAE,CAAA;oBACxB,SAAS,GAAG,EAAE,CAAA;oBACd,iBAAiB,GAAG,EAAE,CAAA;oBACtB,MAAM,GAAG,EAAE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AAM,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAA;;oBAA1D,SAA0D,CAAA;;;;;;;CAEzE,CAAA;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE;IAC3B,OAAO,CAAC,GAAG,CAAC,yBAAkB,IAAI,CAAE,CAAC,CAAA;IACrC,IAAM,KAAG,GAAG,IAAI,OAAO,CAAC,EAAE,IAAI,MAAA,EAAE,CAAC,CAAA;IACjC,IAAM,aAAW,GAAG,IAAI,OAAO,CAAC,EAAE,IAAI,MAAA,EAAE,CAAC,CAAA;IAEzC,IAAM,QAAQ,GAAG;;;wBACf,qBAAM,WAAW,CAAC,KAAG,EAAE,aAAW,CAAC,EAAA;;oBAAnC,SAAmC,CAAA;oBACnC,qBAAM,gCAAgC,CAAC,EAAE,GAAG,OAAA,EAAE,WAAW,eAAA,EAAE,CAAC,EAAA;;oBAA5D,SAA4D,CAAA;;;;SAC7D,CAAA;IAED,QAAQ,EAAE;SACP,IAAI,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,oEAAoE,CAAC,CAAA;QACjF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC,CAAC;SACD,KAAK,CAAC,UAAC,KAAK;QACX,OAAO,CAAC,KAAK,CAAC,qDAAqD,EAAE,KAAK,CAAC,CAAA;QAC3E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC,CAAC,CAAA;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../../../src/tests/tests.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../../../src/tests/tests.ts"],"names":[],"mappings":"AA8zEA,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;AAu1FD,eAAO,MAAM,cAAc,qBAqC1B,CAAA;AAotBD,eAAO,MAAM,0BAA0B,qBAmFtC,CAAA;AAqED,eAAO,MAAM,eAAe,qBAmD3B,CAAA;AAED,eAAO,MAAM,oBAAoB,6BAsBhC,CAAA;AAED,eAAO,MAAM,oCAAoC,qBA4pBhD,CAAA;AAED,eAAO,MAAM,mCAAmC,qBAkE/C,CAAA;AAw7CD,eAAO,MAAM,yBAAyB,qBA0DrC,CAAA;AAED,eAAO,MAAM,kBAAkB,qBAmK9B,CAAA;AAED,eAAO,MAAM,sBAAsB,qBA0BlC,CAAA;AAGD,eAAO,MAAM,mBAAmB,qBAmC/B,CAAA;AAED,eAAO,MAAM,gCAAgC,mCA8C5C,CAAA;AAED,eAAO,MAAM,cAAc,qBAwb1B,CAAA;AAGD,eAAO,MAAM,oBAAoB,uBAuBhC,CAAA;AA4wBD,eAAO,MAAM,4BAA4B,qBAoExC,CAAA;AAED,eAAO,MAAM,+BAA+B,qBA4U3C,CAAA;AAED,eAAO,MAAM,gDAAgD,qBAwC5D,CAAA;AAED,eAAO,MAAM,qBAAqB,qBAwIjC,CAAA"}
|