@forteplatforms/sdk 1.0.245 → 1.0.250

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.
@@ -277,6 +277,7 @@ export interface GetPaymentAnalyticsRequest {
277
277
  groupBy?: GetPaymentAnalyticsGroupByType;
278
278
  metadataKey?: string;
279
279
  topN?: number;
280
+ granularity?: GetPaymentAnalyticsGranularityType;
280
281
  }
281
282
  export interface GetProjectRequest {
282
283
  projectId: string;
@@ -1784,6 +1785,16 @@ export declare const GetPaymentAnalyticsGroupByType: {
1784
1785
  readonly METADATA: "METADATA";
1785
1786
  };
1786
1787
  export type GetPaymentAnalyticsGroupByType = typeof GetPaymentAnalyticsGroupByType[keyof typeof GetPaymentAnalyticsGroupByType];
1788
+ /**
1789
+ * @export
1790
+ */
1791
+ export declare const GetPaymentAnalyticsGranularityType: {
1792
+ readonly ONE_MINUTE: "ONE_MINUTE";
1793
+ readonly FIVE_MINUTES: "FIVE_MINUTES";
1794
+ readonly FIFTEEN_MINUTES: "FIFTEEN_MINUTES";
1795
+ readonly ONE_HOUR: "ONE_HOUR";
1796
+ };
1797
+ export type GetPaymentAnalyticsGranularityType = typeof GetPaymentAnalyticsGranularityType[keyof typeof GetPaymentAnalyticsGranularityType];
1787
1798
  /**
1788
1799
  * @export
1789
1800
  */
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
64
64
  }
65
65
  };
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.ListUserPaymentsStateType = exports.ListUserActionLogsActionTypeType = exports.ListProjectPaymentsStateType = exports.GetUserMetricsGranularityType = exports.GetServiceMetricsGranularityType = exports.GetPaymentAnalyticsGroupByType = exports.ProjectsServerApi = void 0;
67
+ exports.ListUserPaymentsStateType = exports.ListUserActionLogsActionTypeType = exports.ListProjectPaymentsStateType = exports.GetUserMetricsGranularityType = exports.GetServiceMetricsGranularityType = exports.GetPaymentAnalyticsGranularityType = exports.GetPaymentAnalyticsGroupByType = exports.ProjectsServerApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var ActionInvocationObject_1 = require("../models/ActionInvocationObject");
70
70
  var ActionObject_1 = require("../models/ActionObject");
@@ -2639,6 +2639,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
2639
2639
  if (requestParameters['topN'] != null) {
2640
2640
  queryParameters['topN'] = requestParameters['topN'];
2641
2641
  }
2642
+ if (requestParameters['granularity'] != null) {
2643
+ queryParameters['granularity'] = requestParameters['granularity'];
2644
+ }
2642
2645
  headerParameters = {};
2643
2646
  urlPath = "/api/v1/projects/{projectId}/payments/analytics";
2644
2647
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
@@ -7368,6 +7371,15 @@ exports.GetPaymentAnalyticsGroupByType = {
7368
7371
  PAYMENT_DESCRIPTION: 'PAYMENT_DESCRIPTION',
7369
7372
  METADATA: 'METADATA'
7370
7373
  };
7374
+ /**
7375
+ * @export
7376
+ */
7377
+ exports.GetPaymentAnalyticsGranularityType = {
7378
+ ONE_MINUTE: 'ONE_MINUTE',
7379
+ FIVE_MINUTES: 'FIVE_MINUTES',
7380
+ FIFTEEN_MINUTES: 'FIFTEEN_MINUTES',
7381
+ ONE_HOUR: 'ONE_HOUR'
7382
+ };
7371
7383
  /**
7372
7384
  * @export
7373
7385
  */
@@ -62,6 +62,7 @@ export interface ActivateMfaMethodOperationRequest {
62
62
  projectId: string;
63
63
  mfaMethodId: string;
64
64
  activateMfaMethodRequest: ActivateMfaMethodRequest;
65
+ authorization?: string;
65
66
  }
66
67
  export interface CancelMySubscriptionRequest {
67
68
  projectId: string;
@@ -70,6 +71,7 @@ export interface CancelMySubscriptionRequest {
70
71
  export interface ChangeMyPasswordRequest {
71
72
  projectId: string;
72
73
  changePasswordRequest: ChangePasswordRequest;
74
+ authorization?: string;
73
75
  }
74
76
  export interface CompleteOtpLoginOperationRequest {
75
77
  projectId: string;
@@ -83,10 +85,12 @@ export interface CompletePasswordResetOperationRequest {
83
85
  export interface CreateContactMethodRequest {
84
86
  projectId: string;
85
87
  addContactMethodRequest: AddContactMethodRequest;
88
+ authorization?: string;
86
89
  }
87
90
  export interface CreateMfaMethodOperationRequest {
88
91
  projectId: string;
89
92
  createMfaMethodRequest: CreateMfaMethodRequest;
93
+ authorization?: string;
90
94
  }
91
95
  export interface CreateOtpLoginOperationRequest {
92
96
  projectId: string;
@@ -95,6 +99,7 @@ export interface CreateOtpLoginOperationRequest {
95
99
  export interface CreateUserInviteOperationRequest {
96
100
  projectId: string;
97
101
  createUserInviteRequest: CreateUserInviteRequest;
102
+ authorization?: string;
98
103
  }
99
104
  export interface DeleteContactMethodRequest {
100
105
  projectId: string;
@@ -155,6 +160,7 @@ export interface PreviewMySubscriptionUpdateRequest {
155
160
  projectId: string;
156
161
  subscriptionId: string;
157
162
  updateSubscriptionPreviewRequest: UpdateSubscriptionPreviewRequest;
163
+ authorization?: string;
158
164
  }
159
165
  export interface RegisterUserOperationRequest {
160
166
  projectId: string;
@@ -164,6 +170,7 @@ export interface RenameMfaMethodOperationRequest {
164
170
  projectId: string;
165
171
  mfaMethodId: string;
166
172
  renameMfaMethodRequest: RenameMfaMethodRequest;
173
+ authorization?: string;
167
174
  }
168
175
  export interface RenewSessionTokenRequest {
169
176
  projectId: string;
@@ -190,19 +197,23 @@ export interface RevokeUserInviteRequest {
190
197
  export interface SendMfaChallengeRequest {
191
198
  projectId: string;
192
199
  mfaChallengeRequest: MfaChallengeRequest;
200
+ authorization?: string;
193
201
  }
194
202
  export interface UpdateMySubscriptionRequest {
195
203
  projectId: string;
196
204
  subscriptionId: string;
197
205
  updateSubscriptionRequest: UpdateSubscriptionRequest;
206
+ authorization?: string;
198
207
  }
199
208
  export interface UsersCreateContentUploadLinkRequest {
200
209
  projectId: string;
201
210
  createContentUploadLinkRequest: CreateContentUploadLinkRequest;
211
+ authorization?: string;
202
212
  }
203
213
  export interface UsersCreatePaymentRequest {
204
214
  projectId: string;
205
215
  createPaymentRequest: CreatePaymentRequest;
216
+ authorization?: string;
206
217
  }
207
218
  export interface UsersCreatePaymentMethodRequest {
208
219
  projectId: string;
@@ -210,14 +221,17 @@ export interface UsersCreatePaymentMethodRequest {
210
221
  export interface UsersCreatePaymentPreviewRequest {
211
222
  projectId: string;
212
223
  createPaymentPreviewRequest: CreatePaymentPreviewRequest;
224
+ authorization?: string;
213
225
  }
214
226
  export interface UsersCreateSubscriptionRequest {
215
227
  projectId: string;
216
228
  createSubscriptionRequest: CreateSubscriptionRequest;
229
+ authorization?: string;
217
230
  }
218
231
  export interface UsersCreateSubscriptionPreviewRequest {
219
232
  projectId: string;
220
233
  createSubscriptionPreviewRequest: CreateSubscriptionPreviewRequest;
234
+ authorization?: string;
221
235
  }
222
236
  export interface UsersDeleteContentRequest {
223
237
  projectId: string;
@@ -255,16 +269,19 @@ export interface UsersUpdateContentOwnerRequest {
255
269
  projectId: string;
256
270
  contentId: string;
257
271
  updateContentOwnerRequest: UpdateContentOwnerRequest;
272
+ authorization?: string;
258
273
  }
259
274
  export interface UsersUpdateContentSharesRequest {
260
275
  projectId: string;
261
276
  contentId: string;
262
277
  updateContentSharesRequest: UpdateContentSharesRequest;
278
+ authorization?: string;
263
279
  }
264
280
  export interface UsersUpdatePaymentMethodRequest {
265
281
  projectId: string;
266
282
  paymentMethodId: string;
267
283
  updatePaymentMethodRequest: UpdatePaymentMethodRequest;
284
+ authorization?: string;
268
285
  }
269
286
  export interface VerifyContactMethodRequest {
270
287
  projectId: string;
@@ -274,6 +291,7 @@ export interface VerifyContactMethodRequest {
274
291
  export interface VerifyMfaRequest {
275
292
  projectId: string;
276
293
  mfaVerifyRequest: MfaVerifyRequest;
294
+ authorization?: string;
277
295
  }
278
296
  /**
279
297
  *
@@ -141,6 +141,9 @@ var UsersServerApi = /** @class */ (function (_super) {
141
141
  queryParameters = {};
142
142
  headerParameters = {};
143
143
  headerParameters['Content-Type'] = 'application/json';
144
+ if (requestParameters['authorization'] != null) {
145
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
146
+ }
144
147
  urlPath = "/api/v1/{projectId}/users/me/mfa/methods/{mfaMethodId}/verification";
145
148
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
146
149
  urlPath = urlPath.replace('{mfaMethodId}', encodeURIComponent(String(requestParameters['mfaMethodId'])));
@@ -263,6 +266,9 @@ var UsersServerApi = /** @class */ (function (_super) {
263
266
  queryParameters = {};
264
267
  headerParameters = {};
265
268
  headerParameters['Content-Type'] = 'application/json';
269
+ if (requestParameters['authorization'] != null) {
270
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
271
+ }
266
272
  urlPath = "/api/v1/{projectId}/users/me/password";
267
273
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
268
274
  return [2 /*return*/, {
@@ -451,6 +457,9 @@ var UsersServerApi = /** @class */ (function (_super) {
451
457
  queryParameters = {};
452
458
  headerParameters = {};
453
459
  headerParameters['Content-Type'] = 'application/json';
460
+ if (requestParameters['authorization'] != null) {
461
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
462
+ }
454
463
  urlPath = "/api/v1/{projectId}/users/me/contact-methods";
455
464
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
456
465
  return [2 /*return*/, {
@@ -513,6 +522,9 @@ var UsersServerApi = /** @class */ (function (_super) {
513
522
  queryParameters = {};
514
523
  headerParameters = {};
515
524
  headerParameters['Content-Type'] = 'application/json';
525
+ if (requestParameters['authorization'] != null) {
526
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
527
+ }
516
528
  urlPath = "/api/v1/{projectId}/users/me/mfa/methods";
517
529
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
518
530
  return [2 /*return*/, {
@@ -637,6 +649,9 @@ var UsersServerApi = /** @class */ (function (_super) {
637
649
  queryParameters = {};
638
650
  headerParameters = {};
639
651
  headerParameters['Content-Type'] = 'application/json';
652
+ if (requestParameters['authorization'] != null) {
653
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
654
+ }
640
655
  urlPath = "/api/v1/{projectId}/users/me/invites";
641
656
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
642
657
  return [2 /*return*/, {
@@ -1505,6 +1520,9 @@ var UsersServerApi = /** @class */ (function (_super) {
1505
1520
  queryParameters = {};
1506
1521
  headerParameters = {};
1507
1522
  headerParameters['Content-Type'] = 'application/json';
1523
+ if (requestParameters['authorization'] != null) {
1524
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
1525
+ }
1508
1526
  urlPath = "/api/v1/{projectId}/users/me/subscriptions/{subscriptionId}/preview";
1509
1527
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1510
1528
  urlPath = urlPath.replace('{subscriptionId}', encodeURIComponent(String(requestParameters['subscriptionId'])));
@@ -1633,6 +1651,9 @@ var UsersServerApi = /** @class */ (function (_super) {
1633
1651
  queryParameters = {};
1634
1652
  headerParameters = {};
1635
1653
  headerParameters['Content-Type'] = 'application/json';
1654
+ if (requestParameters['authorization'] != null) {
1655
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
1656
+ }
1636
1657
  urlPath = "/api/v1/{projectId}/users/me/mfa/methods/{mfaMethodId}";
1637
1658
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1638
1659
  urlPath = urlPath.replace('{mfaMethodId}', encodeURIComponent(String(requestParameters['mfaMethodId'])));
@@ -1998,6 +2019,9 @@ var UsersServerApi = /** @class */ (function (_super) {
1998
2019
  queryParameters = {};
1999
2020
  headerParameters = {};
2000
2021
  headerParameters['Content-Type'] = 'application/json';
2022
+ if (requestParameters['authorization'] != null) {
2023
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
2024
+ }
2001
2025
  urlPath = "/api/v1/{projectId}/users/me/mfa/challenge";
2002
2026
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2003
2027
  return [2 /*return*/, {
@@ -2063,6 +2087,9 @@ var UsersServerApi = /** @class */ (function (_super) {
2063
2087
  queryParameters = {};
2064
2088
  headerParameters = {};
2065
2089
  headerParameters['Content-Type'] = 'application/json';
2090
+ if (requestParameters['authorization'] != null) {
2091
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
2092
+ }
2066
2093
  urlPath = "/api/v1/{projectId}/users/me/subscriptions/{subscriptionId}";
2067
2094
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2068
2095
  urlPath = urlPath.replace('{subscriptionId}', encodeURIComponent(String(requestParameters['subscriptionId'])));
@@ -2126,6 +2153,9 @@ var UsersServerApi = /** @class */ (function (_super) {
2126
2153
  queryParameters = {};
2127
2154
  headerParameters = {};
2128
2155
  headerParameters['Content-Type'] = 'application/json';
2156
+ if (requestParameters['authorization'] != null) {
2157
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
2158
+ }
2129
2159
  urlPath = "/api/v1/{projectId}/users/me/content/upload-links";
2130
2160
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2131
2161
  return [2 /*return*/, {
@@ -2188,6 +2218,9 @@ var UsersServerApi = /** @class */ (function (_super) {
2188
2218
  queryParameters = {};
2189
2219
  headerParameters = {};
2190
2220
  headerParameters['Content-Type'] = 'application/json';
2221
+ if (requestParameters['authorization'] != null) {
2222
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
2223
+ }
2191
2224
  urlPath = "/api/v1/{projectId}/users/me/payments";
2192
2225
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2193
2226
  return [2 /*return*/, {
@@ -2307,6 +2340,9 @@ var UsersServerApi = /** @class */ (function (_super) {
2307
2340
  queryParameters = {};
2308
2341
  headerParameters = {};
2309
2342
  headerParameters['Content-Type'] = 'application/json';
2343
+ if (requestParameters['authorization'] != null) {
2344
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
2345
+ }
2310
2346
  urlPath = "/api/v1/{projectId}/users/me/payments/preview";
2311
2347
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2312
2348
  return [2 /*return*/, {
@@ -2369,6 +2405,9 @@ var UsersServerApi = /** @class */ (function (_super) {
2369
2405
  queryParameters = {};
2370
2406
  headerParameters = {};
2371
2407
  headerParameters['Content-Type'] = 'application/json';
2408
+ if (requestParameters['authorization'] != null) {
2409
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
2410
+ }
2372
2411
  urlPath = "/api/v1/{projectId}/users/me/subscriptions";
2373
2412
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2374
2413
  return [2 /*return*/, {
@@ -2431,6 +2470,9 @@ var UsersServerApi = /** @class */ (function (_super) {
2431
2470
  queryParameters = {};
2432
2471
  headerParameters = {};
2433
2472
  headerParameters['Content-Type'] = 'application/json';
2473
+ if (requestParameters['authorization'] != null) {
2474
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
2475
+ }
2434
2476
  urlPath = "/api/v1/{projectId}/users/me/subscriptions/preview";
2435
2477
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2436
2478
  return [2 /*return*/, {
@@ -2978,6 +3020,9 @@ var UsersServerApi = /** @class */ (function (_super) {
2978
3020
  queryParameters = {};
2979
3021
  headerParameters = {};
2980
3022
  headerParameters['Content-Type'] = 'application/json';
3023
+ if (requestParameters['authorization'] != null) {
3024
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
3025
+ }
2981
3026
  urlPath = "/api/v1/{projectId}/users/me/content/{contentId}/owner";
2982
3027
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
2983
3028
  urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
@@ -3044,6 +3089,9 @@ var UsersServerApi = /** @class */ (function (_super) {
3044
3089
  queryParameters = {};
3045
3090
  headerParameters = {};
3046
3091
  headerParameters['Content-Type'] = 'application/json';
3092
+ if (requestParameters['authorization'] != null) {
3093
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
3094
+ }
3047
3095
  urlPath = "/api/v1/{projectId}/users/me/content/{contentId}/shares";
3048
3096
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
3049
3097
  urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
@@ -3110,6 +3158,9 @@ var UsersServerApi = /** @class */ (function (_super) {
3110
3158
  queryParameters = {};
3111
3159
  headerParameters = {};
3112
3160
  headerParameters['Content-Type'] = 'application/json';
3161
+ if (requestParameters['authorization'] != null) {
3162
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
3163
+ }
3113
3164
  urlPath = "/api/v1/{projectId}/users/me/payment-methods/{paymentMethodId}";
3114
3165
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
3115
3166
  urlPath = urlPath.replace('{paymentMethodId}', encodeURIComponent(String(requestParameters['paymentMethodId'])));
@@ -3240,6 +3291,9 @@ var UsersServerApi = /** @class */ (function (_super) {
3240
3291
  queryParameters = {};
3241
3292
  headerParameters = {};
3242
3293
  headerParameters['Content-Type'] = 'application/json';
3294
+ if (requestParameters['authorization'] != null) {
3295
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
3296
+ }
3243
3297
  urlPath = "/api/v1/{projectId}/users/me/mfa/verify";
3244
3298
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
3245
3299
  return [2 /*return*/, {
@@ -0,0 +1,39 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { TimeSeriesDataPoint } from './TimeSeriesDataPoint';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CurrencyVolumeSeries
17
+ */
18
+ export interface CurrencyVolumeSeries {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CurrencyVolumeSeries
23
+ */
24
+ currency: string;
25
+ /**
26
+ *
27
+ * @type {Array<TimeSeriesDataPoint>}
28
+ * @memberof CurrencyVolumeSeries
29
+ */
30
+ points: Array<TimeSeriesDataPoint>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the CurrencyVolumeSeries interface.
34
+ */
35
+ export declare function instanceOfCurrencyVolumeSeries(value: object): value is CurrencyVolumeSeries;
36
+ export declare function CurrencyVolumeSeriesFromJSON(json: any): CurrencyVolumeSeries;
37
+ export declare function CurrencyVolumeSeriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrencyVolumeSeries;
38
+ export declare function CurrencyVolumeSeriesToJSON(json: any): CurrencyVolumeSeries;
39
+ export declare function CurrencyVolumeSeriesToJSONTyped(value?: CurrencyVolumeSeries | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCurrencyVolumeSeries = instanceOfCurrencyVolumeSeries;
17
+ exports.CurrencyVolumeSeriesFromJSON = CurrencyVolumeSeriesFromJSON;
18
+ exports.CurrencyVolumeSeriesFromJSONTyped = CurrencyVolumeSeriesFromJSONTyped;
19
+ exports.CurrencyVolumeSeriesToJSON = CurrencyVolumeSeriesToJSON;
20
+ exports.CurrencyVolumeSeriesToJSONTyped = CurrencyVolumeSeriesToJSONTyped;
21
+ var TimeSeriesDataPoint_1 = require("./TimeSeriesDataPoint");
22
+ /**
23
+ * Check if a given object implements the CurrencyVolumeSeries interface.
24
+ */
25
+ function instanceOfCurrencyVolumeSeries(value) {
26
+ if (!('currency' in value) || value['currency'] === undefined)
27
+ return false;
28
+ if (!('points' in value) || value['points'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CurrencyVolumeSeriesFromJSON(json) {
33
+ return CurrencyVolumeSeriesFromJSONTyped(json, false);
34
+ }
35
+ function CurrencyVolumeSeriesFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'currency': json['currency'],
41
+ 'points': (json['points'].map(TimeSeriesDataPoint_1.TimeSeriesDataPointFromJSON)),
42
+ };
43
+ }
44
+ function CurrencyVolumeSeriesToJSON(json) {
45
+ return CurrencyVolumeSeriesToJSONTyped(json, false);
46
+ }
47
+ function CurrencyVolumeSeriesToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'currency': value['currency'],
54
+ 'points': (value['points'].map(TimeSeriesDataPoint_1.TimeSeriesDataPointToJSON)),
55
+ };
56
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { CurrencyVolumeSeries } from './CurrencyVolumeSeries';
12
13
  import type { StateCurrencyTotals } from './StateCurrencyTotals';
13
14
  import type { CurrencyTotals } from './CurrencyTotals';
14
15
  import type { SpenderAggregate } from './SpenderAggregate';
@@ -43,6 +44,12 @@ export interface PaymentAnalyticsResponse {
43
44
  * @memberof PaymentAnalyticsResponse
44
45
  */
45
46
  volumeByCurrency: Array<CurrencyTotals>;
47
+ /**
48
+ *
49
+ * @type {Array<CurrencyVolumeSeries>}
50
+ * @memberof PaymentAnalyticsResponse
51
+ */
52
+ volumeOverTime: Array<CurrencyVolumeSeries>;
46
53
  /**
47
54
  *
48
55
  * @type {Array<StateCurrencyTotals>}
@@ -19,6 +19,7 @@ exports.PaymentAnalyticsResponseFromJSON = PaymentAnalyticsResponseFromJSON;
19
19
  exports.PaymentAnalyticsResponseFromJSONTyped = PaymentAnalyticsResponseFromJSONTyped;
20
20
  exports.PaymentAnalyticsResponseToJSON = PaymentAnalyticsResponseToJSON;
21
21
  exports.PaymentAnalyticsResponseToJSONTyped = PaymentAnalyticsResponseToJSONTyped;
22
+ var CurrencyVolumeSeries_1 = require("./CurrencyVolumeSeries");
22
23
  var StateCurrencyTotals_1 = require("./StateCurrencyTotals");
23
24
  var CurrencyTotals_1 = require("./CurrencyTotals");
24
25
  var SpenderAggregate_1 = require("./SpenderAggregate");
@@ -43,6 +44,8 @@ function instanceOfPaymentAnalyticsResponse(value) {
43
44
  return false;
44
45
  if (!('volumeByCurrency' in value) || value['volumeByCurrency'] === undefined)
45
46
  return false;
47
+ if (!('volumeOverTime' in value) || value['volumeOverTime'] === undefined)
48
+ return false;
46
49
  if (!('byState' in value) || value['byState'] === undefined)
47
50
  return false;
48
51
  if (!('topProducts' in value) || value['topProducts'] === undefined)
@@ -65,6 +68,7 @@ function PaymentAnalyticsResponseFromJSONTyped(json, ignoreDiscriminator) {
65
68
  'maxTime': (new Date(json['maxTime'])),
66
69
  'totalPaymentCount': json['totalPaymentCount'],
67
70
  'volumeByCurrency': (json['volumeByCurrency'].map(CurrencyTotals_1.CurrencyTotalsFromJSON)),
71
+ 'volumeOverTime': (json['volumeOverTime'].map(CurrencyVolumeSeries_1.CurrencyVolumeSeriesFromJSON)),
68
72
  'byState': (json['byState'].map(StateCurrencyTotals_1.StateCurrencyTotalsFromJSON)),
69
73
  'topProducts': (json['topProducts'].map(ProductAggregate_1.ProductAggregateFromJSON)),
70
74
  'topSpenders': (json['topSpenders'].map(SpenderAggregate_1.SpenderAggregateFromJSON)),
@@ -84,6 +88,7 @@ function PaymentAnalyticsResponseToJSONTyped(value, ignoreDiscriminator) {
84
88
  'maxTime': value['maxTime'].toISOString(),
85
89
  'totalPaymentCount': value['totalPaymentCount'],
86
90
  'volumeByCurrency': (value['volumeByCurrency'].map(CurrencyTotals_1.CurrencyTotalsToJSON)),
91
+ 'volumeOverTime': (value['volumeOverTime'].map(CurrencyVolumeSeries_1.CurrencyVolumeSeriesToJSON)),
87
92
  'byState': (value['byState'].map(StateCurrencyTotals_1.StateCurrencyTotalsToJSON)),
88
93
  'topProducts': (value['topProducts'].map(ProductAggregate_1.ProductAggregateToJSON)),
89
94
  'topSpenders': (value['topSpenders'].map(SpenderAggregate_1.SpenderAggregateToJSON)),
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TimeSeriesDataPoint } from './TimeSeriesDataPoint';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -21,36 +22,12 @@ export interface WebAppRuntimeMetricsResponse {
21
22
  * @memberof WebAppRuntimeMetricsResponse
22
23
  */
23
24
  invocationCount: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof WebAppRuntimeMetricsResponse
28
- */
29
- coldStartCount: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof WebAppRuntimeMetricsResponse
34
- */
35
- coldStartRate: number;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof WebAppRuntimeMetricsResponse
40
- */
41
- avgDurationMillis: number;
42
25
  /**
43
26
  *
44
27
  * @type {number}
45
28
  * @memberof WebAppRuntimeMetricsResponse
46
29
  */
47
30
  p50DurationMillis: number;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof WebAppRuntimeMetricsResponse
52
- */
53
- p90DurationMillis: number;
54
31
  /**
55
32
  *
56
33
  * @type {number}
@@ -59,16 +36,10 @@ export interface WebAppRuntimeMetricsResponse {
59
36
  p99DurationMillis: number;
60
37
  /**
61
38
  *
62
- * @type {number}
63
- * @memberof WebAppRuntimeMetricsResponse
64
- */
65
- maxMemoryUsedMb: number;
66
- /**
67
- *
68
- * @type {number}
39
+ * @type {Array<TimeSeriesDataPoint>}
69
40
  * @memberof WebAppRuntimeMetricsResponse
70
41
  */
71
- memorySizeMb: number;
42
+ invocations: Array<TimeSeriesDataPoint>;
72
43
  }
73
44
  /**
74
45
  * Check if a given object implements the WebAppRuntimeMetricsResponse interface.
@@ -18,27 +18,18 @@ exports.WebAppRuntimeMetricsResponseFromJSON = WebAppRuntimeMetricsResponseFromJ
18
18
  exports.WebAppRuntimeMetricsResponseFromJSONTyped = WebAppRuntimeMetricsResponseFromJSONTyped;
19
19
  exports.WebAppRuntimeMetricsResponseToJSON = WebAppRuntimeMetricsResponseToJSON;
20
20
  exports.WebAppRuntimeMetricsResponseToJSONTyped = WebAppRuntimeMetricsResponseToJSONTyped;
21
+ var TimeSeriesDataPoint_1 = require("./TimeSeriesDataPoint");
21
22
  /**
22
23
  * Check if a given object implements the WebAppRuntimeMetricsResponse interface.
23
24
  */
24
25
  function instanceOfWebAppRuntimeMetricsResponse(value) {
25
26
  if (!('invocationCount' in value) || value['invocationCount'] === undefined)
26
27
  return false;
27
- if (!('coldStartCount' in value) || value['coldStartCount'] === undefined)
28
- return false;
29
- if (!('coldStartRate' in value) || value['coldStartRate'] === undefined)
30
- return false;
31
- if (!('avgDurationMillis' in value) || value['avgDurationMillis'] === undefined)
32
- return false;
33
28
  if (!('p50DurationMillis' in value) || value['p50DurationMillis'] === undefined)
34
29
  return false;
35
- if (!('p90DurationMillis' in value) || value['p90DurationMillis'] === undefined)
36
- return false;
37
30
  if (!('p99DurationMillis' in value) || value['p99DurationMillis'] === undefined)
38
31
  return false;
39
- if (!('maxMemoryUsedMb' in value) || value['maxMemoryUsedMb'] === undefined)
40
- return false;
41
- if (!('memorySizeMb' in value) || value['memorySizeMb'] === undefined)
32
+ if (!('invocations' in value) || value['invocations'] === undefined)
42
33
  return false;
43
34
  return true;
44
35
  }
@@ -51,14 +42,9 @@ function WebAppRuntimeMetricsResponseFromJSONTyped(json, ignoreDiscriminator) {
51
42
  }
52
43
  return {
53
44
  'invocationCount': json['invocationCount'],
54
- 'coldStartCount': json['coldStartCount'],
55
- 'coldStartRate': json['coldStartRate'],
56
- 'avgDurationMillis': json['avgDurationMillis'],
57
45
  'p50DurationMillis': json['p50DurationMillis'],
58
- 'p90DurationMillis': json['p90DurationMillis'],
59
46
  'p99DurationMillis': json['p99DurationMillis'],
60
- 'maxMemoryUsedMb': json['maxMemoryUsedMb'],
61
- 'memorySizeMb': json['memorySizeMb'],
47
+ 'invocations': (json['invocations'].map(TimeSeriesDataPoint_1.TimeSeriesDataPointFromJSON)),
62
48
  };
63
49
  }
64
50
  function WebAppRuntimeMetricsResponseToJSON(json) {
@@ -71,13 +57,8 @@ function WebAppRuntimeMetricsResponseToJSONTyped(value, ignoreDiscriminator) {
71
57
  }
72
58
  return {
73
59
  'invocationCount': value['invocationCount'],
74
- 'coldStartCount': value['coldStartCount'],
75
- 'coldStartRate': value['coldStartRate'],
76
- 'avgDurationMillis': value['avgDurationMillis'],
77
60
  'p50DurationMillis': value['p50DurationMillis'],
78
- 'p90DurationMillis': value['p90DurationMillis'],
79
61
  'p99DurationMillis': value['p99DurationMillis'],
80
- 'maxMemoryUsedMb': value['maxMemoryUsedMb'],
81
- 'memorySizeMb': value['memorySizeMb'],
62
+ 'invocations': (value['invocations'].map(TimeSeriesDataPoint_1.TimeSeriesDataPointToJSON)),
82
63
  };
83
64
  }
@@ -46,6 +46,7 @@ export * from './CreateSubscriptionResponse';
46
46
  export * from './CreateUserInviteRequest';
47
47
  export * from './CreateWebAppRequest';
48
48
  export * from './CurrencyTotals';
49
+ export * from './CurrencyVolumeSeries';
49
50
  export * from './CustomDomain';
50
51
  export * from './CustomDomainResponse';
51
52
  export * from './DnsRecordCheck';
@@ -64,6 +64,7 @@ __exportStar(require("./CreateSubscriptionResponse"), exports);
64
64
  __exportStar(require("./CreateUserInviteRequest"), exports);
65
65
  __exportStar(require("./CreateWebAppRequest"), exports);
66
66
  __exportStar(require("./CurrencyTotals"), exports);
67
+ __exportStar(require("./CurrencyVolumeSeries"), exports);
67
68
  __exportStar(require("./CustomDomain"), exports);
68
69
  __exportStar(require("./CustomDomainResponse"), exports);
69
70
  __exportStar(require("./DnsRecordCheck"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.245",
3
+ "version": "1.0.250",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {