@oystehr/sdk 3.0.7 → 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 +5 -5
- package/dist/cjs/index.cjs +273 -228
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/resources/classes/application.d.ts +6 -6
- package/dist/cjs/resources/classes/charge.d.ts +1 -1
- package/dist/cjs/resources/classes/conversation.d.ts +6 -6
- package/dist/cjs/resources/classes/developer.d.ts +14 -7
- package/dist/cjs/resources/classes/erx.d.ts +9 -1
- package/dist/cjs/resources/classes/fax.d.ts +4 -4
- package/dist/cjs/resources/classes/fhir.d.ts +1 -1
- package/dist/cjs/resources/classes/m2m.d.ts +15 -8
- package/dist/cjs/resources/classes/messaging.d.ts +1 -1
- package/dist/cjs/resources/classes/paymentMethod.d.ts +1 -1
- package/dist/cjs/resources/classes/project.d.ts +10 -3
- package/dist/cjs/resources/classes/rcm.d.ts +4 -4
- package/dist/cjs/resources/classes/role.d.ts +6 -6
- package/dist/cjs/resources/classes/secret.d.ts +1 -1
- package/dist/cjs/resources/classes/telemed.d.ts +2 -2
- package/dist/cjs/resources/classes/transactionalSMS.d.ts +2 -2
- package/dist/cjs/resources/classes/user.d.ts +15 -8
- package/dist/cjs/resources/classes/version.d.ts +1 -1
- package/dist/cjs/resources/classes/z3.d.ts +7 -7
- package/dist/cjs/resources/classes/zambda.d.ts +9 -9
- package/dist/cjs/resources/classes/zambdaLogStream.d.ts +4 -4
- package/dist/cjs/resources/types/AccessPolicy.d.ts +8 -3
- package/dist/cjs/resources/types/ChargeIssueParams.d.ts +1 -1
- package/dist/cjs/resources/types/ChargeStatusParams.d.ts +1 -1
- package/dist/cjs/resources/types/DeveloperListV2Params.d.ts +2 -2
- package/dist/cjs/resources/types/FaxSendParams.d.ts +1 -1
- package/dist/cjs/resources/types/M2mListV2Params.d.ts +2 -2
- package/dist/cjs/resources/types/M2mRotateSecretResponse.d.ts +1 -1
- package/dist/cjs/resources/types/RcmEligibilityCheckParams.d.ts +1 -1
- package/dist/cjs/resources/types/RoleUpdateParams.d.ts +0 -4
- package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
- package/dist/cjs/resources/types/UserListV2Params.d.ts +2 -2
- package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +1 -1
- package/dist/cjs/resources/types/ZambdaFunction.d.ts +1 -1
- package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +2 -2
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/resources/classes/application.d.ts +6 -6
- package/dist/esm/resources/classes/application.js +20 -17
- package/dist/esm/resources/classes/application.js.map +1 -1
- package/dist/esm/resources/classes/charge.d.ts +1 -1
- package/dist/esm/resources/classes/charge.js +9 -6
- package/dist/esm/resources/classes/charge.js.map +1 -1
- package/dist/esm/resources/classes/conversation.d.ts +6 -6
- package/dist/esm/resources/classes/conversation.js +17 -14
- package/dist/esm/resources/classes/conversation.js.map +1 -1
- package/dist/esm/resources/classes/developer.d.ts +14 -7
- package/dist/esm/resources/classes/developer.js +18 -15
- package/dist/esm/resources/classes/developer.js.map +1 -1
- package/dist/esm/resources/classes/erx.d.ts +9 -1
- package/dist/esm/resources/classes/erx.js +13 -10
- package/dist/esm/resources/classes/erx.js.map +1 -1
- package/dist/esm/resources/classes/fax.d.ts +4 -4
- package/dist/esm/resources/classes/fax.js +13 -10
- package/dist/esm/resources/classes/fax.js.map +1 -1
- package/dist/esm/resources/classes/fhir.d.ts +1 -1
- package/dist/esm/resources/classes/fhir.js +3 -4
- package/dist/esm/resources/classes/fhir.js.map +1 -1
- package/dist/esm/resources/classes/index.js +2 -2
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/classes/m2m.d.ts +15 -8
- package/dist/esm/resources/classes/m2m.js +20 -17
- package/dist/esm/resources/classes/m2m.js.map +1 -1
- package/dist/esm/resources/classes/messaging.d.ts +1 -1
- package/dist/esm/resources/classes/messaging.js +8 -5
- package/dist/esm/resources/classes/messaging.js.map +1 -1
- package/dist/esm/resources/classes/paymentMethod.d.ts +1 -1
- package/dist/esm/resources/classes/paymentMethod.js +11 -8
- package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
- package/dist/esm/resources/classes/project.d.ts +10 -3
- package/dist/esm/resources/classes/project.js +10 -7
- package/dist/esm/resources/classes/project.js.map +1 -1
- package/dist/esm/resources/classes/rcm.d.ts +4 -4
- package/dist/esm/resources/classes/rcm.js +13 -10
- package/dist/esm/resources/classes/rcm.js.map +1 -1
- package/dist/esm/resources/classes/role.d.ts +6 -6
- package/dist/esm/resources/classes/role.js +17 -14
- package/dist/esm/resources/classes/role.js.map +1 -1
- package/dist/esm/resources/classes/secret.d.ts +1 -1
- package/dist/esm/resources/classes/secret.js +11 -8
- package/dist/esm/resources/classes/secret.js.map +1 -1
- package/dist/esm/resources/classes/telemed.d.ts +2 -2
- package/dist/esm/resources/classes/telemed.js +10 -7
- package/dist/esm/resources/classes/telemed.js.map +1 -1
- package/dist/esm/resources/classes/transactionalSMS.d.ts +2 -2
- package/dist/esm/resources/classes/transactionalSMS.js +9 -6
- package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
- package/dist/esm/resources/classes/user.d.ts +15 -8
- package/dist/esm/resources/classes/user.js +20 -17
- package/dist/esm/resources/classes/user.js.map +1 -1
- package/dist/esm/resources/classes/version.d.ts +1 -1
- package/dist/esm/resources/classes/version.js +8 -5
- package/dist/esm/resources/classes/version.js.map +1 -1
- package/dist/esm/resources/classes/z3.d.ts +7 -7
- package/dist/esm/resources/classes/z3.js +19 -16
- package/dist/esm/resources/classes/z3.js.map +1 -1
- package/dist/esm/resources/classes/zambda.d.ts +9 -9
- package/dist/esm/resources/classes/zambda.js +23 -20
- package/dist/esm/resources/classes/zambda.js.map +1 -1
- package/dist/esm/resources/classes/zambdaLogStream.d.ts +4 -4
- package/dist/esm/resources/classes/zambdaLogStream.js +13 -10
- package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
- package/dist/esm/resources/types/AccessPolicy.d.ts +8 -3
- package/dist/esm/resources/types/ChargeIssueParams.d.ts +1 -1
- package/dist/esm/resources/types/ChargeStatusParams.d.ts +1 -1
- package/dist/esm/resources/types/DeveloperListV2Params.d.ts +2 -2
- package/dist/esm/resources/types/FaxSendParams.d.ts +1 -1
- package/dist/esm/resources/types/M2mListV2Params.d.ts +2 -2
- package/dist/esm/resources/types/M2mRotateSecretResponse.d.ts +1 -1
- package/dist/esm/resources/types/RcmEligibilityCheckParams.d.ts +1 -1
- package/dist/esm/resources/types/RoleUpdateParams.d.ts +0 -4
- package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
- package/dist/esm/resources/types/UserListV2Params.d.ts +2 -2
- package/dist/esm/resources/types/ZambdaCreateParams.d.ts +1 -1
- package/dist/esm/resources/types/ZambdaFunction.d.ts +1 -1
- package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +2 -2
- package/package.json +1 -1
- package/src/resources/classes/application.ts +18 -14
- package/src/resources/classes/charge.ts +3 -3
- package/src/resources/classes/conversation.ts +11 -11
- package/src/resources/classes/developer.ts +30 -13
- package/src/resources/classes/erx.ts +29 -7
- package/src/resources/classes/fax.ts +7 -7
- package/src/resources/classes/fhir.ts +1 -1
- package/src/resources/classes/index.ts +2 -2
- package/src/resources/classes/m2m.ts +29 -15
- package/src/resources/classes/messaging.ts +2 -2
- package/src/resources/classes/paymentMethod.ts +5 -5
- package/src/resources/classes/project.ts +22 -5
- package/src/resources/classes/rcm.ts +7 -7
- package/src/resources/classes/role.ts +11 -11
- package/src/resources/classes/secret.ts +5 -5
- package/src/resources/classes/telemed.ts +8 -4
- package/src/resources/classes/transactionalSMS.ts +3 -3
- package/src/resources/classes/user.ts +32 -15
- package/src/resources/classes/version.ts +2 -2
- package/src/resources/classes/z3.ts +13 -13
- package/src/resources/classes/zambda.ts +17 -17
- package/src/resources/classes/zambdaLogStream.ts +7 -7
- package/src/resources/types/AccessPolicy.ts +12 -3
- package/src/resources/types/ChargeIssueParams.ts +1 -1
- package/src/resources/types/ChargeStatusParams.ts +1 -1
- package/src/resources/types/DeveloperListV2Params.ts +2 -2
- package/src/resources/types/FaxSendParams.ts +1 -1
- package/src/resources/types/M2mListV2Params.ts +2 -2
- package/src/resources/types/M2mRotateSecretResponse.ts +1 -1
- package/src/resources/types/RcmEligibilityCheckParams.ts +1 -1
- package/src/resources/types/RoleUpdateParams.ts +0 -4
- package/src/resources/types/TelemedCreateMeetingParams.ts +1 -1
- package/src/resources/types/UserListV2Params.ts +2 -2
- package/src/resources/types/ZambdaCreateParams.ts +1 -1
- package/src/resources/types/ZambdaFunction.ts +1 -1
- package/src/resources/types/ZambdaUpdateParams.ts +2 -2
- package/dist/esm/node_modules/tslib/package.json +0 -1
- package/dist/esm/node_modules/tslib/tslib.es6.js +0 -34
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
|
@@ -1,21 +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 _Version_instances, _Version_baseUrlThunk;
|
|
4
6
|
class Version extends SDKResource {
|
|
5
7
|
constructor(config) {
|
|
6
8
|
super(config);
|
|
7
|
-
|
|
8
|
-
baseUrlThunk() {
|
|
9
|
-
var _a, _b;
|
|
10
|
-
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';
|
|
9
|
+
_Version_instances.add(this);
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
12
|
* Get project API version. This endpoint is public so there are no access policy requirements.
|
|
14
13
|
*/
|
|
15
14
|
get(request) {
|
|
16
|
-
return this.request('/version', 'get', this.
|
|
15
|
+
return this.request('/version', 'get', __classPrivateFieldGet(this, _Version_instances, "m", _Version_baseUrlThunk).bind(this))(request);
|
|
17
16
|
}
|
|
18
17
|
}
|
|
18
|
+
_Version_instances = new WeakSet(), _Version_baseUrlThunk = function _Version_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
|
+
};
|
|
19
22
|
|
|
20
23
|
export { Version };
|
|
21
24
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../../src/resources/classes/version.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrClientRequest, VersionGetResponse } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Version 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 project API version. This endpoint is public so there are no access policy requirements.\n */\n get(request?: OystehrClientRequest): Promise<VersionGetResponse> {\n return this.request('/version', 'get', this
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../../src/resources/classes/version.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrClientRequest, VersionGetResponse } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Version 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 project API version. This endpoint is public so there are no access policy requirements.\n */\n get(request?: OystehrClientRequest): Promise<VersionGetResponse> {\n return this.request('/version', 'get', this.#baseUrlThunk.bind(this))(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;;AAEG;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;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;;;;"}
|
|
@@ -3,8 +3,8 @@ import { SDKResource } from '../../client/client';
|
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
import * as ext from './z3-ext';
|
|
5
5
|
export declare class Z3 extends SDKResource {
|
|
6
|
+
#private;
|
|
6
7
|
constructor(config: OystehrConfig);
|
|
7
|
-
baseUrlThunk(): string;
|
|
8
8
|
/**
|
|
9
9
|
* Uploads a file to the bucket and key. Files should be Blobs.
|
|
10
10
|
* @param params upload file params
|
|
@@ -23,42 +23,42 @@ export declare class Z3 extends SDKResource {
|
|
|
23
23
|
*/
|
|
24
24
|
getPresignedUrlForZ3Url: typeof ext.getPresignedUrlForZ3Url;
|
|
25
25
|
/**
|
|
26
|
-
* List all Z3 Buckets. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
26
|
+
* List all Z3 Buckets. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
27
27
|
*
|
|
28
28
|
* Access Policy Action: `Z3:ListBuckets`
|
|
29
29
|
* Access Policy Resource: `Z3:BucketName`
|
|
30
30
|
*/
|
|
31
31
|
listBuckets(request?: OystehrClientRequest): Promise<Z3ListBucketsResponse>;
|
|
32
32
|
/**
|
|
33
|
-
* Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
33
|
+
* Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
34
34
|
*
|
|
35
35
|
* Access Policy Action: `Z3:CreateBucket`
|
|
36
36
|
* Access Policy Resource: `Z3:BucketName`
|
|
37
37
|
*/
|
|
38
38
|
createBucket(params: Z3CreateBucketParams, request?: OystehrClientRequest): Promise<Z3CreateBucketResponse>;
|
|
39
39
|
/**
|
|
40
|
-
* Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
40
|
+
* Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
41
41
|
*
|
|
42
42
|
* Access Policy Action: `Z3:DeleteBucket`
|
|
43
43
|
* Access Policy Resource: `Z3:BucketName`
|
|
44
44
|
*/
|
|
45
45
|
deleteBucket(params: Z3DeleteBucketParams, request?: OystehrClientRequest): Promise<void>;
|
|
46
46
|
/**
|
|
47
|
-
* List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
47
|
+
* List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
48
48
|
*
|
|
49
49
|
* Access Policy Action: `Z3:ListObjects`
|
|
50
50
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
51
51
|
*/
|
|
52
52
|
listObjects(params: Z3ListObjectsParams, request?: OystehrClientRequest): Promise<Z3ListObjectsResponse>;
|
|
53
53
|
/**
|
|
54
|
-
* Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
54
|
+
* Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
55
55
|
*
|
|
56
56
|
* Access Policy Action: `Z3:PutObject` or `Z3:GetObject`
|
|
57
57
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
58
58
|
*/
|
|
59
59
|
getPresignedUrl(params: Z3GetPresignedUrlParams, request?: OystehrClientRequest): Promise<Z3GetPresignedUrlResponse>;
|
|
60
60
|
/**
|
|
61
|
-
* Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
61
|
+
* Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
62
62
|
*
|
|
63
63
|
* Access Policy Action: `Z3:DeleteObject`
|
|
64
64
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
|
|
1
2
|
import { SDKResource } from '../../client/client.js';
|
|
2
3
|
import { uploadFile, downloadFile, getPresignedUrlForZ3Url } from './z3-ext.js';
|
|
3
4
|
|
|
4
5
|
// AUTOGENERATED -- DO NOT EDIT
|
|
6
|
+
var _Z3_instances, _Z3_baseUrlThunk;
|
|
5
7
|
class Z3 extends SDKResource {
|
|
6
8
|
constructor(config) {
|
|
7
9
|
super(config);
|
|
10
|
+
_Z3_instances.add(this);
|
|
8
11
|
/**
|
|
9
12
|
* Uploads a file to the bucket and key. Files should be Blobs.
|
|
10
13
|
* @param params upload file params
|
|
@@ -23,65 +26,65 @@ class Z3 extends SDKResource {
|
|
|
23
26
|
*/
|
|
24
27
|
this.getPresignedUrlForZ3Url = getPresignedUrlForZ3Url;
|
|
25
28
|
}
|
|
26
|
-
baseUrlThunk() {
|
|
27
|
-
var _a, _b;
|
|
28
|
-
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';
|
|
29
|
-
}
|
|
30
29
|
/**
|
|
31
|
-
* List all Z3 Buckets. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
30
|
+
* List all Z3 Buckets. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
32
31
|
*
|
|
33
32
|
* Access Policy Action: `Z3:ListBuckets`
|
|
34
33
|
* Access Policy Resource: `Z3:BucketName`
|
|
35
34
|
*/
|
|
36
35
|
listBuckets(request) {
|
|
37
|
-
return this.request('/z3', 'get', this.
|
|
36
|
+
return this.request('/z3', 'get', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(request);
|
|
38
37
|
}
|
|
39
38
|
/**
|
|
40
|
-
* Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
39
|
+
* Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
41
40
|
*
|
|
42
41
|
* Access Policy Action: `Z3:CreateBucket`
|
|
43
42
|
* Access Policy Resource: `Z3:BucketName`
|
|
44
43
|
*/
|
|
45
44
|
createBucket(params, request) {
|
|
46
|
-
return this.request('/z3/{bucketName}', 'put', this.
|
|
45
|
+
return this.request('/z3/{bucketName}', 'put', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(params, request);
|
|
47
46
|
}
|
|
48
47
|
/**
|
|
49
|
-
* Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
48
|
+
* Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
50
49
|
*
|
|
51
50
|
* Access Policy Action: `Z3:DeleteBucket`
|
|
52
51
|
* Access Policy Resource: `Z3:BucketName`
|
|
53
52
|
*/
|
|
54
53
|
deleteBucket(params, request) {
|
|
55
|
-
return this.request('/z3/{bucketName}', 'delete', this.
|
|
54
|
+
return this.request('/z3/{bucketName}', 'delete', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(params, request);
|
|
56
55
|
}
|
|
57
56
|
/**
|
|
58
|
-
* List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
57
|
+
* List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
59
58
|
*
|
|
60
59
|
* Access Policy Action: `Z3:ListObjects`
|
|
61
60
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
62
61
|
*/
|
|
63
62
|
listObjects(params, request) {
|
|
64
|
-
return this.request('/z3/{bucketName}/{objectPath+}', 'get', this.
|
|
63
|
+
return this.request('/z3/{bucketName}/{objectPath+}', 'get', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(params, request);
|
|
65
64
|
}
|
|
66
65
|
/**
|
|
67
|
-
* Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
66
|
+
* Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
68
67
|
*
|
|
69
68
|
* Access Policy Action: `Z3:PutObject` or `Z3:GetObject`
|
|
70
69
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
71
70
|
*/
|
|
72
71
|
getPresignedUrl(params, request) {
|
|
73
|
-
return this.request('/z3/{bucketName}/{objectPath+}', 'post', this.
|
|
72
|
+
return this.request('/z3/{bucketName}/{objectPath+}', 'post', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(params, request);
|
|
74
73
|
}
|
|
75
74
|
/**
|
|
76
|
-
* Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
75
|
+
* Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
|
|
77
76
|
*
|
|
78
77
|
* Access Policy Action: `Z3:DeleteObject`
|
|
79
78
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
80
79
|
*/
|
|
81
80
|
deleteObject(params, request) {
|
|
82
|
-
return this.request('/z3/{bucketName}/{objectPath+}', 'delete', this.
|
|
81
|
+
return this.request('/z3/{bucketName}/{objectPath+}', 'delete', __classPrivateFieldGet(this, _Z3_instances, "m", _Z3_baseUrlThunk).bind(this))(params, request);
|
|
83
82
|
}
|
|
84
83
|
}
|
|
84
|
+
_Z3_instances = new WeakSet(), _Z3_baseUrlThunk = function _Z3_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
|
+
};
|
|
85
88
|
|
|
86
89
|
export { Z3 };
|
|
87
90
|
//# sourceMappingURL=z3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z3.js","sources":["../../../../src/resources/classes/z3.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n Z3CreateBucketParams,\n Z3CreateBucketResponse,\n Z3DeleteBucketParams,\n Z3DeleteObjectParams,\n Z3GetPresignedUrlParams,\n Z3GetPresignedUrlResponse,\n Z3ListBucketsResponse,\n Z3ListObjectsParams,\n Z3ListObjectsResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\nimport * as ext from './z3-ext';\n\nexport class Z3 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 * Uploads a file to the bucket and key. Files should be Blobs.\n * @param params upload file params\n */\n uploadFile = ext.uploadFile;\n /**\n * Downloads an object matching the bucket and key. File content is returned as an ArrayBuffer.\n * @param params download file params\n */\n downloadFile = ext.downloadFile;\n /**\n * This helper performs a `getPresignedUrl` request for Z3 URLs of the forms\n * `https://projects-api.oystehr.com/v1/z3/<bucket>/<key>` or `z3://<bucket>/<key>`\n * instead of the standard SDK `Z3GetPresignedUrlParams`.\n * @param params url and action\n */\n getPresignedUrlForZ3Url = ext.getPresignedUrlForZ3Url;\n /**\n * List all Z3 Buckets. [Z3](https://docs.oystehr.com/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.\n *\n * Access Policy Action: `Z3:ListBuckets`\n * Access Policy Resource: `Z3:BucketName`\n */\n listBuckets(request?: OystehrClientRequest): Promise<Z3ListBucketsResponse> {\n return this.request('/z3', 'get', this
|
|
1
|
+
{"version":3,"file":"z3.js","sources":["../../../../src/resources/classes/z3.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n Z3CreateBucketParams,\n Z3CreateBucketResponse,\n Z3DeleteBucketParams,\n Z3DeleteObjectParams,\n Z3GetPresignedUrlParams,\n Z3GetPresignedUrlResponse,\n Z3ListBucketsResponse,\n Z3ListObjectsParams,\n Z3ListObjectsResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\nimport * as ext from './z3-ext';\n\nexport class Z3 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 * Uploads a file to the bucket and key. Files should be Blobs.\n * @param params upload file params\n */\n uploadFile = ext.uploadFile;\n /**\n * Downloads an object matching the bucket and key. File content is returned as an ArrayBuffer.\n * @param params download file params\n */\n downloadFile = ext.downloadFile;\n /**\n * This helper performs a `getPresignedUrl` request for Z3 URLs of the forms\n * `https://projects-api.oystehr.com/v1/z3/<bucket>/<key>` or `z3://<bucket>/<key>`\n * instead of the standard SDK `Z3GetPresignedUrlParams`.\n * @param params url and action\n */\n getPresignedUrlForZ3Url = ext.getPresignedUrlForZ3Url;\n /**\n * List all Z3 Buckets. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.\n *\n * Access Policy Action: `Z3:ListBuckets`\n * Access Policy Resource: `Z3:BucketName`\n */\n listBuckets(request?: OystehrClientRequest): Promise<Z3ListBucketsResponse> {\n return this.request('/z3', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.\n *\n * Access Policy Action: `Z3:CreateBucket`\n * Access Policy Resource: `Z3:BucketName`\n */\n createBucket(params: Z3CreateBucketParams, request?: OystehrClientRequest): Promise<Z3CreateBucketResponse> {\n return this.request('/z3/{bucketName}', 'put', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.\n *\n * Access Policy Action: `Z3:DeleteBucket`\n * Access Policy Resource: `Z3:BucketName`\n */\n deleteBucket(params: Z3DeleteBucketParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/z3/{bucketName}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.\n *\n * Access Policy Action: `Z3:ListObjects`\n * Access Policy Resource: `Z3:BucketName:ObjectPath`\n */\n listObjects(params: Z3ListObjectsParams, request?: OystehrClientRequest): Promise<Z3ListObjectsResponse> {\n return this.request('/z3/{bucketName}/{objectPath+}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.\n *\n * Access Policy Action: `Z3:PutObject` or `Z3:GetObject`\n * Access Policy Resource: `Z3:BucketName:ObjectPath`\n */\n getPresignedUrl(params: Z3GetPresignedUrlParams, request?: OystehrClientRequest): Promise<Z3GetPresignedUrlResponse> {\n return this.request('/z3/{bucketName}/{objectPath+}', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.\n *\n * Access Policy Action: `Z3:DeleteObject`\n * Access Policy Resource: `Z3:BucketName:ObjectPath`\n */\n deleteObject(params: Z3DeleteObjectParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/z3/{bucketName}/{objectPath+}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":["ext.uploadFile","ext.downloadFile","ext.getPresignedUrlForZ3Url"],"mappings":";;;;AAAA;;AAkBM,MAAO,EAAG,SAAQ,WAAW,CAAA;AACjC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;AAKhB;;;AAGG;AACH,QAAA,IAAA,CAAA,UAAU,GAAGA,UAAc,CAAC;AAC5B;;;AAGG;AACH,QAAA,IAAA,CAAA,YAAY,GAAGC,YAAgB,CAAC;AAChC;;;;;AAKG;AACH,QAAA,IAAA,CAAA,uBAAuB,GAAGC,uBAA2B,CAAC;KApBrD;AAqBD;;;;;AAKG;AACH,IAAA,WAAW,CAAC,OAA8B,EAAA;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,uCAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KAC3E;AACD;;;;;AAKG;IACH,YAAY,CAAC,MAA4B,EAAE,OAA8B,EAAA;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,EAAA,aAAA,EAAA,GAAA,EAAA,gBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAChG;AACD;;;;;AAKG;IACH,YAAY,CAAC,MAA4B,EAAE,OAA8B,EAAA;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,QAAQ,EAAE,sBAAA,CAAA,IAAI,EAAA,aAAA,EAAA,GAAA,EAAA,gBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnG;AACD;;;;;AAKG;IACH,WAAW,CAAC,MAA2B,EAAE,OAA8B,EAAA;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,KAAK,EAAE,sBAAA,CAAA,IAAI,EAAA,aAAA,EAAA,GAAA,EAAA,gBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9G;AACD;;;;;AAKG;IACH,eAAe,CAAC,MAA+B,EAAE,OAA8B,EAAA;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,aAAA,EAAA,GAAA,EAAA,gBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/G;AACD;;;;;AAKG;IACH,YAAY,CAAC,MAA4B,EAAE,OAA8B,EAAA;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,QAAQ,EAAE,sBAAA,CAAA,IAAI,EAAA,aAAA,EAAA,GAAA,EAAA,gBAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACjH;AACF,CAAA;;;AAzEG,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;;;;"}
|
|
@@ -3,59 +3,59 @@ import { SDKResource } from '../../client/client';
|
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
import * as ext from './zambda-ext';
|
|
5
5
|
export declare class Zambda extends SDKResource {
|
|
6
|
+
#private;
|
|
6
7
|
constructor(config: OystehrConfig);
|
|
7
|
-
baseUrlThunk(): string;
|
|
8
8
|
uploadFile: typeof ext.uploadFile;
|
|
9
9
|
/**
|
|
10
|
-
* Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
10
|
+
* Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
11
11
|
*
|
|
12
12
|
* Access Policy Action: `Zambda:ListAllFunctions`
|
|
13
13
|
* Access Policy Resource: `Zambda:Function`
|
|
14
14
|
*/
|
|
15
15
|
list(request?: OystehrClientRequest): Promise<ZambdaListResponse>;
|
|
16
16
|
/**
|
|
17
|
-
* Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
17
|
+
* Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
18
18
|
*
|
|
19
19
|
* Access Policy Action: `Zambda:CreateFunction`
|
|
20
20
|
* Access Policy Resource: `Zambda:Function`
|
|
21
21
|
*/
|
|
22
22
|
create(params: ZambdaCreateParams, request?: OystehrClientRequest): Promise<ZambdaCreateResponse>;
|
|
23
23
|
/**
|
|
24
|
-
* Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
24
|
+
* Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
25
25
|
*
|
|
26
26
|
* Access Policy Action: `Zambda:GetFunction`
|
|
27
27
|
* Access Policy Resource: `Zambda:Function`
|
|
28
28
|
*/
|
|
29
29
|
get(params: ZambdaGetParams, request?: OystehrClientRequest): Promise<ZambdaGetResponse>;
|
|
30
30
|
/**
|
|
31
|
-
* Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
31
|
+
* Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
32
32
|
*
|
|
33
33
|
* Access Policy Action: `Zambda:UpdateFunction`
|
|
34
34
|
* Access Policy Resource: `Zambda:Function`
|
|
35
35
|
*/
|
|
36
36
|
update(params: ZambdaUpdateParams, request?: OystehrClientRequest): Promise<ZambdaUpdateResponse>;
|
|
37
37
|
/**
|
|
38
|
-
* Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
38
|
+
* Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
39
39
|
*
|
|
40
40
|
* Access Policy Action: `Zambda:DeleteFunction`
|
|
41
41
|
* Access Policy Resource: `Zambda:Function`
|
|
42
42
|
*/
|
|
43
43
|
delete(params: ZambdaDeleteParams, request?: OystehrClientRequest): Promise<void>;
|
|
44
44
|
/**
|
|
45
|
-
* Execute the [Authenticated Zambda Function](https://docs.oystehr.com/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
45
|
+
* Execute the [Authenticated Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
46
46
|
*
|
|
47
47
|
* Access Policy Action: `Zambda:InvokeFunction`
|
|
48
48
|
* Access Policy Resource: `Zambda:Function`
|
|
49
49
|
*/
|
|
50
50
|
execute(params: ZambdaExecuteParams, request?: OystehrClientRequest): Promise<ZambdaExecuteResponse>;
|
|
51
51
|
/**
|
|
52
|
-
* Execute the [Public Zambda Function](https://docs.oystehr.com/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
52
|
+
* Execute the [Public Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
53
53
|
*
|
|
54
54
|
* Execute a zambda that has method http_open. This endpoint is public so there are no access policy requirements.
|
|
55
55
|
*/
|
|
56
56
|
executePublic(params: ZambdaExecutePublicParams, request?: OystehrClientRequest): Promise<ZambdaExecutePublicResponse>;
|
|
57
57
|
/**
|
|
58
|
-
* Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
58
|
+
* Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
59
59
|
*
|
|
60
60
|
* Access Policy Action: `Zambda:UpdateFunction`
|
|
61
61
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -1,88 +1,91 @@
|
|
|
1
|
+
import { __classPrivateFieldGet } from '../../node_modules/tslib/tslib.es6.js';
|
|
1
2
|
import { SDKResource } from '../../client/client.js';
|
|
2
3
|
import { uploadFile } from './zambda-ext.js';
|
|
3
4
|
|
|
4
5
|
// AUTOGENERATED -- DO NOT EDIT
|
|
6
|
+
var _Zambda_instances, _Zambda_baseUrlThunk;
|
|
5
7
|
class Zambda extends SDKResource {
|
|
6
8
|
constructor(config) {
|
|
7
9
|
super(config);
|
|
10
|
+
_Zambda_instances.add(this);
|
|
8
11
|
this.uploadFile = uploadFile;
|
|
9
12
|
}
|
|
10
|
-
baseUrlThunk() {
|
|
11
|
-
var _a, _b;
|
|
12
|
-
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';
|
|
13
|
-
}
|
|
14
13
|
/**
|
|
15
|
-
* Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
14
|
+
* Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
16
15
|
*
|
|
17
16
|
* Access Policy Action: `Zambda:ListAllFunctions`
|
|
18
17
|
* Access Policy Resource: `Zambda:Function`
|
|
19
18
|
*/
|
|
20
19
|
list(request) {
|
|
21
|
-
return this.request('/zambda', 'get', this.
|
|
20
|
+
return this.request('/zambda', 'get', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(request);
|
|
22
21
|
}
|
|
23
22
|
/**
|
|
24
|
-
* Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
23
|
+
* Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
25
24
|
*
|
|
26
25
|
* Access Policy Action: `Zambda:CreateFunction`
|
|
27
26
|
* Access Policy Resource: `Zambda:Function`
|
|
28
27
|
*/
|
|
29
28
|
create(params, request) {
|
|
30
|
-
return this.request('/zambda', 'post', this.
|
|
29
|
+
return this.request('/zambda', 'post', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
|
-
* Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
32
|
+
* Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
34
33
|
*
|
|
35
34
|
* Access Policy Action: `Zambda:GetFunction`
|
|
36
35
|
* Access Policy Resource: `Zambda:Function`
|
|
37
36
|
*/
|
|
38
37
|
get(params, request) {
|
|
39
|
-
return this.request('/zambda/{id}', 'get', this.
|
|
38
|
+
return this.request('/zambda/{id}', 'get', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
40
39
|
}
|
|
41
40
|
/**
|
|
42
|
-
* Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
41
|
+
* Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
43
42
|
*
|
|
44
43
|
* Access Policy Action: `Zambda:UpdateFunction`
|
|
45
44
|
* Access Policy Resource: `Zambda:Function`
|
|
46
45
|
*/
|
|
47
46
|
update(params, request) {
|
|
48
|
-
return this.request('/zambda/{id}', 'patch', this.
|
|
47
|
+
return this.request('/zambda/{id}', 'patch', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
49
48
|
}
|
|
50
49
|
/**
|
|
51
|
-
* Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
50
|
+
* Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
52
51
|
*
|
|
53
52
|
* Access Policy Action: `Zambda:DeleteFunction`
|
|
54
53
|
* Access Policy Resource: `Zambda:Function`
|
|
55
54
|
*/
|
|
56
55
|
delete(params, request) {
|
|
57
|
-
return this.request('/zambda/{id}', 'delete', this.
|
|
56
|
+
return this.request('/zambda/{id}', 'delete', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
58
57
|
}
|
|
59
58
|
/**
|
|
60
|
-
* Execute the [Authenticated Zambda Function](https://docs.oystehr.com/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
59
|
+
* Execute the [Authenticated Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
61
60
|
*
|
|
62
61
|
* Access Policy Action: `Zambda:InvokeFunction`
|
|
63
62
|
* Access Policy Resource: `Zambda:Function`
|
|
64
63
|
*/
|
|
65
64
|
execute(params, request) {
|
|
66
|
-
return this.request('/zambda/{id}/execute', 'post', this.
|
|
65
|
+
return this.request('/zambda/{id}/execute', 'post', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
67
66
|
}
|
|
68
67
|
/**
|
|
69
|
-
* Execute the [Public Zambda Function](https://docs.oystehr.com/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
68
|
+
* Execute the [Public Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
70
69
|
*
|
|
71
70
|
* Execute a zambda that has method http_open. This endpoint is public so there are no access policy requirements.
|
|
72
71
|
*/
|
|
73
72
|
executePublic(params, request) {
|
|
74
|
-
return this.request('/zambda/{id}/execute-public', 'post', this.
|
|
73
|
+
return this.request('/zambda/{id}/execute-public', 'post', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
75
74
|
}
|
|
76
75
|
/**
|
|
77
|
-
* Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
76
|
+
* Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
78
77
|
*
|
|
79
78
|
* Access Policy Action: `Zambda:UpdateFunction`
|
|
80
79
|
* Access Policy Resource: `Zambda:Function`
|
|
81
80
|
*/
|
|
82
81
|
s3Upload(params, request) {
|
|
83
|
-
return this.request('/zambda/{id}/s3-upload', 'post', this.
|
|
82
|
+
return this.request('/zambda/{id}/s3-upload', 'post', __classPrivateFieldGet(this, _Zambda_instances, "m", _Zambda_baseUrlThunk).bind(this))(params, request);
|
|
84
83
|
}
|
|
85
84
|
}
|
|
85
|
+
_Zambda_instances = new WeakSet(), _Zambda_baseUrlThunk = function _Zambda_baseUrlThunk() {
|
|
86
|
+
var _a, _b;
|
|
87
|
+
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';
|
|
88
|
+
};
|
|
86
89
|
|
|
87
90
|
export { Zambda };
|
|
88
91
|
//# sourceMappingURL=zambda.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zambda.js","sources":["../../../../src/resources/classes/zambda.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n ZambdaCreateParams,\n ZambdaCreateResponse,\n ZambdaDeleteParams,\n ZambdaExecuteParams,\n ZambdaExecutePublicParams,\n ZambdaExecutePublicResponse,\n ZambdaExecuteResponse,\n ZambdaGetParams,\n ZambdaGetResponse,\n ZambdaListResponse,\n ZambdaS3UploadParams,\n ZambdaS3UploadResponse,\n ZambdaUpdateParams,\n ZambdaUpdateResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\nimport * as ext from './zambda-ext';\n\nexport class Zambda 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 uploadFile = ext.uploadFile;\n /**\n * Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:ListAllFunctions`\n * Access Policy Resource: `Zambda:Function`\n */\n list(request?: OystehrClientRequest): Promise<ZambdaListResponse> {\n return this.request('/zambda', 'get', this
|
|
1
|
+
{"version":3,"file":"zambda.js","sources":["../../../../src/resources/classes/zambda.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n ZambdaCreateParams,\n ZambdaCreateResponse,\n ZambdaDeleteParams,\n ZambdaExecuteParams,\n ZambdaExecutePublicParams,\n ZambdaExecutePublicResponse,\n ZambdaExecuteResponse,\n ZambdaGetParams,\n ZambdaGetResponse,\n ZambdaListResponse,\n ZambdaS3UploadParams,\n ZambdaS3UploadResponse,\n ZambdaUpdateParams,\n ZambdaUpdateResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\nimport * as ext from './zambda-ext';\n\nexport class Zambda 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 uploadFile = ext.uploadFile;\n /**\n * Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:ListAllFunctions`\n * Access Policy Resource: `Zambda:Function`\n */\n list(request?: OystehrClientRequest): Promise<ZambdaListResponse> {\n return this.request('/zambda', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:CreateFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n create(params: ZambdaCreateParams, request?: OystehrClientRequest): Promise<ZambdaCreateResponse> {\n return this.request('/zambda', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:GetFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n get(params: ZambdaGetParams, request?: OystehrClientRequest): Promise<ZambdaGetResponse> {\n return this.request('/zambda/{id}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:UpdateFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n update(params: ZambdaUpdateParams, request?: OystehrClientRequest): Promise<ZambdaUpdateResponse> {\n return this.request('/zambda/{id}', 'patch', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:DeleteFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n delete(params: ZambdaDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/zambda/{id}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Execute the [Authenticated Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:InvokeFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n execute(params: ZambdaExecuteParams, request?: OystehrClientRequest): Promise<ZambdaExecuteResponse> {\n return this.request('/zambda/{id}/execute', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Execute the [Public Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Execute a zambda that has method http_open. This endpoint is public so there are no access policy requirements.\n */\n executePublic(\n params: ZambdaExecutePublicParams,\n request?: OystehrClientRequest\n ): Promise<ZambdaExecutePublicResponse> {\n return this.request('/zambda/{id}/execute-public', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:UpdateFunction`\n * Access Policy Resource: `Zambda:Function`\n */\n s3Upload(params: ZambdaS3UploadParams, request?: OystehrClientRequest): Promise<ZambdaS3UploadResponse> {\n return this.request('/zambda/{id}/s3-upload', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":["ext.uploadFile"],"mappings":";;;;AAAA;;AAuBM,MAAO,MAAO,SAAQ,WAAW,CAAA;AACrC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;AAKhB,QAAA,IAAA,CAAA,UAAU,GAAGA,UAAc,CAAC;KAJ3B;AAKD;;;;;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,MAAM,CAAC,MAA0B,EAAE,OAA8B,EAAA;QAC/D,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,cAAc,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;KAC5F;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAA0B,EAAE,OAA8B,EAAA;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,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,cAAc,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;KAC/F;AACD;;;;;AAKG;IACH,OAAO,CAAC,MAA2B,EAAE,OAA8B,EAAA;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,sBAAsB,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;KACrG;AACD;;;;AAIG;IACH,aAAa,CACX,MAAiC,EACjC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,6BAA6B,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;KAC5G;AACD;;;;;AAKG;IACH,QAAQ,CAAC,MAA4B,EAAE,OAA8B,EAAA;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,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;KACvG;AACF,CAAA;;;AA7EG,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,24 +2,24 @@ import { OystehrClientRequest, ZambdaLogStreamGetParams, ZambdaLogStreamGetRespo
|
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
export declare class ZambdaLogStream extends SDKResource {
|
|
5
|
+
#private;
|
|
5
6
|
constructor(config: OystehrConfig);
|
|
6
|
-
baseUrlThunk(): string;
|
|
7
7
|
/**
|
|
8
|
-
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
8
|
+
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
9
9
|
*
|
|
10
10
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
11
11
|
* Access Policy Resource: `Zambda:Function`
|
|
12
12
|
*/
|
|
13
13
|
list(params: ZambdaLogStreamListParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamListResponse>;
|
|
14
14
|
/**
|
|
15
|
-
* Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
15
|
+
* Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
16
16
|
*
|
|
17
17
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
18
18
|
* Access Policy Resource: `Zambda:Function`
|
|
19
19
|
*/
|
|
20
20
|
search(params: ZambdaLogStreamSearchParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamSearchResponse>;
|
|
21
21
|
/**
|
|
22
|
-
* Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
22
|
+
* Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
23
23
|
*
|
|
24
24
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
25
25
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -1,42 +1,45 @@
|
|
|
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 _ZambdaLogStream_instances, _ZambdaLogStream_baseUrlThunk;
|
|
4
6
|
class ZambdaLogStream extends SDKResource {
|
|
5
7
|
constructor(config) {
|
|
6
8
|
super(config);
|
|
7
|
-
|
|
8
|
-
baseUrlThunk() {
|
|
9
|
-
var _a, _b;
|
|
10
|
-
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';
|
|
9
|
+
_ZambdaLogStream_instances.add(this);
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
|
-
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
12
|
+
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
14
13
|
*
|
|
15
14
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
16
15
|
* Access Policy Resource: `Zambda:Function`
|
|
17
16
|
*/
|
|
18
17
|
list(params, request) {
|
|
19
|
-
return this.request('/zambda/{id}/logStream', 'post', this.
|
|
18
|
+
return this.request('/zambda/{id}/logStream', 'post', __classPrivateFieldGet(this, _ZambdaLogStream_instances, "m", _ZambdaLogStream_baseUrlThunk).bind(this))(params, request);
|
|
20
19
|
}
|
|
21
20
|
/**
|
|
22
|
-
* Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
21
|
+
* Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
23
22
|
*
|
|
24
23
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
25
24
|
* Access Policy Resource: `Zambda:Function`
|
|
26
25
|
*/
|
|
27
26
|
search(params, request) {
|
|
28
|
-
return this.request('/zambda/{id}/logStream/search', 'post', this.
|
|
27
|
+
return this.request('/zambda/{id}/logStream/search', 'post', __classPrivateFieldGet(this, _ZambdaLogStream_instances, "m", _ZambdaLogStream_baseUrlThunk).bind(this))(params, request);
|
|
29
28
|
}
|
|
30
29
|
/**
|
|
31
|
-
* Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
30
|
+
* Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
|
|
32
31
|
*
|
|
33
32
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
34
33
|
* Access Policy Resource: `Zambda:Function`
|
|
35
34
|
*/
|
|
36
35
|
get(params, request) {
|
|
37
|
-
return this.request('/zambda/{id}/logStream/{logStreamName}', 'post', this.
|
|
36
|
+
return this.request('/zambda/{id}/logStream/{logStreamName}', 'post', __classPrivateFieldGet(this, _ZambdaLogStream_instances, "m", _ZambdaLogStream_baseUrlThunk).bind(this))(params, request);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
39
|
+
_ZambdaLogStream_instances = new WeakSet(), _ZambdaLogStream_baseUrlThunk = function _ZambdaLogStream_baseUrlThunk() {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
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';
|
|
42
|
+
};
|
|
40
43
|
|
|
41
44
|
export { ZambdaLogStream };
|
|
42
45
|
//# sourceMappingURL=zambdaLogStream.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zambdaLogStream.js","sources":["../../../../src/resources/classes/zambdaLogStream.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n ZambdaLogStreamGetParams,\n ZambdaLogStreamGetResponse,\n ZambdaLogStreamListParams,\n ZambdaLogStreamListResponse,\n ZambdaLogStreamSearchParams,\n ZambdaLogStreamSearchResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class ZambdaLogStream 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 log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:ReadLogs`\n * Access Policy Resource: `Zambda:Function`\n */\n list(params: ZambdaLogStreamListParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamListResponse> {\n return this.request('/zambda/{id}/logStream', 'post', this
|
|
1
|
+
{"version":3,"file":"zambdaLogStream.js","sources":["../../../../src/resources/classes/zambdaLogStream.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n ZambdaLogStreamGetParams,\n ZambdaLogStreamGetResponse,\n ZambdaLogStreamListParams,\n ZambdaLogStreamListResponse,\n ZambdaLogStreamSearchParams,\n ZambdaLogStreamSearchResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class ZambdaLogStream 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 log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:ReadLogs`\n * Access Policy Resource: `Zambda:Function`\n */\n list(params: ZambdaLogStreamListParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamListResponse> {\n return this.request('/zambda/{id}/logStream', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:ReadLogs`\n * Access Policy Resource: `Zambda:Function`\n */\n search(params: ZambdaLogStreamSearchParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamSearchResponse> {\n return this.request('/zambda/{id}/logStream/search', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.\n *\n * Access Policy Action: `Zambda:ReadLogs`\n * Access Policy Resource: `Zambda:Function`\n */\n get(params: ZambdaLogStreamGetParams, request?: OystehrClientRequest): Promise<ZambdaLogStreamGetResponse> {\n return this.request(\n '/zambda/{id}/logStream/{logStreamName}',\n 'post',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n}\n"],"names":[],"mappings":";;;AAAA;;AAcM,MAAO,eAAgB,SAAQ,WAAW,CAAA;AAC9C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;;KACf;AAID;;;;;AAKG;IACH,IAAI,CAAC,MAAiC,EAAE,OAA8B,EAAA;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,0BAAA,EAAA,GAAA,EAAA,6BAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACvG;AACD;;;;;AAKG;IACH,MAAM,CAAC,MAAmC,EAAE,OAA8B,EAAA;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,MAAM,EAAE,sBAAA,CAAA,IAAI,EAAA,0BAAA,EAAA,GAAA,EAAA,6BAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9G;AACD;;;;;AAKG;IACH,GAAG,CAAC,MAAgC,EAAE,OAA8B,EAAA;QAClE,OAAO,IAAI,CAAC,OAAO,CACjB,wCAAwC,EACxC,MAAM,EACN,sBAAA,CAAA,IAAI,EAAA,0BAAA,EAAA,GAAA,EAAA,6BAAA,CAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpB;AACF,CAAA;;;AAjCG,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;;;;"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export interface AccessPolicy {
|
|
2
2
|
rule: {
|
|
3
|
-
resource
|
|
4
|
-
action
|
|
5
|
-
effect
|
|
3
|
+
resource: string | string[];
|
|
4
|
+
action: string | string[];
|
|
5
|
+
effect: 'Allow' | 'Deny';
|
|
6
|
+
condition?: {
|
|
7
|
+
[k: string]: any;
|
|
8
|
+
} | {
|
|
9
|
+
[k: string]: any;
|
|
10
|
+
}[] | string | string[];
|
|
6
11
|
}[];
|
|
7
12
|
}
|