@oystehr/sdk 3.0.6 → 3.0.8
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 +28 -12
- package/dist/cjs/client/client.d.ts +1 -1
- package/dist/cjs/config.d.ts +5 -0
- package/dist/cjs/errors/index.d.ts +4 -1
- package/dist/cjs/index.cjs +313 -155
- 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 -5
- package/dist/cjs/resources/classes/charge.d.ts +1 -0
- package/dist/cjs/resources/classes/conversation.d.ts +6 -5
- package/dist/cjs/resources/classes/developer.d.ts +14 -6
- package/dist/cjs/resources/classes/erx.d.ts +9 -0
- package/dist/cjs/resources/classes/fax.d.ts +4 -3
- package/dist/cjs/resources/classes/fhir.d.ts +1 -0
- package/dist/cjs/resources/classes/index.d.ts +1 -1
- package/dist/cjs/resources/classes/m2m.d.ts +15 -7
- package/dist/cjs/resources/classes/messaging.d.ts +1 -0
- package/dist/cjs/resources/classes/paymentMethod.d.ts +1 -0
- package/dist/cjs/resources/classes/project.d.ts +10 -2
- package/dist/cjs/resources/classes/rcm.d.ts +4 -3
- package/dist/cjs/resources/classes/role.d.ts +6 -5
- package/dist/cjs/resources/classes/secret.d.ts +1 -0
- package/dist/cjs/resources/classes/telemed.d.ts +2 -1
- package/dist/cjs/resources/classes/transactionalSMS.d.ts +2 -1
- package/dist/cjs/resources/classes/user.d.ts +15 -7
- package/dist/cjs/resources/classes/version.d.ts +1 -0
- package/dist/cjs/resources/classes/z3.d.ts +7 -6
- package/dist/cjs/resources/classes/zambda.d.ts +9 -8
- package/dist/cjs/resources/classes/zambdaLogStream.d.ts +4 -3
- package/dist/cjs/resources/types/AccessPolicy.d.ts +8 -3
- 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/DeveloperInviteResponse.d.ts +0 -4
- 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/cjs/resources/types/index.d.ts +2 -2
- package/dist/cjs/tests/setup/constants.d.ts +2 -6
- package/dist/cjs/tests/setup/global.d.ts +1 -0
- package/dist/esm/client/client.d.ts +1 -1
- package/dist/esm/client/client.js +4 -4
- package/dist/esm/client/client.js.map +1 -1
- package/dist/esm/config.d.ts +5 -0
- package/dist/esm/errors/index.d.ts +4 -1
- package/dist/esm/errors/index.js +18 -2
- package/dist/esm/errors/index.js.map +1 -1
- 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 -5
- package/dist/esm/resources/classes/application.js +20 -13
- package/dist/esm/resources/classes/application.js.map +1 -1
- package/dist/esm/resources/classes/charge.d.ts +1 -0
- package/dist/esm/resources/classes/charge.js +9 -2
- package/dist/esm/resources/classes/charge.js.map +1 -1
- package/dist/esm/resources/classes/conversation.d.ts +6 -5
- package/dist/esm/resources/classes/conversation.js +17 -10
- package/dist/esm/resources/classes/conversation.js.map +1 -1
- package/dist/esm/resources/classes/developer.d.ts +14 -6
- package/dist/esm/resources/classes/developer.js +18 -11
- package/dist/esm/resources/classes/developer.js.map +1 -1
- package/dist/esm/resources/classes/erx.d.ts +9 -0
- package/dist/esm/resources/classes/erx.js +13 -6
- package/dist/esm/resources/classes/erx.js.map +1 -1
- package/dist/esm/resources/classes/fax.d.ts +4 -3
- package/dist/esm/resources/classes/fax.js +13 -6
- package/dist/esm/resources/classes/fax.js.map +1 -1
- package/dist/esm/resources/classes/fhir.d.ts +1 -0
- package/dist/esm/resources/classes/fhir.js +3 -0
- package/dist/esm/resources/classes/fhir.js.map +1 -1
- package/dist/esm/resources/classes/index.d.ts +1 -1
- package/dist/esm/resources/classes/index.js +6 -1
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/classes/m2m.d.ts +15 -7
- package/dist/esm/resources/classes/m2m.js +20 -13
- package/dist/esm/resources/classes/m2m.js.map +1 -1
- package/dist/esm/resources/classes/messaging.d.ts +1 -0
- package/dist/esm/resources/classes/messaging.js +8 -1
- package/dist/esm/resources/classes/messaging.js.map +1 -1
- package/dist/esm/resources/classes/paymentMethod.d.ts +1 -0
- package/dist/esm/resources/classes/paymentMethod.js +11 -4
- package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
- package/dist/esm/resources/classes/project.d.ts +10 -2
- package/dist/esm/resources/classes/project.js +10 -3
- package/dist/esm/resources/classes/project.js.map +1 -1
- package/dist/esm/resources/classes/rcm.d.ts +4 -3
- package/dist/esm/resources/classes/rcm.js +13 -6
- package/dist/esm/resources/classes/rcm.js.map +1 -1
- package/dist/esm/resources/classes/role.d.ts +6 -5
- package/dist/esm/resources/classes/role.js +17 -10
- package/dist/esm/resources/classes/role.js.map +1 -1
- package/dist/esm/resources/classes/secret.d.ts +1 -0
- package/dist/esm/resources/classes/secret.js +11 -4
- package/dist/esm/resources/classes/secret.js.map +1 -1
- package/dist/esm/resources/classes/telemed.d.ts +2 -1
- package/dist/esm/resources/classes/telemed.js +10 -3
- package/dist/esm/resources/classes/telemed.js.map +1 -1
- package/dist/esm/resources/classes/transactionalSMS.d.ts +2 -1
- package/dist/esm/resources/classes/transactionalSMS.js +9 -2
- package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
- package/dist/esm/resources/classes/user.d.ts +15 -7
- package/dist/esm/resources/classes/user.js +20 -13
- package/dist/esm/resources/classes/user.js.map +1 -1
- package/dist/esm/resources/classes/version.d.ts +1 -0
- package/dist/esm/resources/classes/version.js +8 -1
- package/dist/esm/resources/classes/version.js.map +1 -1
- package/dist/esm/resources/classes/z3-ext.js +9 -5
- package/dist/esm/resources/classes/z3-ext.js.map +1 -1
- package/dist/esm/resources/classes/z3.d.ts +7 -6
- package/dist/esm/resources/classes/z3.js +19 -12
- package/dist/esm/resources/classes/z3.js.map +1 -1
- package/dist/esm/resources/classes/zambda-ext.js +5 -1
- package/dist/esm/resources/classes/zambda-ext.js.map +1 -1
- package/dist/esm/resources/classes/zambda.d.ts +9 -8
- package/dist/esm/resources/classes/zambda.js +23 -16
- package/dist/esm/resources/classes/zambda.js.map +1 -1
- package/dist/esm/resources/classes/zambdaLogStream.d.ts +4 -3
- package/dist/esm/resources/classes/zambdaLogStream.js +13 -6
- 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/ChargeIssueParams.d.ts +1 -1
- package/dist/esm/resources/types/ChargeStatusParams.d.ts +1 -1
- package/dist/esm/resources/types/DeveloperInviteResponse.d.ts +0 -4
- 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/dist/esm/resources/types/index.d.ts +2 -2
- package/dist/esm/tests/setup/constants.d.ts +2 -6
- package/dist/esm/tests/setup/global.d.ts +1 -0
- package/package.json +3 -3
- package/src/client/client.ts +6 -6
- package/src/config.ts +5 -0
- package/src/errors/index.ts +18 -2
- package/src/resources/classes/application.ts +24 -13
- package/src/resources/classes/charge.ts +5 -2
- package/src/resources/classes/conversation.ts +25 -10
- package/src/resources/classes/developer.ts +32 -12
- package/src/resources/classes/erx.ts +31 -6
- package/src/resources/classes/fax.ts +9 -6
- package/src/resources/classes/fhir.ts +3 -0
- package/src/resources/classes/index.ts +5 -2
- package/src/resources/classes/m2m.ts +31 -14
- package/src/resources/classes/messaging.ts +4 -1
- package/src/resources/classes/paymentMethod.ts +7 -4
- package/src/resources/classes/project.ts +24 -4
- package/src/resources/classes/rcm.ts +9 -6
- package/src/resources/classes/role.ts +13 -10
- package/src/resources/classes/secret.ts +7 -4
- package/src/resources/classes/telemed.ts +10 -3
- package/src/resources/classes/transactionalSMS.ts +5 -2
- package/src/resources/classes/user.ts +34 -14
- package/src/resources/classes/version.ts +4 -1
- package/src/resources/classes/z3-ext.ts +10 -4
- package/src/resources/classes/z3.ts +15 -12
- package/src/resources/classes/zambda-ext.ts +5 -1
- package/src/resources/classes/zambda.ts +19 -16
- package/src/resources/classes/zambdaLogStream.ts +13 -6
- package/src/resources/types/AccessPolicy.ts +12 -3
- package/src/resources/types/ChargeIssueParams.ts +1 -1
- package/src/resources/types/ChargeStatusParams.ts +1 -1
- package/src/resources/types/DeveloperInviteResponse.ts +0 -4
- 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/src/resources/types/index.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
|
@@ -1,17 +1,24 @@
|
|
|
1
|
+
import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
|
|
1
2
|
import { SDKResource } from '../../client/client.js';
|
|
2
3
|
|
|
3
4
|
// AUTOGENERATED -- DO NOT EDIT
|
|
5
|
+
var _Messaging_instances, _Messaging_baseUrlThunk;
|
|
4
6
|
class Messaging extends SDKResource {
|
|
5
7
|
constructor(config) {
|
|
6
8
|
super(config);
|
|
9
|
+
_Messaging_instances.add(this);
|
|
7
10
|
}
|
|
8
11
|
/**
|
|
9
12
|
* Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.
|
|
10
13
|
*/
|
|
11
14
|
getMessagingConfig(request) {
|
|
12
|
-
return this.request('/messaging/config', 'get')(request);
|
|
15
|
+
return this.request('/messaging/config', 'get', __classPrivateFieldGet(this, _Messaging_instances, "m", _Messaging_baseUrlThunk).bind(this))(request);
|
|
13
16
|
}
|
|
14
17
|
}
|
|
18
|
+
_Messaging_instances = new WeakSet(), _Messaging_baseUrlThunk = function _Messaging_baseUrlThunk() {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
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';
|
|
21
|
+
};
|
|
15
22
|
|
|
16
23
|
export { Messaging };
|
|
17
24
|
//# sourceMappingURL=messaging.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging.js","sources":["../../../../src/resources/classes/messaging.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { MessagingGetMessagingConfigResponse, OystehrClientRequest } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Messaging extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.\n */\n getMessagingConfig(request?: OystehrClientRequest): Promise<MessagingGetMessagingConfigResponse> {\n return this.request('/messaging/config', 'get')(request);\n }\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"messaging.js","sources":["../../../../src/resources/classes/messaging.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { MessagingGetMessagingConfigResponse, OystehrClientRequest } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Messaging extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.\n */\n getMessagingConfig(request?: OystehrClientRequest): Promise<MessagingGetMessagingConfigResponse> {\n return this.request('/messaging/config', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAMM,MAAO,SAAU,SAAQ,WAAW,CAAA;AACxC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;AAEG;AACH,IAAA,kBAAkB,CAAC,OAA8B,EAAA;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,qDAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KACzF;AACF,CAAA;;;AARG,IAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;AACxF,CAAC;;;;"}
|
|
@@ -2,6 +2,7 @@ import { OystehrClientRequest, PaymentMethodDeleteParams, PaymentMethodListParam
|
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
export declare class PaymentMethod extends SDKResource {
|
|
5
|
+
#private;
|
|
5
6
|
constructor(config: OystehrConfig);
|
|
6
7
|
/**
|
|
7
8
|
* Enter a new credit card or other payment method for the user.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
|
|
1
2
|
import { SDKResource } from '../../client/client.js';
|
|
2
3
|
|
|
3
4
|
// AUTOGENERATED -- DO NOT EDIT
|
|
5
|
+
var _PaymentMethod_instances, _PaymentMethod_baseUrlThunk;
|
|
4
6
|
class PaymentMethod extends SDKResource {
|
|
5
7
|
constructor(config) {
|
|
6
8
|
super(config);
|
|
9
|
+
_PaymentMethod_instances.add(this);
|
|
7
10
|
}
|
|
8
11
|
/**
|
|
9
12
|
* Enter a new credit card or other payment method for the user.
|
|
@@ -21,7 +24,7 @@ class PaymentMethod extends SDKResource {
|
|
|
21
24
|
* Access Policy Resource: `FHIR:Patient`
|
|
22
25
|
*/
|
|
23
26
|
setUp(params, request) {
|
|
24
|
-
return this.request('/payment/payment-method/setup', 'post')(params, request);
|
|
27
|
+
return this.request('/payment/payment-method/setup', 'post', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
27
30
|
* Set a specified payment method for the user as default.
|
|
@@ -39,7 +42,7 @@ class PaymentMethod extends SDKResource {
|
|
|
39
42
|
* Access Policy Resource: `FHIR:Patient`
|
|
40
43
|
*/
|
|
41
44
|
setDefault(params, request) {
|
|
42
|
-
return this.request('/payment/payment-method/set-default', 'post')(params, request);
|
|
45
|
+
return this.request('/payment/payment-method/set-default', 'post', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
|
|
43
46
|
}
|
|
44
47
|
/**
|
|
45
48
|
* Delete a specified payment method for the beneficiary.
|
|
@@ -57,7 +60,7 @@ class PaymentMethod extends SDKResource {
|
|
|
57
60
|
* Access Policy Resource: `FHIR:Patient`
|
|
58
61
|
*/
|
|
59
62
|
delete(params, request) {
|
|
60
|
-
return this.request('/payment/payment-method', 'delete')(params, request);
|
|
63
|
+
return this.request('/payment/payment-method', 'delete', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
|
|
61
64
|
}
|
|
62
65
|
/**
|
|
63
66
|
* List all payment methods for the patient.
|
|
@@ -75,9 +78,13 @@ class PaymentMethod extends SDKResource {
|
|
|
75
78
|
* Access Policy Resource: `FHIR:Patient`
|
|
76
79
|
*/
|
|
77
80
|
list(params, request) {
|
|
78
|
-
return this.request('/payment/payment-method/list', 'post')(params, request);
|
|
81
|
+
return this.request('/payment/payment-method/list', 'post', __classPrivateFieldGet(this, _PaymentMethod_instances, "m", _PaymentMethod_baseUrlThunk).bind(this))(params, request);
|
|
79
82
|
}
|
|
80
83
|
}
|
|
84
|
+
_PaymentMethod_instances = new WeakSet(), _PaymentMethod_baseUrlThunk = function _PaymentMethod_baseUrlThunk() {
|
|
85
|
+
var _a, _b;
|
|
86
|
+
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';
|
|
87
|
+
};
|
|
81
88
|
|
|
82
89
|
export { PaymentMethod };
|
|
83
90
|
//# sourceMappingURL=paymentMethod.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentMethod.js","sources":["../../../../src/resources/classes/paymentMethod.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n PaymentMethodDeleteParams,\n PaymentMethodListParams,\n PaymentMethodListResponse,\n PaymentMethodSetDefaultParams,\n PaymentMethodSetUpParams,\n PaymentMethodSetUpResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class PaymentMethod extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Enter a new credit card or other payment method for the user.\n *\n * Access Policy Requirements:\n * Action: `Payment:Setup`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n setUp(params: PaymentMethodSetUpParams, request?: OystehrClientRequest): Promise<PaymentMethodSetUpResponse> {\n return this.request('/payment/payment-method/setup', 'post')(params, request);\n }\n /**\n * Set a specified payment method for the user as default.\n *\n * Access Policy Requirements:\n * Action: `Payment:SetDefault`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n setDefault(params: PaymentMethodSetDefaultParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/payment/payment-method/set-default', 'post')(params, request);\n }\n /**\n * Delete a specified payment method for the beneficiary.\n *\n * Access Policy Requirements:\n * Action: `Payment:Delete`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n delete(params: PaymentMethodDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/payment/payment-method', 'delete')(params, request);\n }\n /**\n * List all payment methods for the patient.\n *\n * Access Policy Requirements:\n * Action: `Payment:Setup`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n list(params: PaymentMethodListParams, request?: OystehrClientRequest): Promise<PaymentMethodListResponse> {\n return this.request('/payment/payment-method/list', 'post')(params, request);\n }\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"paymentMethod.js","sources":["../../../../src/resources/classes/paymentMethod.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n PaymentMethodDeleteParams,\n PaymentMethodListParams,\n PaymentMethodListResponse,\n PaymentMethodSetDefaultParams,\n PaymentMethodSetUpParams,\n PaymentMethodSetUpResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class PaymentMethod extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Enter a new credit card or other payment method for the user.\n *\n * Access Policy Requirements:\n * Action: `Payment:Setup`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n setUp(params: PaymentMethodSetUpParams, request?: OystehrClientRequest): Promise<PaymentMethodSetUpResponse> {\n return this.request('/payment/payment-method/setup', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Set a specified payment method for the user as default.\n *\n * Access Policy Requirements:\n * Action: `Payment:SetDefault`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n setDefault(params: PaymentMethodSetDefaultParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/payment/payment-method/set-default', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Delete a specified payment method for the beneficiary.\n *\n * Access Policy Requirements:\n * Action: `Payment:Delete`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n delete(params: PaymentMethodDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/payment/payment-method', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * List all payment methods for the patient.\n *\n * Access Policy Requirements:\n * Action: `Payment:Setup`\n * Access Policy Resource: `Payment:PaymentMethod`\n * Actions: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Coverage:*`\n * Action: `FHIR:Read,FHIR:Create,FHIR:Update`\n * Access Policy Resource: `FHIR:Account:*`\n *\n * Also need to be able to read the patients' details. For example:\n * Action: `FHIR:Read`\n * Access Policy Resource: `FHIR:Patient`\n */\n list(params: PaymentMethodListParams, request?: OystehrClientRequest): Promise<PaymentMethodListResponse> {\n return this.request('/payment/payment-method/list', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAcM,MAAO,aAAc,SAAQ,WAAW,CAAA;AAC5C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;;;;;;;;;;;;;AAcG;IACH,KAAK,CAAC,MAAgC,EAAE,OAA8B,EAAA;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,wBAAA,EAAA,GAAA,EAAA,2BAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9G;AACD;;;;;;;;;;;;;;AAcG;IACH,UAAU,CAAC,MAAqC,EAAE,OAA8B,EAAA;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,qCAAqC,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,wBAAA,EAAA,GAAA,EAAA,2BAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpH;AACD;;;;;;;;;;;;;;AAcG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA8B,EAAA;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,QAAQ,EAAE,sBAAA,CAAA,IAAI,EAAA,wBAAA,EAAA,GAAA,EAAA,2BAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1G;AACD;;;;;;;;;;;;;;AAcG;IACH,IAAI,CAAC,MAA+B,EAAE,OAA8B,EAAA;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,8BAA8B,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,wBAAA,EAAA,GAAA,EAAA,2BAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC7G;AACF,CAAA;;;AA1EG,IAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;AACxF,CAAC;;;;"}
|
|
@@ -2,19 +2,27 @@ import { OystehrClientRequest, ProjectGetResponse, ProjectUpdateParams, ProjectU
|
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
export declare class Project extends SDKResource {
|
|
5
|
+
#private;
|
|
5
6
|
constructor(config: OystehrConfig);
|
|
6
7
|
/**
|
|
7
|
-
* 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 .
|
|
8
|
+
* 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 .
|
|
8
9
|
*
|
|
9
10
|
* Access Policy Action: `Project:GetProjectInfo`
|
|
10
11
|
* Access Policy Resource: `Project:Settings`
|
|
11
12
|
*/
|
|
12
13
|
get(request?: OystehrClientRequest): Promise<ProjectGetResponse>;
|
|
13
14
|
/**
|
|
14
|
-
* 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 .
|
|
15
|
+
* 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 .
|
|
15
16
|
*
|
|
16
17
|
* Access Policy Action: `Project:UpdateProjectInfo`
|
|
17
18
|
* Access Policy Resource: `Project:Settings`
|
|
18
19
|
*/
|
|
19
20
|
update(params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* 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 .
|
|
23
|
+
*
|
|
24
|
+
* Access Policy Action: `Project:UpdateProjectInfo`
|
|
25
|
+
* Access Policy Resource: `Project:Settings`
|
|
26
|
+
*/
|
|
27
|
+
update(request?: OystehrClientRequest): Promise<ProjectUpdateResponse>;
|
|
20
28
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
+
import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
|
|
1
2
|
import { SDKResource } from '../../client/client.js';
|
|
2
3
|
|
|
3
4
|
// AUTOGENERATED -- DO NOT EDIT
|
|
5
|
+
var _Project_instances, _Project_baseUrlThunk;
|
|
4
6
|
class Project extends SDKResource {
|
|
5
7
|
constructor(config) {
|
|
6
8
|
super(config);
|
|
9
|
+
_Project_instances.add(this);
|
|
7
10
|
}
|
|
8
11
|
/**
|
|
9
|
-
* 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 .
|
|
12
|
+
* 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 .
|
|
10
13
|
*
|
|
11
14
|
* Access Policy Action: `Project:GetProjectInfo`
|
|
12
15
|
* Access Policy Resource: `Project:Settings`
|
|
13
16
|
*/
|
|
14
17
|
get(request) {
|
|
15
|
-
return this.request('/project', 'get')(request);
|
|
18
|
+
return this.request('/project', 'get', __classPrivateFieldGet(this, _Project_instances, "m", _Project_baseUrlThunk).bind(this))(request);
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
21
|
* 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 .
|
|
@@ -21,9 +24,13 @@ class Project extends SDKResource {
|
|
|
21
24
|
* Access Policy Resource: `Project:Settings`
|
|
22
25
|
*/
|
|
23
26
|
update(params, request) {
|
|
24
|
-
return this.request('/project', 'patch')(params, request);
|
|
27
|
+
return this.request('/project', 'patch', __classPrivateFieldGet(this, _Project_instances, "m", _Project_baseUrlThunk).bind(this))(params, request);
|
|
25
28
|
}
|
|
26
29
|
}
|
|
30
|
+
_Project_instances = new WeakSet(), _Project_baseUrlThunk = function _Project_baseUrlThunk() {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
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';
|
|
33
|
+
};
|
|
27
34
|
|
|
28
35
|
export { Project };
|
|
29
36
|
//# sourceMappingURL=project.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sources":["../../../../src/resources/classes/project.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrClientRequest, ProjectGetResponse, ProjectUpdateParams, ProjectUpdateResponse } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Project extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * 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 .\n *\n * Access Policy Action: `Project:GetProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n get(request?: OystehrClientRequest): Promise<ProjectGetResponse> {\n return this.request('/project', 'get')(request);\n }\n /**\n * 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 .\n *\n * Access Policy Action: `Project:UpdateProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n update(params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse> {\n return this.request('/project', 'patch')(params, request);\n }\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"project.js","sources":["../../../../src/resources/classes/project.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrClientRequest, ProjectGetResponse, ProjectUpdateParams, ProjectUpdateResponse } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Project extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * 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 .\n *\n * Access Policy Action: `Project:GetProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n get(request?: OystehrClientRequest): Promise<ProjectGetResponse> {\n return this.request('/project', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * 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 .\n *\n * Access Policy Action: `Project:UpdateProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n update(params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse>;\n /**\n * 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 .\n *\n * Access Policy Action: `Project:UpdateProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n update(request?: OystehrClientRequest): Promise<ProjectUpdateResponse>;\n /**\n * 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 .\n *\n * Access Policy Action: `Project:UpdateProjectInfo`\n * Access Policy Resource: `Project:Settings`\n */\n update(\n params?: ProjectUpdateParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<ProjectUpdateResponse> {\n return this.request('/project', 'patch', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAMM,MAAO,OAAQ,SAAQ,WAAW,CAAA;AACtC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;;;;AAKG;AACH,IAAA,GAAG,CAAC,OAA8B,EAAA;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,iDAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAChF;AAeD;;;;;AAKG;IACH,MAAM,CACJ,MAAmD,EACnD,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE,sBAAA,CAAA,IAAI,EAAA,kBAAA,EAAA,GAAA,EAAA,qBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1F;AACF,CAAA;;;AArCG,IAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;AACxF,CAAC;;;;"}
|
|
@@ -2,9 +2,10 @@ import { OystehrClientRequest, RcmEligibilityCheckParams, RcmEligibilityCheckRes
|
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
export declare class Rcm extends SDKResource {
|
|
5
|
+
#private;
|
|
5
6
|
constructor(config: OystehrConfig);
|
|
6
7
|
/**
|
|
7
|
-
* Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).
|
|
8
|
+
* Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).
|
|
8
9
|
*
|
|
9
10
|
* Access Policy Action: `RCM:CheckInsuranceEligibility`
|
|
10
11
|
* Access Policy Resource: `RCM:InsuranceEligibility`
|
|
@@ -14,7 +15,7 @@ export declare class Rcm extends SDKResource {
|
|
|
14
15
|
*/
|
|
15
16
|
eligibilityCheck(params: RcmEligibilityCheckParams, request?: OystehrClientRequest): Promise<RcmEligibilityCheckResponse>;
|
|
16
17
|
/**
|
|
17
|
-
* Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
18
|
+
* Check [Validate Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
|
|
18
19
|
*
|
|
19
20
|
* Access Policy Action: `RCM:ValidateProfessionalClaim`
|
|
20
21
|
* Access Policy Resource: `RCM:Claim`
|
|
@@ -24,7 +25,7 @@ export declare class Rcm extends SDKResource {
|
|
|
24
25
|
*/
|
|
25
26
|
validateProfessionalClaim(params: RcmValidateProfessionalClaimParams, request?: OystehrClientRequest): Promise<RcmValidateProfessionalClaimResponse>;
|
|
26
27
|
/**
|
|
27
|
-
* Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
28
|
+
* Check [Submit Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
|
|
28
29
|
*
|
|
29
30
|
* Access Policy Action: `RCM:SubmitProfessionalClaim`
|
|
30
31
|
* Access Policy Resource: `RCM:Claim`
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
|
|
1
2
|
import { SDKResource } from '../../client/client.js';
|
|
2
3
|
|
|
3
4
|
// AUTOGENERATED -- DO NOT EDIT
|
|
5
|
+
var _Rcm_instances, _Rcm_baseUrlThunk;
|
|
4
6
|
class Rcm extends SDKResource {
|
|
5
7
|
constructor(config) {
|
|
6
8
|
super(config);
|
|
9
|
+
_Rcm_instances.add(this);
|
|
7
10
|
}
|
|
8
11
|
/**
|
|
9
|
-
* Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).
|
|
12
|
+
* Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).
|
|
10
13
|
*
|
|
11
14
|
* Access Policy Action: `RCM:CheckInsuranceEligibility`
|
|
12
15
|
* Access Policy Resource: `RCM:InsuranceEligibility`
|
|
@@ -15,10 +18,10 @@ class Rcm extends SDKResource {
|
|
|
15
18
|
* Access Policy Resource: `FHIR:CoverageEligibilityResponse`
|
|
16
19
|
*/
|
|
17
20
|
eligibilityCheck(params, request) {
|
|
18
|
-
return this.request('/rcm/eligibility-check', 'post')(params, request);
|
|
21
|
+
return this.request('/rcm/eligibility-check', 'post', __classPrivateFieldGet(this, _Rcm_instances, "m", _Rcm_baseUrlThunk).bind(this))(params, request);
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
21
|
-
* Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
24
|
+
* Check [Validate Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
|
|
22
25
|
*
|
|
23
26
|
* Access Policy Action: `RCM:ValidateProfessionalClaim`
|
|
24
27
|
* Access Policy Resource: `RCM:Claim`
|
|
@@ -27,10 +30,10 @@ class Rcm extends SDKResource {
|
|
|
27
30
|
* Access Policy Resource: `FHIR:AuditEvent`
|
|
28
31
|
*/
|
|
29
32
|
validateProfessionalClaim(params, request) {
|
|
30
|
-
return this.request('/rcm/professional-claim/validate', 'post')(params, request);
|
|
33
|
+
return this.request('/rcm/professional-claim/validate', 'post', __classPrivateFieldGet(this, _Rcm_instances, "m", _Rcm_baseUrlThunk).bind(this))(params, request);
|
|
31
34
|
}
|
|
32
35
|
/**
|
|
33
|
-
* Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
36
|
+
* Check [Submit Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
|
|
34
37
|
*
|
|
35
38
|
* Access Policy Action: `RCM:SubmitProfessionalClaim`
|
|
36
39
|
* Access Policy Resource: `RCM:Claim`
|
|
@@ -42,9 +45,13 @@ class Rcm extends SDKResource {
|
|
|
42
45
|
* Access Policy Resource: `FHIR:Claim`
|
|
43
46
|
*/
|
|
44
47
|
submitProfessionalClaim(params, request) {
|
|
45
|
-
return this.request('/rcm/professional-claim/submit', 'post')(params, request);
|
|
48
|
+
return this.request('/rcm/professional-claim/submit', 'post', __classPrivateFieldGet(this, _Rcm_instances, "m", _Rcm_baseUrlThunk).bind(this))(params, request);
|
|
46
49
|
}
|
|
47
50
|
}
|
|
51
|
+
_Rcm_instances = new WeakSet(), _Rcm_baseUrlThunk = function _Rcm_baseUrlThunk() {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
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';
|
|
54
|
+
};
|
|
48
55
|
|
|
49
56
|
export { Rcm };
|
|
50
57
|
//# sourceMappingURL=rcm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rcm.js","sources":["../../../../src/resources/classes/rcm.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n RcmEligibilityCheckParams,\n RcmEligibilityCheckResponse,\n RcmSubmitProfessionalClaimParams,\n RcmSubmitProfessionalClaimResponse,\n RcmValidateProfessionalClaimParams,\n RcmValidateProfessionalClaimResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Rcm extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).\n *\n * Access Policy Action: `RCM:CheckInsuranceEligibility`\n * Access Policy Resource: `RCM:InsuranceEligibility`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:CoverageEligibilityResponse`\n */\n eligibilityCheck(\n params: RcmEligibilityCheckParams,\n request?: OystehrClientRequest\n ): Promise<RcmEligibilityCheckResponse> {\n return this.request('/rcm/eligibility-check', 'post')(params, request);\n }\n /**\n * Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).\n *\n * Access Policy Action: `RCM:ValidateProfessionalClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:AuditEvent`\n */\n validateProfessionalClaim(\n params: RcmValidateProfessionalClaimParams,\n request?: OystehrClientRequest\n ): Promise<RcmValidateProfessionalClaimResponse> {\n return this.request('/rcm/professional-claim/validate', 'post')(params, request);\n }\n /**\n * Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).\n *\n * Access Policy Action: `RCM:SubmitProfessionalClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:AuditEvent`\n *\n * Access Policy Actions: `FHIR:Create, FHIR:Update`\n * Access Policy Resource: `FHIR:Claim`\n */\n submitProfessionalClaim(\n params: RcmSubmitProfessionalClaimParams,\n request?: OystehrClientRequest\n ): Promise<RcmSubmitProfessionalClaimResponse> {\n return this.request('/rcm/professional-claim/submit', 'post')(params, request);\n }\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"rcm.js","sources":["../../../../src/resources/classes/rcm.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n RcmEligibilityCheckParams,\n RcmEligibilityCheckResponse,\n RcmSubmitProfessionalClaimParams,\n RcmSubmitProfessionalClaimResponse,\n RcmValidateProfessionalClaimParams,\n RcmValidateProfessionalClaimResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Rcm extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).\n *\n * Access Policy Action: `RCM:CheckInsuranceEligibility`\n * Access Policy Resource: `RCM:InsuranceEligibility`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:CoverageEligibilityResponse`\n */\n eligibilityCheck(\n params: RcmEligibilityCheckParams,\n request?: OystehrClientRequest\n ): Promise<RcmEligibilityCheckResponse> {\n return this.request('/rcm/eligibility-check', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Check [Validate Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).\n *\n * Access Policy Action: `RCM:ValidateProfessionalClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:AuditEvent`\n */\n validateProfessionalClaim(\n params: RcmValidateProfessionalClaimParams,\n request?: OystehrClientRequest\n ): Promise<RcmValidateProfessionalClaimResponse> {\n return this.request('/rcm/professional-claim/validate', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Check [Submit Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).\n *\n * Access Policy Action: `RCM:SubmitProfessionalClaim`\n * Access Policy Resource: `RCM:Claim`\n *\n * Access Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:AuditEvent`\n *\n * Access Policy Actions: `FHIR:Create, FHIR:Update`\n * Access Policy Resource: `FHIR:Claim`\n */\n submitProfessionalClaim(\n params: RcmSubmitProfessionalClaimParams,\n request?: OystehrClientRequest\n ): Promise<RcmSubmitProfessionalClaimResponse> {\n return this.request('/rcm/professional-claim/submit', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAcM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;;;;;;;AAQG;IACH,gBAAgB,CACd,MAAiC,EACjC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACvG;AACD;;;;;;;;AAQG;IACH,yBAAyB,CACvB,MAA0C,EAC1C,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,kCAAkC,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACjH;AACD;;;;;;;;;;;AAWG;IACH,uBAAuB,CACrB,MAAwC,EACxC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,cAAA,EAAA,GAAA,EAAA,iBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/G;AACF,CAAA;;;AAlDG,IAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;AACxF,CAAC;;;;"}
|
|
@@ -2,37 +2,38 @@ import { OystehrClientRequest, RoleCreateParams, RoleCreateResponse, RoleDeleteP
|
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
export declare class Role extends SDKResource {
|
|
5
|
+
#private;
|
|
5
6
|
constructor(config: OystehrConfig);
|
|
6
7
|
/**
|
|
7
|
-
* 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/).
|
|
8
|
+
* 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/).
|
|
8
9
|
*
|
|
9
10
|
* Access Policy Action: `IAM:ListAllRoles`
|
|
10
11
|
* Access Policy Resource: `IAM:Role`
|
|
11
12
|
*/
|
|
12
13
|
list(request?: OystehrClientRequest): Promise<RoleListResponse>;
|
|
13
14
|
/**
|
|
14
|
-
* 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/).
|
|
15
|
+
* 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/).
|
|
15
16
|
*
|
|
16
17
|
* Access Policy Action: `IAM:CreateRole`
|
|
17
18
|
* Access Policy Resource: `IAM:Role`
|
|
18
19
|
*/
|
|
19
20
|
create(params: RoleCreateParams, request?: OystehrClientRequest): Promise<RoleCreateResponse>;
|
|
20
21
|
/**
|
|
21
|
-
* 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/).
|
|
22
|
+
* 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/).
|
|
22
23
|
*
|
|
23
24
|
* Access Policy Action: `IAM:GetRole`
|
|
24
25
|
* Access Policy Resource: `IAM:Role`
|
|
25
26
|
*/
|
|
26
27
|
get(params: RoleGetParams, request?: OystehrClientRequest): Promise<RoleGetResponse>;
|
|
27
28
|
/**
|
|
28
|
-
* 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/).
|
|
29
|
+
* 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/).
|
|
29
30
|
*
|
|
30
31
|
* Access Policy Action: `IAM:UpdateRole`
|
|
31
32
|
* Access Policy Resource: `IAM:Role`
|
|
32
33
|
*/
|
|
33
34
|
update(params: RoleUpdateParams, request?: OystehrClientRequest): Promise<RoleUpdateResponse>;
|
|
34
35
|
/**
|
|
35
|
-
* 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/).
|
|
36
|
+
* 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/).
|
|
36
37
|
*
|
|
37
38
|
* Access Policy Action: `IAM:DeleteRole`
|
|
38
39
|
* Access Policy Resource: `IAM:Role`
|
|
@@ -1,57 +1,64 @@
|
|
|
1
|
+
import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
|
|
1
2
|
import { SDKResource } from '../../client/client.js';
|
|
2
3
|
|
|
3
4
|
// AUTOGENERATED -- DO NOT EDIT
|
|
5
|
+
var _Role_instances, _Role_baseUrlThunk;
|
|
4
6
|
class Role extends SDKResource {
|
|
5
7
|
constructor(config) {
|
|
6
8
|
super(config);
|
|
9
|
+
_Role_instances.add(this);
|
|
7
10
|
}
|
|
8
11
|
/**
|
|
9
|
-
* 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/).
|
|
12
|
+
* 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/).
|
|
10
13
|
*
|
|
11
14
|
* Access Policy Action: `IAM:ListAllRoles`
|
|
12
15
|
* Access Policy Resource: `IAM:Role`
|
|
13
16
|
*/
|
|
14
17
|
list(request) {
|
|
15
|
-
return this.request('/iam/role', 'get')(request);
|
|
18
|
+
return this.request('/iam/role', 'get', __classPrivateFieldGet(this, _Role_instances, "m", _Role_baseUrlThunk).bind(this))(request);
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
|
-
* 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/).
|
|
21
|
+
* 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/).
|
|
19
22
|
*
|
|
20
23
|
* Access Policy Action: `IAM:CreateRole`
|
|
21
24
|
* Access Policy Resource: `IAM:Role`
|
|
22
25
|
*/
|
|
23
26
|
create(params, request) {
|
|
24
|
-
return this.request('/iam/role', 'post')(params, request);
|
|
27
|
+
return this.request('/iam/role', 'post', __classPrivateFieldGet(this, _Role_instances, "m", _Role_baseUrlThunk).bind(this))(params, request);
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
27
|
-
* 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/).
|
|
30
|
+
* 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/).
|
|
28
31
|
*
|
|
29
32
|
* Access Policy Action: `IAM:GetRole`
|
|
30
33
|
* Access Policy Resource: `IAM:Role`
|
|
31
34
|
*/
|
|
32
35
|
get(params, request) {
|
|
33
|
-
return this.request('/iam/role/{roleId}', 'get')(params, request);
|
|
36
|
+
return this.request('/iam/role/{roleId}', 'get', __classPrivateFieldGet(this, _Role_instances, "m", _Role_baseUrlThunk).bind(this))(params, request);
|
|
34
37
|
}
|
|
35
38
|
/**
|
|
36
|
-
* 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/).
|
|
39
|
+
* 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/).
|
|
37
40
|
*
|
|
38
41
|
* Access Policy Action: `IAM:UpdateRole`
|
|
39
42
|
* Access Policy Resource: `IAM:Role`
|
|
40
43
|
*/
|
|
41
44
|
update(params, request) {
|
|
42
|
-
return this.request('/iam/role/{roleId}', 'patch')(params, request);
|
|
45
|
+
return this.request('/iam/role/{roleId}', 'patch', __classPrivateFieldGet(this, _Role_instances, "m", _Role_baseUrlThunk).bind(this))(params, request);
|
|
43
46
|
}
|
|
44
47
|
/**
|
|
45
|
-
* 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/).
|
|
48
|
+
* 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/).
|
|
46
49
|
*
|
|
47
50
|
* Access Policy Action: `IAM:DeleteRole`
|
|
48
51
|
* Access Policy Resource: `IAM:Role`
|
|
49
52
|
* Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project
|
|
50
53
|
*/
|
|
51
54
|
delete(params, request) {
|
|
52
|
-
return this.request('/iam/role/{roleId}', 'delete')(params, request);
|
|
55
|
+
return this.request('/iam/role/{roleId}', 'delete', __classPrivateFieldGet(this, _Role_instances, "m", _Role_baseUrlThunk).bind(this))(params, request);
|
|
53
56
|
}
|
|
54
57
|
}
|
|
58
|
+
_Role_instances = new WeakSet(), _Role_baseUrlThunk = function _Role_baseUrlThunk() {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
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';
|
|
61
|
+
};
|
|
55
62
|
|
|
56
63
|
export { Role };
|
|
57
64
|
//# sourceMappingURL=role.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.js","sources":["../../../../src/resources/classes/role.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n RoleCreateParams,\n RoleCreateResponse,\n RoleDeleteParams,\n RoleGetParams,\n RoleGetResponse,\n RoleListResponse,\n RoleUpdateParams,\n RoleUpdateResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Role extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:ListAllRoles`\n * Access Policy Resource: `IAM:Role`\n */\n list(request?: OystehrClientRequest): Promise<RoleListResponse> {\n return this.request('/iam/role', 'get')(request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:CreateRole`\n * Access Policy Resource: `IAM:Role`\n */\n create(params: RoleCreateParams, request?: OystehrClientRequest): Promise<RoleCreateResponse> {\n return this.request('/iam/role', 'post')(params, request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:GetRole`\n * Access Policy Resource: `IAM:Role`\n */\n get(params: RoleGetParams, request?: OystehrClientRequest): Promise<RoleGetResponse> {\n return this.request('/iam/role/{roleId}', 'get')(params, request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:UpdateRole`\n * Access Policy Resource: `IAM:Role`\n */\n update(params: RoleUpdateParams, request?: OystehrClientRequest): Promise<RoleUpdateResponse> {\n return this.request('/iam/role/{roleId}', 'patch')(params, request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:DeleteRole`\n * Access Policy Resource: `IAM:Role`\n * Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project\n */\n delete(params: RoleDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/iam/role/{roleId}', 'delete')(params, request);\n }\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"role.js","sources":["../../../../src/resources/classes/role.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n RoleCreateParams,\n RoleCreateResponse,\n RoleDeleteParams,\n RoleGetParams,\n RoleGetResponse,\n RoleListResponse,\n RoleUpdateParams,\n RoleUpdateResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Role extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:ListAllRoles`\n * Access Policy Resource: `IAM:Role`\n */\n list(request?: OystehrClientRequest): Promise<RoleListResponse> {\n return this.request('/iam/role', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:CreateRole`\n * Access Policy Resource: `IAM:Role`\n */\n create(params: RoleCreateParams, request?: OystehrClientRequest): Promise<RoleCreateResponse> {\n return this.request('/iam/role', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:GetRole`\n * Access Policy Resource: `IAM:Role`\n */\n get(params: RoleGetParams, request?: OystehrClientRequest): Promise<RoleGetResponse> {\n return this.request('/iam/role/{roleId}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:UpdateRole`\n * Access Policy Resource: `IAM:Role`\n */\n update(params: RoleUpdateParams, request?: OystehrClientRequest): Promise<RoleUpdateResponse> {\n return this.request('/iam/role/{roleId}', 'patch', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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/).\n *\n * Access Policy Action: `IAM:DeleteRole`\n * Access Policy Resource: `IAM:Role`\n * Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project\n */\n delete(params: RoleDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/iam/role/{roleId}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAgBM,MAAO,IAAK,SAAQ,WAAW,CAAA;AACnC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;;;;AAKG;AACH,IAAA,IAAI,CAAC,OAA8B,EAAA;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,2CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KACjF;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,eAAA,EAAA,GAAA,EAAA,kBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1F;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAqB,EAAE,OAA8B,EAAA;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,EAAA,eAAA,EAAA,GAAA,EAAA,kBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClG;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,EAAE,sBAAA,CAAA,IAAI,EAAA,eAAA,EAAA,GAAA,EAAA,kBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpG;AACD;;;;;;AAMG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,QAAQ,EAAE,sBAAA,CAAA,IAAI,EAAA,eAAA,EAAA,GAAA,EAAA,kBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrG;AACF,CAAA;;;AAhDG,IAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;AACxF,CAAC;;;;"}
|
|
@@ -2,6 +2,7 @@ import { OystehrClientRequest, SecretDeleteParams, SecretGetParams, SecretGetRes
|
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
export declare class Secret extends SDKResource {
|
|
5
|
+
#private;
|
|
5
6
|
constructor(config: OystehrConfig);
|
|
6
7
|
/**
|
|
7
8
|
* Get a list of all secrets in the Project.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
|
|
1
2
|
import { SDKResource } from '../../client/client.js';
|
|
2
3
|
|
|
3
4
|
// AUTOGENERATED -- DO NOT EDIT
|
|
5
|
+
var _Secret_instances, _Secret_baseUrlThunk;
|
|
4
6
|
class Secret extends SDKResource {
|
|
5
7
|
constructor(config) {
|
|
6
8
|
super(config);
|
|
9
|
+
_Secret_instances.add(this);
|
|
7
10
|
}
|
|
8
11
|
/**
|
|
9
12
|
* Get a list of all secrets in the Project.
|
|
@@ -12,7 +15,7 @@ class Secret extends SDKResource {
|
|
|
12
15
|
* Access Policy Resource: `Zambda:Secret`
|
|
13
16
|
*/
|
|
14
17
|
list(request) {
|
|
15
|
-
return this.request('/secret', 'get')(request);
|
|
18
|
+
return this.request('/secret', 'get', __classPrivateFieldGet(this, _Secret_instances, "m", _Secret_baseUrlThunk).bind(this))(request);
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
21
|
* Create a secret for a project. If the secret is already defined, update it.
|
|
@@ -21,7 +24,7 @@ class Secret extends SDKResource {
|
|
|
21
24
|
* Access Policy Resource: `Zambda:Secret`
|
|
22
25
|
*/
|
|
23
26
|
set(params, request) {
|
|
24
|
-
return this.request('/secret', 'post')(params, request);
|
|
27
|
+
return this.request('/secret', 'post', __classPrivateFieldGet(this, _Secret_instances, "m", _Secret_baseUrlThunk).bind(this))(params, request);
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
27
30
|
* Get the secret with the provided name.
|
|
@@ -30,7 +33,7 @@ class Secret extends SDKResource {
|
|
|
30
33
|
* Access Policy Resource: `Zambda:Secret`
|
|
31
34
|
*/
|
|
32
35
|
get(params, request) {
|
|
33
|
-
return this.request('/secret/{name}', 'get')(params, request);
|
|
36
|
+
return this.request('/secret/{name}', 'get', __classPrivateFieldGet(this, _Secret_instances, "m", _Secret_baseUrlThunk).bind(this))(params, request);
|
|
34
37
|
}
|
|
35
38
|
/**
|
|
36
39
|
* Delete the secret with the provided name.
|
|
@@ -39,9 +42,13 @@ class Secret extends SDKResource {
|
|
|
39
42
|
* Access Policy Resource: `Zambda:Secret`
|
|
40
43
|
*/
|
|
41
44
|
delete(params, request) {
|
|
42
|
-
return this.request('/secret/{name}', 'delete')(params, request);
|
|
45
|
+
return this.request('/secret/{name}', 'delete', __classPrivateFieldGet(this, _Secret_instances, "m", _Secret_baseUrlThunk).bind(this))(params, request);
|
|
43
46
|
}
|
|
44
47
|
}
|
|
48
|
+
_Secret_instances = new WeakSet(), _Secret_baseUrlThunk = function _Secret_baseUrlThunk() {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
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';
|
|
51
|
+
};
|
|
45
52
|
|
|
46
53
|
export { Secret };
|
|
47
54
|
//# sourceMappingURL=secret.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret.js","sources":["../../../../src/resources/classes/secret.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n SecretDeleteParams,\n SecretGetParams,\n SecretGetResponse,\n SecretListResponse,\n SecretSetParams,\n SecretSetResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Secret extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n /**\n * Get a list of all secrets in the Project.\n *\n * Access Policy Action: `Zambda:ListAllSecrets`\n * Access Policy Resource: `Zambda:Secret`\n */\n list(request?: OystehrClientRequest): Promise<SecretListResponse> {\n return this.request('/secret', 'get')(request);\n }\n /**\n * Create a secret for a project. If the secret is already defined, update it.\n *\n * Access Policy Action: `Zambda:CreateSecret`\n * Access Policy Resource: `Zambda:Secret`\n */\n set(params: SecretSetParams, request?: OystehrClientRequest): Promise<SecretSetResponse> {\n return this.request('/secret', 'post')(params, request);\n }\n /**\n * Get the secret with the provided name.\n *\n * Access Policy Action: `Zambda:GetSecret`\n * Access Policy Resource: `Zambda:Secret`\n */\n get(params: SecretGetParams, request?: OystehrClientRequest): Promise<SecretGetResponse> {\n return this.request('/secret/{name}', 'get')(params, request);\n }\n /**\n * Delete the secret with the provided name.\n *\n * Access Policy Action: `Zambda:DeleteSecret`\n * Access Policy Resource: `Zambda:Secret`\n */\n delete(params: SecretDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/secret/{name}', 'delete')(params, request);\n }\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"secret.js","sources":["../../../../src/resources/classes/secret.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n SecretDeleteParams,\n SecretGetParams,\n SecretGetResponse,\n SecretListResponse,\n SecretSetParams,\n SecretSetResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Secret extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Get a list of all secrets in the Project.\n *\n * Access Policy Action: `Zambda:ListAllSecrets`\n * Access Policy Resource: `Zambda:Secret`\n */\n list(request?: OystehrClientRequest): Promise<SecretListResponse> {\n return this.request('/secret', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Create a secret for a project. If the secret is already defined, update it.\n *\n * Access Policy Action: `Zambda:CreateSecret`\n * Access Policy Resource: `Zambda:Secret`\n */\n set(params: SecretSetParams, request?: OystehrClientRequest): Promise<SecretSetResponse> {\n return this.request('/secret', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get the secret with the provided name.\n *\n * Access Policy Action: `Zambda:GetSecret`\n * Access Policy Resource: `Zambda:Secret`\n */\n get(params: SecretGetParams, request?: OystehrClientRequest): Promise<SecretGetResponse> {\n return this.request('/secret/{name}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Delete the secret with the provided name.\n *\n * Access Policy Action: `Zambda:DeleteSecret`\n * Access Policy Resource: `Zambda:Secret`\n */\n delete(params: SecretDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/secret/{name}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAcM,MAAO,MAAO,SAAQ,WAAW,CAAA;AACrC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;;;;AAKG;AACH,IAAA,IAAI,CAAC,OAA8B,EAAA;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,+CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAC/E;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAuB,EAAE,OAA8B,EAAA;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,iBAAA,EAAA,GAAA,EAAA,oBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACxF;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAuB,EAAE,OAA8B,EAAA;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,EAAA,iBAAA,EAAA,GAAA,EAAA,oBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9F;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAA0B,EAAE,OAA8B,EAAA;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,QAAQ,EAAE,sBAAA,CAAA,IAAI,EAAA,iBAAA,EAAA,GAAA,EAAA,oBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACjG;AACF,CAAA;;;AAtCG,IAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,eAAe,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,mCAAmC,CAAC;AACxF,CAAC;;;;"}
|
|
@@ -2,9 +2,10 @@ import { OystehrClientRequest, TelemedCreateMeetingParams, TelemedCreateMeetingR
|
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
export declare class Telemed extends SDKResource {
|
|
5
|
+
#private;
|
|
5
6
|
constructor(config: OystehrConfig);
|
|
6
7
|
/**
|
|
7
|
-
* Create a [telemedicine video meeting](https://docs.oystehr.com/services/telemed/).
|
|
8
|
+
* Create a [telemedicine video meeting](https://docs.oystehr.com/oystehr/services/telemed/).
|
|
8
9
|
*
|
|
9
10
|
* Access Policy Requirements:
|
|
10
11
|
* Action: `Telemed:CreateMeeting`
|