@oystehr/sdk 3.0.4 → 3.0.5
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 +3 -3
- package/dist/cjs/config.d.ts +8 -0
- package/dist/cjs/index.cjs +806 -642
- 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 +8 -8
- package/dist/cjs/resources/classes/charge.d.ts +2 -2
- package/dist/cjs/resources/classes/conversation.d.ts +5 -5
- package/dist/cjs/resources/classes/developer.d.ts +6 -6
- package/dist/cjs/resources/classes/erx.d.ts +4 -4
- package/dist/cjs/resources/classes/m2m.d.ts +7 -7
- package/dist/cjs/resources/classes/messaging.d.ts +1 -1
- package/dist/cjs/resources/classes/paymentMethod.d.ts +4 -4
- package/dist/cjs/resources/classes/project.d.ts +2 -2
- package/dist/cjs/resources/classes/rcm.d.ts +3 -3
- package/dist/cjs/resources/classes/role.d.ts +5 -5
- package/dist/cjs/resources/classes/secret.d.ts +4 -4
- package/dist/cjs/resources/classes/telemed.d.ts +2 -2
- package/dist/cjs/resources/classes/transactionalSMS.d.ts +1 -1
- package/dist/cjs/resources/classes/user.d.ts +7 -7
- package/dist/cjs/resources/classes/version.d.ts +1 -1
- package/dist/cjs/resources/classes/z3.d.ts +7 -7
- package/dist/cjs/resources/classes/zambda.d.ts +8 -8
- package/dist/cjs/resources/classes/zambdaLogStream.d.ts +3 -3
- package/dist/cjs/resources/types/ConversationAddParticipantParams.d.ts +1 -1
- package/dist/cjs/resources/types/ConversationCreateResponse.d.ts +1 -1
- package/dist/cjs/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
- package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
- package/dist/cjs/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
- package/dist/cjs/tests/setup/constants.d.ts +1 -1
- package/dist/esm/client/client.js +14 -11
- package/dist/esm/client/client.js.map +1 -1
- package/dist/esm/config.d.ts +8 -0
- 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 +8 -8
- package/dist/esm/resources/classes/application.js +72 -56
- package/dist/esm/resources/classes/application.js.map +1 -1
- package/dist/esm/resources/classes/charge.d.ts +2 -2
- package/dist/esm/resources/classes/charge.js +28 -24
- package/dist/esm/resources/classes/charge.js.map +1 -1
- package/dist/esm/resources/classes/conversation.d.ts +5 -5
- package/dist/esm/resources/classes/conversation.js +59 -49
- package/dist/esm/resources/classes/conversation.js.map +1 -1
- package/dist/esm/resources/classes/developer.d.ts +6 -6
- package/dist/esm/resources/classes/developer.js +56 -44
- package/dist/esm/resources/classes/developer.js.map +1 -1
- package/dist/esm/resources/classes/erx.d.ts +4 -4
- package/dist/esm/resources/classes/erx.js +24 -16
- package/dist/esm/resources/classes/erx.js.map +1 -1
- package/dist/esm/resources/classes/fhir-ext.js +3 -0
- package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
- package/dist/esm/resources/classes/m2m.d.ts +7 -7
- package/dist/esm/resources/classes/m2m.js +65 -51
- 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 +6 -4
- package/dist/esm/resources/classes/messaging.js.map +1 -1
- package/dist/esm/resources/classes/paymentMethod.d.ts +4 -4
- package/dist/esm/resources/classes/paymentMethod.js +72 -64
- package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
- package/dist/esm/resources/classes/project.d.ts +2 -2
- package/dist/esm/resources/classes/project.js +18 -14
- package/dist/esm/resources/classes/project.js.map +1 -1
- package/dist/esm/resources/classes/rcm.d.ts +3 -3
- package/dist/esm/resources/classes/rcm.js +39 -33
- package/dist/esm/resources/classes/rcm.js.map +1 -1
- package/dist/esm/resources/classes/role.d.ts +5 -5
- package/dist/esm/resources/classes/role.js +46 -36
- package/dist/esm/resources/classes/role.js.map +1 -1
- package/dist/esm/resources/classes/secret.d.ts +4 -4
- package/dist/esm/resources/classes/secret.js +36 -28
- 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 +27 -23
- package/dist/esm/resources/classes/telemed.js.map +1 -1
- package/dist/esm/resources/classes/transactionalSMS.d.ts +1 -1
- package/dist/esm/resources/classes/transactionalSMS.js +18 -16
- package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
- package/dist/esm/resources/classes/user.d.ts +7 -7
- package/dist/esm/resources/classes/user.js +64 -50
- 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 +6 -4
- package/dist/esm/resources/classes/version.js.map +1 -1
- package/dist/esm/resources/classes/z3.d.ts +7 -7
- package/dist/esm/resources/classes/z3.js +55 -43
- package/dist/esm/resources/classes/z3.js.map +1 -1
- package/dist/esm/resources/classes/zambda.d.ts +8 -8
- package/dist/esm/resources/classes/zambda.js +71 -55
- package/dist/esm/resources/classes/zambda.js.map +1 -1
- package/dist/esm/resources/classes/zambdaLogStream.d.ts +3 -3
- package/dist/esm/resources/classes/zambdaLogStream.js +27 -21
- package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
- package/dist/esm/resources/types/ConversationAddParticipantParams.d.ts +1 -1
- package/dist/esm/resources/types/ConversationCreateResponse.d.ts +1 -1
- package/dist/esm/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
- package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
- package/dist/esm/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
- package/dist/esm/tests/setup/constants.d.ts +1 -1
- package/package.json +3 -3
- package/src/client/client.ts +8 -3
- package/src/config.ts +8 -0
- package/src/resources/classes/application.ts +27 -19
- package/src/resources/classes/charge.ts +6 -4
- package/src/resources/classes/conversation.ts +15 -10
- package/src/resources/classes/developer.ts +18 -11
- package/src/resources/classes/erx.ts +14 -8
- package/src/resources/classes/fhir-ext.ts +3 -0
- package/src/resources/classes/m2m.ts +21 -13
- package/src/resources/classes/messaging.ts +3 -2
- package/src/resources/classes/paymentMethod.ts +12 -8
- package/src/resources/classes/project.ts +6 -3
- package/src/resources/classes/rcm.ts +12 -8
- package/src/resources/classes/role.ts +15 -9
- package/src/resources/classes/secret.ts +12 -7
- package/src/resources/classes/telemed.ts +7 -7
- package/src/resources/classes/transactionalSMS.ts +3 -2
- package/src/resources/classes/user.ts +21 -12
- package/src/resources/classes/version.ts +3 -1
- package/src/resources/classes/z3.ts +19 -14
- package/src/resources/classes/zambda.ts +25 -15
- package/src/resources/classes/zambdaLogStream.ts +9 -8
- package/src/resources/types/ConversationAddParticipantParams.ts +1 -1
- package/src/resources/types/ConversationCreateResponse.ts +1 -1
- package/src/resources/types/ConversationRemoveParticipantParams.ts +1 -1
- package/src/resources/types/TelemedCreateMeetingParams.ts +1 -1
- package/src/resources/types/TelemedCreateMeetingResponse.ts +1 -1
|
@@ -18,7 +18,7 @@ export declare class PaymentMethod extends SDKResource {
|
|
|
18
18
|
* Action: `FHIR:Read`
|
|
19
19
|
* Access Policy Resource: `FHIR:Patient`
|
|
20
20
|
*/
|
|
21
|
-
setUp
|
|
21
|
+
setUp(params: PaymentMethodSetUpParams, request?: OystehrClientRequest): Promise<PaymentMethodSetUpResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* Set a specified payment method for the user as default.
|
|
24
24
|
*
|
|
@@ -34,7 +34,7 @@ export declare class PaymentMethod extends SDKResource {
|
|
|
34
34
|
* Action: `FHIR:Read`
|
|
35
35
|
* Access Policy Resource: `FHIR:Patient`
|
|
36
36
|
*/
|
|
37
|
-
setDefault
|
|
37
|
+
setDefault(params: PaymentMethodSetDefaultParams, request?: OystehrClientRequest): Promise<void>;
|
|
38
38
|
/**
|
|
39
39
|
* Delete a specified payment method for the beneficiary.
|
|
40
40
|
*
|
|
@@ -50,7 +50,7 @@ export declare class PaymentMethod extends SDKResource {
|
|
|
50
50
|
* Action: `FHIR:Read`
|
|
51
51
|
* Access Policy Resource: `FHIR:Patient`
|
|
52
52
|
*/
|
|
53
|
-
delete
|
|
53
|
+
delete(params: PaymentMethodDeleteParams, request?: OystehrClientRequest): Promise<void>;
|
|
54
54
|
/**
|
|
55
55
|
* List all payment methods for the patient.
|
|
56
56
|
*
|
|
@@ -66,5 +66,5 @@ export declare class PaymentMethod extends SDKResource {
|
|
|
66
66
|
* Action: `FHIR:Read`
|
|
67
67
|
* Access Policy Resource: `FHIR:Patient`
|
|
68
68
|
*/
|
|
69
|
-
list
|
|
69
|
+
list(params: PaymentMethodListParams, request?: OystehrClientRequest): Promise<PaymentMethodListResponse>;
|
|
70
70
|
}
|
|
@@ -4,70 +4,78 @@ import { SDKResource } from '../../client/client.js';
|
|
|
4
4
|
class PaymentMethod extends SDKResource {
|
|
5
5
|
constructor(config) {
|
|
6
6
|
super(config);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Enter a new credit card or other payment method for the user.
|
|
10
|
+
*
|
|
11
|
+
* Access Policy Requirements:
|
|
12
|
+
* Action: `Payment:Setup`
|
|
13
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
14
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
15
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
16
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
17
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
18
|
+
*
|
|
19
|
+
* Also need to be able to read the patients' details. For example:
|
|
20
|
+
* Action: `FHIR:Read`
|
|
21
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
22
|
+
*/
|
|
23
|
+
setUp(params, request) {
|
|
24
|
+
return this.request('/payment/payment-method/setup', 'post')(params, request);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Set a specified payment method for the user as default.
|
|
28
|
+
*
|
|
29
|
+
* Access Policy Requirements:
|
|
30
|
+
* Action: `Payment:SetDefault`
|
|
31
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
32
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
33
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
34
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
35
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
36
|
+
*
|
|
37
|
+
* Also need to be able to read the patients' details. For example:
|
|
38
|
+
* Action: `FHIR:Read`
|
|
39
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
40
|
+
*/
|
|
41
|
+
setDefault(params, request) {
|
|
42
|
+
return this.request('/payment/payment-method/set-default', 'post')(params, request);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Delete a specified payment method for the beneficiary.
|
|
46
|
+
*
|
|
47
|
+
* Access Policy Requirements:
|
|
48
|
+
* Action: `Payment:Delete`
|
|
49
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
50
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
51
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
52
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
53
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
54
|
+
*
|
|
55
|
+
* Also need to be able to read the patients' details. For example:
|
|
56
|
+
* Action: `FHIR:Read`
|
|
57
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
58
|
+
*/
|
|
59
|
+
delete(params, request) {
|
|
60
|
+
return this.request('/payment/payment-method', 'delete')(params, request);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* List all payment methods for the patient.
|
|
64
|
+
*
|
|
65
|
+
* Access Policy Requirements:
|
|
66
|
+
* Action: `Payment:Setup`
|
|
67
|
+
* Access Policy Resource: `Payment:PaymentMethod`
|
|
68
|
+
* Actions: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
69
|
+
* Access Policy Resource: `FHIR:Coverage:*`
|
|
70
|
+
* Action: `FHIR:Read,FHIR:Create,FHIR:Update`
|
|
71
|
+
* Access Policy Resource: `FHIR:Account:*`
|
|
72
|
+
*
|
|
73
|
+
* Also need to be able to read the patients' details. For example:
|
|
74
|
+
* Action: `FHIR:Read`
|
|
75
|
+
* Access Policy Resource: `FHIR:Patient`
|
|
76
|
+
*/
|
|
77
|
+
list(params, request) {
|
|
78
|
+
return this.request('/payment/payment-method/list', 'post')(params, request);
|
|
71
79
|
}
|
|
72
80
|
}
|
|
73
81
|
|
|
@@ -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
|
|
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":";;AAAA;AAcM,MAAO,aAAc,SAAQ,WAAW,CAAA;AAC5C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;AACD;;;;;;;;;;;;;;AAcG;IACH,KAAK,CAAC,MAAgC,EAAE,OAA8B,EAAA;AACpE,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/E;AACD;;;;;;;;;;;;;;AAcG;IACH,UAAU,CAAC,MAAqC,EAAE,OAA8B,EAAA;AAC9E,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,qCAAqC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrF;AACD;;;;;;;;;;;;;;AAcG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA8B,EAAA;AACtE,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC3E;AACD;;;;;;;;;;;;;;AAcG;IACH,IAAI,CAAC,MAA+B,EAAE,OAA8B,EAAA;AAClE,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,8BAA8B,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9E;AACF;;;;"}
|
|
@@ -9,12 +9,12 @@ export declare class Project extends SDKResource {
|
|
|
9
9
|
* Access Policy Action: `Project:GetProjectInfo`
|
|
10
10
|
* Access Policy Resource: `Project:Settings`
|
|
11
11
|
*/
|
|
12
|
-
get
|
|
12
|
+
get(request?: OystehrClientRequest): Promise<ProjectGetResponse>;
|
|
13
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
15
|
*
|
|
16
16
|
* Access Policy Action: `Project:UpdateProjectInfo`
|
|
17
17
|
* Access Policy Resource: `Project:Settings`
|
|
18
18
|
*/
|
|
19
|
-
update
|
|
19
|
+
update(params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse>;
|
|
20
20
|
}
|
|
@@ -4,20 +4,24 @@ import { SDKResource } from '../../client/client.js';
|
|
|
4
4
|
class Project extends SDKResource {
|
|
5
5
|
constructor(config) {
|
|
6
6
|
super(config);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
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 .
|
|
10
|
+
*
|
|
11
|
+
* Access Policy Action: `Project:GetProjectInfo`
|
|
12
|
+
* Access Policy Resource: `Project:Settings`
|
|
13
|
+
*/
|
|
14
|
+
get(request) {
|
|
15
|
+
return this.request('/project', 'get')(request);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 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 .
|
|
19
|
+
*
|
|
20
|
+
* Access Policy Action: `Project:UpdateProjectInfo`
|
|
21
|
+
* Access Policy Resource: `Project:Settings`
|
|
22
|
+
*/
|
|
23
|
+
update(params, request) {
|
|
24
|
+
return this.request('/project', 'patch')(params, request);
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
|
|
@@ -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
|
|
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":";;AAAA;AAMM,MAAO,OAAQ,SAAQ,WAAW,CAAA;AACtC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;AACD;;;;;AAKG;AACH,IAAA,GAAG,CAAC,OAA8B,EAAA;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;KACjD;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAA2B,EAAE,OAA8B,EAAA;AAChE,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC3D;AACF;;;;"}
|
|
@@ -12,7 +12,7 @@ export declare class Rcm extends SDKResource {
|
|
|
12
12
|
* nAccess Policy Action: `FHIR:Create`
|
|
13
13
|
* Access Policy Resource: `FHIR:CoverageEligibilityResponse`
|
|
14
14
|
*/
|
|
15
|
-
eligibilityCheck
|
|
15
|
+
eligibilityCheck(params: RcmEligibilityCheckParams, request?: OystehrClientRequest): Promise<RcmEligibilityCheckResponse>;
|
|
16
16
|
/**
|
|
17
17
|
* Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
18
18
|
*
|
|
@@ -22,7 +22,7 @@ export declare class Rcm extends SDKResource {
|
|
|
22
22
|
* Access Policy Action: `FHIR:Create`
|
|
23
23
|
* Access Policy Resource: `FHIR:AuditEvent`
|
|
24
24
|
*/
|
|
25
|
-
validateProfessionalClaim
|
|
25
|
+
validateProfessionalClaim(params: RcmValidateProfessionalClaimParams, request?: OystehrClientRequest): Promise<RcmValidateProfessionalClaimResponse>;
|
|
26
26
|
/**
|
|
27
27
|
* Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
28
28
|
*
|
|
@@ -35,5 +35,5 @@ export declare class Rcm extends SDKResource {
|
|
|
35
35
|
* Access Policy Actions: `FHIR:Create, FHIR:Update`
|
|
36
36
|
* Access Policy Resource: `FHIR:Claim`
|
|
37
37
|
*/
|
|
38
|
-
submitProfessionalClaim
|
|
38
|
+
submitProfessionalClaim(params: RcmSubmitProfessionalClaimParams, request?: OystehrClientRequest): Promise<RcmSubmitProfessionalClaimResponse>;
|
|
39
39
|
}
|
|
@@ -4,39 +4,45 @@ import { SDKResource } from '../../client/client.js';
|
|
|
4
4
|
class Rcm extends SDKResource {
|
|
5
5
|
constructor(config) {
|
|
6
6
|
super(config);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).
|
|
10
|
+
*
|
|
11
|
+
* Access Policy Action: `RCM:CheckInsuranceEligibility`
|
|
12
|
+
* Access Policy Resource: `RCM:InsuranceEligibility`
|
|
13
|
+
*
|
|
14
|
+
* nAccess Policy Action: `FHIR:Create`
|
|
15
|
+
* Access Policy Resource: `FHIR:CoverageEligibilityResponse`
|
|
16
|
+
*/
|
|
17
|
+
eligibilityCheck(params, request) {
|
|
18
|
+
return this.request('/rcm/eligibility-check', 'post')(params, request);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
22
|
+
*
|
|
23
|
+
* Access Policy Action: `RCM:ValidateProfessionalClaim`
|
|
24
|
+
* Access Policy Resource: `RCM:Claim`
|
|
25
|
+
*
|
|
26
|
+
* Access Policy Action: `FHIR:Create`
|
|
27
|
+
* Access Policy Resource: `FHIR:AuditEvent`
|
|
28
|
+
*/
|
|
29
|
+
validateProfessionalClaim(params, request) {
|
|
30
|
+
return this.request('/rcm/professional-claim/validate', 'post')(params, request);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
|
|
34
|
+
*
|
|
35
|
+
* Access Policy Action: `RCM:SubmitProfessionalClaim`
|
|
36
|
+
* Access Policy Resource: `RCM:Claim`
|
|
37
|
+
*
|
|
38
|
+
* Access Policy Action: `FHIR:Create`
|
|
39
|
+
* Access Policy Resource: `FHIR:AuditEvent`
|
|
40
|
+
*
|
|
41
|
+
* Access Policy Actions: `FHIR:Create, FHIR:Update`
|
|
42
|
+
* Access Policy Resource: `FHIR:Claim`
|
|
43
|
+
*/
|
|
44
|
+
submitProfessionalClaim(params, request) {
|
|
45
|
+
return this.request('/rcm/professional-claim/submit', 'post')(params, request);
|
|
40
46
|
}
|
|
41
47
|
}
|
|
42
48
|
|
|
@@ -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 * nAccess Policy Action: `FHIR:Create`\n * Access Policy Resource: `FHIR:CoverageEligibilityResponse`\n */\n eligibilityCheck
|
|
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 * nAccess 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":";;AAAA;AAcM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;AACD;;;;;;;;AAQG;IACH,gBAAgB,CACd,MAAiC,EACjC,OAA8B,EAAA;AAE9B,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACxE;AACD;;;;;;;;AAQG;IACH,yBAAyB,CACvB,MAA0C,EAC1C,OAA8B,EAAA;AAE9B,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,kCAAkC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClF;AACD;;;;;;;;;;;AAWG;IACH,uBAAuB,CACrB,MAAwC,EACxC,OAA8B,EAAA;AAE9B,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAChF;AACF;;;;"}
|
|
@@ -9,28 +9,28 @@ export declare class Role extends SDKResource {
|
|
|
9
9
|
* Access Policy Action: `IAM:ListAllRoles`
|
|
10
10
|
* Access Policy Resource: `IAM:Role`
|
|
11
11
|
*/
|
|
12
|
-
list
|
|
12
|
+
list(request?: OystehrClientRequest): Promise<RoleListResponse>;
|
|
13
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
15
|
*
|
|
16
16
|
* Access Policy Action: `IAM:CreateRole`
|
|
17
17
|
* Access Policy Resource: `IAM:Role`
|
|
18
18
|
*/
|
|
19
|
-
create
|
|
19
|
+
create(params: RoleCreateParams, request?: OystehrClientRequest): Promise<RoleCreateResponse>;
|
|
20
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
22
|
*
|
|
23
23
|
* Access Policy Action: `IAM:GetRole`
|
|
24
24
|
* Access Policy Resource: `IAM:Role`
|
|
25
25
|
*/
|
|
26
|
-
get
|
|
26
|
+
get(params: RoleGetParams, request?: OystehrClientRequest): Promise<RoleGetResponse>;
|
|
27
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
29
|
*
|
|
30
30
|
* Access Policy Action: `IAM:UpdateRole`
|
|
31
31
|
* Access Policy Resource: `IAM:Role`
|
|
32
32
|
*/
|
|
33
|
-
update
|
|
33
|
+
update(params: RoleUpdateParams, request?: OystehrClientRequest): Promise<RoleUpdateResponse>;
|
|
34
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
36
|
*
|
|
@@ -38,5 +38,5 @@ export declare class Role extends SDKResource {
|
|
|
38
38
|
* Access Policy Resource: `IAM:Role`
|
|
39
39
|
* Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project
|
|
40
40
|
*/
|
|
41
|
-
delete
|
|
41
|
+
delete(params: RoleDeleteParams, request?: OystehrClientRequest): Promise<void>;
|
|
42
42
|
}
|
|
@@ -4,42 +4,52 @@ import { SDKResource } from '../../client/client.js';
|
|
|
4
4
|
class Role extends SDKResource {
|
|
5
5
|
constructor(config) {
|
|
6
6
|
super(config);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
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/).
|
|
10
|
+
*
|
|
11
|
+
* Access Policy Action: `IAM:ListAllRoles`
|
|
12
|
+
* Access Policy Resource: `IAM:Role`
|
|
13
|
+
*/
|
|
14
|
+
list(request) {
|
|
15
|
+
return this.request('/iam/role', 'get')(request);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
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/).
|
|
19
|
+
*
|
|
20
|
+
* Access Policy Action: `IAM:CreateRole`
|
|
21
|
+
* Access Policy Resource: `IAM:Role`
|
|
22
|
+
*/
|
|
23
|
+
create(params, request) {
|
|
24
|
+
return this.request('/iam/role', 'post')(params, request);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
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/).
|
|
28
|
+
*
|
|
29
|
+
* Access Policy Action: `IAM:GetRole`
|
|
30
|
+
* Access Policy Resource: `IAM:Role`
|
|
31
|
+
*/
|
|
32
|
+
get(params, request) {
|
|
33
|
+
return this.request('/iam/role/{roleId}', 'get')(params, request);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
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/).
|
|
37
|
+
*
|
|
38
|
+
* Access Policy Action: `IAM:UpdateRole`
|
|
39
|
+
* Access Policy Resource: `IAM:Role`
|
|
40
|
+
*/
|
|
41
|
+
update(params, request) {
|
|
42
|
+
return this.request('/iam/role/{roleId}', 'patch')(params, request);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
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/).
|
|
46
|
+
*
|
|
47
|
+
* Access Policy Action: `IAM:DeleteRole`
|
|
48
|
+
* Access Policy Resource: `IAM:Role`
|
|
49
|
+
* Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project
|
|
50
|
+
*/
|
|
51
|
+
delete(params, request) {
|
|
52
|
+
return this.request('/iam/role/{roleId}', 'delete')(params, request);
|
|
43
53
|
}
|
|
44
54
|
}
|
|
45
55
|
|
|
@@ -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
|
|
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":";;AAAA;AAgBM,MAAO,IAAK,SAAQ,WAAW,CAAA;AACnC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;KACf;AACD;;;;;AAKG;AACH,IAAA,IAAI,CAAC,OAA8B,EAAA;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;KAClD;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;AAC7D,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC3D;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAqB,EAAE,OAA8B,EAAA;AACvD,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnE;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;AAC7D,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrE;AACD;;;;;;AAMG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA8B,EAAA;AAC7D,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtE;AACF;;;;"}
|
|
@@ -9,26 +9,26 @@ export declare class Secret extends SDKResource {
|
|
|
9
9
|
* Access Policy Action: `Zambda:ListAllSecrets`
|
|
10
10
|
* Access Policy Resource: `Zambda:Secret`
|
|
11
11
|
*/
|
|
12
|
-
list
|
|
12
|
+
list(request?: OystehrClientRequest): Promise<SecretListResponse>;
|
|
13
13
|
/**
|
|
14
14
|
* Create a secret for a project. If the secret is already defined, update it.
|
|
15
15
|
*
|
|
16
16
|
* Access Policy Action: `Zambda:CreateSecret`
|
|
17
17
|
* Access Policy Resource: `Zambda:Secret`
|
|
18
18
|
*/
|
|
19
|
-
set
|
|
19
|
+
set(params: SecretSetParams, request?: OystehrClientRequest): Promise<SecretSetResponse>;
|
|
20
20
|
/**
|
|
21
21
|
* Get the secret with the provided name.
|
|
22
22
|
*
|
|
23
23
|
* Access Policy Action: `Zambda:GetSecret`
|
|
24
24
|
* Access Policy Resource: `Zambda:Secret`
|
|
25
25
|
*/
|
|
26
|
-
get
|
|
26
|
+
get(params: SecretGetParams, request?: OystehrClientRequest): Promise<SecretGetResponse>;
|
|
27
27
|
/**
|
|
28
28
|
* Delete the secret with the provided name.
|
|
29
29
|
*
|
|
30
30
|
* Access Policy Action: `Zambda:DeleteSecret`
|
|
31
31
|
* Access Policy Resource: `Zambda:Secret`
|
|
32
32
|
*/
|
|
33
|
-
delete
|
|
33
|
+
delete(params: SecretDeleteParams, request?: OystehrClientRequest): Promise<void>;
|
|
34
34
|
}
|