@novu/api 0.0.1-alpha.83 → 0.0.1-alpha.88
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 +0 -30
- package/hooks/novu-custom-hook.js +1 -1
- package/hooks/novu-custom-hook.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/index.d.ts +0 -7
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -7
- package/models/components/index.js.map +1 -1
- package/models/components/integrationresponsedto.d.ts +8 -8
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +14 -13
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/notificationfeeditemdto.d.ts +4 -4
- package/models/components/notificationfeeditemdto.d.ts.map +1 -1
- package/models/components/notificationfeeditemdto.js +2 -2
- package/models/components/notificationfeeditemdto.js.map +1 -1
- package/models/components/stepfilter.d.ts +8 -8
- package/models/components/stepfilter.d.ts.map +1 -1
- package/models/components/stepfilter.js +13 -13
- package/models/components/stepfilter.js.map +1 -1
- package/models/components/topicpayloaddto.d.ts +27 -2
- package/models/components/topicpayloaddto.d.ts.map +1 -1
- package/models/components/topicpayloaddto.js +22 -4
- package/models/components/topicpayloaddto.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +28 -4
- package/models/components/triggereventrequestdto.d.ts.map +1 -1
- package/models/components/triggereventrequestdto.js +57 -5
- package/models/components/triggereventrequestdto.js.map +1 -1
- package/models/components/triggereventresponsedto.d.ts +8 -8
- package/models/components/triggereventresponsedto.d.ts.map +1 -1
- package/models/components/triggereventresponsedto.js +14 -13
- package/models/components/triggereventresponsedto.js.map +1 -1
- package/models/operations/index.d.ts +0 -9
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -9
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -9
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -15
- package/sdk/sdk.js.map +1 -1
- package/src/hooks/novu-custom-hook.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +0 -7
- package/src/models/components/integrationresponsedto.ts +14 -18
- package/src/models/components/notificationfeeditemdto.ts +4 -4
- package/src/models/components/stepfilter.ts +16 -15
- package/src/models/components/topicpayloaddto.ts +30 -8
- package/src/models/components/triggereventrequestdto.ts +109 -17
- package/src/models/components/triggereventresponsedto.ts +14 -18
- package/src/models/operations/index.ts +0 -9
- package/src/sdk/sdk.ts +0 -18
- package/docs/sdks/apikeys/README.md +0 -79
- package/docs/sdks/environments/README.md +0 -154
- package/docs/sdks/executiondetails/README.md +0 -84
- package/docs/sdks/workflowgroups/README.md +0 -382
- package/funcs/environmentsApiKeysList.d.ts +0 -12
- package/funcs/environmentsApiKeysList.d.ts.map +0 -1
- package/funcs/environmentsApiKeysList.js +0 -97
- package/funcs/environmentsApiKeysList.js.map +0 -1
- package/funcs/environmentsList.d.ts +0 -12
- package/funcs/environmentsList.d.ts.map +0 -1
- package/funcs/environmentsList.js +0 -97
- package/funcs/environmentsList.js.map +0 -1
- package/funcs/environmentsRetrieve.d.ts +0 -12
- package/funcs/environmentsRetrieve.d.ts.map +0 -1
- package/funcs/environmentsRetrieve.js +0 -97
- package/funcs/environmentsRetrieve.js.map +0 -1
- package/funcs/executionDetailsRetrieve.d.ts +0 -12
- package/funcs/executionDetailsRetrieve.d.ts.map +0 -1
- package/funcs/executionDetailsRetrieve.js +0 -117
- package/funcs/executionDetailsRetrieve.js.map +0 -1
- package/funcs/workflowGroupsCreate.d.ts +0 -16
- package/funcs/workflowGroupsCreate.d.ts.map +0 -1
- package/funcs/workflowGroupsCreate.js +0 -111
- package/funcs/workflowGroupsCreate.js.map +0 -1
- package/funcs/workflowGroupsDelete.d.ts +0 -15
- package/funcs/workflowGroupsDelete.d.ts.map +0 -1
- package/funcs/workflowGroupsDelete.js +0 -120
- package/funcs/workflowGroupsDelete.js.map +0 -1
- package/funcs/workflowGroupsList.d.ts +0 -15
- package/funcs/workflowGroupsList.d.ts.map +0 -1
- package/funcs/workflowGroupsList.js +0 -100
- package/funcs/workflowGroupsList.js.map +0 -1
- package/funcs/workflowGroupsRetrieve.d.ts +0 -15
- package/funcs/workflowGroupsRetrieve.d.ts.map +0 -1
- package/funcs/workflowGroupsRetrieve.js +0 -120
- package/funcs/workflowGroupsRetrieve.js.map +0 -1
- package/funcs/workflowGroupsUpdate.d.ts +0 -16
- package/funcs/workflowGroupsUpdate.d.ts.map +0 -1
- package/funcs/workflowGroupsUpdate.js +0 -124
- package/funcs/workflowGroupsUpdate.js.map +0 -1
- package/models/components/apikey.d.ts +0 -31
- package/models/components/apikey.d.ts.map +0 -1
- package/models/components/apikey.js +0 -71
- package/models/components/apikey.js.map +0 -1
- package/models/components/createnotificationgrouprequestdto.d.ts +0 -29
- package/models/components/createnotificationgrouprequestdto.d.ts.map +0 -1
- package/models/components/createnotificationgrouprequestdto.js +0 -59
- package/models/components/createnotificationgrouprequestdto.js.map +0 -1
- package/models/components/deletenotificationgroupresponsedto.d.ts +0 -66
- package/models/components/deletenotificationgroupresponsedto.d.ts.map +0 -1
- package/models/components/deletenotificationgroupresponsedto.js +0 -83
- package/models/components/deletenotificationgroupresponsedto.js.map +0 -1
- package/models/components/environmentresponsedto.d.ts +0 -41
- package/models/components/environmentresponsedto.d.ts.map +0 -1
- package/models/components/environmentresponsedto.js +0 -84
- package/models/components/environmentresponsedto.js.map +0 -1
- package/models/components/executiondetailsresponsedto.d.ts +0 -176
- package/models/components/executiondetailsresponsedto.d.ts.map +0 -1
- package/models/components/executiondetailsresponsedto.js +0 -187
- package/models/components/executiondetailsresponsedto.js.map +0 -1
- package/models/components/notificationgroupresponsedto.d.ts +0 -37
- package/models/components/notificationgroupresponsedto.d.ts.map +0 -1
- package/models/components/notificationgroupresponsedto.js +0 -82
- package/models/components/notificationgroupresponsedto.js.map +0 -1
- package/models/components/triggerrecipientstypeenum.d.ts +0 -28
- package/models/components/triggerrecipientstypeenum.d.ts.map +0 -1
- package/models/components/triggerrecipientstypeenum.js +0 -50
- package/models/components/triggerrecipientstypeenum.js.map +0 -1
- package/models/operations/environmentscontrollerv1getcurrentenvironment.d.ts +0 -36
- package/models/operations/environmentscontrollerv1getcurrentenvironment.d.ts.map +0 -1
- package/models/operations/environmentscontrollerv1getcurrentenvironment.js +0 -73
- package/models/operations/environmentscontrollerv1getcurrentenvironment.js.map +0 -1
- package/models/operations/environmentscontrollerv1listmyenvironments.d.ts +0 -36
- package/models/operations/environmentscontrollerv1listmyenvironments.d.ts.map +0 -1
- package/models/operations/environmentscontrollerv1listmyenvironments.js +0 -73
- package/models/operations/environmentscontrollerv1listmyenvironments.js.map +0 -1
- package/models/operations/environmentscontrollerv1listorganizationapikeys.d.ts +0 -36
- package/models/operations/environmentscontrollerv1listorganizationapikeys.d.ts.map +0 -1
- package/models/operations/environmentscontrollerv1listorganizationapikeys.js +0 -75
- package/models/operations/environmentscontrollerv1listorganizationapikeys.js.map +0 -1
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.d.ts +0 -63
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.d.ts.map +0 -1
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.js +0 -106
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.js.map +0 -1
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.d.ts +0 -36
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.js +0 -75
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.js.map +0 -1
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.d.ts +0 -61
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.js +0 -104
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.js.map +0 -1
- package/models/operations/notificationgroupscontrollergetnotificationgroup.d.ts +0 -61
- package/models/operations/notificationgroupscontrollergetnotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollergetnotificationgroup.js +0 -104
- package/models/operations/notificationgroupscontrollergetnotificationgroup.js.map +0 -1
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.d.ts +0 -36
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.js +0 -75
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.js.map +0 -1
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.d.ts +0 -63
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.js +0 -114
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.js.map +0 -1
- package/sdk/apikeys.d.ts +0 -9
- package/sdk/apikeys.d.ts.map +0 -1
- package/sdk/apikeys.js +0 -19
- package/sdk/apikeys.js.map +0 -1
- package/sdk/environments.d.ts +0 -16
- package/sdk/environments.d.ts.map +0 -1
- package/sdk/environments.js +0 -31
- package/sdk/environments.js.map +0 -1
- package/sdk/executiondetails.d.ts +0 -9
- package/sdk/executiondetails.d.ts.map +0 -1
- package/sdk/executiondetails.js +0 -19
- package/sdk/executiondetails.js.map +0 -1
- package/sdk/workflowgroups.d.ts +0 -41
- package/sdk/workflowgroups.d.ts.map +0 -1
- package/sdk/workflowgroups.js +0 -62
- package/sdk/workflowgroups.js.map +0 -1
- package/src/funcs/environmentsApiKeysList.ts +0 -124
- package/src/funcs/environmentsList.ts +0 -124
- package/src/funcs/environmentsRetrieve.ts +0 -124
- package/src/funcs/executionDetailsRetrieve.ts +0 -157
- package/src/funcs/workflowGroupsCreate.ts +0 -145
- package/src/funcs/workflowGroupsDelete.ts +0 -157
- package/src/funcs/workflowGroupsList.ts +0 -127
- package/src/funcs/workflowGroupsRetrieve.ts +0 -157
- package/src/funcs/workflowGroupsUpdate.ts +0 -164
- package/src/models/components/apikey.ts +0 -72
- package/src/models/components/createnotificationgrouprequestdto.ts +0 -69
- package/src/models/components/deletenotificationgroupresponsedto.ts +0 -117
- package/src/models/components/environmentresponsedto.ts +0 -103
- package/src/models/components/executiondetailsresponsedto.ts +0 -244
- package/src/models/components/notificationgroupresponsedto.ts +0 -99
- package/src/models/components/triggerrecipientstypeenum.ts +0 -35
- package/src/models/operations/environmentscontrollerv1getcurrentenvironment.ts +0 -96
- package/src/models/operations/environmentscontrollerv1listmyenvironments.ts +0 -96
- package/src/models/operations/environmentscontrollerv1listorganizationapikeys.ts +0 -94
- package/src/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.ts +0 -176
- package/src/models/operations/notificationgroupscontrollercreatenotificationgroup.ts +0 -95
- package/src/models/operations/notificationgroupscontrollerdeletenotificationgroup.ts +0 -166
- package/src/models/operations/notificationgroupscontrollergetnotificationgroup.ts +0 -165
- package/src/models/operations/notificationgroupscontrollerlistnotificationgroups.ts +0 -95
- package/src/models/operations/notificationgroupscontrollerupdatenotificationgroup.ts +0 -182
- package/src/sdk/apikeys.ts +0 -24
- package/src/sdk/environments.ts +0 -41
- package/src/sdk/executiondetails.ts +0 -28
- package/src/sdk/workflowgroups.ts +0 -111
package/sdk/apikeys.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apikeys.d.ts","sourceRoot":"","sources":["../src/sdk/apikeys.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;OAEG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,uDAAuD,CACnE;CAMF"}
|
package/sdk/apikeys.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ApiKeys = void 0;
|
|
7
|
-
const environmentsApiKeysList_js_1 = require("../funcs/environmentsApiKeysList.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class ApiKeys extends sdks_js_1.ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Get api keys
|
|
13
|
-
*/
|
|
14
|
-
async list(options) {
|
|
15
|
-
return (0, fp_js_1.unwrapAsync)((0, environmentsApiKeysList_js_1.environmentsApiKeysList)(this, options));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.ApiKeys = ApiKeys;
|
|
19
|
-
//# sourceMappingURL=apikeys.js.map
|
package/sdk/apikeys.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apikeys.js","sourceRoot":"","sources":["../src/sdk/apikeys.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oFAA8E;AAC9E,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAdD,0BAcC"}
|
package/sdk/environments.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
import { ApiKeys } from "./apikeys.js";
|
|
4
|
-
export declare class Environments extends ClientSDK {
|
|
5
|
-
private _apiKeys?;
|
|
6
|
-
get apiKeys(): ApiKeys;
|
|
7
|
-
/**
|
|
8
|
-
* Get current environment
|
|
9
|
-
*/
|
|
10
|
-
retrieve(options?: RequestOptions): Promise<operations.EnvironmentsControllerV1GetCurrentEnvironmentResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* Get environments
|
|
13
|
-
*/
|
|
14
|
-
list(options?: RequestOptions): Promise<operations.EnvironmentsControllerV1ListMyEnvironmentsResponse>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=environments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environments.d.ts","sourceRoot":"","sources":["../src/sdk/environments.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBAAa,YAAa,SAAQ,SAAS;IACzC,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACG,QAAQ,CACZ,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qDAAqD,CAAC;IAO5E;;OAEG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kDAAkD,CAAC;CAM1E"}
|
package/sdk/environments.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Environments = void 0;
|
|
7
|
-
const environmentsList_js_1 = require("../funcs/environmentsList.js");
|
|
8
|
-
const environmentsRetrieve_js_1 = require("../funcs/environmentsRetrieve.js");
|
|
9
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
|
-
const fp_js_1 = require("../types/fp.js");
|
|
11
|
-
const apikeys_js_1 = require("./apikeys.js");
|
|
12
|
-
class Environments extends sdks_js_1.ClientSDK {
|
|
13
|
-
get apiKeys() {
|
|
14
|
-
var _a;
|
|
15
|
-
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new apikeys_js_1.ApiKeys(this._options)));
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Get current environment
|
|
19
|
-
*/
|
|
20
|
-
async retrieve(options) {
|
|
21
|
-
return (0, fp_js_1.unwrapAsync)((0, environmentsRetrieve_js_1.environmentsRetrieve)(this, options));
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Get environments
|
|
25
|
-
*/
|
|
26
|
-
async list(options) {
|
|
27
|
-
return (0, fp_js_1.unwrapAsync)((0, environmentsList_js_1.environmentsList)(this, options));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.Environments = Environments;
|
|
31
|
-
//# sourceMappingURL=environments.js.map
|
package/sdk/environments.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environments.js","sourceRoot":"","sources":["../src/sdk/environments.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,sEAAgE;AAChE,8EAAwE;AACxE,4CAA2D;AAE3D,0CAA6C;AAC7C,6CAAuC;AAEvC,MAAa,YAAa,SAAQ,mBAAS;IAEzC,IAAI,OAAO;;QACT,OAAO,OAAC,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,oCA6BC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class ExecutionDetails extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Get execution details
|
|
6
|
-
*/
|
|
7
|
-
retrieve(notificationId: string, subscriberId: string, options?: RequestOptions): Promise<operations.ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=executiondetails.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executiondetails.d.ts","sourceRoot":"","sources":["../src/sdk/executiondetails.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C;;OAEG;IACG,QAAQ,CACZ,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,oEAAoE,CAChF;CAQF"}
|
package/sdk/executiondetails.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ExecutionDetails = void 0;
|
|
7
|
-
const executionDetailsRetrieve_js_1 = require("../funcs/executionDetailsRetrieve.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class ExecutionDetails extends sdks_js_1.ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Get execution details
|
|
13
|
-
*/
|
|
14
|
-
async retrieve(notificationId, subscriberId, options) {
|
|
15
|
-
return (0, fp_js_1.unwrapAsync)((0, executionDetailsRetrieve_js_1.executionDetailsRetrieve)(this, notificationId, subscriberId, options));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.ExecutionDetails = ExecutionDetails;
|
|
19
|
-
//# sourceMappingURL=executiondetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executiondetails.js","sourceRoot":"","sources":["../src/sdk/executiondetails.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,sFAAgF;AAChF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,gBAAiB,SAAQ,mBAAS;IAC7C;;OAEG;IACH,KAAK,CAAC,QAAQ,CACZ,cAAsB,EACtB,YAAoB,EACpB,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,cAAc,EACd,YAAY,EACZ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAlBD,4CAkBC"}
|
package/sdk/workflowgroups.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as components from "../models/components/index.js";
|
|
3
|
-
import * as operations from "../models/operations/index.js";
|
|
4
|
-
export declare class WorkflowGroups extends ClientSDK {
|
|
5
|
-
/**
|
|
6
|
-
* Create workflow group
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* workflow group was previously named notification group
|
|
10
|
-
*/
|
|
11
|
-
create(request: components.CreateNotificationGroupRequestDto, options?: RequestOptions): Promise<operations.NotificationGroupsControllerCreateNotificationGroupResponse>;
|
|
12
|
-
/**
|
|
13
|
-
* Get workflow groups
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* workflow group was previously named notification group
|
|
17
|
-
*/
|
|
18
|
-
list(options?: RequestOptions): Promise<operations.NotificationGroupsControllerListNotificationGroupsResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Get workflow group
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* workflow group was previously named notification group
|
|
24
|
-
*/
|
|
25
|
-
retrieve(id: string, options?: RequestOptions): Promise<operations.NotificationGroupsControllerGetNotificationGroupResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* Update workflow group
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
* workflow group was previously named notification group
|
|
31
|
-
*/
|
|
32
|
-
update(createNotificationGroupRequestDto: components.CreateNotificationGroupRequestDto, id: string, options?: RequestOptions): Promise<operations.NotificationGroupsControllerUpdateNotificationGroupResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* Delete workflow group
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* workflow group was previously named notification group
|
|
38
|
-
*/
|
|
39
|
-
delete(id: string, options?: RequestOptions): Promise<operations.NotificationGroupsControllerDeleteNotificationGroupResponse>;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=workflowgroups.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflowgroups.d.ts","sourceRoot":"","sources":["../src/sdk/workflowgroups.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,cAAe,SAAQ,SAAS;IAC3C;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,2DAA2D,CACvE;IAQD;;;;;OAKG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,0DAA0D,CACtE;IAOD;;;;;OAKG;IACG,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,wDAAwD,CACpE;IAQD;;;;;OAKG;IACG,MAAM,CACV,iCAAiC,EAC/B,UAAU,CAAC,iCAAiC,EAC9C,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,2DAA2D,CACvE;IASD;;;;;OAKG;IACG,MAAM,CACV,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,2DAA2D,CACvE;CAOF"}
|
package/sdk/workflowgroups.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.WorkflowGroups = void 0;
|
|
7
|
-
const workflowGroupsCreate_js_1 = require("../funcs/workflowGroupsCreate.js");
|
|
8
|
-
const workflowGroupsDelete_js_1 = require("../funcs/workflowGroupsDelete.js");
|
|
9
|
-
const workflowGroupsList_js_1 = require("../funcs/workflowGroupsList.js");
|
|
10
|
-
const workflowGroupsRetrieve_js_1 = require("../funcs/workflowGroupsRetrieve.js");
|
|
11
|
-
const workflowGroupsUpdate_js_1 = require("../funcs/workflowGroupsUpdate.js");
|
|
12
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
13
|
-
const fp_js_1 = require("../types/fp.js");
|
|
14
|
-
class WorkflowGroups extends sdks_js_1.ClientSDK {
|
|
15
|
-
/**
|
|
16
|
-
* Create workflow group
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* workflow group was previously named notification group
|
|
20
|
-
*/
|
|
21
|
-
async create(request, options) {
|
|
22
|
-
return (0, fp_js_1.unwrapAsync)((0, workflowGroupsCreate_js_1.workflowGroupsCreate)(this, request, options));
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Get workflow groups
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* workflow group was previously named notification group
|
|
29
|
-
*/
|
|
30
|
-
async list(options) {
|
|
31
|
-
return (0, fp_js_1.unwrapAsync)((0, workflowGroupsList_js_1.workflowGroupsList)(this, options));
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Get workflow group
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* workflow group was previously named notification group
|
|
38
|
-
*/
|
|
39
|
-
async retrieve(id, options) {
|
|
40
|
-
return (0, fp_js_1.unwrapAsync)((0, workflowGroupsRetrieve_js_1.workflowGroupsRetrieve)(this, id, options));
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Update workflow group
|
|
44
|
-
*
|
|
45
|
-
* @remarks
|
|
46
|
-
* workflow group was previously named notification group
|
|
47
|
-
*/
|
|
48
|
-
async update(createNotificationGroupRequestDto, id, options) {
|
|
49
|
-
return (0, fp_js_1.unwrapAsync)((0, workflowGroupsUpdate_js_1.workflowGroupsUpdate)(this, createNotificationGroupRequestDto, id, options));
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Delete workflow group
|
|
53
|
-
*
|
|
54
|
-
* @remarks
|
|
55
|
-
* workflow group was previously named notification group
|
|
56
|
-
*/
|
|
57
|
-
async delete(id, options) {
|
|
58
|
-
return (0, fp_js_1.unwrapAsync)((0, workflowGroupsDelete_js_1.workflowGroupsDelete)(this, id, options));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.WorkflowGroups = WorkflowGroups;
|
|
62
|
-
//# sourceMappingURL=workflowgroups.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflowgroups.js","sourceRoot":"","sources":["../src/sdk/workflowgroups.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8EAAwE;AACxE,8EAAwE;AACxE,0EAAoE;AACpE,kFAA4E;AAC5E,8EAAwE;AACxE,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,cAAe,SAAQ,mBAAS;IAC3C;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAqD,EACrD,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,kDAAsB,EACvC,IAAI,EACJ,EAAE,EACF,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,iCAC8C,EAC9C,EAAU,EACV,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,iCAAiC,EACjC,EAAE,EACF,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,EAAU,EACV,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,EAAE,EACF,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAhGD,wCAgGC"}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { NovuCore } from "../core.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
-
import { pathToFunc } from "../lib/url.js";
|
|
10
|
-
import {
|
|
11
|
-
ConnectionError,
|
|
12
|
-
InvalidRequestError,
|
|
13
|
-
RequestAbortedError,
|
|
14
|
-
RequestTimeoutError,
|
|
15
|
-
UnexpectedClientError,
|
|
16
|
-
} from "../models/errors/httpclienterrors.js";
|
|
17
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
18
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
19
|
-
import * as operations from "../models/operations/index.js";
|
|
20
|
-
import { Result } from "../types/fp.js";
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Get api keys
|
|
24
|
-
*/
|
|
25
|
-
export async function environmentsApiKeysList(
|
|
26
|
-
client: NovuCore,
|
|
27
|
-
options?: RequestOptions,
|
|
28
|
-
): Promise<
|
|
29
|
-
Result<
|
|
30
|
-
operations.EnvironmentsControllerV1ListOrganizationApiKeysResponse,
|
|
31
|
-
| SDKError
|
|
32
|
-
| SDKValidationError
|
|
33
|
-
| UnexpectedClientError
|
|
34
|
-
| InvalidRequestError
|
|
35
|
-
| RequestAbortedError
|
|
36
|
-
| RequestTimeoutError
|
|
37
|
-
| ConnectionError
|
|
38
|
-
>
|
|
39
|
-
> {
|
|
40
|
-
const path = pathToFunc("/v1/environments/api-keys")();
|
|
41
|
-
|
|
42
|
-
const headers = new Headers({
|
|
43
|
-
Accept: "application/json",
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
47
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
48
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49
|
-
|
|
50
|
-
const context = {
|
|
51
|
-
operationID: "EnvironmentsControllerV1_listOrganizationApiKeys",
|
|
52
|
-
oAuth2Scopes: [],
|
|
53
|
-
|
|
54
|
-
resolvedSecurity: requestSecurity,
|
|
55
|
-
|
|
56
|
-
securitySource: client._options.apiKey,
|
|
57
|
-
retryConfig: options?.retries
|
|
58
|
-
|| client._options.retryConfig
|
|
59
|
-
|| {
|
|
60
|
-
strategy: "backoff",
|
|
61
|
-
backoff: {
|
|
62
|
-
initialInterval: 500,
|
|
63
|
-
maxInterval: 30000,
|
|
64
|
-
exponent: 1.5,
|
|
65
|
-
maxElapsedTime: 3600000,
|
|
66
|
-
},
|
|
67
|
-
retryConnectionErrors: true,
|
|
68
|
-
}
|
|
69
|
-
|| { strategy: "none" },
|
|
70
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const requestRes = client._createRequest(context, {
|
|
74
|
-
security: requestSecurity,
|
|
75
|
-
method: "GET",
|
|
76
|
-
path: path,
|
|
77
|
-
headers: headers,
|
|
78
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
79
|
-
}, options);
|
|
80
|
-
if (!requestRes.ok) {
|
|
81
|
-
return requestRes;
|
|
82
|
-
}
|
|
83
|
-
const req = requestRes.value;
|
|
84
|
-
|
|
85
|
-
const doResult = await client._do(req, {
|
|
86
|
-
context,
|
|
87
|
-
errorCodes: ["409", "429", "4XX", "503", "5XX"],
|
|
88
|
-
retryConfig: context.retryConfig,
|
|
89
|
-
retryCodes: context.retryCodes,
|
|
90
|
-
});
|
|
91
|
-
if (!doResult.ok) {
|
|
92
|
-
return doResult;
|
|
93
|
-
}
|
|
94
|
-
const response = doResult.value;
|
|
95
|
-
|
|
96
|
-
const responseFields = {
|
|
97
|
-
HttpMeta: { Response: response, Request: req },
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const [result] = await M.match<
|
|
101
|
-
operations.EnvironmentsControllerV1ListOrganizationApiKeysResponse,
|
|
102
|
-
| SDKError
|
|
103
|
-
| SDKValidationError
|
|
104
|
-
| UnexpectedClientError
|
|
105
|
-
| InvalidRequestError
|
|
106
|
-
| RequestAbortedError
|
|
107
|
-
| RequestTimeoutError
|
|
108
|
-
| ConnectionError
|
|
109
|
-
>(
|
|
110
|
-
M.json(
|
|
111
|
-
200,
|
|
112
|
-
operations
|
|
113
|
-
.EnvironmentsControllerV1ListOrganizationApiKeysResponse$inboundSchema,
|
|
114
|
-
{ hdrs: true, key: "Result" },
|
|
115
|
-
),
|
|
116
|
-
M.fail([409, 429, 503]),
|
|
117
|
-
M.fail(["4XX", "5XX"]),
|
|
118
|
-
)(response, { extraFields: responseFields });
|
|
119
|
-
if (!result.ok) {
|
|
120
|
-
return result;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return result;
|
|
124
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { NovuCore } from "../core.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
-
import { pathToFunc } from "../lib/url.js";
|
|
10
|
-
import {
|
|
11
|
-
ConnectionError,
|
|
12
|
-
InvalidRequestError,
|
|
13
|
-
RequestAbortedError,
|
|
14
|
-
RequestTimeoutError,
|
|
15
|
-
UnexpectedClientError,
|
|
16
|
-
} from "../models/errors/httpclienterrors.js";
|
|
17
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
18
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
19
|
-
import * as operations from "../models/operations/index.js";
|
|
20
|
-
import { Result } from "../types/fp.js";
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Get environments
|
|
24
|
-
*/
|
|
25
|
-
export async function environmentsList(
|
|
26
|
-
client: NovuCore,
|
|
27
|
-
options?: RequestOptions,
|
|
28
|
-
): Promise<
|
|
29
|
-
Result<
|
|
30
|
-
operations.EnvironmentsControllerV1ListMyEnvironmentsResponse,
|
|
31
|
-
| SDKError
|
|
32
|
-
| SDKValidationError
|
|
33
|
-
| UnexpectedClientError
|
|
34
|
-
| InvalidRequestError
|
|
35
|
-
| RequestAbortedError
|
|
36
|
-
| RequestTimeoutError
|
|
37
|
-
| ConnectionError
|
|
38
|
-
>
|
|
39
|
-
> {
|
|
40
|
-
const path = pathToFunc("/v1/environments")();
|
|
41
|
-
|
|
42
|
-
const headers = new Headers({
|
|
43
|
-
Accept: "application/json",
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
47
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
48
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49
|
-
|
|
50
|
-
const context = {
|
|
51
|
-
operationID: "EnvironmentsControllerV1_listMyEnvironments",
|
|
52
|
-
oAuth2Scopes: [],
|
|
53
|
-
|
|
54
|
-
resolvedSecurity: requestSecurity,
|
|
55
|
-
|
|
56
|
-
securitySource: client._options.apiKey,
|
|
57
|
-
retryConfig: options?.retries
|
|
58
|
-
|| client._options.retryConfig
|
|
59
|
-
|| {
|
|
60
|
-
strategy: "backoff",
|
|
61
|
-
backoff: {
|
|
62
|
-
initialInterval: 500,
|
|
63
|
-
maxInterval: 30000,
|
|
64
|
-
exponent: 1.5,
|
|
65
|
-
maxElapsedTime: 3600000,
|
|
66
|
-
},
|
|
67
|
-
retryConnectionErrors: true,
|
|
68
|
-
}
|
|
69
|
-
|| { strategy: "none" },
|
|
70
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const requestRes = client._createRequest(context, {
|
|
74
|
-
security: requestSecurity,
|
|
75
|
-
method: "GET",
|
|
76
|
-
path: path,
|
|
77
|
-
headers: headers,
|
|
78
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
79
|
-
}, options);
|
|
80
|
-
if (!requestRes.ok) {
|
|
81
|
-
return requestRes;
|
|
82
|
-
}
|
|
83
|
-
const req = requestRes.value;
|
|
84
|
-
|
|
85
|
-
const doResult = await client._do(req, {
|
|
86
|
-
context,
|
|
87
|
-
errorCodes: ["409", "429", "4XX", "503", "5XX"],
|
|
88
|
-
retryConfig: context.retryConfig,
|
|
89
|
-
retryCodes: context.retryCodes,
|
|
90
|
-
});
|
|
91
|
-
if (!doResult.ok) {
|
|
92
|
-
return doResult;
|
|
93
|
-
}
|
|
94
|
-
const response = doResult.value;
|
|
95
|
-
|
|
96
|
-
const responseFields = {
|
|
97
|
-
HttpMeta: { Response: response, Request: req },
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const [result] = await M.match<
|
|
101
|
-
operations.EnvironmentsControllerV1ListMyEnvironmentsResponse,
|
|
102
|
-
| SDKError
|
|
103
|
-
| SDKValidationError
|
|
104
|
-
| UnexpectedClientError
|
|
105
|
-
| InvalidRequestError
|
|
106
|
-
| RequestAbortedError
|
|
107
|
-
| RequestTimeoutError
|
|
108
|
-
| ConnectionError
|
|
109
|
-
>(
|
|
110
|
-
M.json(
|
|
111
|
-
200,
|
|
112
|
-
operations
|
|
113
|
-
.EnvironmentsControllerV1ListMyEnvironmentsResponse$inboundSchema,
|
|
114
|
-
{ hdrs: true, key: "Result" },
|
|
115
|
-
),
|
|
116
|
-
M.fail([409, 429, 503]),
|
|
117
|
-
M.fail(["4XX", "5XX"]),
|
|
118
|
-
)(response, { extraFields: responseFields });
|
|
119
|
-
if (!result.ok) {
|
|
120
|
-
return result;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return result;
|
|
124
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { NovuCore } from "../core.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
-
import { pathToFunc } from "../lib/url.js";
|
|
10
|
-
import {
|
|
11
|
-
ConnectionError,
|
|
12
|
-
InvalidRequestError,
|
|
13
|
-
RequestAbortedError,
|
|
14
|
-
RequestTimeoutError,
|
|
15
|
-
UnexpectedClientError,
|
|
16
|
-
} from "../models/errors/httpclienterrors.js";
|
|
17
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
18
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
19
|
-
import * as operations from "../models/operations/index.js";
|
|
20
|
-
import { Result } from "../types/fp.js";
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Get current environment
|
|
24
|
-
*/
|
|
25
|
-
export async function environmentsRetrieve(
|
|
26
|
-
client: NovuCore,
|
|
27
|
-
options?: RequestOptions,
|
|
28
|
-
): Promise<
|
|
29
|
-
Result<
|
|
30
|
-
operations.EnvironmentsControllerV1GetCurrentEnvironmentResponse,
|
|
31
|
-
| SDKError
|
|
32
|
-
| SDKValidationError
|
|
33
|
-
| UnexpectedClientError
|
|
34
|
-
| InvalidRequestError
|
|
35
|
-
| RequestAbortedError
|
|
36
|
-
| RequestTimeoutError
|
|
37
|
-
| ConnectionError
|
|
38
|
-
>
|
|
39
|
-
> {
|
|
40
|
-
const path = pathToFunc("/v1/environments/me")();
|
|
41
|
-
|
|
42
|
-
const headers = new Headers({
|
|
43
|
-
Accept: "application/json",
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
47
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
48
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49
|
-
|
|
50
|
-
const context = {
|
|
51
|
-
operationID: "EnvironmentsControllerV1_getCurrentEnvironment",
|
|
52
|
-
oAuth2Scopes: [],
|
|
53
|
-
|
|
54
|
-
resolvedSecurity: requestSecurity,
|
|
55
|
-
|
|
56
|
-
securitySource: client._options.apiKey,
|
|
57
|
-
retryConfig: options?.retries
|
|
58
|
-
|| client._options.retryConfig
|
|
59
|
-
|| {
|
|
60
|
-
strategy: "backoff",
|
|
61
|
-
backoff: {
|
|
62
|
-
initialInterval: 500,
|
|
63
|
-
maxInterval: 30000,
|
|
64
|
-
exponent: 1.5,
|
|
65
|
-
maxElapsedTime: 3600000,
|
|
66
|
-
},
|
|
67
|
-
retryConnectionErrors: true,
|
|
68
|
-
}
|
|
69
|
-
|| { strategy: "none" },
|
|
70
|
-
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const requestRes = client._createRequest(context, {
|
|
74
|
-
security: requestSecurity,
|
|
75
|
-
method: "GET",
|
|
76
|
-
path: path,
|
|
77
|
-
headers: headers,
|
|
78
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
79
|
-
}, options);
|
|
80
|
-
if (!requestRes.ok) {
|
|
81
|
-
return requestRes;
|
|
82
|
-
}
|
|
83
|
-
const req = requestRes.value;
|
|
84
|
-
|
|
85
|
-
const doResult = await client._do(req, {
|
|
86
|
-
context,
|
|
87
|
-
errorCodes: ["409", "429", "4XX", "503", "5XX"],
|
|
88
|
-
retryConfig: context.retryConfig,
|
|
89
|
-
retryCodes: context.retryCodes,
|
|
90
|
-
});
|
|
91
|
-
if (!doResult.ok) {
|
|
92
|
-
return doResult;
|
|
93
|
-
}
|
|
94
|
-
const response = doResult.value;
|
|
95
|
-
|
|
96
|
-
const responseFields = {
|
|
97
|
-
HttpMeta: { Response: response, Request: req },
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const [result] = await M.match<
|
|
101
|
-
operations.EnvironmentsControllerV1GetCurrentEnvironmentResponse,
|
|
102
|
-
| SDKError
|
|
103
|
-
| SDKValidationError
|
|
104
|
-
| UnexpectedClientError
|
|
105
|
-
| InvalidRequestError
|
|
106
|
-
| RequestAbortedError
|
|
107
|
-
| RequestTimeoutError
|
|
108
|
-
| ConnectionError
|
|
109
|
-
>(
|
|
110
|
-
M.json(
|
|
111
|
-
200,
|
|
112
|
-
operations
|
|
113
|
-
.EnvironmentsControllerV1GetCurrentEnvironmentResponse$inboundSchema,
|
|
114
|
-
{ hdrs: true, key: "Result" },
|
|
115
|
-
),
|
|
116
|
-
M.fail([409, 429, 503]),
|
|
117
|
-
M.fail(["4XX", "5XX"]),
|
|
118
|
-
)(response, { extraFields: responseFields });
|
|
119
|
-
if (!result.ok) {
|
|
120
|
-
return result;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return result;
|
|
124
|
-
}
|