@openfort/openfort-node 0.6.35 → 0.6.36
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/dist/apis/notificationSubscriptionsApiWrapper.d.ts +29 -0
- package/dist/apis/notificationSubscriptionsApiWrapper.js +56 -0
- package/dist/apis/notificationSubscriptionsApiWrapper.js.map +1 -0
- package/dist/apis/notificationTriggersApiWrapper.d.ts +29 -0
- package/dist/apis/notificationTriggersApiWrapper.js +56 -0
- package/dist/apis/notificationTriggersApiWrapper.js.map +1 -0
- package/dist/apis/notificationsApiWrapper.d.ts +29 -0
- package/dist/apis/notificationsApiWrapper.js +56 -0
- package/dist/apis/notificationsApiWrapper.js.map +1 -0
- package/dist/apis/policyRulesApiWrapper.d.ts +6 -6
- package/dist/apis/policyRulesApiWrapper.js +9 -9
- package/dist/apis/policyRulesApiWrapper.js.map +1 -1
- package/dist/generated/apis/AccountsApi.d.ts +1 -1
- package/dist/generated/apis/AccountsApi.js +1 -1
- package/dist/generated/apis/NotificationsApi.d.ts +204 -0
- package/dist/generated/apis/NotificationsApi.js +744 -0
- package/dist/generated/apis/NotificationsApi.js.map +1 -0
- package/dist/generated/apis/PoliciesApi.d.ts +2 -2
- package/dist/generated/apis/PoliciesApi.js +2 -2
- package/dist/generated/apis/PolicyRulesApi.d.ts +10 -9
- package/dist/generated/apis/PolicyRulesApi.js +14 -13
- package/dist/generated/apis/PolicyRulesApi.js.map +1 -1
- package/dist/generated/apis/SettingsApi.d.ts +3 -3
- package/dist/generated/apis/SettingsApi.js +3 -3
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.js +2 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/models/AccountNotificationTriggerResponse.d.ts +37 -0
- package/dist/generated/models/AccountNotificationTriggerResponse.js +68 -0
- package/dist/generated/models/AccountNotificationTriggerResponse.js.map +1 -0
- package/dist/generated/models/AccountNotificationTriggerResponseAccount.d.ts +36 -0
- package/dist/generated/models/AccountNotificationTriggerResponseAccount.js +68 -0
- package/dist/generated/models/AccountNotificationTriggerResponseAccount.js.map +1 -0
- package/dist/generated/models/BalanceNotificationTriggerResponse.d.ts +34 -0
- package/dist/generated/models/BalanceNotificationTriggerResponse.js +56 -0
- package/dist/generated/models/BalanceNotificationTriggerResponse.js.map +1 -0
- package/dist/generated/models/CancelTransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/ContractNotificationTriggerResponse.d.ts +38 -0
- package/dist/generated/models/ContractNotificationTriggerResponse.js +74 -0
- package/dist/generated/models/ContractNotificationTriggerResponse.js.map +1 -0
- package/dist/generated/models/{ContractPolicyRuleResponseContract.d.ts → ContractNotificationTriggerResponseContract.d.ts} +1 -1
- package/dist/generated/models/{ContractPolicyRuleResponseContract.js → ContractNotificationTriggerResponseContract.js} +7 -7
- package/dist/generated/models/ContractNotificationTriggerResponseContract.js.map +1 -0
- package/dist/generated/models/ContractPolicyRuleResponse.d.ts +2 -2
- package/dist/generated/models/ContractPolicyRuleResponse.js +1 -1
- package/dist/generated/models/ContractPolicyRuleResponse.js.map +1 -1
- package/dist/generated/models/CreateNotificationRequest.d.ts +31 -0
- package/dist/generated/models/CreateNotificationRequest.js +32 -0
- package/dist/generated/models/CreateNotificationRequest.js.map +1 -0
- package/dist/generated/models/CreatePolicyRuleRequest.d.ts +2 -2
- package/dist/generated/models/CreateSubscriptionRequest.d.ts +37 -0
- package/dist/generated/models/CreateSubscriptionRequest.js +44 -0
- package/dist/generated/models/CreateSubscriptionRequest.js.map +1 -0
- package/dist/generated/models/CreateTriggerRequest.d.ts +57 -0
- package/dist/generated/models/CreateTriggerRequest.js +74 -0
- package/dist/generated/models/CreateTriggerRequest.js.map +1 -0
- package/dist/generated/models/EntityTypeNOTIFICATION.d.ts +12 -0
- package/dist/generated/models/EntityTypeNOTIFICATION.js +14 -0
- package/dist/generated/models/EntityTypeNOTIFICATION.js.map +1 -0
- package/dist/generated/models/EntityTypeNOTIFICATIONSUBSCRIPTION.d.ts +12 -0
- package/dist/generated/models/EntityTypeNOTIFICATIONSUBSCRIPTION.js +14 -0
- package/dist/generated/models/EntityTypeNOTIFICATIONSUBSCRIPTION.js.map +1 -0
- package/dist/generated/models/EntityTypeNOTIFICATIONTRIGGER.d.ts +12 -0
- package/dist/generated/models/EntityTypeNOTIFICATIONTRIGGER.js +14 -0
- package/dist/generated/models/EntityTypeNOTIFICATIONTRIGGER.js.map +1 -0
- package/dist/generated/models/Interaction.d.ts +1 -1
- package/dist/generated/models/NotificationDeleteResponse.d.ts +31 -0
- package/dist/generated/models/NotificationDeleteResponse.js +44 -0
- package/dist/generated/models/NotificationDeleteResponse.js.map +1 -0
- package/dist/generated/models/NotificationListQueries.d.ts +50 -0
- package/dist/generated/models/NotificationListQueries.js +62 -0
- package/dist/generated/models/NotificationListQueries.js.map +1 -0
- package/dist/generated/models/NotificationListResponse.d.ts +35 -0
- package/dist/generated/models/NotificationListResponse.js +62 -0
- package/dist/generated/models/NotificationListResponse.js.map +1 -0
- package/dist/generated/models/NotificationResponse.d.ts +38 -0
- package/dist/generated/models/NotificationResponse.js +74 -0
- package/dist/generated/models/NotificationResponse.js.map +1 -0
- package/dist/generated/models/NotificationResponseExpandable.d.ts +12 -0
- package/dist/generated/models/NotificationResponseExpandable.js +14 -0
- package/dist/generated/models/NotificationResponseExpandable.js.map +1 -0
- package/dist/generated/models/NotificationResponseSubscriptionsInner.d.ts +34 -0
- package/dist/generated/models/NotificationResponseSubscriptionsInner.js +56 -0
- package/dist/generated/models/NotificationResponseSubscriptionsInner.js.map +1 -0
- package/dist/generated/models/NotificationResponseTriggersInner.d.ts +41 -0
- package/dist/generated/models/NotificationResponseTriggersInner.js +86 -0
- package/dist/generated/models/NotificationResponseTriggersInner.js.map +1 -0
- package/dist/generated/models/NotificationSubscription.d.ts +34 -0
- package/dist/generated/models/NotificationSubscription.js +56 -0
- package/dist/generated/models/NotificationSubscription.js.map +1 -0
- package/dist/generated/models/NotificationSubscriptionDeleteResponse.d.ts +31 -0
- package/dist/generated/models/NotificationSubscriptionDeleteResponse.js +44 -0
- package/dist/generated/models/NotificationSubscriptionDeleteResponse.js.map +1 -0
- package/dist/generated/models/NotificationSubscriptionListQueries.d.ts +41 -0
- package/dist/generated/models/NotificationSubscriptionListQueries.js +50 -0
- package/dist/generated/models/NotificationSubscriptionListQueries.js.map +1 -0
- package/dist/generated/models/NotificationSubscriptionListResponse.d.ts +35 -0
- package/dist/generated/models/NotificationSubscriptionListResponse.js +62 -0
- package/dist/generated/models/NotificationSubscriptionListResponse.js.map +1 -0
- package/dist/generated/models/NotificationTriggerDeleteResponse.d.ts +31 -0
- package/dist/generated/models/NotificationTriggerDeleteResponse.js +44 -0
- package/dist/generated/models/NotificationTriggerDeleteResponse.js.map +1 -0
- package/dist/generated/models/NotificationTriggerListQueries.d.ts +41 -0
- package/dist/generated/models/NotificationTriggerListQueries.js +50 -0
- package/dist/generated/models/NotificationTriggerListQueries.js.map +1 -0
- package/dist/generated/models/NotificationTriggerListResponse.d.ts +35 -0
- package/dist/generated/models/NotificationTriggerListResponse.js +62 -0
- package/dist/generated/models/NotificationTriggerListResponse.js.map +1 -0
- package/dist/generated/models/NotificationTriggerResponse.d.ts +41 -0
- package/dist/generated/models/NotificationTriggerResponse.js +86 -0
- package/dist/generated/models/NotificationTriggerResponse.js.map +1 -0
- package/dist/generated/models/NotificationTriggerType.d.ts +12 -0
- package/dist/generated/models/NotificationTriggerType.js +14 -0
- package/dist/generated/models/NotificationTriggerType.js.map +1 -0
- package/dist/generated/models/NotificationTriggerTypeCONTRACTTRIGGER.d.ts +12 -0
- package/dist/generated/models/NotificationTriggerTypeCONTRACTTRIGGER.js +14 -0
- package/dist/generated/models/NotificationTriggerTypeCONTRACTTRIGGER.js.map +1 -0
- package/dist/generated/models/NotificationTriggerTypeDEVELOPERACCOUNTTRIGGER.d.ts +12 -0
- package/dist/generated/models/NotificationTriggerTypeDEVELOPERACCOUNTTRIGGER.js +14 -0
- package/dist/generated/models/NotificationTriggerTypeDEVELOPERACCOUNTTRIGGER.js.map +1 -0
- package/dist/generated/models/NotificationTriggerTypePROJECTBALANCETRIGGER.d.ts +12 -0
- package/dist/generated/models/NotificationTriggerTypePROJECTBALANCETRIGGER.js +14 -0
- package/dist/generated/models/NotificationTriggerTypePROJECTBALANCETRIGGER.js.map +1 -0
- package/dist/generated/models/ObjectSerializer.d.ts +32 -1
- package/dist/generated/models/ObjectSerializer.js +87 -3
- package/dist/generated/models/ObjectSerializer.js.map +1 -1
- package/dist/generated/models/PickDeveloperAccountId.d.ts +31 -0
- package/dist/generated/models/PickDeveloperAccountId.js +35 -0
- package/dist/generated/models/PickDeveloperAccountId.js.map +1 -0
- package/dist/generated/models/PlayerCancelTransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/PlayerTransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/PolicyListQueries.d.ts +2 -2
- package/dist/generated/models/PolicyResponsePolicyRulesInner.d.ts +2 -2
- package/dist/generated/models/PolicyResponsePolicyRulesInner.js +1 -1
- package/dist/generated/models/PolicyResponsePolicyRulesInner.js.map +1 -1
- package/dist/generated/models/PolicyRuleResponse.d.ts +2 -2
- package/dist/generated/models/PolicyRuleResponse.js +1 -1
- package/dist/generated/models/PolicyRuleResponse.js.map +1 -1
- package/dist/generated/models/SubscriptionType.d.ts +12 -0
- package/dist/generated/models/SubscriptionType.js +14 -0
- package/dist/generated/models/SubscriptionType.js.map +1 -0
- package/dist/generated/models/TransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/UpdatePolicyRuleRequest.d.ts +2 -2
- package/dist/generated/models/all.d.ts +32 -1
- package/dist/generated/models/all.js +32 -1
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +275 -16
- package/dist/generated/types/ObjectParamAPI.js +130 -26
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +114 -9
- package/dist/generated/types/ObservableAPI.js +290 -16
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +112 -9
- package/dist/generated/types/PromiseAPI.js +158 -30
- package/dist/generated/types/PromiseAPI.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/models/getNotificationRequest.d.ts +4 -0
- package/dist/models/getNotificationRequest.js +3 -0
- package/dist/models/getNotificationRequest.js.map +1 -0
- package/dist/models/getNotificationSubscriptionRequest.d.ts +3 -0
- package/dist/models/getNotificationSubscriptionRequest.js +3 -0
- package/dist/models/getNotificationSubscriptionRequest.js.map +1 -0
- package/dist/models/getNotificationTriggerRequest.d.ts +3 -0
- package/dist/models/getNotificationTriggerRequest.js +3 -0
- package/dist/models/getNotificationTriggerRequest.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/generated/models/ContractPolicyRuleResponseContract.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseApiWrapper } from "./baseApiWrapper";
|
|
2
|
+
import { CreateSubscriptionRequest, NotificationSubscription, NotificationSubscriptionDeleteResponse, NotificationSubscriptionListQueries, NotificationSubscriptionListResponse } from "../generated";
|
|
3
|
+
import { NotificationsApi } from "../generated";
|
|
4
|
+
import { GetNotificationSubscriptionRequest } from "../models/getNotificationSubscriptionRequest";
|
|
5
|
+
export declare class NotificationSubscriptionsApiWrapper extends BaseApiWrapper<NotificationsApi> {
|
|
6
|
+
constructor(accessToken: string, basePath?: string);
|
|
7
|
+
/**
|
|
8
|
+
* Create a subscription for the provided notification.
|
|
9
|
+
* @param req Parameters to create a notification subscription.
|
|
10
|
+
*/
|
|
11
|
+
create(req: CreateSubscriptionRequest): Promise<NotificationSubscription>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns a list of subscriptions of a notification. The subscriptions are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 notification subscriptions are shown per page.
|
|
14
|
+
* @param req Criteria to get notification subscriptions by.
|
|
15
|
+
*/
|
|
16
|
+
list(req: NotificationSubscriptionListQueries): Promise<NotificationSubscriptionListResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the details of an existing notification subscription. Supply the unique notification subscription ID.
|
|
19
|
+
*
|
|
20
|
+
* Supply the unique notification subscription ID.
|
|
21
|
+
* @param req Criteria to get notification subscription by.
|
|
22
|
+
*/
|
|
23
|
+
get(req: GetNotificationSubscriptionRequest): Promise<NotificationSubscription>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete a notification subscription by providing its notification subscription id.
|
|
26
|
+
* @param id Id of the notification subscription
|
|
27
|
+
*/
|
|
28
|
+
delete(id: string): Promise<NotificationSubscriptionDeleteResponse>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NotificationSubscriptionsApiWrapper = void 0;
|
|
13
|
+
const baseApiWrapper_1 = require("./baseApiWrapper");
|
|
14
|
+
const httpErrorHandler_1 = require("../utilities/httpErrorHandler");
|
|
15
|
+
const generated_1 = require("../generated");
|
|
16
|
+
let NotificationSubscriptionsApiWrapper = class NotificationSubscriptionsApiWrapper extends baseApiWrapper_1.BaseApiWrapper {
|
|
17
|
+
constructor(accessToken, basePath) {
|
|
18
|
+
super(generated_1.NotificationsApi, accessToken, basePath);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Create a subscription for the provided notification.
|
|
22
|
+
* @param req Parameters to create a notification subscription.
|
|
23
|
+
*/
|
|
24
|
+
async create(req) {
|
|
25
|
+
return await this.api.createNotificationSubscription(req);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns a list of subscriptions of a notification. The subscriptions are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 notification subscriptions are shown per page.
|
|
29
|
+
* @param req Criteria to get notification subscriptions by.
|
|
30
|
+
*/
|
|
31
|
+
async list(req) {
|
|
32
|
+
return await this.api.getNotificationSubscriptions(req.notification, req.limit, req.skip, req.order);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves the details of an existing notification subscription. Supply the unique notification subscription ID.
|
|
36
|
+
*
|
|
37
|
+
* Supply the unique notification subscription ID.
|
|
38
|
+
* @param req Criteria to get notification subscription by.
|
|
39
|
+
*/
|
|
40
|
+
async get(req) {
|
|
41
|
+
return await this.api.getNotificationSubscription(req.id);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Delete a notification subscription by providing its notification subscription id.
|
|
45
|
+
* @param id Id of the notification subscription
|
|
46
|
+
*/
|
|
47
|
+
async delete(id) {
|
|
48
|
+
return await this.api.deleteNotificationSubscription(id);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
NotificationSubscriptionsApiWrapper = __decorate([
|
|
52
|
+
httpErrorHandler_1.httpErrorHandler,
|
|
53
|
+
__metadata("design:paramtypes", [String, String])
|
|
54
|
+
], NotificationSubscriptionsApiWrapper);
|
|
55
|
+
exports.NotificationSubscriptionsApiWrapper = NotificationSubscriptionsApiWrapper;
|
|
56
|
+
//# sourceMappingURL=notificationSubscriptionsApiWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationSubscriptionsApiWrapper.js","sourceRoot":"","sources":["../../src/apis/notificationSubscriptionsApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkD;AAQlD,oEAAiE;AACjE,4CAAgD;AAIzC,IAAM,mCAAmC,GAAzC,MAAM,mCAAoC,SAAQ,+BAAgC;IACrF,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,4BAAgB,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,GAA8B;QAC9C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,8BAA8B,CAAC,GAAG,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,IAAI,CAAC,GAAwC;QACtD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,4BAA4B,CAAC,GAAG,CAAC,YAAY,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IACzG,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CAAC,GAAuC;QACpD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,2BAA2B,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,EAAU;QAC1B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,8BAA8B,CAAC,EAAE,CAAC,CAAC;IAC7D,CAAC;CACJ,CAAA;AAtCY,mCAAmC;IAD/C,mCAAgB;;GACJ,mCAAmC,CAsC/C;AAtCY,kFAAmC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseApiWrapper } from "./baseApiWrapper";
|
|
2
|
+
import { CreateTriggerRequest, NotificationTriggerDeleteResponse, NotificationTriggerListQueries, NotificationTriggerListResponse, NotificationTriggerResponse } from "../generated";
|
|
3
|
+
import { NotificationsApi } from "../generated";
|
|
4
|
+
import { GetNotificationTriggerRequest } from "../models/getNotificationTriggerRequest";
|
|
5
|
+
export declare class NotificationTriggersApiWrapper extends BaseApiWrapper<NotificationsApi> {
|
|
6
|
+
constructor(accessToken: string, basePath?: string);
|
|
7
|
+
/**
|
|
8
|
+
* Create a trigger for the provided notification.
|
|
9
|
+
* @param req Parameters to create a notification trigger.
|
|
10
|
+
*/
|
|
11
|
+
create(req: CreateTriggerRequest): Promise<NotificationTriggerResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns a list of triggers of a notification. The triggers are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 notification triggers are shown per page.
|
|
14
|
+
* @param req Criteria to get notification triggers by.
|
|
15
|
+
*/
|
|
16
|
+
list(req: NotificationTriggerListQueries): Promise<NotificationTriggerListResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the details of an existing notification trigger. Supply the unique notification trigger ID.
|
|
19
|
+
*
|
|
20
|
+
* Supply the unique notification trigger ID.
|
|
21
|
+
* @param req Criteria to get notification trigger by.
|
|
22
|
+
*/
|
|
23
|
+
get(req: GetNotificationTriggerRequest): Promise<NotificationTriggerResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete a notification trigger by providing its notification trigger id.
|
|
26
|
+
* @param id Id of the notification trigger
|
|
27
|
+
*/
|
|
28
|
+
delete(id: string): Promise<NotificationTriggerDeleteResponse>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NotificationTriggersApiWrapper = void 0;
|
|
13
|
+
const baseApiWrapper_1 = require("./baseApiWrapper");
|
|
14
|
+
const httpErrorHandler_1 = require("../utilities/httpErrorHandler");
|
|
15
|
+
const generated_1 = require("../generated");
|
|
16
|
+
let NotificationTriggersApiWrapper = class NotificationTriggersApiWrapper extends baseApiWrapper_1.BaseApiWrapper {
|
|
17
|
+
constructor(accessToken, basePath) {
|
|
18
|
+
super(generated_1.NotificationsApi, accessToken, basePath);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Create a trigger for the provided notification.
|
|
22
|
+
* @param req Parameters to create a notification trigger.
|
|
23
|
+
*/
|
|
24
|
+
async create(req) {
|
|
25
|
+
return await this.api.createNotificationTrigger(req);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns a list of triggers of a notification. The triggers are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 notification triggers are shown per page.
|
|
29
|
+
* @param req Criteria to get notification triggers by.
|
|
30
|
+
*/
|
|
31
|
+
async list(req) {
|
|
32
|
+
return await this.api.getNotificationTriggers(req.notification, req.limit, req.skip, req.order);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves the details of an existing notification trigger. Supply the unique notification trigger ID.
|
|
36
|
+
*
|
|
37
|
+
* Supply the unique notification trigger ID.
|
|
38
|
+
* @param req Criteria to get notification trigger by.
|
|
39
|
+
*/
|
|
40
|
+
async get(req) {
|
|
41
|
+
return await this.api.getNotificationTrigger(req.id);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Delete a notification trigger by providing its notification trigger id.
|
|
45
|
+
* @param id Id of the notification trigger
|
|
46
|
+
*/
|
|
47
|
+
async delete(id) {
|
|
48
|
+
return await this.api.deleteNotificationTrigger(id);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
NotificationTriggersApiWrapper = __decorate([
|
|
52
|
+
httpErrorHandler_1.httpErrorHandler,
|
|
53
|
+
__metadata("design:paramtypes", [String, String])
|
|
54
|
+
], NotificationTriggersApiWrapper);
|
|
55
|
+
exports.NotificationTriggersApiWrapper = NotificationTriggersApiWrapper;
|
|
56
|
+
//# sourceMappingURL=notificationTriggersApiWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationTriggersApiWrapper.js","sourceRoot":"","sources":["../../src/apis/notificationTriggersApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkD;AAQlD,oEAAiE;AACjE,4CAAgD;AAIzC,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,+BAAgC;IAChF,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,4BAAgB,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,GAAyB;QACzC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC;IACzD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,IAAI,CAAC,GAAmC;QACjD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAC,GAAG,CAAC,YAAY,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IACpG,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CAAC,GAAkC;QAC/C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACzD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,EAAU;QAC1B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,yBAAyB,CAAC,EAAE,CAAC,CAAC;IACxD,CAAC;CACJ,CAAA;AAtCY,8BAA8B;IAD1C,mCAAgB;;GACJ,8BAA8B,CAsC1C;AAtCY,wEAA8B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseApiWrapper } from "./baseApiWrapper";
|
|
2
|
+
import { CreateNotificationRequest, NotificationDeleteResponse, NotificationListQueries, NotificationListResponse, NotificationResponse } from "../generated";
|
|
3
|
+
import { NotificationsApi } from "../generated";
|
|
4
|
+
import { GetNotificationRequest } from "../models/getNotificationRequest";
|
|
5
|
+
export declare class NotificationsApiWrapper extends BaseApiWrapper<NotificationsApi> {
|
|
6
|
+
constructor(accessToken: string, basePath?: string);
|
|
7
|
+
/**
|
|
8
|
+
* Create a notification object.
|
|
9
|
+
* @param req Parameters to create a notification.
|
|
10
|
+
*/
|
|
11
|
+
create(req: CreateNotificationRequest): Promise<NotificationResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns a list of your allow functions for the given policy. The allow functions are returned sorted by creation date, with the most recently created allow functions appearing first.
|
|
14
|
+
* @param req Criteria to get notifications by.
|
|
15
|
+
*/
|
|
16
|
+
list(req: NotificationListQueries): Promise<NotificationListResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the details of an existing notification.
|
|
19
|
+
*
|
|
20
|
+
* Supply the unique notification ID.
|
|
21
|
+
* @param req Criteria to get notification by.
|
|
22
|
+
*/
|
|
23
|
+
get(req: GetNotificationRequest): Promise<NotificationResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Deletes a notification object.
|
|
26
|
+
* @param id Id of the notification to delete
|
|
27
|
+
*/
|
|
28
|
+
delete(id: string): Promise<NotificationDeleteResponse>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NotificationsApiWrapper = void 0;
|
|
13
|
+
const baseApiWrapper_1 = require("./baseApiWrapper");
|
|
14
|
+
const httpErrorHandler_1 = require("../utilities/httpErrorHandler");
|
|
15
|
+
const generated_1 = require("../generated");
|
|
16
|
+
let NotificationsApiWrapper = class NotificationsApiWrapper extends baseApiWrapper_1.BaseApiWrapper {
|
|
17
|
+
constructor(accessToken, basePath) {
|
|
18
|
+
super(generated_1.NotificationsApi, accessToken, basePath);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Create a notification object.
|
|
22
|
+
* @param req Parameters to create a notification.
|
|
23
|
+
*/
|
|
24
|
+
async create(req) {
|
|
25
|
+
return await this.api.createNotification(req);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns a list of your allow functions for the given policy. The allow functions are returned sorted by creation date, with the most recently created allow functions appearing first.
|
|
29
|
+
* @param req Criteria to get notifications by.
|
|
30
|
+
*/
|
|
31
|
+
async list(req) {
|
|
32
|
+
return await this.api.getNotifications(req.limit, req.skip, req.order, req.expand);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves the details of an existing notification.
|
|
36
|
+
*
|
|
37
|
+
* Supply the unique notification ID.
|
|
38
|
+
* @param req Criteria to get notification by.
|
|
39
|
+
*/
|
|
40
|
+
async get(req) {
|
|
41
|
+
return await this.api.getNotification(req.id, req.expand);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Deletes a notification object.
|
|
45
|
+
* @param id Id of the notification to delete
|
|
46
|
+
*/
|
|
47
|
+
async delete(id) {
|
|
48
|
+
return await this.api.deleteNotification(id);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
NotificationsApiWrapper = __decorate([
|
|
52
|
+
httpErrorHandler_1.httpErrorHandler,
|
|
53
|
+
__metadata("design:paramtypes", [String, String])
|
|
54
|
+
], NotificationsApiWrapper);
|
|
55
|
+
exports.NotificationsApiWrapper = NotificationsApiWrapper;
|
|
56
|
+
//# sourceMappingURL=notificationsApiWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationsApiWrapper.js","sourceRoot":"","sources":["../../src/apis/notificationsApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkD;AAQlD,oEAAiE;AACjE,4CAAgD;AAIzC,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,+BAAgC;IACzE,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,4BAAgB,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,GAA8B;QAC9C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,IAAI,CAAC,GAA4B;QAC1C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvF,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CAAC,GAA2B;QACxC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,EAAU;QAC1B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IACjD,CAAC;CACJ,CAAA;AAtCY,uBAAuB;IADnC,mCAAgB;;GACJ,uBAAuB,CAsCnC;AAtCY,0DAAuB"}
|
|
@@ -4,22 +4,22 @@ import { PolicyRulesApi } from "../generated";
|
|
|
4
4
|
export declare class PolicyRulesApiWrapper extends BaseApiWrapper<PolicyRulesApi> {
|
|
5
5
|
constructor(accessToken: string, basePath?: string);
|
|
6
6
|
/**
|
|
7
|
-
* Creates an
|
|
8
|
-
* @param req Parameters to create policy
|
|
7
|
+
* Creates an policy rule object.
|
|
8
|
+
* @param req Parameters to create policy rule.
|
|
9
9
|
*/
|
|
10
10
|
create(req: CreatePolicyRuleRequest): Promise<PolicyRuleResponse>;
|
|
11
11
|
/**
|
|
12
|
-
* Returns a list of your
|
|
12
|
+
* Returns a list of your policy rule for the given policy. The policy rule are returned sorted by creation date, with the most recently created policy rule appearing first.
|
|
13
13
|
* @param req Criteria to get policy rules by.
|
|
14
14
|
*/
|
|
15
15
|
list(req: PolicyRuleListQueries): Promise<PolicyRuleListResponse>;
|
|
16
16
|
/**
|
|
17
|
-
* Updates your
|
|
18
|
-
* @param req Parameters to update policy
|
|
17
|
+
* Updates your policy rule object.
|
|
18
|
+
* @param req Parameters to update policy rule
|
|
19
19
|
*/
|
|
20
20
|
update(req: UpdatePolicyRuleRequest): Promise<PolicyRuleResponse>;
|
|
21
21
|
/**
|
|
22
|
-
* Deletes a
|
|
22
|
+
* Deletes a policy rule (allow_functions) object.
|
|
23
23
|
* @param id Id of the policy rule
|
|
24
24
|
*/
|
|
25
25
|
delete(id: string): Promise<PolicyRuleDeleteResponse>;
|
|
@@ -18,33 +18,33 @@ let PolicyRulesApiWrapper = class PolicyRulesApiWrapper extends baseApiWrapper_1
|
|
|
18
18
|
super(generated_1.PolicyRulesApi, accessToken, basePath);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Creates an
|
|
22
|
-
* @param req Parameters to create policy
|
|
21
|
+
* Creates an policy rule object.
|
|
22
|
+
* @param req Parameters to create policy rule.
|
|
23
23
|
*/
|
|
24
24
|
async create(req) {
|
|
25
|
-
return await this.api.
|
|
25
|
+
return await this.api.createPolicyRule(req);
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Returns a list of your
|
|
28
|
+
* Returns a list of your policy rule for the given policy. The policy rule are returned sorted by creation date, with the most recently created policy rule appearing first.
|
|
29
29
|
* @param req Criteria to get policy rules by.
|
|
30
30
|
*/
|
|
31
31
|
async list(req) {
|
|
32
32
|
return await this.api.getPolicyRules(req.policy, req.limit, req.skip, req.order, req.expand);
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
* Updates your
|
|
36
|
-
* @param req Parameters to update policy
|
|
35
|
+
* Updates your policy rule object.
|
|
36
|
+
* @param req Parameters to update policy rule
|
|
37
37
|
*/
|
|
38
38
|
async update(req) {
|
|
39
39
|
const { id, ...request } = req;
|
|
40
|
-
return await this.api.
|
|
40
|
+
return await this.api.updatePolicyRule(id, request);
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
* Deletes a
|
|
43
|
+
* Deletes a policy rule (allow_functions) object.
|
|
44
44
|
* @param id Id of the policy rule
|
|
45
45
|
*/
|
|
46
46
|
async delete(id) {
|
|
47
|
-
return await this.api.
|
|
47
|
+
return await this.api.deletePolicyRule(id);
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
PolicyRulesApiWrapper = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policyRulesApiWrapper.js","sourceRoot":"","sources":["../../src/apis/policyRulesApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,qDAAkD;AAClD,4CAA8C;AAC9C,oEAAiE;AAG1D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+BAA8B;IACrE,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,0BAAc,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,GAA4B;QAC5C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"policyRulesApiWrapper.js","sourceRoot":"","sources":["../../src/apis/policyRulesApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,qDAAkD;AAClD,4CAA8C;AAC9C,oEAAiE;AAG1D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+BAA8B;IACrE,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,0BAAc,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,GAA4B;QAC5C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,IAAI,CAAC,GAA0B;QACxC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,GAA4B;QAC5C,MAAM,EAAE,EAAE,EAAE,GAAG,OAAO,EAAE,GAAG,GAAG,CAAC;QAC/B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CAAC,EAAU;QAC1B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA;AArCY,qBAAqB;IADjC,mCAAgB;;GACJ,qBAAqB,CAqCjC;AArCY,sDAAqB"}
|
|
@@ -32,7 +32,7 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
32
32
|
*/
|
|
33
33
|
completeRecovery(id: string, completeRecoveryRequest: CompleteRecoveryRequest, _options?: Configuration): Promise<RequestContext>;
|
|
34
34
|
/**
|
|
35
|
-
* Creates a new blockchain account for the provided player. Account creation does not consume any gas. All accounts of a player will use the same address across blockchains.
|
|
35
|
+
* Creates a new blockchain account for the provided player. Account creation does not consume any gas. All accounts of a player will use the same address across blockchains. Each player can only have one account per chain.
|
|
36
36
|
* Create an account object.
|
|
37
37
|
* @param createAccountRequest
|
|
38
38
|
*/
|
|
@@ -93,7 +93,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
93
93
|
return requestContext;
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
|
-
* Creates a new blockchain account for the provided player. Account creation does not consume any gas. All accounts of a player will use the same address across blockchains.
|
|
96
|
+
* Creates a new blockchain account for the provided player. Account creation does not consume any gas. All accounts of a player will use the same address across blockchains. Each player can only have one account per chain.
|
|
97
97
|
* Create an account object.
|
|
98
98
|
* @param createAccountRequest
|
|
99
99
|
*/
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { BaseAPIRequestFactory } from './baseapi';
|
|
2
|
+
import { Configuration } from '../configuration';
|
|
3
|
+
import { RequestContext, ResponseContext } from '../http/http';
|
|
4
|
+
import { CreateNotificationRequest } from '../models/CreateNotificationRequest';
|
|
5
|
+
import { CreateSubscriptionRequest } from '../models/CreateSubscriptionRequest';
|
|
6
|
+
import { CreateTriggerRequest } from '../models/CreateTriggerRequest';
|
|
7
|
+
import { NotificationDeleteResponse } from '../models/NotificationDeleteResponse';
|
|
8
|
+
import { NotificationListResponse } from '../models/NotificationListResponse';
|
|
9
|
+
import { NotificationResponse } from '../models/NotificationResponse';
|
|
10
|
+
import { NotificationResponseExpandable } from '../models/NotificationResponseExpandable';
|
|
11
|
+
import { NotificationSubscription } from '../models/NotificationSubscription';
|
|
12
|
+
import { NotificationSubscriptionDeleteResponse } from '../models/NotificationSubscriptionDeleteResponse';
|
|
13
|
+
import { NotificationSubscriptionListResponse } from '../models/NotificationSubscriptionListResponse';
|
|
14
|
+
import { NotificationTriggerDeleteResponse } from '../models/NotificationTriggerDeleteResponse';
|
|
15
|
+
import { NotificationTriggerListResponse } from '../models/NotificationTriggerListResponse';
|
|
16
|
+
import { NotificationTriggerResponse } from '../models/NotificationTriggerResponse';
|
|
17
|
+
import { SortOrder } from '../models/SortOrder';
|
|
18
|
+
/**
|
|
19
|
+
* no description
|
|
20
|
+
*/
|
|
21
|
+
export declare class NotificationsApiRequestFactory extends BaseAPIRequestFactory {
|
|
22
|
+
/**
|
|
23
|
+
* Create a notification object.
|
|
24
|
+
* Create a notification object.
|
|
25
|
+
* @param createNotificationRequest
|
|
26
|
+
*/
|
|
27
|
+
createNotification(createNotificationRequest: CreateNotificationRequest, _options?: Configuration): Promise<RequestContext>;
|
|
28
|
+
/**
|
|
29
|
+
* Create a subscription for the provided notification.
|
|
30
|
+
* Create a notification subscription object.
|
|
31
|
+
* @param createSubscriptionRequest
|
|
32
|
+
*/
|
|
33
|
+
createNotificationSubscription(createSubscriptionRequest: CreateSubscriptionRequest, _options?: Configuration): Promise<RequestContext>;
|
|
34
|
+
/**
|
|
35
|
+
* Create a trigger for the provided notification.
|
|
36
|
+
* Create a notification trigger object.
|
|
37
|
+
* @param createTriggerRequest
|
|
38
|
+
*/
|
|
39
|
+
createNotificationTrigger(createTriggerRequest: CreateTriggerRequest, _options?: Configuration): Promise<RequestContext>;
|
|
40
|
+
/**
|
|
41
|
+
* Delete a notification by providing its notification id.
|
|
42
|
+
* Deletes a notification object.
|
|
43
|
+
* @param id Specifies the unique notification ID (starts with not_).
|
|
44
|
+
*/
|
|
45
|
+
deleteNotification(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
46
|
+
/**
|
|
47
|
+
* Delete a notification subscription by providing its notification subscription id.
|
|
48
|
+
* Deletes a notification subscription object.
|
|
49
|
+
* @param id Specifies the unique notification subscription ID (starts with ntr_).
|
|
50
|
+
*/
|
|
51
|
+
deleteNotificationSubscription(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
52
|
+
/**
|
|
53
|
+
* Delete a notification trigger by providing its notification trigger id.
|
|
54
|
+
* Deletes a notification trigger object.
|
|
55
|
+
* @param id Specifies the unique notification trigger ID (starts with ntr_).
|
|
56
|
+
*/
|
|
57
|
+
deleteNotificationTrigger(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves the details of an existing account. Supply the unique notification ID.
|
|
60
|
+
* Get existing account.
|
|
61
|
+
* @param id Specifies the unique account ID (starts with not_).
|
|
62
|
+
* @param expand
|
|
63
|
+
*/
|
|
64
|
+
getNotification(id: string, expand?: Array<NotificationResponseExpandable>, _options?: Configuration): Promise<RequestContext>;
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves the details of an existing notification subscription. Supply the unique notification subscription ID.
|
|
67
|
+
* Get existing notification subscription.
|
|
68
|
+
* @param id Specifies the unique notification subscription ID (starts with not_).
|
|
69
|
+
*/
|
|
70
|
+
getNotificationSubscription(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
71
|
+
/**
|
|
72
|
+
* Returns a list of subscriptions of a notification. The subscriptions are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 notification subscriptions are shown per page.
|
|
73
|
+
* List notification subscriptions of a notification.
|
|
74
|
+
* @param notification Specifies the unique notification ID (starts with not_).
|
|
75
|
+
* @param limit Specifies the maximum number of records to return.
|
|
76
|
+
* @param skip Specifies the offset for the first records to return.
|
|
77
|
+
* @param order Specifies the order in which to sort the results.
|
|
78
|
+
*/
|
|
79
|
+
getNotificationSubscriptions(notification: string, limit?: number, skip?: number, order?: SortOrder, _options?: Configuration): Promise<RequestContext>;
|
|
80
|
+
/**
|
|
81
|
+
* Retrieves the details of an existing notification trigger. Supply the unique notification trigger ID.
|
|
82
|
+
* Get existing notification trigger.
|
|
83
|
+
* @param id Specifies the unique notification trigger ID (starts with ntr_).
|
|
84
|
+
*/
|
|
85
|
+
getNotificationTrigger(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
86
|
+
/**
|
|
87
|
+
* Returns a list of triggers of a notification. The triggers are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 notification triggers are shown per page.
|
|
88
|
+
* List notification triggers of a notification.
|
|
89
|
+
* @param notification Specifies the unique notification ID (starts with not_).
|
|
90
|
+
* @param limit Specifies the maximum number of records to return.
|
|
91
|
+
* @param skip Specifies the offset for the first records to return.
|
|
92
|
+
* @param order Specifies the order in which to sort the results.
|
|
93
|
+
*/
|
|
94
|
+
getNotificationTriggers(notification: string, limit?: number, skip?: number, order?: SortOrder, _options?: Configuration): Promise<RequestContext>;
|
|
95
|
+
/**
|
|
96
|
+
* Returns a list of notifications. The notifications are returned sorted by creation date, with the most recently created notifications appearing first. By default, a maximum of 10 notifications are shown per page.
|
|
97
|
+
* List notifications.
|
|
98
|
+
* @param limit Specifies the maximum number of records to return.
|
|
99
|
+
* @param skip Specifies the offset for the first records to return.
|
|
100
|
+
* @param order Specifies the order in which to sort the results.
|
|
101
|
+
* @param expand Specifies the fields to expand in the response.
|
|
102
|
+
* @param deleted Specifies whether to include deleted notifications.
|
|
103
|
+
* @param name Specifies the name of the notifications.
|
|
104
|
+
*/
|
|
105
|
+
getNotifications(limit?: number, skip?: number, order?: SortOrder, expand?: Array<NotificationResponseExpandable>, deleted?: boolean, name?: string, _options?: Configuration): Promise<RequestContext>;
|
|
106
|
+
}
|
|
107
|
+
export declare class NotificationsApiResponseProcessor {
|
|
108
|
+
/**
|
|
109
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
110
|
+
* to the expected objects
|
|
111
|
+
*
|
|
112
|
+
* @params response Response returned by the server for a request to createNotification
|
|
113
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
114
|
+
*/
|
|
115
|
+
createNotification(response: ResponseContext): Promise<NotificationResponse>;
|
|
116
|
+
/**
|
|
117
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
118
|
+
* to the expected objects
|
|
119
|
+
*
|
|
120
|
+
* @params response Response returned by the server for a request to createNotificationSubscription
|
|
121
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
122
|
+
*/
|
|
123
|
+
createNotificationSubscription(response: ResponseContext): Promise<NotificationSubscription>;
|
|
124
|
+
/**
|
|
125
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
126
|
+
* to the expected objects
|
|
127
|
+
*
|
|
128
|
+
* @params response Response returned by the server for a request to createNotificationTrigger
|
|
129
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
130
|
+
*/
|
|
131
|
+
createNotificationTrigger(response: ResponseContext): Promise<NotificationTriggerResponse>;
|
|
132
|
+
/**
|
|
133
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
134
|
+
* to the expected objects
|
|
135
|
+
*
|
|
136
|
+
* @params response Response returned by the server for a request to deleteNotification
|
|
137
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
138
|
+
*/
|
|
139
|
+
deleteNotification(response: ResponseContext): Promise<NotificationDeleteResponse>;
|
|
140
|
+
/**
|
|
141
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
142
|
+
* to the expected objects
|
|
143
|
+
*
|
|
144
|
+
* @params response Response returned by the server for a request to deleteNotificationSubscription
|
|
145
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
146
|
+
*/
|
|
147
|
+
deleteNotificationSubscription(response: ResponseContext): Promise<NotificationSubscriptionDeleteResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
150
|
+
* to the expected objects
|
|
151
|
+
*
|
|
152
|
+
* @params response Response returned by the server for a request to deleteNotificationTrigger
|
|
153
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
154
|
+
*/
|
|
155
|
+
deleteNotificationTrigger(response: ResponseContext): Promise<NotificationTriggerDeleteResponse>;
|
|
156
|
+
/**
|
|
157
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
158
|
+
* to the expected objects
|
|
159
|
+
*
|
|
160
|
+
* @params response Response returned by the server for a request to getNotification
|
|
161
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
162
|
+
*/
|
|
163
|
+
getNotification(response: ResponseContext): Promise<NotificationResponse>;
|
|
164
|
+
/**
|
|
165
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
166
|
+
* to the expected objects
|
|
167
|
+
*
|
|
168
|
+
* @params response Response returned by the server for a request to getNotificationSubscription
|
|
169
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
170
|
+
*/
|
|
171
|
+
getNotificationSubscription(response: ResponseContext): Promise<NotificationSubscription>;
|
|
172
|
+
/**
|
|
173
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
174
|
+
* to the expected objects
|
|
175
|
+
*
|
|
176
|
+
* @params response Response returned by the server for a request to getNotificationSubscriptions
|
|
177
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
178
|
+
*/
|
|
179
|
+
getNotificationSubscriptions(response: ResponseContext): Promise<NotificationSubscriptionListResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
182
|
+
* to the expected objects
|
|
183
|
+
*
|
|
184
|
+
* @params response Response returned by the server for a request to getNotificationTrigger
|
|
185
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
186
|
+
*/
|
|
187
|
+
getNotificationTrigger(response: ResponseContext): Promise<NotificationTriggerResponse>;
|
|
188
|
+
/**
|
|
189
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
190
|
+
* to the expected objects
|
|
191
|
+
*
|
|
192
|
+
* @params response Response returned by the server for a request to getNotificationTriggers
|
|
193
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
194
|
+
*/
|
|
195
|
+
getNotificationTriggers(response: ResponseContext): Promise<NotificationTriggerListResponse>;
|
|
196
|
+
/**
|
|
197
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
198
|
+
* to the expected objects
|
|
199
|
+
*
|
|
200
|
+
* @params response Response returned by the server for a request to getNotifications
|
|
201
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
202
|
+
*/
|
|
203
|
+
getNotifications(response: ResponseContext): Promise<NotificationListResponse>;
|
|
204
|
+
}
|