@oystehr/sdk 3.0.7 → 3.0.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.
- package/README.md +5 -5
- package/dist/cjs/index.cjs +278 -233
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/resources/classes/application.d.ts +6 -6
- package/dist/cjs/resources/classes/charge.d.ts +1 -1
- package/dist/cjs/resources/classes/conversation.d.ts +6 -6
- package/dist/cjs/resources/classes/developer.d.ts +14 -7
- package/dist/cjs/resources/classes/erx.d.ts +9 -1
- package/dist/cjs/resources/classes/fax.d.ts +4 -4
- package/dist/cjs/resources/classes/fhir.d.ts +1 -1
- package/dist/cjs/resources/classes/m2m.d.ts +15 -8
- package/dist/cjs/resources/classes/messaging.d.ts +1 -1
- package/dist/cjs/resources/classes/paymentMethod.d.ts +1 -1
- package/dist/cjs/resources/classes/project.d.ts +10 -3
- package/dist/cjs/resources/classes/rcm.d.ts +4 -4
- package/dist/cjs/resources/classes/role.d.ts +6 -6
- package/dist/cjs/resources/classes/secret.d.ts +1 -1
- package/dist/cjs/resources/classes/telemed.d.ts +2 -2
- package/dist/cjs/resources/classes/transactionalSMS.d.ts +2 -2
- package/dist/cjs/resources/classes/user.d.ts +15 -8
- package/dist/cjs/resources/classes/version.d.ts +1 -1
- package/dist/cjs/resources/classes/z3.d.ts +8 -8
- package/dist/cjs/resources/classes/zambda.d.ts +9 -9
- package/dist/cjs/resources/classes/zambdaLogStream.d.ts +4 -4
- package/dist/cjs/resources/types/AccessPolicy.d.ts +8 -3
- package/dist/cjs/resources/types/ApplicationCreateParams.d.ts +0 -5
- package/dist/cjs/resources/types/ApplicationUpdateParams.d.ts +0 -4
- package/dist/cjs/resources/types/ChargeIssueParams.d.ts +1 -1
- package/dist/cjs/resources/types/ChargeStatusParams.d.ts +1 -1
- package/dist/cjs/resources/types/DeveloperListV2Params.d.ts +2 -2
- package/dist/cjs/resources/types/FaxSendParams.d.ts +1 -1
- package/dist/cjs/resources/types/M2mListV2Params.d.ts +2 -2
- package/dist/cjs/resources/types/M2mRotateSecretResponse.d.ts +1 -1
- package/dist/cjs/resources/types/RcmEligibilityCheckParams.d.ts +1 -1
- package/dist/cjs/resources/types/RoleUpdateParams.d.ts +0 -4
- package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
- package/dist/cjs/resources/types/UserListV2Params.d.ts +2 -2
- package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +1 -1
- package/dist/cjs/resources/types/ZambdaFunction.d.ts +1 -1
- package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +2 -2
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/resources/classes/application.d.ts +6 -6
- package/dist/esm/resources/classes/application.js +20 -17
- package/dist/esm/resources/classes/application.js.map +1 -1
- package/dist/esm/resources/classes/charge.d.ts +1 -1
- package/dist/esm/resources/classes/charge.js +9 -6
- package/dist/esm/resources/classes/charge.js.map +1 -1
- package/dist/esm/resources/classes/conversation.d.ts +6 -6
- package/dist/esm/resources/classes/conversation.js +17 -14
- package/dist/esm/resources/classes/conversation.js.map +1 -1
- package/dist/esm/resources/classes/developer.d.ts +14 -7
- package/dist/esm/resources/classes/developer.js +19 -16
- package/dist/esm/resources/classes/developer.js.map +1 -1
- package/dist/esm/resources/classes/erx.d.ts +9 -1
- package/dist/esm/resources/classes/erx.js +13 -10
- package/dist/esm/resources/classes/erx.js.map +1 -1
- package/dist/esm/resources/classes/fax.d.ts +4 -4
- package/dist/esm/resources/classes/fax.js +13 -10
- package/dist/esm/resources/classes/fax.js.map +1 -1
- package/dist/esm/resources/classes/fhir.d.ts +1 -1
- package/dist/esm/resources/classes/fhir.js +3 -4
- package/dist/esm/resources/classes/fhir.js.map +1 -1
- package/dist/esm/resources/classes/index.js +2 -2
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/classes/m2m.d.ts +15 -8
- package/dist/esm/resources/classes/m2m.js +21 -18
- package/dist/esm/resources/classes/m2m.js.map +1 -1
- package/dist/esm/resources/classes/messaging.d.ts +1 -1
- package/dist/esm/resources/classes/messaging.js +8 -5
- package/dist/esm/resources/classes/messaging.js.map +1 -1
- package/dist/esm/resources/classes/paymentMethod.d.ts +1 -1
- package/dist/esm/resources/classes/paymentMethod.js +11 -8
- package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
- package/dist/esm/resources/classes/project.d.ts +10 -3
- package/dist/esm/resources/classes/project.js +11 -8
- package/dist/esm/resources/classes/project.js.map +1 -1
- package/dist/esm/resources/classes/rcm.d.ts +4 -4
- package/dist/esm/resources/classes/rcm.js +13 -10
- package/dist/esm/resources/classes/rcm.js.map +1 -1
- package/dist/esm/resources/classes/role.d.ts +6 -6
- package/dist/esm/resources/classes/role.js +17 -14
- package/dist/esm/resources/classes/role.js.map +1 -1
- package/dist/esm/resources/classes/secret.d.ts +1 -1
- package/dist/esm/resources/classes/secret.js +11 -8
- package/dist/esm/resources/classes/secret.js.map +1 -1
- package/dist/esm/resources/classes/telemed.d.ts +2 -2
- package/dist/esm/resources/classes/telemed.js +10 -7
- package/dist/esm/resources/classes/telemed.js.map +1 -1
- package/dist/esm/resources/classes/transactionalSMS.d.ts +2 -2
- package/dist/esm/resources/classes/transactionalSMS.js +9 -6
- package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
- package/dist/esm/resources/classes/user.d.ts +15 -8
- package/dist/esm/resources/classes/user.js +21 -18
- package/dist/esm/resources/classes/user.js.map +1 -1
- package/dist/esm/resources/classes/version.d.ts +1 -1
- package/dist/esm/resources/classes/version.js +8 -5
- package/dist/esm/resources/classes/version.js.map +1 -1
- package/dist/esm/resources/classes/z3.d.ts +8 -8
- package/dist/esm/resources/classes/z3.js +20 -17
- package/dist/esm/resources/classes/z3.js.map +1 -1
- package/dist/esm/resources/classes/zambda.d.ts +9 -9
- package/dist/esm/resources/classes/zambda.js +23 -20
- package/dist/esm/resources/classes/zambda.js.map +1 -1
- package/dist/esm/resources/classes/zambdaLogStream.d.ts +4 -4
- package/dist/esm/resources/classes/zambdaLogStream.js +13 -10
- package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
- package/dist/esm/resources/types/AccessPolicy.d.ts +8 -3
- package/dist/esm/resources/types/ApplicationCreateParams.d.ts +0 -5
- package/dist/esm/resources/types/ApplicationUpdateParams.d.ts +0 -4
- package/dist/esm/resources/types/ChargeIssueParams.d.ts +1 -1
- package/dist/esm/resources/types/ChargeStatusParams.d.ts +1 -1
- package/dist/esm/resources/types/DeveloperListV2Params.d.ts +2 -2
- package/dist/esm/resources/types/FaxSendParams.d.ts +1 -1
- package/dist/esm/resources/types/M2mListV2Params.d.ts +2 -2
- package/dist/esm/resources/types/M2mRotateSecretResponse.d.ts +1 -1
- package/dist/esm/resources/types/RcmEligibilityCheckParams.d.ts +1 -1
- package/dist/esm/resources/types/RoleUpdateParams.d.ts +0 -4
- package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
- package/dist/esm/resources/types/UserListV2Params.d.ts +2 -2
- package/dist/esm/resources/types/ZambdaCreateParams.d.ts +1 -1
- package/dist/esm/resources/types/ZambdaFunction.d.ts +1 -1
- package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +2 -2
- package/package.json +1 -1
- package/src/resources/classes/application.ts +18 -14
- package/src/resources/classes/charge.ts +3 -3
- package/src/resources/classes/conversation.ts +11 -11
- package/src/resources/classes/developer.ts +31 -14
- package/src/resources/classes/erx.ts +29 -7
- package/src/resources/classes/fax.ts +7 -7
- package/src/resources/classes/fhir.ts +1 -1
- package/src/resources/classes/index.ts +2 -2
- package/src/resources/classes/m2m.ts +30 -16
- package/src/resources/classes/messaging.ts +2 -2
- package/src/resources/classes/paymentMethod.ts +5 -5
- package/src/resources/classes/project.ts +23 -6
- package/src/resources/classes/rcm.ts +7 -7
- package/src/resources/classes/role.ts +11 -11
- package/src/resources/classes/secret.ts +5 -5
- package/src/resources/classes/telemed.ts +8 -4
- package/src/resources/classes/transactionalSMS.ts +3 -3
- package/src/resources/classes/user.ts +33 -16
- package/src/resources/classes/version.ts +2 -2
- package/src/resources/classes/z3.ts +14 -14
- package/src/resources/classes/zambda.ts +17 -17
- package/src/resources/classes/zambdaLogStream.ts +7 -7
- package/src/resources/types/AccessPolicy.ts +12 -3
- package/src/resources/types/ApplicationCreateParams.ts +0 -5
- package/src/resources/types/ApplicationUpdateParams.ts +0 -4
- package/src/resources/types/ChargeIssueParams.ts +1 -1
- package/src/resources/types/ChargeStatusParams.ts +1 -1
- package/src/resources/types/DeveloperListV2Params.ts +2 -2
- package/src/resources/types/FaxSendParams.ts +1 -1
- package/src/resources/types/M2mListV2Params.ts +2 -2
- package/src/resources/types/M2mRotateSecretResponse.ts +1 -1
- package/src/resources/types/RcmEligibilityCheckParams.ts +1 -1
- package/src/resources/types/RoleUpdateParams.ts +0 -4
- package/src/resources/types/TelemedCreateMeetingParams.ts +1 -1
- package/src/resources/types/UserListV2Params.ts +2 -2
- package/src/resources/types/ZambdaCreateParams.ts +1 -1
- package/src/resources/types/ZambdaFunction.ts +1 -1
- package/src/resources/types/ZambdaUpdateParams.ts +2 -2
- package/dist/esm/node_modules/tslib/package.json +0 -1
- package/dist/esm/node_modules/tslib/tslib.es6.js +0 -34
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -81,6 +81,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
85
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
86
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
87
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
88
|
+
}
|
|
89
|
+
|
|
84
90
|
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
85
91
|
var e = new Error(message);
|
|
86
92
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
@@ -335,58 +341,56 @@ function addParamsToSearch(params, search) {
|
|
|
335
341
|
}
|
|
336
342
|
|
|
337
343
|
// AUTOGENERATED -- DO NOT EDIT
|
|
344
|
+
var _Application_instances, _Application_baseUrlThunk;
|
|
338
345
|
class Application extends SDKResource {
|
|
339
346
|
constructor(config) {
|
|
340
347
|
super(config);
|
|
341
|
-
|
|
342
|
-
baseUrlThunk() {
|
|
343
|
-
var _a, _b;
|
|
344
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
348
|
+
_Application_instances.add(this);
|
|
345
349
|
}
|
|
346
350
|
/**
|
|
347
|
-
* Get a list of Applications. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
351
|
+
* Get a list of Applications. [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
348
352
|
*
|
|
349
353
|
* Access Policy Action: `App:ListAllApplications`
|
|
350
354
|
* Access Policy Resource: `App:Application`
|
|
351
355
|
*/
|
|
352
356
|
list(request) {
|
|
353
|
-
return this.request('/application', 'get', this.
|
|
357
|
+
return this.request('/application', 'get', __classPrivateFieldGet(this, _Application_instances, "m", _Application_baseUrlThunk).bind(this))(request);
|
|
354
358
|
}
|
|
355
359
|
/**
|
|
356
|
-
* Create a new Application. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
360
|
+
* Create a new Application. [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
357
361
|
*
|
|
358
362
|
* Access Policy Action: `App:CreateApplication`
|
|
359
363
|
* Access Policy Resource: `App:Application`
|
|
360
364
|
*/
|
|
361
365
|
create(params, request) {
|
|
362
|
-
return this.request('/application', 'post', this.
|
|
366
|
+
return this.request('/application', 'post', __classPrivateFieldGet(this, _Application_instances, "m", _Application_baseUrlThunk).bind(this))(params, request);
|
|
363
367
|
}
|
|
364
368
|
/**
|
|
365
|
-
* Get the Application with the provided ID. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
369
|
+
* Get the Application with the provided ID. [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
366
370
|
*
|
|
367
371
|
* Access Policy Action: `App:GetApplication`
|
|
368
372
|
* Access Policy Resource: `App:Application`
|
|
369
373
|
*/
|
|
370
374
|
get(params, request) {
|
|
371
|
-
return this.request('/application/{id}', 'get', this.
|
|
375
|
+
return this.request('/application/{id}', 'get', __classPrivateFieldGet(this, _Application_instances, "m", _Application_baseUrlThunk).bind(this))(params, request);
|
|
372
376
|
}
|
|
373
377
|
/**
|
|
374
|
-
* Update the Application with the provided ID. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
378
|
+
* Update the Application with the provided ID. [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
375
379
|
*
|
|
376
380
|
* Access Policy Action: `App:UpdateApplication`
|
|
377
381
|
* Access Policy Resource: `App:Application`
|
|
378
382
|
*/
|
|
379
383
|
update(params, request) {
|
|
380
|
-
return this.request('/application/{id}', 'patch', this.
|
|
384
|
+
return this.request('/application/{id}', 'patch', __classPrivateFieldGet(this, _Application_instances, "m", _Application_baseUrlThunk).bind(this))(params, request);
|
|
381
385
|
}
|
|
382
386
|
/**
|
|
383
|
-
* Delete the Application with the provided ID. [Applications](https://docs.oystehr.com/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
387
|
+
* Delete the Application with the provided ID. [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
|
|
384
388
|
*
|
|
385
389
|
* Access Policy Action: `App:DeleteApplication`
|
|
386
390
|
* Access Policy Resource: `App:Application`
|
|
387
391
|
*/
|
|
388
392
|
delete(params, request) {
|
|
389
|
-
return this.request('/application/{id}', 'delete', this.
|
|
393
|
+
return this.request('/application/{id}', 'delete', __classPrivateFieldGet(this, _Application_instances, "m", _Application_baseUrlThunk).bind(this))(params, request);
|
|
390
394
|
}
|
|
391
395
|
/**
|
|
392
396
|
* Rotate client's secrete associated with an application.
|
|
@@ -395,7 +399,7 @@ class Application extends SDKResource {
|
|
|
395
399
|
* Access Policy Resource: `App:Application`
|
|
396
400
|
*/
|
|
397
401
|
rotateSecret(params, request) {
|
|
398
|
-
return this.request('/application/{id}/rotate-secret', 'post', this.
|
|
402
|
+
return this.request('/application/{id}/rotate-secret', 'post', __classPrivateFieldGet(this, _Application_instances, "m", _Application_baseUrlThunk).bind(this))(params, request);
|
|
399
403
|
}
|
|
400
404
|
/**
|
|
401
405
|
* Revokes user's refresh token issued for the application.
|
|
@@ -404,7 +408,7 @@ class Application extends SDKResource {
|
|
|
404
408
|
* Access Policy Resource: `App:Application`
|
|
405
409
|
*/
|
|
406
410
|
revokeRefreshToken(params, request) {
|
|
407
|
-
return this.request('/application/{id}/revoke-refresh-token', 'post', this.
|
|
411
|
+
return this.request('/application/{id}/revoke-refresh-token', 'post', __classPrivateFieldGet(this, _Application_instances, "m", _Application_baseUrlThunk).bind(this))(params, request);
|
|
408
412
|
}
|
|
409
413
|
/**
|
|
410
414
|
* Revokes user's access token issued for the application.
|
|
@@ -413,18 +417,20 @@ class Application extends SDKResource {
|
|
|
413
417
|
* Access Policy Resource: `App:Application`
|
|
414
418
|
*/
|
|
415
419
|
revokeAccessToken(params, request) {
|
|
416
|
-
return this.request('/application/{id}/revoke-access-token', 'post', this.
|
|
420
|
+
return this.request('/application/{id}/revoke-access-token', 'post', __classPrivateFieldGet(this, _Application_instances, "m", _Application_baseUrlThunk).bind(this))(params, request);
|
|
417
421
|
}
|
|
418
422
|
}
|
|
423
|
+
_Application_instances = new WeakSet(), _Application_baseUrlThunk = function _Application_baseUrlThunk() {
|
|
424
|
+
var _a, _b;
|
|
425
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
426
|
+
};
|
|
419
427
|
|
|
420
428
|
// AUTOGENERATED -- DO NOT EDIT
|
|
429
|
+
var _Charge_instances, _Charge_baseUrlThunk;
|
|
421
430
|
class Charge extends SDKResource {
|
|
422
431
|
constructor(config) {
|
|
423
432
|
super(config);
|
|
424
|
-
|
|
425
|
-
baseUrlThunk() {
|
|
426
|
-
var _a, _b;
|
|
427
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
433
|
+
_Charge_instances.add(this);
|
|
428
434
|
}
|
|
429
435
|
/**
|
|
430
436
|
* Charge patient's default payment method for a specified encounter or charge item.
|
|
@@ -438,7 +444,7 @@ class Charge extends SDKResource {
|
|
|
438
444
|
* Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`
|
|
439
445
|
*/
|
|
440
446
|
issue(params, request) {
|
|
441
|
-
return this.request('/payment/charge/issue', 'post', this.
|
|
447
|
+
return this.request('/payment/charge/issue', 'post', __classPrivateFieldGet(this, _Charge_instances, "m", _Charge_baseUrlThunk).bind(this))(params, request);
|
|
442
448
|
}
|
|
443
449
|
/**
|
|
444
450
|
* Retrieve charge status for a specified encounter or charge item.
|
|
@@ -452,9 +458,13 @@ class Charge extends SDKResource {
|
|
|
452
458
|
* Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`
|
|
453
459
|
*/
|
|
454
460
|
status(params, request) {
|
|
455
|
-
return this.request('/payment/charge/status', 'post', this.
|
|
461
|
+
return this.request('/payment/charge/status', 'post', __classPrivateFieldGet(this, _Charge_instances, "m", _Charge_baseUrlThunk).bind(this))(params, request);
|
|
456
462
|
}
|
|
457
463
|
}
|
|
464
|
+
_Charge_instances = new WeakSet(), _Charge_baseUrlThunk = function _Charge_baseUrlThunk() {
|
|
465
|
+
var _a, _b;
|
|
466
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
467
|
+
};
|
|
458
468
|
|
|
459
469
|
const ENCOUNTER_VS_EXTENSION_URL = 'https://extensions.fhir.zapehr.com/encounter-virtual-service-pre-release';
|
|
460
470
|
const ENCOUNTER_VS_EXTENSION_RELATIVE_URL = 'addressString';
|
|
@@ -483,9 +493,11 @@ function getConversationIdFromEncounter(encounter) {
|
|
|
483
493
|
}
|
|
484
494
|
|
|
485
495
|
// AUTOGENERATED -- DO NOT EDIT
|
|
496
|
+
var _Conversation_instances, _Conversation_baseUrlThunk;
|
|
486
497
|
class Conversation extends SDKResource {
|
|
487
498
|
constructor(config) {
|
|
488
499
|
super(config);
|
|
500
|
+
_Conversation_instances.add(this);
|
|
489
501
|
this.ENCOUNTER_VS_EXTENSION_URL = ENCOUNTER_VS_EXTENSION_URL;
|
|
490
502
|
this.ENCOUNTER_VS_EXTENSION_RELATIVE_URL = ENCOUNTER_VS_EXTENSION_RELATIVE_URL;
|
|
491
503
|
/**
|
|
@@ -495,12 +507,8 @@ class Conversation extends SDKResource {
|
|
|
495
507
|
*/
|
|
496
508
|
this.getConversationIdFromEncounter = getConversationIdFromEncounter;
|
|
497
509
|
}
|
|
498
|
-
baseUrlThunk() {
|
|
499
|
-
var _a, _b;
|
|
500
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
501
|
-
}
|
|
502
510
|
/**
|
|
503
|
-
* Create a new Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
511
|
+
* Create a new Conversation. [Conversations](https://docs.oystehr.com/oystehr/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
504
512
|
*
|
|
505
513
|
* Access Policy Requirements:
|
|
506
514
|
* Action: `Messaging:CreateConversation`
|
|
@@ -511,19 +519,19 @@ class Conversation extends SDKResource {
|
|
|
511
519
|
* Access Policy Resource: `FHIR:Encounter`
|
|
512
520
|
*/
|
|
513
521
|
create(params, request) {
|
|
514
|
-
return this.request('/messaging/conversation', 'post', this.
|
|
522
|
+
return this.request('/messaging/conversation', 'post', __classPrivateFieldGet(this, _Conversation_instances, "m", _Conversation_baseUrlThunk).bind(this))(params, request);
|
|
515
523
|
}
|
|
516
524
|
/**
|
|
517
|
-
* Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
525
|
+
* Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.oystehr.com/oystehr/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
518
526
|
*
|
|
519
527
|
* Access Policy Action: `Messaging:GetConversationToken`
|
|
520
528
|
* Access Policy Resource: `Messaging:Conversation`.
|
|
521
529
|
*/
|
|
522
530
|
getToken(request) {
|
|
523
|
-
return this.request('/messaging/conversation/token', 'get', this.
|
|
531
|
+
return this.request('/messaging/conversation/token', 'get', __classPrivateFieldGet(this, _Conversation_instances, "m", _Conversation_baseUrlThunk).bind(this))(request);
|
|
524
532
|
}
|
|
525
533
|
/**
|
|
526
|
-
* Add a participant to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
534
|
+
* Add a participant to a Conversation. [Conversations](https://docs.oystehr.com/oystehr/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
527
535
|
*
|
|
528
536
|
* Access Policy Requirements:
|
|
529
537
|
* Action: `Messaging:ConversationAddParticipant`
|
|
@@ -534,10 +542,10 @@ class Conversation extends SDKResource {
|
|
|
534
542
|
* Access Policy Resource: `FHIR:Encounter`
|
|
535
543
|
*/
|
|
536
544
|
addParticipant(params, request) {
|
|
537
|
-
return this.request('/messaging/conversation/{conversationId}/participant', 'post', this.
|
|
545
|
+
return this.request('/messaging/conversation/{conversationId}/participant', 'post', __classPrivateFieldGet(this, _Conversation_instances, "m", _Conversation_baseUrlThunk).bind(this))(params, request);
|
|
538
546
|
}
|
|
539
547
|
/**
|
|
540
|
-
* Remove a participant from a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
548
|
+
* Remove a participant from a Conversation. [Conversations](https://docs.oystehr.com/oystehr/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
541
549
|
*
|
|
542
550
|
* Access Policy Requirements:
|
|
543
551
|
* Action: `Messaging:ConversationRemoveParticipant`
|
|
@@ -546,174 +554,184 @@ class Conversation extends SDKResource {
|
|
|
546
554
|
* Access Policy Resource: `FHIR:Patient`, `FHIR:Practitioner`, or `FHIR:RelatedPerson`
|
|
547
555
|
*/
|
|
548
556
|
removeParticipant(params, request) {
|
|
549
|
-
return this.request('/messaging/conversation/{conversationId}/participant', 'delete', this.
|
|
557
|
+
return this.request('/messaging/conversation/{conversationId}/participant', 'delete', __classPrivateFieldGet(this, _Conversation_instances, "m", _Conversation_baseUrlThunk).bind(this))(params, request);
|
|
550
558
|
}
|
|
551
559
|
/**
|
|
552
|
-
* Send a message to a Conversation. [Conversations](https://docs.oystehr.com/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
560
|
+
* Send a message to a Conversation. [Conversations](https://docs.oystehr.com/oystehr/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
553
561
|
*
|
|
554
562
|
* Access Policy Requirements:
|
|
555
563
|
* Action: `Messaging:ConversationSendMessage`
|
|
556
564
|
* Access Policy Resource: `Messaging:Conversation`
|
|
557
565
|
*/
|
|
558
566
|
message(params, request) {
|
|
559
|
-
return this.request('/messaging/conversation/{conversationId}/message', 'post', this.
|
|
567
|
+
return this.request('/messaging/conversation/{conversationId}/message', 'post', __classPrivateFieldGet(this, _Conversation_instances, "m", _Conversation_baseUrlThunk).bind(this))(params, request);
|
|
560
568
|
}
|
|
561
569
|
}
|
|
570
|
+
_Conversation_instances = new WeakSet(), _Conversation_baseUrlThunk = function _Conversation_baseUrlThunk() {
|
|
571
|
+
var _a, _b;
|
|
572
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
573
|
+
};
|
|
562
574
|
|
|
563
575
|
// AUTOGENERATED -- DO NOT EDIT
|
|
576
|
+
var _Developer_instances, _Developer_baseUrlThunk;
|
|
564
577
|
class Developer extends SDKResource {
|
|
565
578
|
constructor(config) {
|
|
566
579
|
super(config);
|
|
567
|
-
|
|
568
|
-
baseUrlThunk() {
|
|
569
|
-
var _a, _b;
|
|
570
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
580
|
+
_Developer_instances.add(this);
|
|
571
581
|
}
|
|
572
582
|
/**
|
|
573
|
-
* Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
583
|
+
* Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
574
584
|
*
|
|
575
585
|
* Access Policy Action: `IAM:GetDeveloper`
|
|
576
586
|
* Access Policy Resource: `IAM:Developer`
|
|
577
587
|
*/
|
|
578
588
|
get(params, request) {
|
|
579
|
-
return this.request('/developer/{id}', 'get', this.
|
|
589
|
+
return this.request('/developer/{id}', 'get', __classPrivateFieldGet(this, _Developer_instances, "m", _Developer_baseUrlThunk).bind(this))(params, request);
|
|
580
590
|
}
|
|
581
591
|
/**
|
|
582
|
-
* Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
592
|
+
* Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
583
593
|
*
|
|
584
594
|
* Access Policy Action: `IAM:UpdateDeveloper`
|
|
585
595
|
* Access Policy Resource: `IAM:Developer`
|
|
586
596
|
*/
|
|
587
597
|
update(params, request) {
|
|
588
|
-
return this.request('/developer/{id}', 'patch', this.
|
|
598
|
+
return this.request('/developer/{id}', 'patch', __classPrivateFieldGet(this, _Developer_instances, "m", _Developer_baseUrlThunk).bind(this))(params, request);
|
|
589
599
|
}
|
|
590
600
|
/**
|
|
591
|
-
* Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
601
|
+
* Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
592
602
|
*
|
|
593
603
|
* Access Policy Action: `IAM:RemoveDeveloper`
|
|
594
604
|
* Access Policy Resource: `IAM:Developer`
|
|
595
605
|
*/
|
|
596
606
|
delete(params, request) {
|
|
597
|
-
return this.request('/developer/{id}', 'delete', this.
|
|
607
|
+
return this.request('/developer/{id}', 'delete', __classPrivateFieldGet(this, _Developer_instances, "m", _Developer_baseUrlThunk).bind(this))(params, request);
|
|
598
608
|
}
|
|
599
609
|
/**
|
|
600
|
-
* Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
610
|
+
* Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
601
611
|
*
|
|
602
612
|
* Access Policy Action: `IAM:InviteDeveloper`
|
|
603
613
|
* Access Policy Resource: `IAM:Developer`
|
|
604
614
|
*/
|
|
605
615
|
invite(params, request) {
|
|
606
|
-
return this.request('/developer/invite', 'post', this.
|
|
616
|
+
return this.request('/developer/invite', 'post', __classPrivateFieldGet(this, _Developer_instances, "m", _Developer_baseUrlThunk).bind(this))(params, request);
|
|
607
617
|
}
|
|
608
618
|
/**
|
|
609
619
|
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_developer-v2-list) instead.
|
|
610
620
|
*
|
|
611
|
-
* Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/services/project/). [Developers](https://docs.oystehr.com/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
621
|
+
* Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
612
622
|
*
|
|
613
623
|
* Access Policy Action: `IAM:ListAllDevelopers`
|
|
614
624
|
* Access Policy Resource: `IAM:Developer`
|
|
615
625
|
*/
|
|
616
626
|
list(request) {
|
|
617
|
-
return this.request('/developer', 'get', this.
|
|
627
|
+
return this.request('/developer', 'get', __classPrivateFieldGet(this, _Developer_instances, "m", _Developer_baseUrlThunk).bind(this))(request);
|
|
618
628
|
}
|
|
619
629
|
/**
|
|
620
|
-
* Get Developers in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
630
|
+
* Get Developers in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
621
631
|
*
|
|
622
632
|
* Access Policy Action: `Project:ListAllUsers`
|
|
623
633
|
* Access Policy Resource: `Project:Settings`
|
|
624
634
|
*/
|
|
625
635
|
listV2(params, request) {
|
|
626
|
-
return this.request('/developer/v2/list', 'get', this.
|
|
636
|
+
return this.request('/developer/v2/list', 'get', __classPrivateFieldGet(this, _Developer_instances, "m", _Developer_baseUrlThunk).bind(this))(params, request);
|
|
627
637
|
}
|
|
628
638
|
}
|
|
639
|
+
_Developer_instances = new WeakSet(), _Developer_baseUrlThunk = function _Developer_baseUrlThunk() {
|
|
640
|
+
var _a, _b;
|
|
641
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
642
|
+
};
|
|
629
643
|
|
|
630
644
|
// AUTOGENERATED -- DO NOT EDIT
|
|
645
|
+
var _Erx_instances, _Erx_baseUrlThunk;
|
|
631
646
|
class Erx extends SDKResource {
|
|
632
647
|
constructor(config) {
|
|
633
648
|
super(config);
|
|
634
|
-
|
|
635
|
-
baseUrlThunk() {
|
|
636
|
-
var _a, _b;
|
|
637
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
649
|
+
_Erx_instances.add(this);
|
|
638
650
|
}
|
|
639
651
|
/**
|
|
640
652
|
* Retrieve patient properties from FHIR service and sync them with eRx service
|
|
641
653
|
*/
|
|
642
654
|
syncPatient(params, request) {
|
|
643
|
-
return this.request('/erx/sync-patient/{patientId}', 'post', this.
|
|
655
|
+
return this.request('/erx/sync-patient/{patientId}', 'post', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
644
656
|
}
|
|
645
657
|
/**
|
|
646
658
|
* Search for allergies
|
|
647
659
|
*/
|
|
648
660
|
allergySearch(params, request) {
|
|
649
|
-
return this.request('/erx/allergy/search', 'get', this.
|
|
661
|
+
return this.request('/erx/allergy/search', 'get', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
650
662
|
}
|
|
651
663
|
/**
|
|
652
664
|
* Cancel photon order
|
|
653
665
|
*/
|
|
654
666
|
cancelOrder(params, request) {
|
|
655
|
-
return this.request('/erx/cancel-order', 'post', this.
|
|
667
|
+
return this.request('/erx/cancel-order', 'post', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
656
668
|
}
|
|
657
669
|
/**
|
|
658
670
|
* Cancel photon prescription
|
|
659
671
|
*/
|
|
660
672
|
cancelPrescription(params, request) {
|
|
661
|
-
return this.request('/erx/cancel-prescription', 'post', this.
|
|
673
|
+
return this.request('/erx/cancel-prescription', 'post', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
662
674
|
}
|
|
663
675
|
/**
|
|
664
676
|
* Search for medications. Provide at least one of code or name filters
|
|
665
677
|
*/
|
|
666
678
|
medicationSearch(params, request) {
|
|
667
|
-
return this.request('/erx/medication/search', 'get', this.
|
|
679
|
+
return this.request('/erx/medication/search', 'get', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
668
680
|
}
|
|
669
681
|
/**
|
|
670
682
|
* Search for medications. Provide at least one of code or name filters
|
|
671
683
|
*/
|
|
672
684
|
medicationSearchV2(params, request) {
|
|
673
|
-
return this.request('/erx/v2/medication/search', 'get', this.
|
|
685
|
+
return this.request('/erx/v2/medication/search', 'get', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
674
686
|
}
|
|
675
687
|
}
|
|
688
|
+
_Erx_instances = new WeakSet(), _Erx_baseUrlThunk = function _Erx_baseUrlThunk() {
|
|
689
|
+
var _a, _b;
|
|
690
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
691
|
+
};
|
|
676
692
|
|
|
677
693
|
// AUTOGENERATED -- DO NOT EDIT
|
|
694
|
+
var _Fax_instances, _Fax_baseUrlThunk;
|
|
678
695
|
class Fax extends SDKResource {
|
|
679
696
|
constructor(config) {
|
|
680
697
|
super(config);
|
|
681
|
-
|
|
682
|
-
baseUrlThunk() {
|
|
683
|
-
var _a, _b;
|
|
684
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['faxApiUrl']) !== null && _b !== void 0 ? _b : 'https://fax-api.zapehr.com/v1';
|
|
698
|
+
_Fax_instances.add(this);
|
|
685
699
|
}
|
|
686
700
|
/**
|
|
687
|
-
* Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/services/fax/number/) feature makes it easy to stop using the fax service and release the project's assigned fax number with a single API call. Please note there is no way to guarantee getting the same number back again, so if you think this can break your project in any way we recommend not offboarding and avoid sending faxes until you're sure.
|
|
701
|
+
* Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/oystehr/services/fax/number/) feature makes it easy to stop using the fax service and release the project's assigned fax number with a single API call. Please note there is no way to guarantee getting the same number back again, so if you think this can break your project in any way we recommend not offboarding and avoid sending faxes until you're sure.
|
|
688
702
|
*
|
|
689
703
|
* Access Policy Requirements:
|
|
690
704
|
* Action: `Fax:Offboard`
|
|
691
705
|
* Access Policy Resource: `Fax:Number`
|
|
692
706
|
*/
|
|
693
707
|
offboard(request) {
|
|
694
|
-
return this.request('/offboard', 'post', this.
|
|
708
|
+
return this.request('/offboard', 'post', __classPrivateFieldGet(this, _Fax_instances, "m", _Fax_baseUrlThunk).bind(this))(request);
|
|
695
709
|
}
|
|
696
710
|
/**
|
|
697
|
-
* Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/services/fax/number/) feature makes it easy to start using the fax service and purchase a new fax number for your project with a single API call.
|
|
711
|
+
* Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/oystehr/services/fax/number/) feature makes it easy to start using the fax service and purchase a new fax number for your project with a single API call.
|
|
698
712
|
*
|
|
699
713
|
* Access Policy Requirements:
|
|
700
714
|
* Action: `Fax:Onboard`
|
|
701
715
|
* Access Policy Resource: `Fax:Number`
|
|
702
716
|
*/
|
|
703
717
|
onboard(request) {
|
|
704
|
-
return this.request('/onboard', 'post', this.
|
|
718
|
+
return this.request('/onboard', 'post', __classPrivateFieldGet(this, _Fax_instances, "m", _Fax_baseUrlThunk).bind(this))(request);
|
|
705
719
|
}
|
|
706
720
|
/**
|
|
707
|
-
* Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.
|
|
721
|
+
* Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/oystehr/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.
|
|
708
722
|
*
|
|
709
723
|
* Access Policy Requirements:
|
|
710
724
|
* Action: `Fax:Send`
|
|
711
725
|
* Access Policy Resource: `Fax:Fax`
|
|
712
726
|
*/
|
|
713
727
|
send(params, request) {
|
|
714
|
-
return this.request('/send', 'post', this.
|
|
728
|
+
return this.request('/send', 'post', __classPrivateFieldGet(this, _Fax_instances, "m", _Fax_baseUrlThunk).bind(this))(params, request);
|
|
715
729
|
}
|
|
716
730
|
}
|
|
731
|
+
_Fax_instances = new WeakSet(), _Fax_baseUrlThunk = function _Fax_baseUrlThunk() {
|
|
732
|
+
var _a, _b;
|
|
733
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['faxApiUrl']) !== null && _b !== void 0 ? _b : 'https://fax-api.zapehr.com/v1';
|
|
734
|
+
};
|
|
717
735
|
|
|
718
736
|
/**
|
|
719
737
|
* Performs a FHIR search and returns the results as a Bundle resource
|
|
@@ -890,9 +908,11 @@ function formatHumanName(name, options) {
|
|
|
890
908
|
}
|
|
891
909
|
|
|
892
910
|
// AUTOGENERATED -- DO NOT EDIT
|
|
911
|
+
var _Fhir_instances;
|
|
893
912
|
class Fhir extends SDKResource {
|
|
894
913
|
constructor(config) {
|
|
895
914
|
super(config);
|
|
915
|
+
_Fhir_instances.add(this);
|
|
896
916
|
/**
|
|
897
917
|
* Performs a FHIR search and returns the results as a Bundle resource
|
|
898
918
|
* @param options FHIR resource type and FHIR search parameters
|
|
@@ -911,113 +931,112 @@ class Fhir extends SDKResource {
|
|
|
911
931
|
this.formatAddress = formatAddress;
|
|
912
932
|
this.formatHumanName = formatHumanName;
|
|
913
933
|
}
|
|
914
|
-
baseUrlThunk() {
|
|
915
|
-
var _a, _b;
|
|
916
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['fhirApiUrl']) !== null && _b !== void 0 ? _b : 'https://fhir-api.zapehr.com';
|
|
917
|
-
}
|
|
918
934
|
}
|
|
935
|
+
_Fhir_instances = new WeakSet();
|
|
919
936
|
|
|
920
937
|
// AUTOGENERATED -- DO NOT EDIT
|
|
938
|
+
var _M2m_instances, _M2m_baseUrlThunk;
|
|
921
939
|
class M2m extends SDKResource {
|
|
922
940
|
constructor(config) {
|
|
923
941
|
super(config);
|
|
924
|
-
|
|
925
|
-
baseUrlThunk() {
|
|
926
|
-
var _a, _b;
|
|
927
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
942
|
+
_M2m_instances.add(this);
|
|
928
943
|
}
|
|
929
944
|
/**
|
|
930
945
|
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_m2m-v2-list) instead.
|
|
931
946
|
*
|
|
932
|
-
* Get a list of all M2M Clients. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
947
|
+
* Get a list of all M2M Clients. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
|
|
933
948
|
*
|
|
934
949
|
* Access Policy Action: `App:ListAllM2MClients`
|
|
935
950
|
* Access Policy Resource: `IAM:M2MClient`
|
|
936
951
|
*/
|
|
937
952
|
list(request) {
|
|
938
|
-
return this.request('/m2m', 'get', this.
|
|
953
|
+
return this.request('/m2m', 'get', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(request);
|
|
939
954
|
}
|
|
940
955
|
/**
|
|
941
|
-
* Create a new M2M Client. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
956
|
+
* Create a new M2M Client. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
|
|
942
957
|
*
|
|
943
958
|
* Access Policy Action: `App:CreateM2MClient`
|
|
944
959
|
* Access Policy Resource: `IAM:M2MClient`
|
|
945
960
|
*/
|
|
946
961
|
create(params, request) {
|
|
947
|
-
return this.request('/m2m', 'post', this.
|
|
962
|
+
return this.request('/m2m', 'post', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
|
|
948
963
|
}
|
|
949
964
|
/**
|
|
950
|
-
* Get the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
965
|
+
* Get the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
|
|
951
966
|
*
|
|
952
967
|
* Access Policy Action: `App:GetM2MClient`
|
|
953
968
|
* Access Policy Resource: `IAM:M2MClient`
|
|
954
969
|
*/
|
|
955
970
|
get(params, request) {
|
|
956
|
-
return this.request('/m2m/{id}', 'get', this.
|
|
971
|
+
return this.request('/m2m/{id}', 'get', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
|
|
957
972
|
}
|
|
958
973
|
/**
|
|
959
|
-
* Update the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
974
|
+
* Update the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
|
|
960
975
|
*
|
|
961
976
|
* Access Policy Action: `App:UpdateM2MClient`
|
|
962
977
|
* Access Policy Resource: `IAM:M2MClient`
|
|
963
978
|
*/
|
|
964
979
|
update(params, request) {
|
|
965
|
-
return this.request('/m2m/{id}', 'patch', this.
|
|
980
|
+
return this.request('/m2m/{id}', 'patch', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
|
|
966
981
|
}
|
|
967
982
|
/**
|
|
968
|
-
* Delete the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
983
|
+
* Delete the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
|
|
969
984
|
*
|
|
970
985
|
* Access Policy Action: `App:DeleteM2MClient`
|
|
971
986
|
* Access Policy Resource: `IAM:M2MClient`
|
|
972
987
|
*/
|
|
973
988
|
delete(params, request) {
|
|
974
|
-
return this.request('/m2m/{id}', 'delete', this.
|
|
989
|
+
return this.request('/m2m/{id}', 'delete', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
|
|
975
990
|
}
|
|
976
991
|
/**
|
|
977
|
-
* Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
992
|
+
* Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
|
|
978
993
|
*
|
|
979
994
|
* Access Policy Action: `App:RotateM2MClientSecret`
|
|
980
995
|
* Access Policy Resource: `IAM:M2MClient`
|
|
981
996
|
*/
|
|
982
997
|
rotateSecret(params, request) {
|
|
983
|
-
return this.request('/m2m/{id}/rotate-secret', 'post', this.
|
|
998
|
+
return this.request('/m2m/{id}/rotate-secret', 'post', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
|
|
984
999
|
}
|
|
985
1000
|
/**
|
|
986
|
-
* Get M2M clients in the Project with pagination, sort, sort Order and filtering. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
|
|
1001
|
+
* Get M2M clients in the Project with pagination, sort, sort Order and filtering. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
|
|
987
1002
|
*
|
|
988
1003
|
* Access Policy Action: `App:ListAllM2MClients`
|
|
989
1004
|
* Access Policy Resource: `IAM:M2MClient`
|
|
990
1005
|
*/
|
|
991
1006
|
listV2(params, request) {
|
|
992
|
-
return this.request('/m2m/v2/list', 'get', this.
|
|
1007
|
+
return this.request('/m2m/v2/list', 'get', __classPrivateFieldGet(this, _M2m_instances, "m", _M2m_baseUrlThunk).bind(this))(params, request);
|
|
993
1008
|
}
|
|
994
1009
|
}
|
|
1010
|
+
_M2m_instances = new WeakSet(), _M2m_baseUrlThunk = function _M2m_baseUrlThunk() {
|
|
1011
|
+
var _a, _b;
|
|
1012
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1013
|
+
};
|
|
995
1014
|
|
|
996
1015
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1016
|
+
var _Messaging_instances, _Messaging_baseUrlThunk;
|
|
997
1017
|
class Messaging extends SDKResource {
|
|
998
1018
|
constructor(config) {
|
|
999
1019
|
super(config);
|
|
1000
|
-
|
|
1001
|
-
baseUrlThunk() {
|
|
1002
|
-
var _a, _b;
|
|
1003
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1020
|
+
_Messaging_instances.add(this);
|
|
1004
1021
|
}
|
|
1005
1022
|
/**
|
|
1006
1023
|
* Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.
|
|
1007
1024
|
*/
|
|
1008
1025
|
getMessagingConfig(request) {
|
|
1009
|
-
return this.request('/messaging/config', 'get', this.
|
|
1026
|
+
return this.request('/messaging/config', 'get', __classPrivateFieldGet(this, _Messaging_instances, "m", _Messaging_baseUrlThunk).bind(this))(request);
|
|
1010
1027
|
}
|
|
1011
1028
|
}
|
|
1029
|
+
_Messaging_instances = new WeakSet(), _Messaging_baseUrlThunk = function _Messaging_baseUrlThunk() {
|
|
1030
|
+
var _a, _b;
|
|
1031
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1032
|
+
};
|
|
1012
1033
|
|
|
1013
1034
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1035
|
+
var _PaymentMethod_instances, _PaymentMethod_baseUrlThunk;
|
|
1014
1036
|
class PaymentMethod extends SDKResource {
|
|
1015
1037
|
constructor(config) {
|
|
1016
1038
|
super(config);
|
|
1017
|
-
|
|
1018
|
-
baseUrlThunk() {
|
|
1019
|
-
var _a, _b;
|
|
1020
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1039
|
+
_PaymentMethod_instances.add(this);
|
|
1021
1040
|
}
|
|
1022
1041
|
/**
|
|
1023
1042
|
* Enter a new credit card or other payment method for the user.
|
|
@@ -1035,7 +1054,7 @@ class PaymentMethod extends SDKResource {
|
|
|
1035
1054
|
* Access Policy Resource: `FHIR:Patient`
|
|
1036
1055
|
*/
|
|
1037
1056
|
setUp(params, request) {
|
|
1038
|
-
return this.request('/payment/payment-method/setup', 'post', this.
|
|
1057
|
+
return this.request('/payment/payment-method/setup', 'post', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
|
|
1039
1058
|
}
|
|
1040
1059
|
/**
|
|
1041
1060
|
* Set a specified payment method for the user as default.
|
|
@@ -1053,7 +1072,7 @@ class PaymentMethod extends SDKResource {
|
|
|
1053
1072
|
* Access Policy Resource: `FHIR:Patient`
|
|
1054
1073
|
*/
|
|
1055
1074
|
setDefault(params, request) {
|
|
1056
|
-
return this.request('/payment/payment-method/set-default', 'post', this.
|
|
1075
|
+
return this.request('/payment/payment-method/set-default', 'post', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
|
|
1057
1076
|
}
|
|
1058
1077
|
/**
|
|
1059
1078
|
* Delete a specified payment method for the beneficiary.
|
|
@@ -1071,7 +1090,7 @@ class PaymentMethod extends SDKResource {
|
|
|
1071
1090
|
* Access Policy Resource: `FHIR:Patient`
|
|
1072
1091
|
*/
|
|
1073
1092
|
delete(params, request) {
|
|
1074
|
-
return this.request('/payment/payment-method', 'delete', this.
|
|
1093
|
+
return this.request('/payment/payment-method', 'delete', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
|
|
1075
1094
|
}
|
|
1076
1095
|
/**
|
|
1077
1096
|
* List all payment methods for the patient.
|
|
@@ -1089,50 +1108,54 @@ class PaymentMethod extends SDKResource {
|
|
|
1089
1108
|
* Access Policy Resource: `FHIR:Patient`
|
|
1090
1109
|
*/
|
|
1091
1110
|
list(params, request) {
|
|
1092
|
-
return this.request('/payment/payment-method/list', 'post', this.
|
|
1111
|
+
return this.request('/payment/payment-method/list', 'post', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
|
|
1093
1112
|
}
|
|
1094
1113
|
}
|
|
1114
|
+
_PaymentMethod_instances = new WeakSet(), _PaymentMethod_baseUrlThunk = function _PaymentMethod_baseUrlThunk() {
|
|
1115
|
+
var _a, _b;
|
|
1116
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1117
|
+
};
|
|
1095
1118
|
|
|
1096
1119
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1120
|
+
var _Project_instances, _Project_baseUrlThunk;
|
|
1097
1121
|
class Project extends SDKResource {
|
|
1098
1122
|
constructor(config) {
|
|
1099
1123
|
super(config);
|
|
1100
|
-
|
|
1101
|
-
baseUrlThunk() {
|
|
1102
|
-
var _a, _b;
|
|
1103
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1124
|
+
_Project_instances.add(this);
|
|
1104
1125
|
}
|
|
1105
1126
|
/**
|
|
1106
|
-
* Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/core-documentation/authenticating-api-requests/#x-zapehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/services/fhir/basics/), [Applications](https://docs.oystehr.com/services/app/applications/), [Users](https://docs.oystehr.com/services/app/users/), etc .
|
|
1127
|
+
* Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/oystehr/core-documentation/authenticating-api-requests/#x-zapehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/oystehr/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .
|
|
1107
1128
|
*
|
|
1108
1129
|
* Access Policy Action: `Project:GetProjectInfo`
|
|
1109
1130
|
* Access Policy Resource: `Project:Settings`
|
|
1110
1131
|
*/
|
|
1111
1132
|
get(request) {
|
|
1112
|
-
return this.request('/project', 'get', this.
|
|
1133
|
+
return this.request('/project', 'get', __classPrivateFieldGet(this, _Project_instances, "m", _Project_baseUrlThunk).bind(this))(request);
|
|
1113
1134
|
}
|
|
1114
1135
|
/**
|
|
1115
|
-
* Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/services/project/) is the logically-isolated instance of Oystehr that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/services/fhir/basics/), [Applications](https://docs.oystehr.com/services/app/applications/), [Users](https://docs.oystehr.com/services/app/users/), etc .
|
|
1136
|
+
* Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/oystehr/services/project/) is the logically-isolated instance of Oystehr that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .
|
|
1116
1137
|
*
|
|
1117
1138
|
* Access Policy Action: `Project:UpdateProjectInfo`
|
|
1118
1139
|
* Access Policy Resource: `Project:Settings`
|
|
1119
1140
|
*/
|
|
1120
1141
|
update(params, request) {
|
|
1121
|
-
return this.request('/project', 'patch', this.
|
|
1142
|
+
return this.request('/project', 'patch', __classPrivateFieldGet(this, _Project_instances, "m", _Project_baseUrlThunk).bind(this))(params, request);
|
|
1122
1143
|
}
|
|
1123
1144
|
}
|
|
1145
|
+
_Project_instances = new WeakSet(), _Project_baseUrlThunk = function _Project_baseUrlThunk() {
|
|
1146
|
+
var _a, _b;
|
|
1147
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1148
|
+
};
|
|
1124
1149
|
|
|
1125
1150
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1151
|
+
var _Rcm_instances, _Rcm_baseUrlThunk;
|
|
1126
1152
|
class Rcm extends SDKResource {
|
|
1127
1153
|
constructor(config) {
|
|
1128
1154
|
super(config);
|
|
1129
|
-
|
|
1130
|
-
baseUrlThunk() {
|
|
1131
|
-
var _a, _b;
|
|
1132
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1155
|
+
_Rcm_instances.add(this);
|
|
1133
1156
|
}
|
|
1134
1157
|
/**
|
|
1135
|
-
* Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).
|
|
1158
|
+
* Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).
|
|
1136
1159
|
*
|
|
1137
1160
|
* Access Policy Action: `RCM:CheckInsuranceEligibility`
|
|
1138
1161
|
* Access Policy Resource: `RCM:InsuranceEligibility`
|
|
@@ -1141,10 +1164,10 @@ class Rcm extends SDKResource {
|
|
|
1141
1164
|
* Access Policy Resource: `FHIR:CoverageEligibilityResponse`
|
|
1142
1165
|
*/
|
|
1143
1166
|
eligibilityCheck(params, request) {
|
|
1144
|
-
return this.request('/rcm/eligibility-check', 'post', this.
|
|
1167
|
+
return this.request('/rcm/eligibility-check', 'post', __classPrivateFieldGet(this, _Rcm_instances, "m", _Rcm_baseUrlThunk).bind(this))(params, request);
|
|
1145
1168
|
}
|
|
1146
1169
|
/**
|
|
1147
|
-
* Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
1170
|
+
* Check [Validate Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
|
|
1148
1171
|
*
|
|
1149
1172
|
* Access Policy Action: `RCM:ValidateProfessionalClaim`
|
|
1150
1173
|
* Access Policy Resource: `RCM:Claim`
|
|
@@ -1153,10 +1176,10 @@ class Rcm extends SDKResource {
|
|
|
1153
1176
|
* Access Policy Resource: `FHIR:AuditEvent`
|
|
1154
1177
|
*/
|
|
1155
1178
|
validateProfessionalClaim(params, request) {
|
|
1156
|
-
return this.request('/rcm/professional-claim/validate', 'post', this.
|
|
1179
|
+
return this.request('/rcm/professional-claim/validate', 'post', __classPrivateFieldGet(this, _Rcm_instances, "m", _Rcm_baseUrlThunk).bind(this))(params, request);
|
|
1157
1180
|
}
|
|
1158
1181
|
/**
|
|
1159
|
-
* Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
1182
|
+
* Check [Submit Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
|
|
1160
1183
|
*
|
|
1161
1184
|
* Access Policy Action: `RCM:SubmitProfessionalClaim`
|
|
1162
1185
|
* Access Policy Resource: `RCM:Claim`
|
|
@@ -1168,75 +1191,79 @@ class Rcm extends SDKResource {
|
|
|
1168
1191
|
* Access Policy Resource: `FHIR:Claim`
|
|
1169
1192
|
*/
|
|
1170
1193
|
submitProfessionalClaim(params, request) {
|
|
1171
|
-
return this.request('/rcm/professional-claim/submit', 'post', this.
|
|
1194
|
+
return this.request('/rcm/professional-claim/submit', 'post', __classPrivateFieldGet(this, _Rcm_instances, "m", _Rcm_baseUrlThunk).bind(this))(params, request);
|
|
1172
1195
|
}
|
|
1173
1196
|
}
|
|
1197
|
+
_Rcm_instances = new WeakSet(), _Rcm_baseUrlThunk = function _Rcm_baseUrlThunk() {
|
|
1198
|
+
var _a, _b;
|
|
1199
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1200
|
+
};
|
|
1174
1201
|
|
|
1175
1202
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1203
|
+
var _Role_instances, _Role_baseUrlThunk;
|
|
1176
1204
|
class Role extends SDKResource {
|
|
1177
1205
|
constructor(config) {
|
|
1178
1206
|
super(config);
|
|
1179
|
-
|
|
1180
|
-
baseUrlThunk() {
|
|
1181
|
-
var _a, _b;
|
|
1182
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1207
|
+
_Role_instances.add(this);
|
|
1183
1208
|
}
|
|
1184
1209
|
/**
|
|
1185
|
-
* Get a list of all Roles. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
1210
|
+
* Get a list of all Roles. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
|
|
1186
1211
|
*
|
|
1187
1212
|
* Access Policy Action: `IAM:ListAllRoles`
|
|
1188
1213
|
* Access Policy Resource: `IAM:Role`
|
|
1189
1214
|
*/
|
|
1190
1215
|
list(request) {
|
|
1191
|
-
return this.request('/iam/role', 'get', this.
|
|
1216
|
+
return this.request('/iam/role', 'get', __classPrivateFieldGet(this, _Role_instances, "m", _Role_baseUrlThunk).bind(this))(request);
|
|
1192
1217
|
}
|
|
1193
1218
|
/**
|
|
1194
|
-
* Create a new Role. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
1219
|
+
* Create a new Role. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
|
|
1195
1220
|
*
|
|
1196
1221
|
* Access Policy Action: `IAM:CreateRole`
|
|
1197
1222
|
* Access Policy Resource: `IAM:Role`
|
|
1198
1223
|
*/
|
|
1199
1224
|
create(params, request) {
|
|
1200
|
-
return this.request('/iam/role', 'post', this.
|
|
1225
|
+
return this.request('/iam/role', 'post', __classPrivateFieldGet(this, _Role_instances, "m", _Role_baseUrlThunk).bind(this))(params, request);
|
|
1201
1226
|
}
|
|
1202
1227
|
/**
|
|
1203
|
-
* Get the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
1228
|
+
* Get the Role with the provided ID. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
|
|
1204
1229
|
*
|
|
1205
1230
|
* Access Policy Action: `IAM:GetRole`
|
|
1206
1231
|
* Access Policy Resource: `IAM:Role`
|
|
1207
1232
|
*/
|
|
1208
1233
|
get(params, request) {
|
|
1209
|
-
return this.request('/iam/role/{roleId}', 'get', this.
|
|
1234
|
+
return this.request('/iam/role/{roleId}', 'get', __classPrivateFieldGet(this, _Role_instances, "m", _Role_baseUrlThunk).bind(this))(params, request);
|
|
1210
1235
|
}
|
|
1211
1236
|
/**
|
|
1212
|
-
* Update the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
1237
|
+
* Update the Role with the provided ID. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
|
|
1213
1238
|
*
|
|
1214
1239
|
* Access Policy Action: `IAM:UpdateRole`
|
|
1215
1240
|
* Access Policy Resource: `IAM:Role`
|
|
1216
1241
|
*/
|
|
1217
1242
|
update(params, request) {
|
|
1218
|
-
return this.request('/iam/role/{roleId}', 'patch', this.
|
|
1243
|
+
return this.request('/iam/role/{roleId}', 'patch', __classPrivateFieldGet(this, _Role_instances, "m", _Role_baseUrlThunk).bind(this))(params, request);
|
|
1219
1244
|
}
|
|
1220
1245
|
/**
|
|
1221
|
-
* Delete the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
|
|
1246
|
+
* Delete the Role with the provided ID. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
|
|
1222
1247
|
*
|
|
1223
1248
|
* Access Policy Action: `IAM:DeleteRole`
|
|
1224
1249
|
* Access Policy Resource: `IAM:Role`
|
|
1225
1250
|
* Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project
|
|
1226
1251
|
*/
|
|
1227
1252
|
delete(params, request) {
|
|
1228
|
-
return this.request('/iam/role/{roleId}', 'delete', this.
|
|
1253
|
+
return this.request('/iam/role/{roleId}', 'delete', __classPrivateFieldGet(this, _Role_instances, "m", _Role_baseUrlThunk).bind(this))(params, request);
|
|
1229
1254
|
}
|
|
1230
1255
|
}
|
|
1256
|
+
_Role_instances = new WeakSet(), _Role_baseUrlThunk = function _Role_baseUrlThunk() {
|
|
1257
|
+
var _a, _b;
|
|
1258
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1259
|
+
};
|
|
1231
1260
|
|
|
1232
1261
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1262
|
+
var _Secret_instances, _Secret_baseUrlThunk;
|
|
1233
1263
|
class Secret extends SDKResource {
|
|
1234
1264
|
constructor(config) {
|
|
1235
1265
|
super(config);
|
|
1236
|
-
|
|
1237
|
-
baseUrlThunk() {
|
|
1238
|
-
var _a, _b;
|
|
1239
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1266
|
+
_Secret_instances.add(this);
|
|
1240
1267
|
}
|
|
1241
1268
|
/**
|
|
1242
1269
|
* Get a list of all secrets in the Project.
|
|
@@ -1245,7 +1272,7 @@ class Secret extends SDKResource {
|
|
|
1245
1272
|
* Access Policy Resource: `Zambda:Secret`
|
|
1246
1273
|
*/
|
|
1247
1274
|
list(request) {
|
|
1248
|
-
return this.request('/secret', 'get', this.
|
|
1275
|
+
return this.request('/secret', 'get', __classPrivateFieldGet(this, _Secret_instances, "m", _Secret_baseUrlThunk).bind(this))(request);
|
|
1249
1276
|
}
|
|
1250
1277
|
/**
|
|
1251
1278
|
* Create a secret for a project. If the secret is already defined, update it.
|
|
@@ -1254,7 +1281,7 @@ class Secret extends SDKResource {
|
|
|
1254
1281
|
* Access Policy Resource: `Zambda:Secret`
|
|
1255
1282
|
*/
|
|
1256
1283
|
set(params, request) {
|
|
1257
|
-
return this.request('/secret', 'post', this.
|
|
1284
|
+
return this.request('/secret', 'post', __classPrivateFieldGet(this, _Secret_instances, "m", _Secret_baseUrlThunk).bind(this))(params, request);
|
|
1258
1285
|
}
|
|
1259
1286
|
/**
|
|
1260
1287
|
* Get the secret with the provided name.
|
|
@@ -1263,7 +1290,7 @@ class Secret extends SDKResource {
|
|
|
1263
1290
|
* Access Policy Resource: `Zambda:Secret`
|
|
1264
1291
|
*/
|
|
1265
1292
|
get(params, request) {
|
|
1266
|
-
return this.request('/secret/{name}', 'get', this.
|
|
1293
|
+
return this.request('/secret/{name}', 'get', __classPrivateFieldGet(this, _Secret_instances, "m", _Secret_baseUrlThunk).bind(this))(params, request);
|
|
1267
1294
|
}
|
|
1268
1295
|
/**
|
|
1269
1296
|
* Delete the secret with the provided name.
|
|
@@ -1272,21 +1299,23 @@ class Secret extends SDKResource {
|
|
|
1272
1299
|
* Access Policy Resource: `Zambda:Secret`
|
|
1273
1300
|
*/
|
|
1274
1301
|
delete(params, request) {
|
|
1275
|
-
return this.request('/secret/{name}', 'delete', this.
|
|
1302
|
+
return this.request('/secret/{name}', 'delete', __classPrivateFieldGet(this, _Secret_instances, "m", _Secret_baseUrlThunk).bind(this))(params, request);
|
|
1276
1303
|
}
|
|
1277
1304
|
}
|
|
1305
|
+
_Secret_instances = new WeakSet(), _Secret_baseUrlThunk = function _Secret_baseUrlThunk() {
|
|
1306
|
+
var _a, _b;
|
|
1307
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1308
|
+
};
|
|
1278
1309
|
|
|
1279
1310
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1311
|
+
var _Telemed_instances, _Telemed_baseUrlThunk;
|
|
1280
1312
|
class Telemed extends SDKResource {
|
|
1281
1313
|
constructor(config) {
|
|
1282
1314
|
super(config);
|
|
1283
|
-
|
|
1284
|
-
baseUrlThunk() {
|
|
1285
|
-
var _a, _b;
|
|
1286
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1315
|
+
_Telemed_instances.add(this);
|
|
1287
1316
|
}
|
|
1288
1317
|
/**
|
|
1289
|
-
* Create a [telemedicine video meeting](https://docs.oystehr.com/services/telemed/).
|
|
1318
|
+
* Create a [telemedicine video meeting](https://docs.oystehr.com/oystehr/services/telemed/).
|
|
1290
1319
|
*
|
|
1291
1320
|
* Access Policy Requirements:
|
|
1292
1321
|
* Action: `Telemed:CreateMeeting`
|
|
@@ -1297,7 +1326,7 @@ class Telemed extends SDKResource {
|
|
|
1297
1326
|
* Access Policy Resource: `FHIR:Encounter`
|
|
1298
1327
|
*/
|
|
1299
1328
|
createMeeting(params, request) {
|
|
1300
|
-
return this.request('/telemed/v2/meeting', 'post', this.
|
|
1329
|
+
return this.request('/telemed/v2/meeting', 'post', __classPrivateFieldGet(this, _Telemed_instances, "m", _Telemed_baseUrlThunk).bind(this))(params, request);
|
|
1301
1330
|
}
|
|
1302
1331
|
/**
|
|
1303
1332
|
* Get Meeting and Attendee objects necessary to join a telemedicine video meeting.
|
|
@@ -1310,21 +1339,23 @@ class Telemed extends SDKResource {
|
|
|
1310
1339
|
* Access Policy Resource: `Telemed:Meeting`
|
|
1311
1340
|
*/
|
|
1312
1341
|
joinMeeting(params, request) {
|
|
1313
|
-
return this.request('/telemed/v2/meeting/{encounterId}/join', 'get', this.
|
|
1342
|
+
return this.request('/telemed/v2/meeting/{encounterId}/join', 'get', __classPrivateFieldGet(this, _Telemed_instances, "m", _Telemed_baseUrlThunk).bind(this))(params, request);
|
|
1314
1343
|
}
|
|
1315
1344
|
}
|
|
1345
|
+
_Telemed_instances = new WeakSet(), _Telemed_baseUrlThunk = function _Telemed_baseUrlThunk() {
|
|
1346
|
+
var _a, _b;
|
|
1347
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1348
|
+
};
|
|
1316
1349
|
|
|
1317
1350
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1351
|
+
var _TransactionalSMS_instances, _TransactionalSMS_baseUrlThunk;
|
|
1318
1352
|
class TransactionalSMS extends SDKResource {
|
|
1319
1353
|
constructor(config) {
|
|
1320
1354
|
super(config);
|
|
1321
|
-
|
|
1322
|
-
baseUrlThunk() {
|
|
1323
|
-
var _a, _b;
|
|
1324
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1355
|
+
_TransactionalSMS_instances.add(this);
|
|
1325
1356
|
}
|
|
1326
1357
|
/**
|
|
1327
|
-
* Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
|
|
1358
|
+
* Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/oystehr/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/oystehr/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
|
|
1328
1359
|
*
|
|
1329
1360
|
* Access Policy Requirements:
|
|
1330
1361
|
* Action: `Messaging:SendTransactionalSMS`
|
|
@@ -1339,101 +1370,109 @@ class TransactionalSMS extends SDKResource {
|
|
|
1339
1370
|
* Access Policy Resource: `FHIR:Patient`
|
|
1340
1371
|
*/
|
|
1341
1372
|
send(params, request) {
|
|
1342
|
-
return this.request('/messaging/transactional-sms/send', 'post', this.
|
|
1373
|
+
return this.request('/messaging/transactional-sms/send', 'post', __classPrivateFieldGet(this, _TransactionalSMS_instances, "m", _TransactionalSMS_baseUrlThunk).bind(this))(params, request);
|
|
1343
1374
|
}
|
|
1344
1375
|
}
|
|
1376
|
+
_TransactionalSMS_instances = new WeakSet(), _TransactionalSMS_baseUrlThunk = function _TransactionalSMS_baseUrlThunk() {
|
|
1377
|
+
var _a, _b;
|
|
1378
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1379
|
+
};
|
|
1345
1380
|
|
|
1346
1381
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1382
|
+
var _User_instances, _User_baseUrlThunk;
|
|
1347
1383
|
class User extends SDKResource {
|
|
1348
1384
|
constructor(config) {
|
|
1349
1385
|
super(config);
|
|
1350
|
-
|
|
1351
|
-
baseUrlThunk() {
|
|
1352
|
-
var _a, _b;
|
|
1353
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1386
|
+
_User_instances.add(this);
|
|
1354
1387
|
}
|
|
1355
1388
|
/**
|
|
1356
|
-
* Get your own User details. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1389
|
+
* Get your own User details. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1357
1390
|
*
|
|
1358
1391
|
* Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.
|
|
1359
1392
|
*/
|
|
1360
1393
|
me(request) {
|
|
1361
|
-
return this.request('/user/me', 'get', this.
|
|
1394
|
+
return this.request('/user/me', 'get', __classPrivateFieldGet(this, _User_instances, "m", _User_baseUrlThunk).bind(this))(request);
|
|
1362
1395
|
}
|
|
1363
1396
|
/**
|
|
1364
|
-
* Get the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1397
|
+
* Get the User with the provided ID. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1365
1398
|
*
|
|
1366
1399
|
* Access Policy Action: `App:GetUser`
|
|
1367
1400
|
* Access Policy Resource: `App:User`
|
|
1368
1401
|
*/
|
|
1369
1402
|
get(params, request) {
|
|
1370
|
-
return this.request('/user/{id}', 'get', this.
|
|
1403
|
+
return this.request('/user/{id}', 'get', __classPrivateFieldGet(this, _User_instances, "m", _User_baseUrlThunk).bind(this))(params, request);
|
|
1371
1404
|
}
|
|
1372
1405
|
/**
|
|
1373
|
-
* Update the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1406
|
+
* Update the User with the provided ID. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1374
1407
|
*
|
|
1375
1408
|
* Access Policy Action: `App:UpdateUser`
|
|
1376
1409
|
* Access Policy Resource: `App:User`
|
|
1377
1410
|
*/
|
|
1378
1411
|
update(params, request) {
|
|
1379
|
-
return this.request('/user/{id}', 'patch', this.
|
|
1412
|
+
return this.request('/user/{id}', 'patch', __classPrivateFieldGet(this, _User_instances, "m", _User_baseUrlThunk).bind(this))(params, request);
|
|
1380
1413
|
}
|
|
1381
1414
|
/**
|
|
1382
|
-
* Delete the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1415
|
+
* Delete the User with the provided ID. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1383
1416
|
*
|
|
1384
1417
|
* Access Policy Action: `App:DeleteUser`
|
|
1385
1418
|
* Access Policy Resource: `App:User`
|
|
1386
1419
|
*/
|
|
1387
1420
|
delete(params, request) {
|
|
1388
|
-
return this.request('/user/{id}', 'delete', this.
|
|
1421
|
+
return this.request('/user/{id}', 'delete', __classPrivateFieldGet(this, _User_instances, "m", _User_baseUrlThunk).bind(this))(params, request);
|
|
1389
1422
|
}
|
|
1390
1423
|
/**
|
|
1391
|
-
* Invite a User to the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1424
|
+
* Invite a User to the Project. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1392
1425
|
*
|
|
1393
1426
|
* Access Policy Action: `App:CreateUser`
|
|
1394
1427
|
* Access Policy Resource: `App:User`
|
|
1395
1428
|
*/
|
|
1396
1429
|
invite(params, request) {
|
|
1397
|
-
return this.request('/user/invite', 'post', this.
|
|
1430
|
+
return this.request('/user/invite', 'post', __classPrivateFieldGet(this, _User_instances, "m", _User_baseUrlThunk).bind(this))(params, request);
|
|
1398
1431
|
}
|
|
1399
1432
|
/**
|
|
1400
1433
|
* DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.
|
|
1401
1434
|
*
|
|
1402
|
-
* Get all Users in the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1435
|
+
* Get all Users in the Project. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1403
1436
|
*
|
|
1404
1437
|
* Access Policy Action: `App:ListAllUsers`
|
|
1405
1438
|
* Access Policy Resource: `App:User`
|
|
1406
1439
|
*/
|
|
1407
1440
|
list(request) {
|
|
1408
|
-
return this.request('/user', 'get', this.
|
|
1441
|
+
return this.request('/user', 'get', __classPrivateFieldGet(this, _User_instances, "m", _User_baseUrlThunk).bind(this))(request);
|
|
1409
1442
|
}
|
|
1410
1443
|
/**
|
|
1411
|
-
* Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1444
|
+
* Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
1412
1445
|
*
|
|
1413
1446
|
* Access Policy Action: `Project:ListAllUsers`
|
|
1414
1447
|
* Access Policy Resource: `Project:Settings`
|
|
1415
1448
|
*/
|
|
1416
1449
|
listV2(params, request) {
|
|
1417
|
-
return this.request('/user/v2/list', 'get', this.
|
|
1450
|
+
return this.request('/user/v2/list', 'get', __classPrivateFieldGet(this, _User_instances, "m", _User_baseUrlThunk).bind(this))(params, request);
|
|
1418
1451
|
}
|
|
1419
1452
|
}
|
|
1453
|
+
_User_instances = new WeakSet(), _User_baseUrlThunk = function _User_baseUrlThunk() {
|
|
1454
|
+
var _a, _b;
|
|
1455
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1456
|
+
};
|
|
1420
1457
|
|
|
1421
1458
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1459
|
+
var _Version_instances, _Version_baseUrlThunk;
|
|
1422
1460
|
class Version extends SDKResource {
|
|
1423
1461
|
constructor(config) {
|
|
1424
1462
|
super(config);
|
|
1425
|
-
|
|
1426
|
-
baseUrlThunk() {
|
|
1427
|
-
var _a, _b;
|
|
1428
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1463
|
+
_Version_instances.add(this);
|
|
1429
1464
|
}
|
|
1430
1465
|
/**
|
|
1431
1466
|
* Get project API version. This endpoint is public so there are no access policy requirements.
|
|
1432
1467
|
*/
|
|
1433
1468
|
get(request) {
|
|
1434
|
-
return this.request('/version', 'get', this.
|
|
1469
|
+
return this.request('/version', 'get', __classPrivateFieldGet(this, _Version_instances, "m", _Version_baseUrlThunk).bind(this))(request);
|
|
1435
1470
|
}
|
|
1436
1471
|
}
|
|
1472
|
+
_Version_instances = new WeakSet(), _Version_baseUrlThunk = function _Version_baseUrlThunk() {
|
|
1473
|
+
var _a, _b;
|
|
1474
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1475
|
+
};
|
|
1437
1476
|
|
|
1438
1477
|
function baseUrlThunk$1() {
|
|
1439
1478
|
var _a, _b;
|
|
@@ -1516,9 +1555,11 @@ function getPresignedUrlForZ3Url(params) {
|
|
|
1516
1555
|
}
|
|
1517
1556
|
|
|
1518
1557
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1558
|
+
var _Z3_instances, _Z3_baseUrlThunk;
|
|
1519
1559
|
class Z3 extends SDKResource {
|
|
1520
1560
|
constructor(config) {
|
|
1521
1561
|
super(config);
|
|
1562
|
+
_Z3_instances.add(this);
|
|
1522
1563
|
/**
|
|
1523
1564
|
* Uploads a file to the bucket and key. Files should be Blobs.
|
|
1524
1565
|
* @param params upload file params
|
|
@@ -1537,65 +1578,65 @@ class Z3 extends SDKResource {
|
|
|
1537
1578
|
*/
|
|
1538
1579
|
this.getPresignedUrlForZ3Url = getPresignedUrlForZ3Url;
|
|
1539
1580
|
}
|
|
1540
|
-
baseUrlThunk() {
|
|
1541
|
-
var _a, _b;
|
|
1542
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1543
|
-
}
|
|
1544
1581
|
/**
|
|
1545
|
-
* List all Z3 Buckets. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1582
|
+
* List all Z3 Buckets. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1546
1583
|
*
|
|
1547
1584
|
* Access Policy Action: `Z3:ListBuckets`
|
|
1548
1585
|
* Access Policy Resource: `Z3:BucketName`
|
|
1549
1586
|
*/
|
|
1550
1587
|
listBuckets(request) {
|
|
1551
|
-
return this.request('/z3', 'get', this.
|
|
1588
|
+
return this.request('/z3', 'get', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(request);
|
|
1552
1589
|
}
|
|
1553
1590
|
/**
|
|
1554
|
-
* Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1591
|
+
* Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1555
1592
|
*
|
|
1556
1593
|
* Access Policy Action: `Z3:CreateBucket`
|
|
1557
|
-
* Access Policy Resource: `Z3
|
|
1594
|
+
* Access Policy Resource: `Z3:*`
|
|
1558
1595
|
*/
|
|
1559
1596
|
createBucket(params, request) {
|
|
1560
|
-
return this.request('/z3/{bucketName}', 'put', this.
|
|
1597
|
+
return this.request('/z3/{bucketName}', 'put', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(params, request);
|
|
1561
1598
|
}
|
|
1562
1599
|
/**
|
|
1563
|
-
* Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1600
|
+
* Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1564
1601
|
*
|
|
1565
1602
|
* Access Policy Action: `Z3:DeleteBucket`
|
|
1566
1603
|
* Access Policy Resource: `Z3:BucketName`
|
|
1567
1604
|
*/
|
|
1568
1605
|
deleteBucket(params, request) {
|
|
1569
|
-
return this.request('/z3/{bucketName}', 'delete', this.
|
|
1606
|
+
return this.request('/z3/{bucketName}', 'delete', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(params, request);
|
|
1570
1607
|
}
|
|
1571
1608
|
/**
|
|
1572
|
-
* List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1609
|
+
* List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1573
1610
|
*
|
|
1574
1611
|
* Access Policy Action: `Z3:ListObjects`
|
|
1575
1612
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
1576
1613
|
*/
|
|
1577
1614
|
listObjects(params, request) {
|
|
1578
|
-
return this.request('/z3/{bucketName}/{objectPath+}', 'get', this.
|
|
1615
|
+
return this.request('/z3/{bucketName}/{objectPath+}', 'get', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(params, request);
|
|
1579
1616
|
}
|
|
1580
1617
|
/**
|
|
1581
|
-
* Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1618
|
+
* Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1582
1619
|
*
|
|
1583
1620
|
* Access Policy Action: `Z3:PutObject` or `Z3:GetObject`
|
|
1584
1621
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
1585
1622
|
*/
|
|
1586
1623
|
getPresignedUrl(params, request) {
|
|
1587
|
-
return this.request('/z3/{bucketName}/{objectPath+}', 'post', this.
|
|
1624
|
+
return this.request('/z3/{bucketName}/{objectPath+}', 'post', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(params, request);
|
|
1588
1625
|
}
|
|
1589
1626
|
/**
|
|
1590
|
-
* Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1627
|
+
* Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
1591
1628
|
*
|
|
1592
1629
|
* Access Policy Action: `Z3:DeleteObject`
|
|
1593
1630
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
1594
1631
|
*/
|
|
1595
1632
|
deleteObject(params, request) {
|
|
1596
|
-
return this.request('/z3/{bucketName}/{objectPath+}', 'delete', this.
|
|
1633
|
+
return this.request('/z3/{bucketName}/{objectPath+}', 'delete', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(params, request);
|
|
1597
1634
|
}
|
|
1598
1635
|
}
|
|
1636
|
+
_Z3_instances = new WeakSet(), _Z3_baseUrlThunk = function _Z3_baseUrlThunk() {
|
|
1637
|
+
var _a, _b;
|
|
1638
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1639
|
+
};
|
|
1599
1640
|
|
|
1600
1641
|
function baseUrlThunk() {
|
|
1601
1642
|
var _a, _b;
|
|
@@ -1612,125 +1653,129 @@ function uploadFile({ id, file, filename, }) {
|
|
|
1612
1653
|
}
|
|
1613
1654
|
|
|
1614
1655
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1656
|
+
var _Zambda_instances, _Zambda_baseUrlThunk;
|
|
1615
1657
|
class Zambda extends SDKResource {
|
|
1616
1658
|
constructor(config) {
|
|
1617
1659
|
super(config);
|
|
1660
|
+
_Zambda_instances.add(this);
|
|
1618
1661
|
this.uploadFile = uploadFile;
|
|
1619
1662
|
}
|
|
1620
|
-
baseUrlThunk() {
|
|
1621
|
-
var _a, _b;
|
|
1622
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1623
|
-
}
|
|
1624
1663
|
/**
|
|
1625
|
-
* Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1664
|
+
* Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1626
1665
|
*
|
|
1627
1666
|
* Access Policy Action: `Zambda:ListAllFunctions`
|
|
1628
1667
|
* Access Policy Resource: `Zambda:Function`
|
|
1629
1668
|
*/
|
|
1630
1669
|
list(request) {
|
|
1631
|
-
return this.request('/zambda', 'get', this.
|
|
1670
|
+
return this.request('/zambda', 'get', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(request);
|
|
1632
1671
|
}
|
|
1633
1672
|
/**
|
|
1634
|
-
* Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1673
|
+
* Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1635
1674
|
*
|
|
1636
1675
|
* Access Policy Action: `Zambda:CreateFunction`
|
|
1637
1676
|
* Access Policy Resource: `Zambda:Function`
|
|
1638
1677
|
*/
|
|
1639
1678
|
create(params, request) {
|
|
1640
|
-
return this.request('/zambda', 'post', this.
|
|
1679
|
+
return this.request('/zambda', 'post', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
1641
1680
|
}
|
|
1642
1681
|
/**
|
|
1643
|
-
* Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1682
|
+
* Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1644
1683
|
*
|
|
1645
1684
|
* Access Policy Action: `Zambda:GetFunction`
|
|
1646
1685
|
* Access Policy Resource: `Zambda:Function`
|
|
1647
1686
|
*/
|
|
1648
1687
|
get(params, request) {
|
|
1649
|
-
return this.request('/zambda/{id}', 'get', this.
|
|
1688
|
+
return this.request('/zambda/{id}', 'get', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
1650
1689
|
}
|
|
1651
1690
|
/**
|
|
1652
|
-
* Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1691
|
+
* Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1653
1692
|
*
|
|
1654
1693
|
* Access Policy Action: `Zambda:UpdateFunction`
|
|
1655
1694
|
* Access Policy Resource: `Zambda:Function`
|
|
1656
1695
|
*/
|
|
1657
1696
|
update(params, request) {
|
|
1658
|
-
return this.request('/zambda/{id}', 'patch', this.
|
|
1697
|
+
return this.request('/zambda/{id}', 'patch', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
1659
1698
|
}
|
|
1660
1699
|
/**
|
|
1661
|
-
* Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1700
|
+
* Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1662
1701
|
*
|
|
1663
1702
|
* Access Policy Action: `Zambda:DeleteFunction`
|
|
1664
1703
|
* Access Policy Resource: `Zambda:Function`
|
|
1665
1704
|
*/
|
|
1666
1705
|
delete(params, request) {
|
|
1667
|
-
return this.request('/zambda/{id}', 'delete', this.
|
|
1706
|
+
return this.request('/zambda/{id}', 'delete', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
1668
1707
|
}
|
|
1669
1708
|
/**
|
|
1670
|
-
* Execute the [Authenticated Zambda Function](https://docs.oystehr.com/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1709
|
+
* Execute the [Authenticated Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1671
1710
|
*
|
|
1672
1711
|
* Access Policy Action: `Zambda:InvokeFunction`
|
|
1673
1712
|
* Access Policy Resource: `Zambda:Function`
|
|
1674
1713
|
*/
|
|
1675
1714
|
execute(params, request) {
|
|
1676
|
-
return this.request('/zambda/{id}/execute', 'post', this.
|
|
1715
|
+
return this.request('/zambda/{id}/execute', 'post', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
1677
1716
|
}
|
|
1678
1717
|
/**
|
|
1679
|
-
* Execute the [Public Zambda Function](https://docs.oystehr.com/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1718
|
+
* Execute the [Public Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1680
1719
|
*
|
|
1681
1720
|
* Execute a zambda that has method http_open. This endpoint is public so there are no access policy requirements.
|
|
1682
1721
|
*/
|
|
1683
1722
|
executePublic(params, request) {
|
|
1684
|
-
return this.request('/zambda/{id}/execute-public', 'post', this.
|
|
1723
|
+
return this.request('/zambda/{id}/execute-public', 'post', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
1685
1724
|
}
|
|
1686
1725
|
/**
|
|
1687
|
-
* Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1726
|
+
* Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1688
1727
|
*
|
|
1689
1728
|
* Access Policy Action: `Zambda:UpdateFunction`
|
|
1690
1729
|
* Access Policy Resource: `Zambda:Function`
|
|
1691
1730
|
*/
|
|
1692
1731
|
s3Upload(params, request) {
|
|
1693
|
-
return this.request('/zambda/{id}/s3-upload', 'post', this.
|
|
1732
|
+
return this.request('/zambda/{id}/s3-upload', 'post', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
1694
1733
|
}
|
|
1695
1734
|
}
|
|
1735
|
+
_Zambda_instances = new WeakSet(), _Zambda_baseUrlThunk = function _Zambda_baseUrlThunk() {
|
|
1736
|
+
var _a, _b;
|
|
1737
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1738
|
+
};
|
|
1696
1739
|
|
|
1697
1740
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1741
|
+
var _ZambdaLogStream_instances, _ZambdaLogStream_baseUrlThunk;
|
|
1698
1742
|
class ZambdaLogStream extends SDKResource {
|
|
1699
1743
|
constructor(config) {
|
|
1700
1744
|
super(config);
|
|
1701
|
-
|
|
1702
|
-
baseUrlThunk() {
|
|
1703
|
-
var _a, _b;
|
|
1704
|
-
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1745
|
+
_ZambdaLogStream_instances.add(this);
|
|
1705
1746
|
}
|
|
1706
1747
|
/**
|
|
1707
|
-
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1748
|
+
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1708
1749
|
*
|
|
1709
1750
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
1710
1751
|
* Access Policy Resource: `Zambda:Function`
|
|
1711
1752
|
*/
|
|
1712
1753
|
list(params, request) {
|
|
1713
|
-
return this.request('/zambda/{id}/logStream', 'post', this.
|
|
1754
|
+
return this.request('/zambda/{id}/logStream', 'post', __classPrivateFieldGet(this, _ZambdaLogStream_instances, "m", _ZambdaLogStream_baseUrlThunk).bind(this))(params, request);
|
|
1714
1755
|
}
|
|
1715
1756
|
/**
|
|
1716
|
-
* Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1757
|
+
* Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1717
1758
|
*
|
|
1718
1759
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
1719
1760
|
* Access Policy Resource: `Zambda:Function`
|
|
1720
1761
|
*/
|
|
1721
1762
|
search(params, request) {
|
|
1722
|
-
return this.request('/zambda/{id}/logStream/search', 'post', this.
|
|
1763
|
+
return this.request('/zambda/{id}/logStream/search', 'post', __classPrivateFieldGet(this, _ZambdaLogStream_instances, "m", _ZambdaLogStream_baseUrlThunk).bind(this))(params, request);
|
|
1723
1764
|
}
|
|
1724
1765
|
/**
|
|
1725
|
-
* Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1766
|
+
* Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
1726
1767
|
*
|
|
1727
1768
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
1728
1769
|
* Access Policy Resource: `Zambda:Function`
|
|
1729
1770
|
*/
|
|
1730
1771
|
get(params, request) {
|
|
1731
|
-
return this.request('/zambda/{id}/logStream/{logStreamName}', 'post', this.
|
|
1772
|
+
return this.request('/zambda/{id}/logStream/{logStreamName}', 'post', __classPrivateFieldGet(this, _ZambdaLogStream_instances, "m", _ZambdaLogStream_baseUrlThunk).bind(this))(params, request);
|
|
1732
1773
|
}
|
|
1733
1774
|
}
|
|
1775
|
+
_ZambdaLogStream_instances = new WeakSet(), _ZambdaLogStream_baseUrlThunk = function _ZambdaLogStream_baseUrlThunk() {
|
|
1776
|
+
var _a, _b;
|
|
1777
|
+
return (_b = (_a = this.config.services) === null || _a === void 0 ? void 0 : _a['projectApiUrl']) !== null && _b !== void 0 ? _b : 'https://project-api.zapehr.com/v1';
|
|
1778
|
+
};
|
|
1734
1779
|
|
|
1735
1780
|
// AUTOGENERATED -- DO NOT EDIT
|
|
1736
1781
|
let Oystehr$1 = class Oystehr {
|
|
@@ -1739,8 +1784,8 @@ let Oystehr$1 = class Oystehr {
|
|
|
1739
1784
|
var _d, _e, _f;
|
|
1740
1785
|
this.config = config;
|
|
1741
1786
|
(_a = (_d = this.config).services) !== null && _a !== void 0 ? _a : (_d.services = {});
|
|
1742
|
-
(_b = (_e = this.config.services)
|
|
1743
|
-
(_c = (_f = this.config.services)
|
|
1787
|
+
(_b = (_e = this.config.services)['projectApiUrl']) !== null && _b !== void 0 ? _b : (_e['projectApiUrl'] = config.projectApiUrl);
|
|
1788
|
+
(_c = (_f = this.config.services)['fhirApiUrl']) !== null && _c !== void 0 ? _c : (_f['fhirApiUrl'] = config.fhirApiUrl);
|
|
1744
1789
|
this.application = new Application(config);
|
|
1745
1790
|
this.developer = new Developer(config);
|
|
1746
1791
|
this.m2m = new M2m(config);
|