@openfort/openfort-node 0.6.36 → 0.6.39
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 +3 -4
- package/dist/apis/notificationSubscriptionsApiWrapper.js +2 -2
- package/dist/apis/notificationSubscriptionsApiWrapper.js.map +1 -1
- package/dist/apis/notificationTriggersApiWrapper.d.ts +3 -4
- package/dist/apis/notificationTriggersApiWrapper.js +2 -2
- package/dist/apis/notificationTriggersApiWrapper.js.map +1 -1
- package/dist/apis/policiesApiWrapper.d.ts +3 -3
- package/dist/apis/policiesApiWrapper.js +1 -1
- package/dist/apis/policiesApiWrapper.js.map +1 -1
- package/dist/apis/transactionIntentsApiWrapper.js +1 -1
- package/dist/apis/transactionIntentsApiWrapper.js.map +1 -1
- package/dist/generated/apis/InventoriesApi.d.ts +6 -0
- package/dist/generated/apis/InventoriesApi.js +6 -0
- package/dist/generated/apis/InventoriesApi.js.map +1 -1
- package/dist/generated/apis/NotificationSubscriptionsApi.d.ts +74 -0
- package/dist/generated/apis/NotificationSubscriptionsApi.js +257 -0
- package/dist/generated/apis/NotificationSubscriptionsApi.js.map +1 -0
- package/dist/generated/apis/NotificationTriggersApi.d.ts +74 -0
- package/dist/generated/apis/NotificationTriggersApi.js +257 -0
- package/dist/generated/apis/NotificationTriggersApi.js.map +1 -0
- package/dist/generated/apis/NotificationsApi.d.ts +4 -130
- package/dist/generated/apis/NotificationsApi.js +4 -480
- package/dist/generated/apis/NotificationsApi.js.map +1 -1
- package/dist/generated/apis/PoliciesApi.d.ts +32 -2
- package/dist/generated/apis/PoliciesApi.js +122 -2
- package/dist/generated/apis/PoliciesApi.js.map +1 -1
- package/dist/generated/apis/SettingsApi.d.ts +2 -1
- package/dist/generated/apis/SettingsApi.js +6 -1
- package/dist/generated/apis/SettingsApi.js.map +1 -1
- package/dist/generated/apis/TransactionIntentsApi.d.ts +2 -1
- package/dist/generated/apis/TransactionIntentsApi.js +6 -1
- package/dist/generated/apis/TransactionIntentsApi.js.map +1 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.js +3 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/models/{CreateSubscriptionRequest.d.ts → CreateNotificationSubscriptionRequest.d.ts} +1 -1
- package/dist/generated/models/{CreateSubscriptionRequest.js → CreateNotificationSubscriptionRequest.js} +7 -7
- package/dist/generated/models/CreateNotificationSubscriptionRequest.js.map +1 -0
- package/dist/generated/models/{CreateTriggerRequest.d.ts → CreateNotificationTriggerRequest.d.ts} +1 -1
- package/dist/generated/models/{CreateTriggerRequest.js → CreateNotificationTriggerRequest.js} +7 -7
- package/dist/generated/models/CreateNotificationTriggerRequest.js.map +1 -0
- package/dist/generated/models/DeveloperAccountListQueries.d.ts +4 -0
- package/dist/generated/models/DeveloperAccountListQueries.js +6 -0
- package/dist/generated/models/DeveloperAccountListQueries.js.map +1 -1
- package/dist/generated/models/GasReport.d.ts +8 -4
- package/dist/generated/models/GasReport.js +30 -6
- package/dist/generated/models/GasReport.js.map +1 -1
- package/dist/generated/models/{GasReportDataInner.d.ts → GasReportListResponse.d.ts} +9 -9
- package/dist/generated/models/GasReportListResponse.js +62 -0
- package/dist/generated/models/GasReportListResponse.js.map +1 -0
- package/dist/generated/models/{GasReportDataInnerTransactionIntentsInner.d.ts → GasReportTransactionIntentsInner.d.ts} +2 -2
- package/dist/generated/models/{GasReportDataInnerTransactionIntentsInner.js → GasReportTransactionIntentsInner.js} +9 -9
- package/dist/generated/models/GasReportTransactionIntentsInner.js.map +1 -0
- package/dist/generated/models/{GasReportDataInnerPeriod.d.ts → MonthRange.d.ts} +2 -2
- package/dist/generated/models/{GasReportDataInnerPeriod.js → MonthRange.js} +13 -13
- package/dist/generated/models/MonthRange.js.map +1 -0
- package/dist/generated/models/ObjectSerializer.d.ts +7 -5
- package/dist/generated/models/ObjectSerializer.js +21 -15
- package/dist/generated/models/ObjectSerializer.js.map +1 -1
- package/dist/generated/models/PolicyBalanceWithdrawResponse.d.ts +30 -0
- package/dist/generated/models/PolicyBalanceWithdrawResponse.js +44 -0
- package/dist/generated/models/PolicyBalanceWithdrawResponse.js.map +1 -0
- package/dist/generated/models/ResponseResponse.d.ts +9 -1
- package/dist/generated/models/ResponseResponse.js +12 -0
- package/dist/generated/models/ResponseResponse.js.map +1 -1
- package/dist/generated/models/SubscriptionType.d.ts +1 -1
- package/dist/generated/models/TransactionIntentListQueries.d.ts +4 -0
- package/dist/generated/models/TransactionIntentListQueries.js +6 -0
- package/dist/generated/models/TransactionIntentListQueries.js.map +1 -1
- package/dist/generated/models/WithdrawalPolicyRequest.d.ts +35 -0
- package/dist/generated/models/WithdrawalPolicyRequest.js +38 -0
- package/dist/generated/models/WithdrawalPolicyRequest.js.map +1 -0
- package/dist/generated/models/all.d.ts +7 -5
- package/dist/generated/models/all.js +7 -5
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +184 -122
- package/dist/generated/types/ObjectParamAPI.js +98 -64
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +80 -45
- package/dist/generated/types/ObservableAPI.js +144 -77
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +76 -45
- package/dist/generated/types/PromiseAPI.js +116 -77
- package/dist/generated/types/PromiseAPI.js.map +1 -1
- 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/CreateSubscriptionRequest.js.map +0 -1
- package/dist/generated/models/CreateTriggerRequest.js.map +0 -1
- package/dist/generated/models/GasReportDataInner.js +0 -62
- package/dist/generated/models/GasReportDataInner.js.map +0 -1
- package/dist/generated/models/GasReportDataInnerPeriod.js.map +0 -1
- package/dist/generated/models/GasReportDataInnerTransactionIntentsInner.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObservableWeb3ConnectionsApi = exports.ObservableTransactionIntentsApi = exports.ObservableSettingsApi = exports.ObservableSessionsApi = exports.ObservablePolicyRulesApi = exports.ObservablePoliciesApi = exports.ObservablePlayersAuthenticationApi = exports.ObservablePlayersApi = exports.ObservableOAuthApi = exports.ObservableNotificationsApi = exports.ObservableInventoriesApi = exports.ObservableGoogleAuthenticationApi = exports.ObservableContractsApi = exports.ObservableAuthenticationApi = exports.ObservableAccountsApi = void 0;
|
|
3
|
+
exports.ObservableWeb3ConnectionsApi = exports.ObservableTransactionIntentsApi = exports.ObservableSettingsApi = exports.ObservableSessionsApi = exports.ObservablePolicyRulesApi = exports.ObservablePoliciesApi = exports.ObservablePlayersAuthenticationApi = exports.ObservablePlayersApi = exports.ObservableOAuthApi = exports.ObservableNotificationsApi = exports.ObservableNotificationTriggersApi = exports.ObservableNotificationSubscriptionsApi = exports.ObservableInventoriesApi = exports.ObservableGoogleAuthenticationApi = exports.ObservableContractsApi = exports.ObservableAuthenticationApi = exports.ObservableAccountsApi = void 0;
|
|
4
4
|
const rxjsStub_1 = require("../rxjsStub");
|
|
5
5
|
const rxjsStub_2 = require("../rxjsStub");
|
|
6
6
|
const AccountsApi_1 = require("../apis/AccountsApi");
|
|
@@ -502,6 +502,7 @@ class ObservableInventoriesApi {
|
|
|
502
502
|
this.responseProcessor = responseProcessor || new InventoriesApi_1.InventoriesApiResponseProcessor();
|
|
503
503
|
}
|
|
504
504
|
/**
|
|
505
|
+
* For development purposes only. Under higher load scenarios, this endpoint may be rate limited.
|
|
505
506
|
* Retrieves the cryptocurrency assets of an existing account.
|
|
506
507
|
* @param id Specifies the unique account ID.
|
|
507
508
|
* @param limit Specifies the maximum number of records to return.
|
|
@@ -526,6 +527,7 @@ class ObservableInventoriesApi {
|
|
|
526
527
|
}));
|
|
527
528
|
}
|
|
528
529
|
/**
|
|
530
|
+
* For development purposes only. Under higher load scenarios, this endpoint may be rate limited.
|
|
529
531
|
* Retrieves the native asset of an existing account.
|
|
530
532
|
* @param id Specifies the unique account ID.
|
|
531
533
|
*/
|
|
@@ -546,6 +548,7 @@ class ObservableInventoriesApi {
|
|
|
546
548
|
}));
|
|
547
549
|
}
|
|
548
550
|
/**
|
|
551
|
+
* For development purposes only. Under higher load scenarios, this endpoint may be rate limited.
|
|
549
552
|
* Retrieves the NFT assets of an existing account.
|
|
550
553
|
* @param id Specifies the unique account ID.
|
|
551
554
|
* @param limit Specifies the maximum number of records to return.
|
|
@@ -570,6 +573,7 @@ class ObservableInventoriesApi {
|
|
|
570
573
|
}));
|
|
571
574
|
}
|
|
572
575
|
/**
|
|
576
|
+
* For development purposes only. Under higher load scenarios, this endpoint may be rate limited.
|
|
573
577
|
* Get cryptocurrency list of player.
|
|
574
578
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
575
579
|
* @param chainId Filter by chain id.
|
|
@@ -595,6 +599,7 @@ class ObservableInventoriesApi {
|
|
|
595
599
|
}));
|
|
596
600
|
}
|
|
597
601
|
/**
|
|
602
|
+
* For development purposes only. Under higher load scenarios, this endpoint may be rate limited.
|
|
598
603
|
* Get native token list of player.
|
|
599
604
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
600
605
|
* @param chainId Filter by chain id.
|
|
@@ -616,6 +621,7 @@ class ObservableInventoriesApi {
|
|
|
616
621
|
}));
|
|
617
622
|
}
|
|
618
623
|
/**
|
|
624
|
+
* For development purposes only. Under higher load scenarios, this endpoint may be rate limited.
|
|
619
625
|
* Get NFTs list of player.
|
|
620
626
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
621
627
|
* @param chainId Filter by chain id.
|
|
@@ -642,20 +648,20 @@ class ObservableInventoriesApi {
|
|
|
642
648
|
}
|
|
643
649
|
}
|
|
644
650
|
exports.ObservableInventoriesApi = ObservableInventoriesApi;
|
|
645
|
-
const
|
|
646
|
-
class
|
|
651
|
+
const NotificationSubscriptionsApi_1 = require("../apis/NotificationSubscriptionsApi");
|
|
652
|
+
class ObservableNotificationSubscriptionsApi {
|
|
647
653
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
648
654
|
this.configuration = configuration;
|
|
649
|
-
this.requestFactory = requestFactory || new
|
|
650
|
-
this.responseProcessor = responseProcessor || new
|
|
655
|
+
this.requestFactory = requestFactory || new NotificationSubscriptionsApi_1.NotificationSubscriptionsApiRequestFactory(configuration);
|
|
656
|
+
this.responseProcessor = responseProcessor || new NotificationSubscriptionsApi_1.NotificationSubscriptionsApiResponseProcessor();
|
|
651
657
|
}
|
|
652
658
|
/**
|
|
653
|
-
* Create a notification
|
|
654
|
-
* Create a notification object.
|
|
655
|
-
* @param
|
|
659
|
+
* Create a subscription for the provided notification.
|
|
660
|
+
* Create a notification subscription object.
|
|
661
|
+
* @param createNotificationSubscriptionRequest
|
|
656
662
|
*/
|
|
657
|
-
|
|
658
|
-
const requestContextPromise = this.requestFactory.
|
|
663
|
+
createNotificationSubscription(createNotificationSubscriptionRequest, _options) {
|
|
664
|
+
const requestContextPromise = this.requestFactory.createNotificationSubscription(createNotificationSubscriptionRequest, _options);
|
|
659
665
|
// build promise chain
|
|
660
666
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
661
667
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -667,16 +673,16 @@ class ObservableNotificationsApi {
|
|
|
667
673
|
for (let middleware of this.configuration.middleware) {
|
|
668
674
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
669
675
|
}
|
|
670
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.
|
|
676
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createNotificationSubscription(rsp)));
|
|
671
677
|
}));
|
|
672
678
|
}
|
|
673
679
|
/**
|
|
674
|
-
*
|
|
675
|
-
*
|
|
676
|
-
* @param
|
|
680
|
+
* Delete a notification subscription by providing its notification subscription id.
|
|
681
|
+
* Deletes a notification subscription object.
|
|
682
|
+
* @param id Specifies the unique notification subscription ID (starts with ntr_).
|
|
677
683
|
*/
|
|
678
|
-
|
|
679
|
-
const requestContextPromise = this.requestFactory.
|
|
684
|
+
deleteNotificationSubscription(id, _options) {
|
|
685
|
+
const requestContextPromise = this.requestFactory.deleteNotificationSubscription(id, _options);
|
|
680
686
|
// build promise chain
|
|
681
687
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
682
688
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -688,16 +694,16 @@ class ObservableNotificationsApi {
|
|
|
688
694
|
for (let middleware of this.configuration.middleware) {
|
|
689
695
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
690
696
|
}
|
|
691
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.
|
|
697
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteNotificationSubscription(rsp)));
|
|
692
698
|
}));
|
|
693
699
|
}
|
|
694
700
|
/**
|
|
695
|
-
*
|
|
696
|
-
*
|
|
697
|
-
* @param
|
|
701
|
+
* Retrieves the details of an existing notification subscription. Supply the unique notification subscription ID.
|
|
702
|
+
* Get existing notification subscription.
|
|
703
|
+
* @param id Specifies the unique notification subscription ID (starts with not_).
|
|
698
704
|
*/
|
|
699
|
-
|
|
700
|
-
const requestContextPromise = this.requestFactory.
|
|
705
|
+
getNotificationSubscription(id, _options) {
|
|
706
|
+
const requestContextPromise = this.requestFactory.getNotificationSubscription(id, _options);
|
|
701
707
|
// build promise chain
|
|
702
708
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
703
709
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -709,16 +715,19 @@ class ObservableNotificationsApi {
|
|
|
709
715
|
for (let middleware of this.configuration.middleware) {
|
|
710
716
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
711
717
|
}
|
|
712
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.
|
|
718
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getNotificationSubscription(rsp)));
|
|
713
719
|
}));
|
|
714
720
|
}
|
|
715
721
|
/**
|
|
716
|
-
*
|
|
717
|
-
*
|
|
718
|
-
* @param
|
|
722
|
+
* Returns a list of subscriptions of a notification. Subscriptions define the the way you will get notified and the target of the notification. 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.
|
|
723
|
+
* List notification subscriptions of a notification.
|
|
724
|
+
* @param notification Specifies the unique notification ID (starts with not_).
|
|
725
|
+
* @param limit Specifies the maximum number of records to return.
|
|
726
|
+
* @param skip Specifies the offset for the first records to return.
|
|
727
|
+
* @param order Specifies the order in which to sort the results.
|
|
719
728
|
*/
|
|
720
|
-
|
|
721
|
-
const requestContextPromise = this.requestFactory.
|
|
729
|
+
getNotificationSubscriptions(notification, limit, skip, order, _options) {
|
|
730
|
+
const requestContextPromise = this.requestFactory.getNotificationSubscriptions(notification, limit, skip, order, _options);
|
|
722
731
|
// build promise chain
|
|
723
732
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
724
733
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -730,16 +739,25 @@ class ObservableNotificationsApi {
|
|
|
730
739
|
for (let middleware of this.configuration.middleware) {
|
|
731
740
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
732
741
|
}
|
|
733
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.
|
|
742
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getNotificationSubscriptions(rsp)));
|
|
734
743
|
}));
|
|
735
744
|
}
|
|
745
|
+
}
|
|
746
|
+
exports.ObservableNotificationSubscriptionsApi = ObservableNotificationSubscriptionsApi;
|
|
747
|
+
const NotificationTriggersApi_1 = require("../apis/NotificationTriggersApi");
|
|
748
|
+
class ObservableNotificationTriggersApi {
|
|
749
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
750
|
+
this.configuration = configuration;
|
|
751
|
+
this.requestFactory = requestFactory || new NotificationTriggersApi_1.NotificationTriggersApiRequestFactory(configuration);
|
|
752
|
+
this.responseProcessor = responseProcessor || new NotificationTriggersApi_1.NotificationTriggersApiResponseProcessor();
|
|
753
|
+
}
|
|
736
754
|
/**
|
|
737
|
-
*
|
|
738
|
-
*
|
|
739
|
-
* @param
|
|
755
|
+
* Create a trigger for the provided notification.
|
|
756
|
+
* Create a notification trigger object.
|
|
757
|
+
* @param createNotificationTriggerRequest
|
|
740
758
|
*/
|
|
741
|
-
|
|
742
|
-
const requestContextPromise = this.requestFactory.
|
|
759
|
+
createNotificationTrigger(createNotificationTriggerRequest, _options) {
|
|
760
|
+
const requestContextPromise = this.requestFactory.createNotificationTrigger(createNotificationTriggerRequest, _options);
|
|
743
761
|
// build promise chain
|
|
744
762
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
745
763
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -751,7 +769,7 @@ class ObservableNotificationsApi {
|
|
|
751
769
|
for (let middleware of this.configuration.middleware) {
|
|
752
770
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
753
771
|
}
|
|
754
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.
|
|
772
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createNotificationTrigger(rsp)));
|
|
755
773
|
}));
|
|
756
774
|
}
|
|
757
775
|
/**
|
|
@@ -776,13 +794,12 @@ class ObservableNotificationsApi {
|
|
|
776
794
|
}));
|
|
777
795
|
}
|
|
778
796
|
/**
|
|
779
|
-
* Retrieves the details of an existing
|
|
780
|
-
* Get existing
|
|
781
|
-
* @param id Specifies the unique
|
|
782
|
-
* @param expand
|
|
797
|
+
* Retrieves the details of an existing notification trigger. Supply the unique notification trigger ID.
|
|
798
|
+
* Get existing notification trigger.
|
|
799
|
+
* @param id Specifies the unique notification trigger ID (starts with ntr_).
|
|
783
800
|
*/
|
|
784
|
-
|
|
785
|
-
const requestContextPromise = this.requestFactory.
|
|
801
|
+
getNotificationTrigger(id, _options) {
|
|
802
|
+
const requestContextPromise = this.requestFactory.getNotificationTrigger(id, _options);
|
|
786
803
|
// build promise chain
|
|
787
804
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
788
805
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -794,16 +811,19 @@ class ObservableNotificationsApi {
|
|
|
794
811
|
for (let middleware of this.configuration.middleware) {
|
|
795
812
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
796
813
|
}
|
|
797
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.
|
|
814
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getNotificationTrigger(rsp)));
|
|
798
815
|
}));
|
|
799
816
|
}
|
|
800
817
|
/**
|
|
801
|
-
*
|
|
802
|
-
*
|
|
803
|
-
* @param
|
|
818
|
+
* Returns a list of triggers of a notification. Triggers define the conditions that will trigger a notification. 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.
|
|
819
|
+
* List notification triggers of a notification.
|
|
820
|
+
* @param notification Specifies the unique notification ID (starts with not_).
|
|
821
|
+
* @param limit Specifies the maximum number of records to return.
|
|
822
|
+
* @param skip Specifies the offset for the first records to return.
|
|
823
|
+
* @param order Specifies the order in which to sort the results.
|
|
804
824
|
*/
|
|
805
|
-
|
|
806
|
-
const requestContextPromise = this.requestFactory.
|
|
825
|
+
getNotificationTriggers(notification, limit, skip, order, _options) {
|
|
826
|
+
const requestContextPromise = this.requestFactory.getNotificationTriggers(notification, limit, skip, order, _options);
|
|
807
827
|
// build promise chain
|
|
808
828
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
809
829
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -815,19 +835,25 @@ class ObservableNotificationsApi {
|
|
|
815
835
|
for (let middleware of this.configuration.middleware) {
|
|
816
836
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
817
837
|
}
|
|
818
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.
|
|
838
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getNotificationTriggers(rsp)));
|
|
819
839
|
}));
|
|
820
840
|
}
|
|
841
|
+
}
|
|
842
|
+
exports.ObservableNotificationTriggersApi = ObservableNotificationTriggersApi;
|
|
843
|
+
const NotificationsApi_1 = require("../apis/NotificationsApi");
|
|
844
|
+
class ObservableNotificationsApi {
|
|
845
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
846
|
+
this.configuration = configuration;
|
|
847
|
+
this.requestFactory = requestFactory || new NotificationsApi_1.NotificationsApiRequestFactory(configuration);
|
|
848
|
+
this.responseProcessor = responseProcessor || new NotificationsApi_1.NotificationsApiResponseProcessor();
|
|
849
|
+
}
|
|
821
850
|
/**
|
|
822
|
-
*
|
|
823
|
-
*
|
|
824
|
-
* @param
|
|
825
|
-
* @param limit Specifies the maximum number of records to return.
|
|
826
|
-
* @param skip Specifies the offset for the first records to return.
|
|
827
|
-
* @param order Specifies the order in which to sort the results.
|
|
851
|
+
* Create a notification object.
|
|
852
|
+
* Create a notification object.
|
|
853
|
+
* @param createNotificationRequest
|
|
828
854
|
*/
|
|
829
|
-
|
|
830
|
-
const requestContextPromise = this.requestFactory.
|
|
855
|
+
createNotification(createNotificationRequest, _options) {
|
|
856
|
+
const requestContextPromise = this.requestFactory.createNotification(createNotificationRequest, _options);
|
|
831
857
|
// build promise chain
|
|
832
858
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
833
859
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -839,16 +865,16 @@ class ObservableNotificationsApi {
|
|
|
839
865
|
for (let middleware of this.configuration.middleware) {
|
|
840
866
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
841
867
|
}
|
|
842
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.
|
|
868
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createNotification(rsp)));
|
|
843
869
|
}));
|
|
844
870
|
}
|
|
845
871
|
/**
|
|
846
|
-
*
|
|
847
|
-
*
|
|
848
|
-
* @param id Specifies the unique notification
|
|
872
|
+
* Delete a notification by providing its notification id.
|
|
873
|
+
* Deletes a notification object.
|
|
874
|
+
* @param id Specifies the unique notification ID (starts with not_).
|
|
849
875
|
*/
|
|
850
|
-
|
|
851
|
-
const requestContextPromise = this.requestFactory.
|
|
876
|
+
deleteNotification(id, _options) {
|
|
877
|
+
const requestContextPromise = this.requestFactory.deleteNotification(id, _options);
|
|
852
878
|
// build promise chain
|
|
853
879
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
854
880
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -860,19 +886,17 @@ class ObservableNotificationsApi {
|
|
|
860
886
|
for (let middleware of this.configuration.middleware) {
|
|
861
887
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
862
888
|
}
|
|
863
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.
|
|
889
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteNotification(rsp)));
|
|
864
890
|
}));
|
|
865
891
|
}
|
|
866
892
|
/**
|
|
867
|
-
*
|
|
868
|
-
*
|
|
869
|
-
* @param
|
|
870
|
-
* @param
|
|
871
|
-
* @param skip Specifies the offset for the first records to return.
|
|
872
|
-
* @param order Specifies the order in which to sort the results.
|
|
893
|
+
* Retrieves the details of an existing notification. Supply the unique notification ID.
|
|
894
|
+
* Get existing notification.
|
|
895
|
+
* @param id Specifies the unique notification ID (starts with not_).
|
|
896
|
+
* @param expand
|
|
873
897
|
*/
|
|
874
|
-
|
|
875
|
-
const requestContextPromise = this.requestFactory.
|
|
898
|
+
getNotification(id, expand, _options) {
|
|
899
|
+
const requestContextPromise = this.requestFactory.getNotification(id, expand, _options);
|
|
876
900
|
// build promise chain
|
|
877
901
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
878
902
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -884,11 +908,11 @@ class ObservableNotificationsApi {
|
|
|
884
908
|
for (let middleware of this.configuration.middleware) {
|
|
885
909
|
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
886
910
|
}
|
|
887
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.
|
|
911
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getNotification(rsp)));
|
|
888
912
|
}));
|
|
889
913
|
}
|
|
890
914
|
/**
|
|
891
|
-
* Returns a list of notifications.
|
|
915
|
+
* Returns a list of notifications. Notifications are useful to get notified about events that happen on-chain or in your Openfort account. 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.
|
|
892
916
|
* List notifications.
|
|
893
917
|
* @param limit Specifies the maximum number of records to return.
|
|
894
918
|
* @param skip Specifies the offset for the first records to return.
|
|
@@ -1333,6 +1357,27 @@ class ObservablePoliciesApi {
|
|
|
1333
1357
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createPolicy(rsp)));
|
|
1334
1358
|
}));
|
|
1335
1359
|
}
|
|
1360
|
+
/**
|
|
1361
|
+
* List all gas reports of a policy.
|
|
1362
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
1363
|
+
* @param withdrawalPolicyRequest
|
|
1364
|
+
*/
|
|
1365
|
+
createPolicyWithdrawal(id, withdrawalPolicyRequest, _options) {
|
|
1366
|
+
const requestContextPromise = this.requestFactory.createPolicyWithdrawal(id, withdrawalPolicyRequest, _options);
|
|
1367
|
+
// build promise chain
|
|
1368
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1369
|
+
for (let middleware of this.configuration.middleware) {
|
|
1370
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1371
|
+
}
|
|
1372
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1373
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1374
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1375
|
+
for (let middleware of this.configuration.middleware) {
|
|
1376
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1377
|
+
}
|
|
1378
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createPolicyWithdrawal(rsp)));
|
|
1379
|
+
}));
|
|
1380
|
+
}
|
|
1336
1381
|
/**
|
|
1337
1382
|
* Delete a policy object.
|
|
1338
1383
|
* @param id Specifies the unique policy ID (starts with pol_).
|
|
@@ -1443,6 +1488,26 @@ class ObservablePoliciesApi {
|
|
|
1443
1488
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getPolicy(rsp)));
|
|
1444
1489
|
}));
|
|
1445
1490
|
}
|
|
1491
|
+
/**
|
|
1492
|
+
* List all gas reports of a policy.
|
|
1493
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
1494
|
+
*/
|
|
1495
|
+
getPolicyBalance(id, _options) {
|
|
1496
|
+
const requestContextPromise = this.requestFactory.getPolicyBalance(id, _options);
|
|
1497
|
+
// build promise chain
|
|
1498
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1499
|
+
for (let middleware of this.configuration.middleware) {
|
|
1500
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1501
|
+
}
|
|
1502
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1503
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1504
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1505
|
+
for (let middleware of this.configuration.middleware) {
|
|
1506
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1507
|
+
}
|
|
1508
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getPolicyBalance(rsp)));
|
|
1509
|
+
}));
|
|
1510
|
+
}
|
|
1446
1511
|
/**
|
|
1447
1512
|
* List all gas reports of a policy.
|
|
1448
1513
|
* @param id Specifies the unique policy ID (starts with pol_).
|
|
@@ -1777,9 +1842,10 @@ class ObservableSettingsApi {
|
|
|
1777
1842
|
* @param skip Specifies the offset for the first records to return.
|
|
1778
1843
|
* @param order Specifies the order in which to sort the results.
|
|
1779
1844
|
* @param expand Specifies the fields to expand in the response.
|
|
1845
|
+
* @param deleted Specifies whether to include deleted dev accounts.
|
|
1780
1846
|
*/
|
|
1781
|
-
getDeveloperAccounts(limit, skip, order, expand, _options) {
|
|
1782
|
-
const requestContextPromise = this.requestFactory.getDeveloperAccounts(limit, skip, order, expand, _options);
|
|
1847
|
+
getDeveloperAccounts(limit, skip, order, expand, deleted, _options) {
|
|
1848
|
+
const requestContextPromise = this.requestFactory.getDeveloperAccounts(limit, skip, order, expand, deleted, _options);
|
|
1783
1849
|
// build promise chain
|
|
1784
1850
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1785
1851
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -1939,10 +2005,11 @@ class ObservableTransactionIntentsApi {
|
|
|
1939
2005
|
* @param chainId The chain ID. Must be a [supported chain](/chains).
|
|
1940
2006
|
* @param account Filter by account ID or developer account (starts with acc_ or dac_ respectively).
|
|
1941
2007
|
* @param player Filter by player ID (starts with pla_).
|
|
2008
|
+
* @param status Filter by successful (1) or failed (0) transaction intents.
|
|
1942
2009
|
* @param policy Filter by policy ID (starts with pol_).
|
|
1943
2010
|
*/
|
|
1944
|
-
getTransactionIntents(limit, skip, order, expand, chainId, account, player, policy, _options) {
|
|
1945
|
-
const requestContextPromise = this.requestFactory.getTransactionIntents(limit, skip, order, expand, chainId, account, player, policy, _options);
|
|
2011
|
+
getTransactionIntents(limit, skip, order, expand, chainId, account, player, status, policy, _options) {
|
|
2012
|
+
const requestContextPromise = this.requestFactory.getTransactionIntents(limit, skip, order, expand, chainId, account, player, status, policy, _options);
|
|
1946
2013
|
// build promise chain
|
|
1947
2014
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1948
2015
|
for (let middleware of this.configuration.middleware) {
|