@openfort/openfort-node 0.6.35 → 0.6.38

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.
Files changed (221) hide show
  1. package/dist/apis/notificationSubscriptionsApiWrapper.d.ts +28 -0
  2. package/dist/apis/notificationSubscriptionsApiWrapper.js +56 -0
  3. package/dist/apis/notificationSubscriptionsApiWrapper.js.map +1 -0
  4. package/dist/apis/notificationTriggersApiWrapper.d.ts +28 -0
  5. package/dist/apis/notificationTriggersApiWrapper.js +56 -0
  6. package/dist/apis/notificationTriggersApiWrapper.js.map +1 -0
  7. package/dist/apis/notificationsApiWrapper.d.ts +29 -0
  8. package/dist/apis/notificationsApiWrapper.js +56 -0
  9. package/dist/apis/notificationsApiWrapper.js.map +1 -0
  10. package/dist/apis/policiesApiWrapper.d.ts +3 -3
  11. package/dist/apis/policiesApiWrapper.js.map +1 -1
  12. package/dist/apis/policyRulesApiWrapper.d.ts +6 -6
  13. package/dist/apis/policyRulesApiWrapper.js +9 -9
  14. package/dist/apis/policyRulesApiWrapper.js.map +1 -1
  15. package/dist/apis/transactionIntentsApiWrapper.js +1 -1
  16. package/dist/apis/transactionIntentsApiWrapper.js.map +1 -1
  17. package/dist/generated/apis/AccountsApi.d.ts +1 -1
  18. package/dist/generated/apis/AccountsApi.js +1 -1
  19. package/dist/generated/apis/InventoriesApi.d.ts +6 -0
  20. package/dist/generated/apis/InventoriesApi.js +6 -0
  21. package/dist/generated/apis/InventoriesApi.js.map +1 -1
  22. package/dist/generated/apis/NotificationSubscriptionsApi.d.ts +74 -0
  23. package/dist/generated/apis/NotificationSubscriptionsApi.js +257 -0
  24. package/dist/generated/apis/NotificationSubscriptionsApi.js.map +1 -0
  25. package/dist/generated/apis/NotificationTriggersApi.d.ts +74 -0
  26. package/dist/generated/apis/NotificationTriggersApi.js +257 -0
  27. package/dist/generated/apis/NotificationTriggersApi.js.map +1 -0
  28. package/dist/generated/apis/NotificationsApi.d.ts +78 -0
  29. package/dist/generated/apis/NotificationsApi.js +268 -0
  30. package/dist/generated/apis/NotificationsApi.js.map +1 -0
  31. package/dist/generated/apis/PoliciesApi.d.ts +34 -4
  32. package/dist/generated/apis/PoliciesApi.js +124 -4
  33. package/dist/generated/apis/PoliciesApi.js.map +1 -1
  34. package/dist/generated/apis/PolicyRulesApi.d.ts +10 -9
  35. package/dist/generated/apis/PolicyRulesApi.js +14 -13
  36. package/dist/generated/apis/PolicyRulesApi.js.map +1 -1
  37. package/dist/generated/apis/SettingsApi.d.ts +5 -4
  38. package/dist/generated/apis/SettingsApi.js +9 -4
  39. package/dist/generated/apis/SettingsApi.js.map +1 -1
  40. package/dist/generated/apis/TransactionIntentsApi.d.ts +2 -1
  41. package/dist/generated/apis/TransactionIntentsApi.js +6 -1
  42. package/dist/generated/apis/TransactionIntentsApi.js.map +1 -1
  43. package/dist/generated/index.d.ts +1 -1
  44. package/dist/generated/index.js +4 -1
  45. package/dist/generated/index.js.map +1 -1
  46. package/dist/generated/models/AccountNotificationTriggerResponse.d.ts +37 -0
  47. package/dist/generated/models/AccountNotificationTriggerResponse.js +68 -0
  48. package/dist/generated/models/AccountNotificationTriggerResponse.js.map +1 -0
  49. package/dist/generated/models/{GasReportDataInner.d.ts → AccountNotificationTriggerResponseAccount.d.ts} +10 -9
  50. package/dist/generated/models/AccountNotificationTriggerResponseAccount.js +68 -0
  51. package/dist/generated/models/AccountNotificationTriggerResponseAccount.js.map +1 -0
  52. package/dist/generated/models/BalanceNotificationTriggerResponse.d.ts +34 -0
  53. package/dist/generated/models/BalanceNotificationTriggerResponse.js +56 -0
  54. package/dist/generated/models/BalanceNotificationTriggerResponse.js.map +1 -0
  55. package/dist/generated/models/CancelTransferOwnershipRequest.d.ts +1 -1
  56. package/dist/generated/models/ContractNotificationTriggerResponse.d.ts +38 -0
  57. package/dist/generated/models/ContractNotificationTriggerResponse.js +74 -0
  58. package/dist/generated/models/ContractNotificationTriggerResponse.js.map +1 -0
  59. package/dist/generated/models/{ContractPolicyRuleResponseContract.d.ts → ContractNotificationTriggerResponseContract.d.ts} +1 -1
  60. package/dist/generated/models/{ContractPolicyRuleResponseContract.js → ContractNotificationTriggerResponseContract.js} +7 -7
  61. package/dist/generated/models/ContractNotificationTriggerResponseContract.js.map +1 -0
  62. package/dist/generated/models/ContractPolicyRuleResponse.d.ts +2 -2
  63. package/dist/generated/models/ContractPolicyRuleResponse.js +1 -1
  64. package/dist/generated/models/ContractPolicyRuleResponse.js.map +1 -1
  65. package/dist/generated/models/CreateNotificationRequest.d.ts +31 -0
  66. package/dist/generated/models/CreateNotificationRequest.js +32 -0
  67. package/dist/generated/models/CreateNotificationRequest.js.map +1 -0
  68. package/dist/generated/models/CreateNotificationSubscriptionRequest.d.ts +37 -0
  69. package/dist/generated/models/CreateNotificationSubscriptionRequest.js +44 -0
  70. package/dist/generated/models/CreateNotificationSubscriptionRequest.js.map +1 -0
  71. package/dist/generated/models/CreateNotificationTriggerRequest.d.ts +57 -0
  72. package/dist/generated/models/CreateNotificationTriggerRequest.js +74 -0
  73. package/dist/generated/models/CreateNotificationTriggerRequest.js.map +1 -0
  74. package/dist/generated/models/CreatePolicyRuleRequest.d.ts +2 -2
  75. package/dist/generated/models/DeveloperAccountListQueries.d.ts +4 -0
  76. package/dist/generated/models/DeveloperAccountListQueries.js +6 -0
  77. package/dist/generated/models/DeveloperAccountListQueries.js.map +1 -1
  78. package/dist/generated/models/EntityTypeNOTIFICATION.d.ts +12 -0
  79. package/dist/generated/models/EntityTypeNOTIFICATION.js +14 -0
  80. package/dist/generated/models/EntityTypeNOTIFICATION.js.map +1 -0
  81. package/dist/generated/models/EntityTypeNOTIFICATIONSUBSCRIPTION.d.ts +12 -0
  82. package/dist/generated/models/EntityTypeNOTIFICATIONSUBSCRIPTION.js +14 -0
  83. package/dist/generated/models/EntityTypeNOTIFICATIONSUBSCRIPTION.js.map +1 -0
  84. package/dist/generated/models/EntityTypeNOTIFICATIONTRIGGER.d.ts +12 -0
  85. package/dist/generated/models/EntityTypeNOTIFICATIONTRIGGER.js +14 -0
  86. package/dist/generated/models/EntityTypeNOTIFICATIONTRIGGER.js.map +1 -0
  87. package/dist/generated/models/GasReport.d.ts +8 -4
  88. package/dist/generated/models/GasReport.js +30 -6
  89. package/dist/generated/models/GasReport.js.map +1 -1
  90. package/dist/generated/models/GasReportListResponse.d.ts +35 -0
  91. package/dist/generated/models/GasReportListResponse.js +62 -0
  92. package/dist/generated/models/GasReportListResponse.js.map +1 -0
  93. package/dist/generated/models/{GasReportDataInnerTransactionIntentsInner.d.ts → GasReportTransactionIntentsInner.d.ts} +2 -2
  94. package/dist/generated/models/{GasReportDataInnerTransactionIntentsInner.js → GasReportTransactionIntentsInner.js} +9 -9
  95. package/dist/generated/models/GasReportTransactionIntentsInner.js.map +1 -0
  96. package/dist/generated/models/Interaction.d.ts +1 -1
  97. package/dist/generated/models/{GasReportDataInnerPeriod.d.ts → MonthRange.d.ts} +2 -2
  98. package/dist/generated/models/{GasReportDataInnerPeriod.js → MonthRange.js} +13 -13
  99. package/dist/generated/models/MonthRange.js.map +1 -0
  100. package/dist/generated/models/NotificationDeleteResponse.d.ts +31 -0
  101. package/dist/generated/models/NotificationDeleteResponse.js +44 -0
  102. package/dist/generated/models/NotificationDeleteResponse.js.map +1 -0
  103. package/dist/generated/models/NotificationListQueries.d.ts +50 -0
  104. package/dist/generated/models/NotificationListQueries.js +62 -0
  105. package/dist/generated/models/NotificationListQueries.js.map +1 -0
  106. package/dist/generated/models/NotificationListResponse.d.ts +35 -0
  107. package/dist/generated/models/NotificationListResponse.js +62 -0
  108. package/dist/generated/models/NotificationListResponse.js.map +1 -0
  109. package/dist/generated/models/NotificationResponse.d.ts +38 -0
  110. package/dist/generated/models/NotificationResponse.js +74 -0
  111. package/dist/generated/models/NotificationResponse.js.map +1 -0
  112. package/dist/generated/models/NotificationResponseExpandable.d.ts +12 -0
  113. package/dist/generated/models/NotificationResponseExpandable.js +14 -0
  114. package/dist/generated/models/NotificationResponseExpandable.js.map +1 -0
  115. package/dist/generated/models/NotificationResponseSubscriptionsInner.d.ts +34 -0
  116. package/dist/generated/models/NotificationResponseSubscriptionsInner.js +56 -0
  117. package/dist/generated/models/NotificationResponseSubscriptionsInner.js.map +1 -0
  118. package/dist/generated/models/NotificationResponseTriggersInner.d.ts +41 -0
  119. package/dist/generated/models/NotificationResponseTriggersInner.js +86 -0
  120. package/dist/generated/models/NotificationResponseTriggersInner.js.map +1 -0
  121. package/dist/generated/models/NotificationSubscription.d.ts +34 -0
  122. package/dist/generated/models/NotificationSubscription.js +56 -0
  123. package/dist/generated/models/NotificationSubscription.js.map +1 -0
  124. package/dist/generated/models/NotificationSubscriptionDeleteResponse.d.ts +31 -0
  125. package/dist/generated/models/NotificationSubscriptionDeleteResponse.js +44 -0
  126. package/dist/generated/models/NotificationSubscriptionDeleteResponse.js.map +1 -0
  127. package/dist/generated/models/NotificationSubscriptionListQueries.d.ts +41 -0
  128. package/dist/generated/models/NotificationSubscriptionListQueries.js +50 -0
  129. package/dist/generated/models/NotificationSubscriptionListQueries.js.map +1 -0
  130. package/dist/generated/models/NotificationSubscriptionListResponse.d.ts +35 -0
  131. package/dist/generated/models/NotificationSubscriptionListResponse.js +62 -0
  132. package/dist/generated/models/NotificationSubscriptionListResponse.js.map +1 -0
  133. package/dist/generated/models/NotificationTriggerDeleteResponse.d.ts +31 -0
  134. package/dist/generated/models/NotificationTriggerDeleteResponse.js +44 -0
  135. package/dist/generated/models/NotificationTriggerDeleteResponse.js.map +1 -0
  136. package/dist/generated/models/NotificationTriggerListQueries.d.ts +41 -0
  137. package/dist/generated/models/NotificationTriggerListQueries.js +50 -0
  138. package/dist/generated/models/NotificationTriggerListQueries.js.map +1 -0
  139. package/dist/generated/models/NotificationTriggerListResponse.d.ts +35 -0
  140. package/dist/generated/models/NotificationTriggerListResponse.js +62 -0
  141. package/dist/generated/models/NotificationTriggerListResponse.js.map +1 -0
  142. package/dist/generated/models/NotificationTriggerResponse.d.ts +41 -0
  143. package/dist/generated/models/NotificationTriggerResponse.js +86 -0
  144. package/dist/generated/models/NotificationTriggerResponse.js.map +1 -0
  145. package/dist/generated/models/NotificationTriggerType.d.ts +12 -0
  146. package/dist/generated/models/NotificationTriggerType.js +14 -0
  147. package/dist/generated/models/NotificationTriggerType.js.map +1 -0
  148. package/dist/generated/models/NotificationTriggerTypeCONTRACTTRIGGER.d.ts +12 -0
  149. package/dist/generated/models/NotificationTriggerTypeCONTRACTTRIGGER.js +14 -0
  150. package/dist/generated/models/NotificationTriggerTypeCONTRACTTRIGGER.js.map +1 -0
  151. package/dist/generated/models/NotificationTriggerTypeDEVELOPERACCOUNTTRIGGER.d.ts +12 -0
  152. package/dist/generated/models/NotificationTriggerTypeDEVELOPERACCOUNTTRIGGER.js +14 -0
  153. package/dist/generated/models/NotificationTriggerTypeDEVELOPERACCOUNTTRIGGER.js.map +1 -0
  154. package/dist/generated/models/NotificationTriggerTypePROJECTBALANCETRIGGER.d.ts +12 -0
  155. package/dist/generated/models/NotificationTriggerTypePROJECTBALANCETRIGGER.js +14 -0
  156. package/dist/generated/models/NotificationTriggerTypePROJECTBALANCETRIGGER.js.map +1 -0
  157. package/dist/generated/models/ObjectSerializer.d.ts +37 -4
  158. package/dist/generated/models/ObjectSerializer.js +102 -12
  159. package/dist/generated/models/ObjectSerializer.js.map +1 -1
  160. package/dist/generated/models/PickDeveloperAccountId.d.ts +31 -0
  161. package/dist/generated/models/PickDeveloperAccountId.js +35 -0
  162. package/dist/generated/models/PickDeveloperAccountId.js.map +1 -0
  163. package/dist/generated/models/PlayerCancelTransferOwnershipRequest.d.ts +1 -1
  164. package/dist/generated/models/PlayerTransferOwnershipRequest.d.ts +1 -1
  165. package/dist/generated/models/PolicyBalanceWithdrawResponse.d.ts +30 -0
  166. package/dist/generated/models/PolicyBalanceWithdrawResponse.js +44 -0
  167. package/dist/generated/models/PolicyBalanceWithdrawResponse.js.map +1 -0
  168. package/dist/generated/models/PolicyListQueries.d.ts +2 -2
  169. package/dist/generated/models/PolicyResponsePolicyRulesInner.d.ts +2 -2
  170. package/dist/generated/models/PolicyResponsePolicyRulesInner.js +1 -1
  171. package/dist/generated/models/PolicyResponsePolicyRulesInner.js.map +1 -1
  172. package/dist/generated/models/PolicyRuleResponse.d.ts +2 -2
  173. package/dist/generated/models/PolicyRuleResponse.js +1 -1
  174. package/dist/generated/models/PolicyRuleResponse.js.map +1 -1
  175. package/dist/generated/models/ResponseResponse.d.ts +9 -1
  176. package/dist/generated/models/ResponseResponse.js +12 -0
  177. package/dist/generated/models/ResponseResponse.js.map +1 -1
  178. package/dist/generated/models/SubscriptionType.d.ts +12 -0
  179. package/dist/generated/models/SubscriptionType.js +14 -0
  180. package/dist/generated/models/SubscriptionType.js.map +1 -0
  181. package/dist/generated/models/TransactionIntentListQueries.d.ts +4 -0
  182. package/dist/generated/models/TransactionIntentListQueries.js +6 -0
  183. package/dist/generated/models/TransactionIntentListQueries.js.map +1 -1
  184. package/dist/generated/models/TransferOwnershipRequest.d.ts +1 -1
  185. package/dist/generated/models/UpdatePolicyRuleRequest.d.ts +2 -2
  186. package/dist/generated/models/WithdrawalPolicyRequest.d.ts +35 -0
  187. package/dist/generated/models/WithdrawalPolicyRequest.js +38 -0
  188. package/dist/generated/models/WithdrawalPolicyRequest.js.map +1 -0
  189. package/dist/generated/models/all.d.ts +37 -4
  190. package/dist/generated/models/all.js +37 -4
  191. package/dist/generated/models/all.js.map +1 -1
  192. package/dist/generated/types/ObjectParamAPI.d.ts +339 -18
  193. package/dist/generated/types/ObjectParamAPI.js +166 -28
  194. package/dist/generated/types/ObjectParamAPI.js.map +1 -1
  195. package/dist/generated/types/ObservableAPI.d.ts +153 -13
  196. package/dist/generated/types/ObservableAPI.js +361 -20
  197. package/dist/generated/types/ObservableAPI.js.map +1 -1
  198. package/dist/generated/types/PromiseAPI.d.ts +147 -13
  199. package/dist/generated/types/PromiseAPI.js +201 -34
  200. package/dist/generated/types/PromiseAPI.js.map +1 -1
  201. package/dist/index.d.ts +6 -0
  202. package/dist/index.js +12 -0
  203. package/dist/index.js.map +1 -1
  204. package/dist/models/getNotificationRequest.d.ts +4 -0
  205. package/dist/models/getNotificationRequest.js +3 -0
  206. package/dist/models/getNotificationRequest.js.map +1 -0
  207. package/dist/models/getNotificationSubscriptionRequest.d.ts +3 -0
  208. package/dist/models/getNotificationSubscriptionRequest.js +3 -0
  209. package/dist/models/getNotificationSubscriptionRequest.js.map +1 -0
  210. package/dist/models/getNotificationTriggerRequest.d.ts +3 -0
  211. package/dist/models/getNotificationTriggerRequest.js +3 -0
  212. package/dist/models/getNotificationTriggerRequest.js.map +1 -0
  213. package/dist/version.d.ts +1 -1
  214. package/dist/version.js +1 -1
  215. package/package.json +1 -1
  216. package/tsconfig.tsbuildinfo +1 -1
  217. package/dist/generated/models/ContractPolicyRuleResponseContract.js.map +0 -1
  218. package/dist/generated/models/GasReportDataInner.js +0 -62
  219. package/dist/generated/models/GasReportDataInner.js.map +0 -1
  220. package/dist/generated/models/GasReportDataInnerPeriod.js.map +0 -1
  221. package/dist/generated/models/GasReportDataInnerTransactionIntentsInner.js.map +0 -1
@@ -0,0 +1,257 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationTriggersApiResponseProcessor = exports.NotificationTriggersApiRequestFactory = void 0;
4
+ // TODO: better import syntax?
5
+ const baseapi_1 = require("./baseapi");
6
+ const http_1 = require("../http/http");
7
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
8
+ const exception_1 = require("./exception");
9
+ const util_1 = require("../util");
10
+ /**
11
+ * no description
12
+ */
13
+ class NotificationTriggersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
14
+ /**
15
+ * Create a trigger for the provided notification.
16
+ * Create a notification trigger object.
17
+ * @param createNotificationTriggerRequest
18
+ */
19
+ async createNotificationTrigger(createNotificationTriggerRequest, _options) {
20
+ let _config = _options || this.configuration;
21
+ // verify required parameter 'createNotificationTriggerRequest' is not null or undefined
22
+ if (createNotificationTriggerRequest === null || createNotificationTriggerRequest === undefined) {
23
+ throw new baseapi_1.RequiredError("NotificationTriggersApi", "createNotificationTrigger", "createNotificationTriggerRequest");
24
+ }
25
+ // Path Params
26
+ const localVarPath = '/v1/notification_triggers';
27
+ // Make Request Context
28
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
29
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
30
+ // Body Params
31
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
32
+ "application/json"
33
+ ]);
34
+ requestContext.setHeaderParam("Content-Type", contentType);
35
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createNotificationTriggerRequest, "CreateNotificationTriggerRequest", ""), contentType);
36
+ requestContext.setBody(serializedBody);
37
+ let authMethod;
38
+ // Apply auth methods
39
+ authMethod = _config.authMethods["sk"];
40
+ if (authMethod?.applySecurityAuthentication) {
41
+ await authMethod?.applySecurityAuthentication(requestContext);
42
+ }
43
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
44
+ if (defaultAuth?.applySecurityAuthentication) {
45
+ await defaultAuth?.applySecurityAuthentication(requestContext);
46
+ }
47
+ return requestContext;
48
+ }
49
+ /**
50
+ * Delete a notification trigger by providing its notification trigger id.
51
+ * Deletes a notification trigger object.
52
+ * @param id Specifies the unique notification trigger ID (starts with ntr_).
53
+ */
54
+ async deleteNotificationTrigger(id, _options) {
55
+ let _config = _options || this.configuration;
56
+ // verify required parameter 'id' is not null or undefined
57
+ if (id === null || id === undefined) {
58
+ throw new baseapi_1.RequiredError("NotificationTriggersApi", "deleteNotificationTrigger", "id");
59
+ }
60
+ // Path Params
61
+ const localVarPath = '/v1/notification_triggers/{id}'
62
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
63
+ // Make Request Context
64
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
65
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
66
+ let authMethod;
67
+ // Apply auth methods
68
+ authMethod = _config.authMethods["sk"];
69
+ if (authMethod?.applySecurityAuthentication) {
70
+ await authMethod?.applySecurityAuthentication(requestContext);
71
+ }
72
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
73
+ if (defaultAuth?.applySecurityAuthentication) {
74
+ await defaultAuth?.applySecurityAuthentication(requestContext);
75
+ }
76
+ return requestContext;
77
+ }
78
+ /**
79
+ * Retrieves the details of an existing notification trigger. Supply the unique notification trigger ID.
80
+ * Get existing notification trigger.
81
+ * @param id Specifies the unique notification trigger ID (starts with ntr_).
82
+ */
83
+ async getNotificationTrigger(id, _options) {
84
+ let _config = _options || this.configuration;
85
+ // verify required parameter 'id' is not null or undefined
86
+ if (id === null || id === undefined) {
87
+ throw new baseapi_1.RequiredError("NotificationTriggersApi", "getNotificationTrigger", "id");
88
+ }
89
+ // Path Params
90
+ const localVarPath = '/v1/notification_triggers/{id}'
91
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
92
+ // Make Request Context
93
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
94
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
95
+ let authMethod;
96
+ // Apply auth methods
97
+ authMethod = _config.authMethods["sk"];
98
+ if (authMethod?.applySecurityAuthentication) {
99
+ await authMethod?.applySecurityAuthentication(requestContext);
100
+ }
101
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
102
+ if (defaultAuth?.applySecurityAuthentication) {
103
+ await defaultAuth?.applySecurityAuthentication(requestContext);
104
+ }
105
+ return requestContext;
106
+ }
107
+ /**
108
+ * 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.
109
+ * List notification triggers of a notification.
110
+ * @param notification Specifies the unique notification ID (starts with not_).
111
+ * @param limit Specifies the maximum number of records to return.
112
+ * @param skip Specifies the offset for the first records to return.
113
+ * @param order Specifies the order in which to sort the results.
114
+ */
115
+ async getNotificationTriggers(notification, limit, skip, order, _options) {
116
+ let _config = _options || this.configuration;
117
+ // verify required parameter 'notification' is not null or undefined
118
+ if (notification === null || notification === undefined) {
119
+ throw new baseapi_1.RequiredError("NotificationTriggersApi", "getNotificationTriggers", "notification");
120
+ }
121
+ // Path Params
122
+ const localVarPath = '/v1/notification_triggers';
123
+ // Make Request Context
124
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
125
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
126
+ // Query Params
127
+ if (limit !== undefined) {
128
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", "int32"));
129
+ }
130
+ // Query Params
131
+ if (skip !== undefined) {
132
+ requestContext.setQueryParam("skip", ObjectSerializer_1.ObjectSerializer.serialize(skip, "number", "int32"));
133
+ }
134
+ // Query Params
135
+ if (order !== undefined) {
136
+ requestContext.setQueryParam("order", ObjectSerializer_1.ObjectSerializer.serialize(order, "SortOrder", ""));
137
+ }
138
+ // Query Params
139
+ if (notification !== undefined) {
140
+ requestContext.setQueryParam("notification", ObjectSerializer_1.ObjectSerializer.serialize(notification, "string", ""));
141
+ }
142
+ let authMethod;
143
+ // Apply auth methods
144
+ authMethod = _config.authMethods["sk"];
145
+ if (authMethod?.applySecurityAuthentication) {
146
+ await authMethod?.applySecurityAuthentication(requestContext);
147
+ }
148
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
149
+ if (defaultAuth?.applySecurityAuthentication) {
150
+ await defaultAuth?.applySecurityAuthentication(requestContext);
151
+ }
152
+ return requestContext;
153
+ }
154
+ }
155
+ exports.NotificationTriggersApiRequestFactory = NotificationTriggersApiRequestFactory;
156
+ class NotificationTriggersApiResponseProcessor {
157
+ /**
158
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
159
+ * to the expected objects
160
+ *
161
+ * @params response Response returned by the server for a request to createNotificationTrigger
162
+ * @throws ApiException if the response code was not in [200, 299]
163
+ */
164
+ async createNotificationTrigger(response) {
165
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
166
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
167
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationTriggerResponse", "");
168
+ return body;
169
+ }
170
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
171
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
172
+ }
173
+ if ((0, util_1.isCodeInRange)("409", response.httpStatusCode)) {
174
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
175
+ }
176
+ // Work around for missing responses in specification, e.g. for petstore.yaml
177
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
178
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationTriggerResponse", "");
179
+ return body;
180
+ }
181
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
182
+ }
183
+ /**
184
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
185
+ * to the expected objects
186
+ *
187
+ * @params response Response returned by the server for a request to deleteNotificationTrigger
188
+ * @throws ApiException if the response code was not in [200, 299]
189
+ */
190
+ async deleteNotificationTrigger(response) {
191
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
192
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
193
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationTriggerDeleteResponse", "");
194
+ return body;
195
+ }
196
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
197
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
198
+ }
199
+ if ((0, util_1.isCodeInRange)("409", response.httpStatusCode)) {
200
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
201
+ }
202
+ // Work around for missing responses in specification, e.g. for petstore.yaml
203
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
204
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationTriggerDeleteResponse", "");
205
+ return body;
206
+ }
207
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
208
+ }
209
+ /**
210
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
211
+ * to the expected objects
212
+ *
213
+ * @params response Response returned by the server for a request to getNotificationTrigger
214
+ * @throws ApiException if the response code was not in [200, 299]
215
+ */
216
+ async getNotificationTrigger(response) {
217
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
218
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
219
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationTriggerResponse", "");
220
+ return body;
221
+ }
222
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
223
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
224
+ }
225
+ // Work around for missing responses in specification, e.g. for petstore.yaml
226
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
227
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationTriggerResponse", "");
228
+ return body;
229
+ }
230
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
231
+ }
232
+ /**
233
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
234
+ * to the expected objects
235
+ *
236
+ * @params response Response returned by the server for a request to getNotificationTriggers
237
+ * @throws ApiException if the response code was not in [200, 299]
238
+ */
239
+ async getNotificationTriggers(response) {
240
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
241
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
242
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationTriggerListResponse", "");
243
+ return body;
244
+ }
245
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
246
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
247
+ }
248
+ // Work around for missing responses in specification, e.g. for petstore.yaml
249
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
250
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationTriggerListResponse", "");
251
+ return body;
252
+ }
253
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
254
+ }
255
+ }
256
+ exports.NotificationTriggersApiResponseProcessor = NotificationTriggersApiResponseProcessor;
257
+ //# sourceMappingURL=NotificationTriggersApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationTriggersApi.js","sourceRoot":"","sources":["../../../src/generated/apis/NotificationTriggersApi.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAC9B,uCAAmF;AAEnF,uCAAmF;AAGnF,iEAA4D;AAC5D,2CAAyC;AACzC,kCAAsD;AAUtD;;GAEG;AACH,MAAa,qCAAsC,SAAQ,+BAAqB;IAE5E;;;;OAIG;IACI,KAAK,CAAC,yBAAyB,CAAC,gCAAkE,EAAE,QAAwB;QAC/H,IAAI,OAAO,GAAG,QAAQ,I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YAAY,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC9J,CAAC;CAEJ;AAxID,4FAwIC"}
@@ -0,0 +1,78 @@
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 { NotificationDeleteResponse } from '../models/NotificationDeleteResponse';
6
+ import { NotificationListResponse } from '../models/NotificationListResponse';
7
+ import { NotificationResponse } from '../models/NotificationResponse';
8
+ import { NotificationResponseExpandable } from '../models/NotificationResponseExpandable';
9
+ import { SortOrder } from '../models/SortOrder';
10
+ /**
11
+ * no description
12
+ */
13
+ export declare class NotificationsApiRequestFactory extends BaseAPIRequestFactory {
14
+ /**
15
+ * Create a notification object.
16
+ * Create a notification object.
17
+ * @param createNotificationRequest
18
+ */
19
+ createNotification(createNotificationRequest: CreateNotificationRequest, _options?: Configuration): Promise<RequestContext>;
20
+ /**
21
+ * Delete a notification by providing its notification id.
22
+ * Deletes a notification object.
23
+ * @param id Specifies the unique notification ID (starts with not_).
24
+ */
25
+ deleteNotification(id: string, _options?: Configuration): Promise<RequestContext>;
26
+ /**
27
+ * Retrieves the details of an existing notification. Supply the unique notification ID.
28
+ * Get existing notification.
29
+ * @param id Specifies the unique notification ID (starts with not_).
30
+ * @param expand
31
+ */
32
+ getNotification(id: string, expand?: Array<NotificationResponseExpandable>, _options?: Configuration): Promise<RequestContext>;
33
+ /**
34
+ * 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.
35
+ * List notifications.
36
+ * @param limit Specifies the maximum number of records to return.
37
+ * @param skip Specifies the offset for the first records to return.
38
+ * @param order Specifies the order in which to sort the results.
39
+ * @param expand Specifies the fields to expand in the response.
40
+ * @param deleted Specifies whether to include deleted notifications.
41
+ * @param name Specifies the name of the notifications.
42
+ */
43
+ getNotifications(limit?: number, skip?: number, order?: SortOrder, expand?: Array<NotificationResponseExpandable>, deleted?: boolean, name?: string, _options?: Configuration): Promise<RequestContext>;
44
+ }
45
+ export declare class NotificationsApiResponseProcessor {
46
+ /**
47
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
48
+ * to the expected objects
49
+ *
50
+ * @params response Response returned by the server for a request to createNotification
51
+ * @throws ApiException if the response code was not in [200, 299]
52
+ */
53
+ createNotification(response: ResponseContext): Promise<NotificationResponse>;
54
+ /**
55
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
56
+ * to the expected objects
57
+ *
58
+ * @params response Response returned by the server for a request to deleteNotification
59
+ * @throws ApiException if the response code was not in [200, 299]
60
+ */
61
+ deleteNotification(response: ResponseContext): Promise<NotificationDeleteResponse>;
62
+ /**
63
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
64
+ * to the expected objects
65
+ *
66
+ * @params response Response returned by the server for a request to getNotification
67
+ * @throws ApiException if the response code was not in [200, 299]
68
+ */
69
+ getNotification(response: ResponseContext): Promise<NotificationResponse>;
70
+ /**
71
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
72
+ * to the expected objects
73
+ *
74
+ * @params response Response returned by the server for a request to getNotifications
75
+ * @throws ApiException if the response code was not in [200, 299]
76
+ */
77
+ getNotifications(response: ResponseContext): Promise<NotificationListResponse>;
78
+ }
@@ -0,0 +1,268 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationsApiResponseProcessor = exports.NotificationsApiRequestFactory = void 0;
4
+ // TODO: better import syntax?
5
+ const baseapi_1 = require("./baseapi");
6
+ const http_1 = require("../http/http");
7
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
8
+ const exception_1 = require("./exception");
9
+ const util_1 = require("../util");
10
+ /**
11
+ * no description
12
+ */
13
+ class NotificationsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
14
+ /**
15
+ * Create a notification object.
16
+ * Create a notification object.
17
+ * @param createNotificationRequest
18
+ */
19
+ async createNotification(createNotificationRequest, _options) {
20
+ let _config = _options || this.configuration;
21
+ // verify required parameter 'createNotificationRequest' is not null or undefined
22
+ if (createNotificationRequest === null || createNotificationRequest === undefined) {
23
+ throw new baseapi_1.RequiredError("NotificationsApi", "createNotification", "createNotificationRequest");
24
+ }
25
+ // Path Params
26
+ const localVarPath = '/v1/notifications';
27
+ // Make Request Context
28
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
29
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
30
+ // Body Params
31
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
32
+ "application/json"
33
+ ]);
34
+ requestContext.setHeaderParam("Content-Type", contentType);
35
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createNotificationRequest, "CreateNotificationRequest", ""), contentType);
36
+ requestContext.setBody(serializedBody);
37
+ let authMethod;
38
+ // Apply auth methods
39
+ authMethod = _config.authMethods["sk"];
40
+ if (authMethod?.applySecurityAuthentication) {
41
+ await authMethod?.applySecurityAuthentication(requestContext);
42
+ }
43
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
44
+ if (defaultAuth?.applySecurityAuthentication) {
45
+ await defaultAuth?.applySecurityAuthentication(requestContext);
46
+ }
47
+ return requestContext;
48
+ }
49
+ /**
50
+ * Delete a notification by providing its notification id.
51
+ * Deletes a notification object.
52
+ * @param id Specifies the unique notification ID (starts with not_).
53
+ */
54
+ async deleteNotification(id, _options) {
55
+ let _config = _options || this.configuration;
56
+ // verify required parameter 'id' is not null or undefined
57
+ if (id === null || id === undefined) {
58
+ throw new baseapi_1.RequiredError("NotificationsApi", "deleteNotification", "id");
59
+ }
60
+ // Path Params
61
+ const localVarPath = '/v1/notifications/{id}'
62
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
63
+ // Make Request Context
64
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
65
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
66
+ let authMethod;
67
+ // Apply auth methods
68
+ authMethod = _config.authMethods["sk"];
69
+ if (authMethod?.applySecurityAuthentication) {
70
+ await authMethod?.applySecurityAuthentication(requestContext);
71
+ }
72
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
73
+ if (defaultAuth?.applySecurityAuthentication) {
74
+ await defaultAuth?.applySecurityAuthentication(requestContext);
75
+ }
76
+ return requestContext;
77
+ }
78
+ /**
79
+ * Retrieves the details of an existing notification. Supply the unique notification ID.
80
+ * Get existing notification.
81
+ * @param id Specifies the unique notification ID (starts with not_).
82
+ * @param expand
83
+ */
84
+ async getNotification(id, expand, _options) {
85
+ let _config = _options || this.configuration;
86
+ // verify required parameter 'id' is not null or undefined
87
+ if (id === null || id === undefined) {
88
+ throw new baseapi_1.RequiredError("NotificationsApi", "getNotification", "id");
89
+ }
90
+ // Path Params
91
+ const localVarPath = '/v1/notifications/{id}'
92
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
93
+ // Make Request Context
94
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
95
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
96
+ // Query Params
97
+ if (expand !== undefined) {
98
+ requestContext.setQueryParam("expand", ObjectSerializer_1.ObjectSerializer.serialize(expand, "Array<NotificationResponseExpandable>", ""));
99
+ }
100
+ let authMethod;
101
+ // Apply auth methods
102
+ authMethod = _config.authMethods["sk"];
103
+ if (authMethod?.applySecurityAuthentication) {
104
+ await authMethod?.applySecurityAuthentication(requestContext);
105
+ }
106
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
107
+ if (defaultAuth?.applySecurityAuthentication) {
108
+ await defaultAuth?.applySecurityAuthentication(requestContext);
109
+ }
110
+ return requestContext;
111
+ }
112
+ /**
113
+ * 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.
114
+ * List notifications.
115
+ * @param limit Specifies the maximum number of records to return.
116
+ * @param skip Specifies the offset for the first records to return.
117
+ * @param order Specifies the order in which to sort the results.
118
+ * @param expand Specifies the fields to expand in the response.
119
+ * @param deleted Specifies whether to include deleted notifications.
120
+ * @param name Specifies the name of the notifications.
121
+ */
122
+ async getNotifications(limit, skip, order, expand, deleted, name, _options) {
123
+ let _config = _options || this.configuration;
124
+ // Path Params
125
+ const localVarPath = '/v1/notifications';
126
+ // Make Request Context
127
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
128
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
129
+ // Query Params
130
+ if (limit !== undefined) {
131
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", "int32"));
132
+ }
133
+ // Query Params
134
+ if (skip !== undefined) {
135
+ requestContext.setQueryParam("skip", ObjectSerializer_1.ObjectSerializer.serialize(skip, "number", "int32"));
136
+ }
137
+ // Query Params
138
+ if (order !== undefined) {
139
+ requestContext.setQueryParam("order", ObjectSerializer_1.ObjectSerializer.serialize(order, "SortOrder", ""));
140
+ }
141
+ // Query Params
142
+ if (expand !== undefined) {
143
+ requestContext.setQueryParam("expand", ObjectSerializer_1.ObjectSerializer.serialize(expand, "Array<NotificationResponseExpandable>", ""));
144
+ }
145
+ // Query Params
146
+ if (deleted !== undefined) {
147
+ requestContext.setQueryParam("deleted", ObjectSerializer_1.ObjectSerializer.serialize(deleted, "boolean", ""));
148
+ }
149
+ // Query Params
150
+ if (name !== undefined) {
151
+ requestContext.setQueryParam("name", ObjectSerializer_1.ObjectSerializer.serialize(name, "string", ""));
152
+ }
153
+ let authMethod;
154
+ // Apply auth methods
155
+ authMethod = _config.authMethods["sk"];
156
+ if (authMethod?.applySecurityAuthentication) {
157
+ await authMethod?.applySecurityAuthentication(requestContext);
158
+ }
159
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
160
+ if (defaultAuth?.applySecurityAuthentication) {
161
+ await defaultAuth?.applySecurityAuthentication(requestContext);
162
+ }
163
+ return requestContext;
164
+ }
165
+ }
166
+ exports.NotificationsApiRequestFactory = NotificationsApiRequestFactory;
167
+ class NotificationsApiResponseProcessor {
168
+ /**
169
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
170
+ * to the expected objects
171
+ *
172
+ * @params response Response returned by the server for a request to createNotification
173
+ * @throws ApiException if the response code was not in [200, 299]
174
+ */
175
+ async createNotification(response) {
176
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
177
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
178
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationResponse", "");
179
+ return body;
180
+ }
181
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
182
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
183
+ }
184
+ if ((0, util_1.isCodeInRange)("409", response.httpStatusCode)) {
185
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
186
+ }
187
+ // Work around for missing responses in specification, e.g. for petstore.yaml
188
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
189
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationResponse", "");
190
+ return body;
191
+ }
192
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
193
+ }
194
+ /**
195
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
196
+ * to the expected objects
197
+ *
198
+ * @params response Response returned by the server for a request to deleteNotification
199
+ * @throws ApiException if the response code was not in [200, 299]
200
+ */
201
+ async deleteNotification(response) {
202
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
203
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
204
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationDeleteResponse", "");
205
+ return body;
206
+ }
207
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
208
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
209
+ }
210
+ if ((0, util_1.isCodeInRange)("409", response.httpStatusCode)) {
211
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
212
+ }
213
+ // Work around for missing responses in specification, e.g. for petstore.yaml
214
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
215
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationDeleteResponse", "");
216
+ return body;
217
+ }
218
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
219
+ }
220
+ /**
221
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
222
+ * to the expected objects
223
+ *
224
+ * @params response Response returned by the server for a request to getNotification
225
+ * @throws ApiException if the response code was not in [200, 299]
226
+ */
227
+ async getNotification(response) {
228
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
229
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
230
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationResponse", "");
231
+ return body;
232
+ }
233
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
234
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
235
+ }
236
+ // Work around for missing responses in specification, e.g. for petstore.yaml
237
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
238
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationResponse", "");
239
+ return body;
240
+ }
241
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
242
+ }
243
+ /**
244
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
245
+ * to the expected objects
246
+ *
247
+ * @params response Response returned by the server for a request to getNotifications
248
+ * @throws ApiException if the response code was not in [200, 299]
249
+ */
250
+ async getNotifications(response) {
251
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
252
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
253
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationListResponse", "");
254
+ return body;
255
+ }
256
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
257
+ throw new exception_1.ApiException(response.httpStatusCode, "Error response.", undefined, response.headers);
258
+ }
259
+ // Work around for missing responses in specification, e.g. for petstore.yaml
260
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
261
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotificationListResponse", "");
262
+ return body;
263
+ }
264
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
265
+ }
266
+ }
267
+ exports.NotificationsApiResponseProcessor = NotificationsApiResponseProcessor;
268
+ //# sourceMappingURL=NotificationsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationsApi.js","sourceRoot":"","sources":["../../../src/generated/apis/NotificationsApi.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAC9B,uCAAmF;AAEnF,uCAAm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