@forteplatforms/sdk 1.0.245 → 1.0.249

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
  */
@@ -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.249",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {